(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d222025"],{cd7e:function(t,e,o){"use strict";o.r(e);var a=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"app-container"},[o("div",{staticClass:"app-form margin-top"},[o("el-form",{ref:"dataForm",attrs:{rules:t.rules,model:t.form,"label-position":"right","label-width":"200px"}},[o("div",{staticClass:"app-form-group"},[o("div",{staticClass:"app-form-ti"},[t._v("基础设置")]),o("div",{staticClass:"padding-top-lg"},[o("el-form-item",{attrs:{label:"状态",prop:"status"}},[o("el-radio-group",{model:{value:t.form.status,callback:function(e){t.$set(t.form,"status",e)},expression:"form.status"}},[o("el-radio",{attrs:{label:1}},[t._v("开启")]),o("el-radio",{attrs:{label:0}},[t._v("关闭")])],1)],1),o("el-form-item",{attrs:{label:"背景颜色",prop:"bg_color"}},[o("el-color-picker",{model:{value:t.form.bg_color,callback:function(e){t.$set(t.form,"bg_color",e)},expression:"form.bg_color"}})],1),1==t.form.status?[o("el-form-item",{attrs:{label:"到账类型",prop:"daozhang_type"}},[o("el-radio-group",{model:{value:t.form.daozhang_type,callback:function(e){t.$set(t.form,"daozhang_type",e)},expression:"form.daozhang_type"}},[o("el-radio",{attrs:{label:0}},[t._v("订单付款后到账")]),o("el-radio",{attrs:{label:1}},[t._v("订单完成后到账")])],1)],1),o("el-form-item",{attrs:{label:"分红次数",prop:"abonus_num"}},[o("el-input",{staticClass:"form-input",attrs:{type:"text"},model:{value:t.form.abonus_num,callback:function(e){t.$set(t.form,"abonus_num",t._n(e))},expression:"form.abonus_num"}},[o("template",{slot:"append"},[t._v("次")])],2)],1),o("el-form-item",{attrs:{label:"分红金额",prop:"abonus_money"}},[o("el-input",{staticClass:"form-input",attrs:{type:"text"},model:{value:t.form.abonus_money,callback:function(e){t.$set(t.form,"abonus_money",t._n(e))},expression:"form.abonus_money"}},[o("template",{slot:"append"},[t._v("元")])],2),o("el-alert",{staticClass:"margin-top",attrs:{title:"分红金额的结算将根据分销中心的设置结算至佣金或余额",type:"error"}})],1),o("el-form-item",{attrs:{label:"分红积分",prop:"abonus_score"}},[o("el-input",{staticClass:"form-input",attrs:{type:"text"},model:{value:t.form.abonus_score,callback:function(e){t.$set(t.form,"abonus_score",t._n(e))},expression:"form.abonus_score"}},[o("template",{slot:"append"},[t._v("积分")])],2)],1),o("el-form-item",{attrs:{label:"推荐奖励",prop:"sup_reward"}},[o("el-input",{staticClass:"form-input",attrs:{type:"text"},model:{value:t.form.sup_reward,callback:function(e){t.$set(t.form,"sup_reward",t._n(e))},expression:"form.sup_reward"}},[o("template",{slot:"append"},[t._v("元")])],2),o("el-alert",{staticClass:"margin-top",attrs:{title:"推荐奖励：用户出局时，如果用户存在推荐人则发放给推荐人奖励。",type:"error"}})],1),o("el-form-item",{attrs:{label:"分红出局复购商品",prop:"repurchase_goods"}},[o("selgoods",{attrs:{multiple:!0,tips:"选择商品",modal:!1},model:{value:t.form.repurchase_goods,callback:function(e){t.$set(t.form,"repurchase_goods",e)},expression:"form.repurchase_goods"}}),o("el-alert",{staticClass:"margin-top",attrs:{title:" 分红出局复购的商品，不产生任何奖励",type:"error"}})],1)]:t._e()],2)]),o("div",{staticClass:"padding-lg flex justify-center"},[o("el-button",{on:{click:t.onBack}},[t._v("返回")]),o("el-button",{attrs:{type:"primary"},on:{click:t.submit}},[t._v("提交")])],1)])],1),o("copyright")],1)},s=[],r=o("7f70"),l=o("8327"),n=o("1fe5"),i={name:"Super_maihuoIndex",components:{selgoods:n["a"]},data:function(){return{activeIndex:"1",rules:{},form:{status:1,bg_color:"#f5222d",daozhang_type:0,abonus_num:"",abonus_money:"",abonus_score:"",repurchase_goods:""}}},computed:Object(r["a"])({},Object(l["b"])(["config"])),watch:{config:function(t){this.init()}},mounted:function(){this.init()},methods:{onBack:function(){this.$router.go(-1)},handleSelect:function(t,e){this.activeIndex=t},submit:function(){var t=this;this.$refs["dataForm"].validate((function(e){e&&t.api.post("super_maihuo/config/set",t.form).then((function(e){1==e.code?(t.$util.success(e.message),t.$store.dispatch("settings/getSetting")):t.$util.error(e.message)}))}))},init:function(){var t=this.config;t.super_maihuo&&(this.form=this.$util.restJson(t.super_maihuo))}}},p=i,u=o("3d7a"),m=Object(u["a"])(p,a,s,!1,null,null,null);e["default"]=m.exports}}]);