You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
6.4 KiB
1 line
6.4 KiB
2 months ago
|
webpackJsonp([68],{MOfs:function(e,t){},V21k:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("mvHQ"),i=r.n(a),s=r("Xxa5"),n=r.n(s),o=r("exGp"),l=r.n(o),u={data:function(){var e=this;return{checkList:[],authList:[{title:"微信提现",key:"wechat_transfer"},{title:"支付宝提现",key:"alipay_transfer"},{title:"线下提现",key:"under_transfer",tips:"用于用户、"+this.$t("action.attendantName")+"或代理商提现时选择到账方式"}],longOptions:[{id:3,title:"近3天"},{id:5,title:"近5天"},{id:7,title:"近7天"}],timeOptions:[{id:30,title:"半小时"},{id:60,title:"一小时"},{id:120,title:"两小时"}],subForm:{wechat_transfer:0,alipay_transfer:0,under_transfer:0,company_pay:1,over_time:"",time_interval:"",service_cover_time:"",max_day:"",time_unit:"",trading_rules:""},subFormRules:{checkList:{required:!0,validator:function(t,r,a){var i=e.subForm,s=i.wechat_transfer,n=void 0===s?0:s,o=i.alipay_transfer,l=void 0===o?0:o,u=i.under_transfer;n||l||u?a():a(new Error("请选择提现方式"))},trigger:["blur","change"]},company_pay:{required:!0,type:"number",message:"请选择转账方式",trigger:"blur"},over_time:{required:!0,validator:this.$reg.isNum,reg_type:2,text:"分钟数",trigger:"blur"},time_interval:{required:!0,validator:this.$reg.isNum,reg_type:2,text:"分钟数",trigger:"blur"},max_day:{required:!0,type:"number",message:"请选择最长预约",trigger:"blur"},time_unit:{required:!0,type:"number",message:"请选择时长单位",trigger:"blur"}}}},created:function(){this.getFormInfo()},methods:{getFormInfo:function(){var e=this;return l()(n.a.mark(function t(){var r,a,i,s,o;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.$api.system.configInfo();case 2:if(r=t.sent,a=r.code,i=r.data,200===a){t.next=7;break}return t.abrupt("return");case 7:for(s in e.subForm)e.subForm[s]=i[s];o=[],e.authList.map(function(e){1===i[e.key]&&o.push(e.title)}),e.checkList=o;case 11:case"end":return t.stop()}},t,e)}))()},changeCheckBox:function(e){var t=this;this.authList.map(function(r){t.subForm[r.key]=e.includes(r.title)?1:0})},submitForm:function(){var e=this;return l()(n.a.mark(function t(){var r,a;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(r=!1,e.$refs.subForm.validate(function(e){e&&(r=!0)}),a=JSON.parse(i()(e.subForm)),!r){t.next=7;break}return t.next=6,e.$api.system.configUpdate(a);case 6:e.$message.success(e.$t("tips.successSub"));case 7:case"end":return t.stop()}},t,e)}))()}}},m={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"lb-system-transaction"},[r("top-nav"),e._v(" "),r("div",{staticClass:"page-main"},[r("lb-tips",[e._v("\n 系统默认用户订单处于待核销状态或完成订单后24小时内可申请退款\n ")]),e._v(" "),r("el-form",{ref:"subForm",attrs:{model:e.subForm,rules:e.subFormRules,"label-width":"120px"},nativeOn:{submit:function(e){e.preventDefault()}}},[r("el-form-item",{attrs:{label:"提现方式",prop:"checkList"}},[r("el-checkbox-group",{on:{change:e.changeCheckBox},model:{value:e.checkList,callback:function(t){e.checkList=t},expression:"checkList"}},e._l(e.authList,function(t,a){return r("div",{key:a,style:{display:"inline-block",marginLeft:0===a?0:"15px"}},[r("el-checkbox",{attrs:{label:t.title}}),e._v(" "),t.tips?r("lb-tool-tips",[e._v(e._s(t.tips))]):e._e()],1)}),0)],1),e._v(" "),r("el-form-item",{attrs:{label:"转账方式",prop:"company_pay"}},[r("el-radio-group",{model:{value:e.subForm.company_pay,callback:function(t){e.$set(e.subForm,"company_pay",t)},expression:"subForm.company_pay"}},[r("el-radio",{attrs:{label:1}},[e._v("企业转账")]),e._v(" "),r("el-radio",{attrs:{label:2}},[e._v("商家转账")])],1),e._v(" "),r("lb-tool-tips",[e._v("用于微信线上提现")])],1),e._v(" "),r("el-form-item",{attrs:{label:"订单超时",prop:"over_time"}},[r("el-input",{attrs:{placeholder:"请输入分钟"},model:{value:e.subForm.over_time,callback:function(t){e.$set(e.subForm,"over_time",e._n(t))},expression:"subForm.over_time"}},[r("templa
|