(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c4337962"],{"35c4":function(t,i,a){"use strict";a("7844")},"6b62":function(t,i,a){"use strict";a.r(i);var e=function(){var t=this,i=t.$createElement,a=t._self._c||i;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(i){t.$set(t.form,"status",i)},expression:"form.status"}},[a("el-radio",{attrs:{label:1}},[t._v("开启")]),a("el-radio",{attrs:{label:0}},[t._v("关闭")])],1),a("el-alert",{staticClass:"margin-top-sm",attrs:{title:"提示：开启后可在拼团活动商品中编辑拼中人数，未拼中人数，未拼中用户奖励",type:"error"}}),1==t.form.status?a("el-button",{staticClass:"margin-top-sm",attrs:{type:"primary"},on:{click:t.goPintuan}},[t._v("前往设置拼团商品")]):t._e()],1)],1)]),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=[],n=a("7f70"),o=a("8327"),r=a("1fe5"),c={name:"RebatePintuanIndex",components:{selgoods:r["a"]},data:function(){return{activeIndex:"1",level_list:[],rules:{},form:{status:0,daozhang_type:0}}},computed:Object(n["a"])({},Object(o["b"])(["config"])),watch:{config:function(t){this.init()}},mounted:function(){this.init()},methods:{onBack:function(){this.$router.go(-1)},handleSelect:function(t,i){this.activeIndex=t},goPintuan:function(){this.$util.jump("/pintuan/index")},submit:function(){var t=this;this.$refs["dataForm"].validate((function(i){i&&t.api.post("rebate_pintuan/config/set",t.form).then((function(i){1==i.code?(t.$util.success(i.message),t.$store.dispatch("settings/getSetting")):t.$util.error(i.message)}))}))},init:function(){var t=this.config;t.rebate_pintuan&&(this.form=this.$util.restJson(t.rebate_pintuan))}}},l=c,u=(a("35c4"),a("3d7a")),p=Object(u["a"])(l,e,s,!1,null,"d3360b82",null);i["default"]=p.exports},7844:function(t,i,a){}}]);