(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c2335"],{"48fa":function(t,a,e){"use strict";e.r(a);var o=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"app-container"},[e("div",{staticClass:"app-form margin-top"},[e("div",{staticClass:"app-form-group"},[e("div",{staticClass:"app-form-ti"},[t._v("基础配置")]),e("form-generator",{ref:"basicForm",attrs:{"form-config":t.formConfig,"show-footer":!0,showCancel:!0,cancelText:"返回"},on:{submit:t.handleBasicSubmit,cancel:t.handleCancel},model:{value:t.formData,callback:function(a){t.formData=a},expression:"formData"}})],1)])])},i=[],s=e("7f70"),n=(e("e8d6"),e("8327")),l={name:"CouponSet",data:function(){return{formData:{status:1}}},computed:Object(s["a"])(Object(s["a"])({},Object(n["b"])(["config"])),{},{formConfig:function(){var t=[{type:"radio",label:"状态",prop:"status",width:"400px",options:[{label:"启用",value:1},{label:"禁用",value:0}]}];return 1==this.formData.status&&(t.push({type:"radio",label:"转赠状态",prop:"transfer_status",width:"400px",options:[{label:"启用",value:1},{label:"禁用",value:0}]}),1==this.formData.transfer_status&&t.push({type:"radio",label:"跨线转赠",prop:"is_crossline",width:"400px",options:[{label:"启用",value:1},{label:"禁用",value:0}]}),t.push({type:"radio",label:"积分兑换",prop:"score_exchange",width:"400px",options:[{label:"启用",value:1},{label:"禁用",value:0}]})),t}}),created:function(){this.init()},watch:{config:{handler:function(t){this.init()},deep:!0,immediate:!0}},methods:{init:function(){this.config.coupon&&(this.formData=this.$util.restJson(this.config.coupon))},handleBasicSubmit:function(t){var a=this;this.api.post("sale/config/baseSet",t).then((function(t){1==t.code?(a.$util.success(t.message),a.$store.dispatch("settings/getSetting")):a.$util.error(t.message)}))},handleCancel:function(){this.$router.back()}}},r=l,c=e("3d7a"),u=Object(c["a"])(r,o,i,!1,null,"e76d48e8",null);a["default"]=u.exports}}]);