(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-475d53ff"],{"808a":function(e,t,r){},9026:function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"divBox"},[r("el-card",{staticClass:"box-card"},[r("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"promoterForm",staticClass:"demo-promoterForm",attrs:{model:e.promoterForm,rules:e.rules,"label-width":"200px"}},[r("el-form-item",{attrs:{prop:"retailStoreSwitch"}},[r("span",{attrs:{slot:"label"},slot:"label"},[r("span",[e._v("分销启用：")]),e._v(" "),r("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"商城分销功能开启关闭",placement:"top-start"}},[r("i",{staticClass:"el-icon-warning-outline"})])],1),e._v(" "),r("el-radio-group",{model:{value:e.promoterForm.retailStoreSwitch,callback:function(t){e.$set(e.promoterForm,"retailStoreSwitch",t)},expression:"promoterForm.retailStoreSwitch"}},[r("el-radio",{attrs:{label:1}},[e._v("开启")]),e._v(" "),r("el-radio",{attrs:{label:0}},[e._v("关闭")])],1)],1),e._v(" "),r("el-form-item",{attrs:{prop:"retailStoreBrokerageFreezingTime"}},[r("span",{attrs:{slot:"label"},slot:"label"},[r("span",[e._v("冻结时间：")]),e._v(" "),r("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"订单状态为交易完成后超过冻结时间，订单才能进入待结算，如果设置为0则表示无需冻结交易完成后即可进入待结算状态",placement:"top-start"}},[r("i",{staticClass:"el-icon-warning-outline"})])],1),e._v(" "),r("el-input-number",{staticClass:"selWidth",attrs:{precision:0,min:0,placeholder:"佣金冻结时间(天)"},model:{value:e.promoterForm.retailStoreBrokerageFreezingTime,callback:function(t){e.$set(e.promoterForm,"retailStoreBrokerageFreezingTime","string"===typeof t?t.trim():t)},expression:"promoterForm.retailStoreBrokerageFreezingTime"}})],1),e._v(" "),r("el-form-item",{attrs:{prop:""}},[r("span",{attrs:{slot:"label"},slot:"label"},[r("span",[e._v("佣金设置")]),e._v(" "),r("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"分销商品默认安装该规则计算，单个商品佣金「商品运营」单独配置，完成后以商品自定义佣金显示为准",placement:"top-start"}},[r("i",{staticClass:"el-icon-warning-outline"})])],1),e._v(" "),r("el-link",{attrs:{type:"primary"},on:{click:e.distributionconfigPop}},[e._v("默认设置")])],1),e._v(" "),r("el-form-item",[r("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["platform:retail:store:config:save"],expression:"['platform:retail:store:config:save']"}],attrs:{type:"primary",loading:e.loading},on:{click:function(t){return e.submitForm("promoterForm")}}},[e._v("提交")])],1)],1)],1),e._v(" "),e.visible?r("Defaultbrokerage",{attrs:{visible:e.visible,params:e.params,pageType:"config"},on:{"update:visible":function(t){e.visible=t}}}):e._e()],1)},o=[],i=r("21d2"),l=(r("fca7"),r("e350")),n=r("61f7"),s=r("ca28"),c={name:"Index",data:function(){return{keywordType:"textarea",labelarr:[],promoterForm:{},loading:!1,visible:!1,rules:{retailStoreSwitch:[{required:!0,message:"请选择是否启用分销",trigger:"change"}]},params:{productId:[]}}},components:{Defaultbrokerage:s["a"]},mounted:function(){Object(l["a"])(["platform:retail:store:config:get"])&&this.getDetal()},methods:{checkPermi:l["a"],getLabelarr:function(e){this.labelarr=e},channelInputLimit:function(e){var t=e.key;return"e"!==t&&"."!==t||(e.returnValue=!1,!1)},getDetal:function(){var e=this;this.loading=!0,Object(i["j"])().then((function(t){e.loading=!1,e.promoterForm=t,e.labelarr=t.retailStoreExtractBank?t.retailStoreExtractBank.split(","):[]})).catch((function(t){e.$message.error(t.message)}))},submitForm:Object(n["a"])((function(e){var t=this;this.$refs[e].validate((function(e){if(!e)return!1;t.loading=!0,Object(i["k"])(t.promoterForm).then((function(e){t.loading=!1,t.$message.success("提交成功"),console.info("success")})).catch((function(e){t.loading=!1}))}))})),distributionconfigPop:function(){this.visible=!0}}},m=c,p=(r("eba8d"),r("2877")),u=Object(p["a"])(m,a,o,!1,null,"bd17c04e",null);t["default"]=u.exports},eba8d:function(e,t,r){"use strict";r("808a")}}]);