(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0e5f2f"],{9750:function(e,o,t){"use strict";t.r(o);var r=function(){var e=this,o=e.$createElement,t=e._self._c||o;return t("div",{},[t("div",{staticClass:"outmain ba_f"},[e._m(0),t("el-form",{ref:"form",staticClass:"mar_t20",attrs:{model:e.form,"label-width":"180px"}},[t("el-form-item",{attrs:{label:"抽佣规则"}},[t("el-radio-group",{model:{value:e.form.rule,callback:function(o){e.$set(e.form,"rule",o)},expression:"form.rule"}},[t("el-radio",{attrs:{label:"1"}},[e._v("统一比例")]),t("el-radio",{attrs:{label:"2"}},[e._v("按商家分组")]),t("el-radio",{attrs:{label:"3"}},[e._v("按区域")])],1)],1),"1"==e.form.rule?t("div",[t("el-form-item",{attrs:{label:"佣金计算方式"}},[t("el-radio-group",{model:{value:e.form.type,callback:function(o){e.$set(e.form,"type",o)},expression:"form.type"}},[t("el-radio",{attrs:{label:"1"}},[e._v("按订单百分比抽成")]),t("el-radio",{attrs:{label:"2"}},[e._v("按固定金额")])],1)],1),"1"==e.form.type?t("div",[t("el-form-item",{attrs:{label:"商品抽佣比例"}},[t("el-input",{staticStyle:{width:"220px"},model:{value:e.form.goodsPlatformProportion,callback:function(o){e.$set(e.form,"goodsPlatformProportion",o)},expression:"form.goodsPlatformProportion"}},[t("template",{slot:"prepend"},[e._v("总店抽佣")]),t("template",{slot:"append"},[e._v("%")])],2),t("el-input",{staticStyle:{width:"220px"},attrs:{disabled:""},model:{value:e.form.goodsStoreProportion,callback:function(o){e.$set(e.form,"goodsStoreProportion",o)},expression:"form.goodsStoreProportion"}},[t("template",{slot:"prepend"},[e._v("分店获得")]),t("template",{slot:"append"},[e._v("%")])],2),e._v("/ "),t("el-input",{staticStyle:{width:"220px"},model:{value:e.form.goodsDownMoney,callback:function(o){e.$set(e.form,"goodsDownMoney",o)},expression:"form.goodsDownMoney"}},[t("template",{slot:"prepend"},[e._v("最低抽佣")]),t("template",{slot:"append"},[e._v("元")])],2)],1),t("el-form-item",{attrs:{label:"配送费抽佣比例"}},[t("el-input",{staticStyle:{width:"220px"},model:{value:e.form.deliverPlatformProportion,callback:function(o){e.$set(e.form,"deliverPlatformProportion",o)},expression:"form.deliverPlatformProportion"}},[t("template",{slot:"prepend"},[e._v("总店抽佣")]),t("template",{slot:"append"},[e._v("%")])],2),t("el-input",{staticStyle:{width:"220px"},attrs:{disabled:""},model:{value:e.form.deliverStoreProportion,callback:function(o){e.$set(e.form,"deliverStoreProportion",o)},expression:"form.deliverStoreProportion"}},[t("template",{slot:"prepend"},[e._v("分店获得")]),t("template",{slot:"append"},[e._v("%")])],2),e._v("/ "),t("el-input",{staticStyle:{width:"220px"},model:{value:e.form.deliverDownMoney,callback:function(o){e.$set(e.form,"deliverDownMoney",o)},expression:"form.deliverDownMoney"}},[t("template",{slot:"prepend"},[e._v("最低抽佣")]),t("template",{slot:"append"},[e._v("元")])],2)],1),t("el-form-item",{attrs:{label:"包装费抽佣比例"}},[t("el-input",{staticStyle:{width:"220px"},model:{value:e.form.boxPlatformProportion,callback:function(o){e.$set(e.form,"boxPlatformProportion",o)},expression:"form.boxPlatformProportion"}},[t("template",{slot:"prepend"},[e._v("总店抽佣")]),t("template",{slot:"append"},[e._v("%")])],2),t("el-input",{staticStyle:{width:"220px"},attrs:{disabled:""},model:{value:e.form.boxStoreProportion,callback:function(o){e.$set(e.form,"boxStoreProportion",o)},expression:"form.boxStoreProportion"}},[t("template",{slot:"prepend"},[e._v("分店获得")]),t("template",{slot:"append"},[e._v("%")])],2),e._v("/ "),t("el-input",{staticStyle:{width:"220px"},model:{value:e.form.boxDownMoney,callback:function(o){e.$set(e.form,"boxDownMoney",o)},expression:"form.boxDownMoney"}},[t("template",{slot:"prepend"},[e._v("最低抽佣")]),t("template",{slot:"append"},[e._v("元")])],2)],1),t("el-form-item",{attrs:{label:"当面付抽佣比例"}},[t("el-input",{staticStyle:{width:"220px"},model:{value:e.form.cashierPlatformProportion,callback:function(o){e.$set(e.form,"cashierPlatformProportion",o)},expression:"form.cashierPlatformProportion"}},[t("template",{slot:"prepend"},[e._v("总店抽佣")]),t("template",{slot:"append"},[e._v("%")])],2),t("el-input",{staticStyle:{width:"220px"},attrs:{disabled:""},model:{value:e.form.cashierStoreProportion,callback:function(o){e.$set(e.form,"cashierStoreProportion",o)},expression:"form.cashierStoreProportion"}},[t("template",{slot:"prepend"},[e._v("分店获得")]),t("template",{slot:"append"},[e._v("%")])],2),e._v("/ "),t("el-input",{staticStyle:{width:"220px"},model:{value:e.form.cashierDownMoney,callback:function(o){e.$set(e.form,"cashierDownMoney",o)},expression:"form.cashierDownMoney"}},[t("template",{slot:"prepend"},[e._v("最低抽佣")]),t("template",{slot:"append"},[e._v("元")])],2)],1),t("el-form-item",{attrs:{label:"快餐抽佣比例"}},[t("el-input",{staticStyle:{width:"220px"},model:{value:e.form.fastPlatformProportion,callback:function(o){e.$set(e.form,"fastPlatformProportion",o)},expression:"form.fastPlatformProportion"}},[t("template",{slot:"prepend"},[e._v("总店抽佣")]),t("template",{slot:"append"},[e._v("%")])],2),t("el-input",{staticStyle:{width:"220px"},attrs:{disabled:""},model:{value:e.form.fastStoreProportion,callback:function(o){e.$set(e.form,"fastStoreProportion",o)},expression:"form.fastStoreProportion"}},[t("template",{slot:"prepend"},[e._v("分店获得")]),t("template",{slot:"append"},[e._v("%")])],2),e._v("/ "),t("el-input",{staticStyle:{width:"220px"},model:{value:e.form.fastDownMoney,callback:function(o){e.$set(e.form,"fastDownMoney",o)},expression:"form.fastDownMoney"}},[t("template",{slot:"prepend"},[e._v("最低抽佣")]),t("template",{slot:"append"},[e._v("元")])],2)],1),t("el-form-item",{attrs:{label:"店内抽佣比例"}},[t("el-input",{staticStyle:{width:"220px"},model:{value:e.form.inStorePlatformProportion,callback:function(o){e.$set(e.form,"inStorePlatformProportion",o)},expression:"form.inStorePlatformProportion"}},[t("template",{slot:"prepend"},[e._v("总店抽佣")]),t("template",{slot:"append"},[e._v("%")])],2),t("el-input",{staticStyle:{width:"220px"},attrs:{disabled:""},model:{value:e.form.inStoreStoreProportion,callback:function(o){e.$set(e.form,"inStoreStoreProportion",o)},expression:"form.inStoreStoreProportion"}},[t("template",{slot:"prepend"},[e._v("分店获得")]),t("template",{slot:"append"},[e._v("%")])],2),e._v("/ "),t("el-input",{staticStyle:{width:"220px"},model:{value:e.form.inStoreDownMoney,callback:function(o){e.$set(e.form,"inStoreDownMoney",o)},expression:"form.inStoreDownMoney"}},[t("template",{slot:"prepend"},[e._v("最低抽佣")]),t("template",{slot:"append"},[e._v("元")])],2)],1)],1):e._e(),"2"==e.form.type?t("div",[t("el-form-item",{attrs:{label:"商品抽成金额"}},[t("el-input",{staticStyle:{width:"220px"},model:{value:e.form.goodsFixedMoney,callback:function(o){e.$set(e.form,"goodsFixedMoney",o)},expression:"form.goodsFixedMoney"}},[t("template",{slot:"prepend"},[e._v("总店抽佣")]),t("template",{slot:"append"},[e._v("元")])],2)],1),t("el-form-item",{attrs:{label:"配送费抽成金额"}},[t("el-input",{staticStyle:{width:"220px"},model:{value:e.form.deliverFixedMoney,callback:function(o){e.$set(e.form,"deliverFixedMoney",o)},expression:"form.deliverFixedMoney"}},[t("template",{slot:"prepend"},[e._v("总店抽佣")]),t("template",{slot:"append"},[e._v("元")])],2)],1),t("el-form-item",{attrs:{label:"包装费抽成金额"}},[t("el-input",{staticStyle:{width:"220px"},model:{value:e.form.boxFixedMoney,callback:function(o){e.$set(e.form,"boxFixedMoney",o)},expression:"form.boxFixedMoney"}},[t("template",{slot:"prepend"},[e._v("总店抽佣")]),t("template",{slot:"append"},[e._v("元")])],2)],1),t("el-form-item",{attrs:{label:"当面付抽成金额"}},[t("el-input",{staticStyle:{width:"220px"},model:{value:e.form.cashierFixedMoney,callback:function(o){e.$set(e.form,"cashierFixedMoney",o)},expression:"form.cashierFixedMoney"}},[t("template",{slot:"prepend"},[e._v("总店抽佣")]),t("template",{slot:"append"},[e._v("元")])],2)],1),t("el-form-item",{attrs:{label:"快餐抽成金额"}},[t("el-input",{staticStyle:{width:"220px"},model:{value:e.form.fastFixedMoney,callback:function(o){e.$set(e.form,"fastFixedMoney",o)},expression:"form.fastFixedMoney"}},[t("template",{slot:"prepend"},[e._v("总店抽佣")]),t("template",{slot:"append"},[e._v("元")])],2)],1),t("el-form-item",{attrs:{label:"店内抽成金额"}},[t("el-input",{staticStyle:{width:"220px"},model:{value:e.form.inStoreFixedMoney,callback:function(o){e.$set(e.form,"inStoreFixedMoney",o)},expression:"form.inStoreFixedMoney"}},[t("template",{slot:"prepend"},[e._v("总店抽佣")]),t("template",{slot:"append"},[e._v("元")])],2)],1)],1):e._e()],1):e._e()],1)],1),t("div",{staticClass:"mar_t20 ba_f pad_20 t_c"},[t("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("保存")])],1)])},l=[function(){var e=this,o=e.$createElement,t=e._self._c||o;return t("div",{staticClass:"shuju_title mar_b20"},[t("div",{staticClass:"shuju_title_text"},[t("span",[e._v("服务费率")])])])}],n=(t("96cf"),t("1da1")),a=t("294d"),i={created:function(){this.init()},data:function(){return{form:{rule:"1",type:"2",day:"",goodsPlatformProportion:0,goodsStoreProportion:100,goodsDownMoney:0,deliverPlatformProportion:0,deliverStoreProportion:100,deliverDownMoney:0,boxPlatformProportion:0,boxStoreProportion:100,boxDownMoney:0,goodsFixedMoney:0,deliverFixedMoney:0,boxFixedMoney:0,cashierPlatformProportion:0,cashierStoreProportion:100,cashierDownMoney:0,cashierFixedMoney:0,fastPlatformProportion:0,fastStoreProportion:100,fastDownMoney:0,fastFixedMoney:0,inStorePlatformProportion:0,inStoreStoreProportion:100,inStoreDownMoney:0,inStoreFixedMoney:0}}},methods:{init:function(){var e=this;return Object(n["a"])(regeneratorRuntime.mark((function o(){var t,r;return regeneratorRuntime.wrap((function(o){while(1)switch(o.prev=o.next){case 0:return o.next=2,Object(a["o"])({ident:"serviceCharge"});case 2:t=o.sent,r=t.data,e.form2=e.form,e.form=Object.assign(e.form2,r),e.form.goodsStoreProportion=100-e.form.goodsPlatformProportion,e.form.deliverStoreProportion=100-e.form.deliverPlatformProportion,e.form.boxStoreProportion=100-e.form.boxPlatformProportion,e.form.cashierStoreProportion=100-e.form.cashierPlatformProportion,e.form.fastStoreProportion=100-e.form.fastPlatformProportion,e.form.inStoreStoreProportion=100-e.form.inStorePlatformProportion;case 12:case"end":return o.stop()}}),o)})))()},submitForm:function(){var e=this;this.$refs["form"].validate(function(){var o=Object(n["a"])(regeneratorRuntime.mark((function o(t){var r,l;return regeneratorRuntime.wrap((function(o){while(1)switch(o.prev=o.next){case 0:if(!t){o.next=10;break}return e.form.ident="serviceCharge",o.next=4,Object(a["S"])(e.form);case 4:r=o.sent,l=r.msg,e.$baseMessage(l,"success"),e.init(),o.next=11;break;case 10:return o.abrupt("return",!1);case 11:case"end":return o.stop()}}),o)})));return function(e){return o.apply(this,arguments)}}())}}},p=i,s=t("2877"),m=Object(s["a"])(p,r,l,!1,null,null,null);o["default"]=m.exports}}]);