(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["setting"],{"14b5":function(e,a,t){"use strict";t.r(a);var r=function(){var e=this,a=e._self._c;return a("a-card",{attrs:{bordered:!1}},[a("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),a("a-spin",{attrs:{spinning:e.isLoading}},[a("a-form",{attrs:{form:e.form},on:{submit:e.handleSubmit}},[a("a-form-item",{attrs:{label:"一级分销比例",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("div",{staticClass:"clearfix"},[a("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["one_brokerage_ratio",{rules:[{required:!0,message:"不能为空"}]}],expression:"['one_brokerage_ratio', { rules: [{ required: true, message: '不能为空' }] }]"}],staticClass:"fl-l",attrs:{min:0,precision:0}}),a("span",{staticClass:"input-text_right"},[e._v("%")])],1)]),a("a-form-item",{attrs:{label:"二级分销比例",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("div",{staticClass:"clearfix"},[a("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["two_brokerage_ratio",{rules:[{required:!0,message:"不能为空"}]}],expression:"['two_brokerage_ratio', { rules: [{ required: true, message: '不能为空' }] }]"}],staticClass:"fl-l",attrs:{min:0,precision:0}}),a("span",{staticClass:"input-text_right"},[e._v("%")])],1),a("div",{staticClass:"form-item-help"},[a("p",{staticClass:"extra"},[e._v("订单完成后,才能进行返佣")])])]),a("a-form-item",{attrs:{wrapperCol:{span:e.wrapperCol.span,offset:e.labelCol.span}}},[a("a-button",{attrs:{type:"primary","html-type":"submit"}},[e._v("提交")])],1)],1)],1)],1)},i=[],s=(t("d3b7"),t("ddb0"),t("88bc"),t("f585")),l=t("ca00"),o={data:function(){return{key:"promotion",labelCol:{span:4},wrapperCol:{span:10},isLoading:!1,form:this.$form.createForm(this),radioStyle:{display:"block",height:"30px",lineHeight:"30px"},record:{}}},created:function(){this.getDetail()},methods:{getDetail:function(){var e=this;this.isLoading=!0,s["a"](this.key).then((function(a){e.record=a.data.values,e.setFieldsValue()})).finally((function(){return e.isLoading=!1}))},setFieldsValue:function(){var e=this.record,a=this.$nextTick,t=this.form;!Object(l["e"])(t.getFieldsValue())&&a((function(){t.setFieldsValue({one_brokerage_ratio:e.one_brokerage_ratio,two_brokerage_ratio:e.two_brokerage_ratio})}))},handleSubmit:function(e){var a=this;e.preventDefault();var t=this.form.validateFields;t((function(e,t){!e&&a.onFormSubmit(t)}))},onFormSubmit:function(e){var a=this;this.isLoading=!0,s["b"](this.key,{form:e}).then((function(e){return a.$message.success(e.message,1.5)})).finally((function(){return a.isLoading=!1}))}}},n=o,c=(t("f84d"),t("2877")),u=Object(c["a"])(n,r,i,!1,null,"01d8132a",null);a["default"]=u.exports},"222d":function(e,a,t){"use strict";t("c2a3")},"293e":function(e,a,t){"use strict";t("9b4c")},"2a68":function(e,a,t){"use strict";t("4567")},3267:function(e,a,t){"use strict";var r=t("5c06");a["a"]=new r["a"]([{key:"CAPTCHA",name:"短信验证码",value:"captcha"},{key:"ORDER_PAY",name:"新付款订单",value:"order_pay"}])},"414d":function(e,a,t){},4567:function(e,a,t){},"71b5":function(e,a,t){"use strict";var r=t("5c06");a["a"]=new r["a"]([{key:"LOCAL",name:"本地",value:"local"},{key:"QINIU",name:"七牛云",value:"qiniu"},{key:"ALIYUN",name:"阿里云",value:"aliyun"},{key:"QCLOUD",name:"腾讯云",value:"qcloud"}])},"763d":function(e,a,t){"use strict";t.d(a,"e",(function(){return s})),t.d(a,"f",(function(){return l})),t.d(a,"a",(function(){return o})),t.d(a,"d",(function(){return n})),t.d(a,"c",(function(){return c})),t.d(a,"g",(function(){return u})),t.d(a,"b",(function(){return d})),t.d(a,"h",(function(){return p})),t.d(a,"i",(function(){return m}));var r=t("b775"),i={list:"/qyt.enterprise/list",options:"/qyt.enterprise/options",detail:"/qyt.enterprise/detail",add:"/qyt.enterprise/add",edit:"/qyt.enterprise/edit",delete:"/qyt.enterprise/delete",setDefault:"/qyt.enterprise/setDefault",apply:"/qyt.enterprise/apply",syncAccount:"/qyt.enterprise/syncAccount",syncList:"/qyt.enterprise/syncList"};function s(e){return Object(r["b"])({url:i.list,method:"get",params:e})}function l(e){return Object(r["b"])({url:i.options,method:"get",params:e})}function o(e){return Object(r["b"])({url:i.add,method:"post",data:e})}function n(e){return Object(r["b"])({url:i.edit,method:"post",data:e})}function c(e){return Object(r["b"])({url:i.delete,method:"post",data:e})}function u(e){return Object(r["b"])({url:i.setDefault,method:"post",data:e})}function d(e){return Object(r["b"])({url:i.apply,method:"post",data:e})}function p(e){return Object(r["b"])({url:i.syncAccount,method:"post",data:e})}function m(e){return Object(r["b"])({url:i.syncList,method:"post",data:e})}},"836b":function(e,a,t){"use strict";t("e3c1")},"88bc":function(e,a,t){(function(a){var t=1/0,r=9007199254740991,i="[object Arguments]",s="[object Function]",l="[object GeneratorFunction]",o="[object Symbol]",n="object"==typeof a&&a&&a.Object===Object&&a,c="object"==typeof self&&self&&self.Object===Object&&self,u=n||c||Function("return this")();function d(e,a,t){switch(t.length){case 0:return e.call(a);case 1:return e.call(a,t[0]);case 2:return e.call(a,t[0],t[1]);case 3:return e.call(a,t[0],t[1],t[2])}return e.apply(a,t)}function p(e,a){var t=-1,r=e?e.length:0,i=Array(r);while(++t0&&t(o)?a>1?w(o,a-1,t,r,i):m(i,o):r||(i[i.length]=o)}return i}function y(e,a){return e=Object(e),x(e,a,(function(a,t){return t in e}))}function x(e,a,t){var r=-1,i=a.length,s={};while(++r-1&&e%1==0&&e<=r}function $(e){var a=typeof e;return!!e&&("object"==a||"function"==a)}function E(e){return!!e&&"object"==typeof e}function j(e){return"symbol"==typeof e||E(e)&&b.call(e)==o}var D=S((function(e,a){return null==e?{}:y(e,p(w(a,1),N))}));e.exports=D}).call(this,t("c8ba"))},"9b4c":function(e,a,t){},a3f9:function(e,a,t){"use strict";t("d4aa")},a6b6:function(e,a,t){"use strict";t.r(a);var r=function(){var e=this,a=e._self._c;return a("a-card",{attrs:{bordered:!1}},[a("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),a("a-spin",{attrs:{spinning:e.isLoading}},[a("a-form",{attrs:{form:e.form},on:{submit:e.handleSubmit}},[a("a-form-item",{attrs:{label:"支付码有效期",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("div",{staticClass:"clearfix"},[a("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["expiration_time",{rules:[{required:!0,message:"不能为空"}]}],expression:"['expiration_time', { rules: [{required: true, message: '不能为空'}] }]"}],staticClass:"fl-l",attrs:{min:10,precision:0}}),a("span",{staticClass:"input-text_right"},[e._v("秒")])],1),a("div",{staticClass:"form-item-help"},[a("p",{staticClass:"extra"},[e._v("如果在期间未支付,二维码自动失效")])])]),a("a-form-item",{attrs:{label:"油券省份",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["province_list",{rules:[{required:!0,message:"不能为空"}]}],expression:"['province_list', { rules: [{required: true, message: '不能为空'}] }]"}]}),a("div",{staticClass:"form-item-help"},[a("small",[e._v(" 注:如需填写多个省份,请用中文逗号 "),a("a-tag",[e._v(",")]),e._v("隔开 ")],1)])],1),a("a-form-item",{attrs:{label:"未支付订单",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("div",{staticClass:"clearfix"},[a("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["order.closeHours",{rules:[{required:!0,message:"不能为空"}]}],expression:"['order.closeHours', { rules: [{required: true, message: '不能为空'}] }]"}],staticClass:"fl-l",attrs:{min:0,precision:0}}),a("span",{staticClass:"input-text_right"},[e._v("小时后自动关闭")])],1),a("div",{staticClass:"form-item-help"},[a("p",{staticClass:"extra"},[e._v("如果在期间订单未付款,系统自动关闭,设置0小时不自动关闭")])])]),a("a-form-item",{attrs:{label:"客服电话",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["phone",{rules:[{required:!0,message:"不能为空"}]}],expression:"['phone', { rules: [{required: true, message: '不能为空'}] }]"}],staticStyle:{width:"200px"}})],1),a("a-form-item",{attrs:{"wrapper-col":{span:e.wrapperCol.span,offset:e.labelCol.span}}},[a("a-button",{attrs:{type:"primary","html-type":"submit"}},[e._v("提交")])],1)],1)],1)],1)},i=[],s=(t("d3b7"),t("ddb0"),t("88bc")),l=t.n(s),o=t("f585"),n=t("ca00"),c={data:function(){return{key:"trade",labelCol:{span:4},wrapperCol:{span:10},isLoading:!1,form:this.$form.createForm(this),radioStyle:{display:"block",height:"30px",lineHeight:"30px"},record:{}}},created:function(){this.getDetail()},methods:{getDetail:function(){var e=this;this.isLoading=!0,o["a"](this.key).then((function(a){e.record=a.data.values,e.setFieldsValue()})).finally((function(a){e.isLoading=!1}))},setFieldsValue:function(){var e=this.record,a=this.$nextTick,t=this.form;!Object(n["e"])(t.getFieldsValue())&&a((function(){t.setFieldsValue({expiration_time:e.expiration_time,province_list:e.province_list,phone:e.phone,order:l()(e.order,["closeHours"])})}))},handleSubmit:function(e){var a=this;e.preventDefault();var t=this.form.validateFields;t((function(e,t){!e&&a.onFormSubmit(t)}))},onFormSubmit:function(e){var a=this;this.isLoading=!0,o["b"](this.key,{form:e}).then((function(e){a.$message.success(e.message,1.5)})).finally((function(e){a.isLoading=!1}))}}},u=c,d=(t("293e"),t("2877")),p=Object(d["a"])(u,r,i,!1,null,"f551b524",null);a["default"]=p.exports},a85e:function(e,a,t){"use strict";t.r(a);t("b0c0");var r=function(){var e=this,a=e._self._c;return a("a-card",{attrs:{bordered:!1}},[a("div",{staticClass:"card-title"},[e._v(e._s(e.$route.meta.title))]),a("a-spin",{attrs:{spinning:e.isLoading}},[a("a-form",{attrs:{form:e.form},on:{submit:e.handleSubmit}},[a("a-form-item",{staticClass:"mb-20",attrs:{label:"短信平台",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["default",{rules:[{required:!0}]}],expression:"['default', { rules: [{ required: true }] }]"}],on:{change:e.onChangeEngine}},e._l(e.record.engine,(function(t,r){return a("a-radio",{key:r,attrs:{value:r}},[a("span",[e._v(e._s(t.name))]),"aliyun"===r?a("a-tag",{staticClass:"ml-5",attrs:{color:"green"}},[e._v("推荐")]):e._e()],1)})),1),e.form.getFieldValue("default")?a("div",{staticClass:"form-item-help"},[a("small",[e._v("短信平台管理地址:")]),a("a",{attrs:{href:e.record.engine[e.form.getFieldValue("default")].website,target:"_blank"}},[e._v(e._s(e.record.engine[e.form.getFieldValue("default")].website))])]):e._e()],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"aliyun"===e.form.getFieldValue("default"),expression:"form.getFieldValue('default') === 'aliyun'"}]},[a("a-form-item",{attrs:{label:"AccessKeyId",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["engine.aliyun.AccessKeyId"],expression:"[`engine.aliyun.AccessKeyId`]"}]})],1),a("a-form-item",{attrs:{label:"AccessKeySecret",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["engine.aliyun.AccessKeySecret"],expression:"[`engine.aliyun.AccessKeySecret`]"}]})],1),a("a-form-item",{attrs:{label:"短信签名 Sign",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["engine.aliyun.sign"],expression:"[`engine.aliyun.sign`]"}]})],1)],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"qcloud"===e.form.getFieldValue("default"),expression:"form.getFieldValue('default') === 'qcloud'"}]},[a("a-form-item",{attrs:{label:"SdkAppID",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["engine.qcloud.SdkAppID"],expression:"[`engine.qcloud.SdkAppID`]"}]})],1),a("a-form-item",{attrs:{label:"AccessKeyId",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["engine.qcloud.AccessKeyId"],expression:"[`engine.qcloud.AccessKeyId`]"}]})],1),a("a-form-item",{attrs:{label:"AccessKeySecret",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["engine.qcloud.AccessKeySecret"],expression:"[`engine.qcloud.AccessKeySecret`]"}]})],1),a("a-form-item",{attrs:{label:"短信签名 Sign",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["engine.qcloud.sign"],expression:"[`engine.qcloud.sign`]"}]})],1)],1),a("div",{directives:[{name:"show",rawName:"v-show",value:"qiniu"===e.form.getFieldValue("default"),expression:"form.getFieldValue('default') === 'qiniu'"}]},[a("a-form-item",{attrs:{label:"AccessKey",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["engine.qiniu.AccessKey"],expression:"[`engine.qiniu.AccessKey`]"}]})],1),a("a-form-item",{attrs:{label:"SecretKey",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["engine.qiniu.SecretKey"],expression:"[`engine.qiniu.SecretKey`]"}]})],1)],1),e._l(e.record["scene"],(function(t,r){return a("div",{key:r},[a("a-divider",{attrs:{orientation:"left"}},[e._v(e._s(t.name))]),a("a-form-item",{attrs:{label:"是否开启",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[a("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["scene.".concat(r,".isEnable"),{rules:[{required:!0}]}],expression:"[`scene.${index}.isEnable`, { rules: [{ required: true }] }]"}]},[a("a-radio",{attrs:{value:!0}},[e._v("开启")]),a("a-radio",{attrs:{value:!1}},[e._v("关闭")])],1)],1),a("a-form-item",{attrs:{label:"模板内容",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[a("span",[e._v(e._s(e.record.scene[r].contentPractical))])]),a("a-form-item",{attrs:{label:"模板ID/Code",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["scene.".concat(r,".templateCode")],expression:"[`scene.${index}.templateCode`]"}]}),a("div",{staticClass:"form-item-help"},[a("small",[e._v("例如:SMS_139800030")])])],1),void 0!==e.record.scene[r].acceptPhone?a("a-form-item",{attrs:{label:"接收手机号",labelCol:e.labelCol,wrapperCol:e.wrapperCol,required:""}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["scene.".concat(r,".acceptPhone")],expression:"[`scene.${index}.acceptPhone`]"}]})],1):e._e()],1)})),a("a-form-item",{attrs:{"wrapper-col":{span:e.wrapperCol.span,offset:e.labelCol.span}}},[a("a-button",{attrs:{type:"primary","html-type":"submit"}},[e._v("提交")])],1)],2)],1)],1)},i=[],s=(t("d3b7"),t("ddb0"),t("4d63"),t("ac1f"),t("25f0"),t("5319"),t("2ef0")),l=t("ca00"),o=t("f585"),n=t("3267"),c={data:function(){return{SettingSmsSceneEnum:n["a"],key:"sms",labelCol:{span:3},wrapperCol:{span:10},isLoading:!1,form:this.$form.createForm(this),record:{}}},created:function(){this.getDetail()},methods:{getDetail:function(){var e=this;this.isLoading=!0,o["a"](this.key).then((function(a){e.record=a.data.values,e.setFieldsValue()})).finally((function(a){e.isLoading=!1}))},onChangeEngine:function(e){var a=this,t=e.target.value;for(var r in a.record.scene){var i=a.record.scene[r];i.contentPractical=a.onVsprintf(i.content,i.variables[t])}},onVsprintf:function(e,a){for(var t=new RegExp("%s"),r=0;r