(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d225873"],{e57d:function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"app-form margin-top"},[a("el-form",{ref:"dataForm",attrs:{rules:t.rules,model:t.form,"label-position":"right","label-width":"200px"}},[a("div",{staticClass:"app-form-group"},[a("div",{staticClass:"app-form-ti"},[t._v("基础设置")]),a("div",{staticClass:"padding-top-lg"},[a("el-form-item",{attrs:{label:"状态",prop:"status"}},[a("el-radio-group",{model:{value:t.form.status,callback:function(e){t.$set(t.form,"status",e)},expression:"form.status"}},[a("el-radio",{attrs:{label:1}},[t._v("开启")]),a("el-radio",{attrs:{label:0}},[t._v("关闭")])],1)],1),1==t.form.status?[a("el-form-item",{attrs:{label:"到账类型",prop:"daozhang_type"}},[a("el-radio-group",{model:{value:t.form.daozhang_type,callback:function(e){t.$set(t.form,"daozhang_type",e)},expression:"form.daozhang_type"}},[a("el-radio",{attrs:{label:0}},[t._v("订单付款后到账")]),a("el-radio",{attrs:{label:1}},[t._v("订单完成后到账")])],1)],1),a("el-form-item",{attrs:{label:"分红次数",prop:"abonus_num"}},[a("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"}},[a("template",{slot:"append"},[t._v("次")])],2)],1),a("el-form-item",{attrs:{label:"分红金额",prop:"abonus_money"}},[a("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"}},[a("template",{slot:"append"},[t._v("元")])],2),a("el-alert",{staticClass:"margin-top",attrs:{title:"分红金额的结算将根据分销中心的设置结算至佣金或余额",type:"error"}})],1),a("el-form-item",{attrs:{label:"分红出局复购商品",prop:"repurchase_goods"}},[a("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"}}),a("el-alert",{staticClass:"margin-top",attrs:{title:" 分红出局复购的商品，不产生任何奖励",type:"error"}})],1)]:t._e()],2)]),a("div",{staticClass:"padding-lg flex justify-center"},[a("el-button",{on:{click:t.onBack}},[t._v("返回")]),a("el-button",{attrs:{type:"primary"},on:{click:t.submit}},[t._v("提交")])],1)])],1),a("copyright")],1)},s=[],r=a("7f70"),n=a("8327"),i=a("1fe5"),l={name:"CrazyIndex",components:{selgoods:i["a"]},data:function(){return{activeIndex:"1",rules:{},form:{status:1,daozhang_type:0,abonus_num:"",abonus_money:"",repurchase_goods:""}}},computed:Object(r["a"])({},Object(n["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("crazy/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.crazy&&(this.form=this.$util.restJson(t.crazy))}}},u=l,c=a("3d7a"),p=Object(c["a"])(u,o,s,!1,null,null,null);e["default"]=p.exports}}]);