(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0a4b3d"],{"0821":function(t,e,i){"use strict";i.r(e);var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"app-container"},[i("div",{staticClass:"app-form margin-top"},[i("div",{staticClass:"app-form-group"},[i("div",{staticClass:"app-form-ti"},[t._v("基础配置")]),i("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(e){t.formData=e},expression:"formData"}})],1)])])},a=[],s=i("7f70"),r=(i("9ca6"),i("e8d6"),i("5c41"),i("0c43"),i("6994"),i("8327")),n={name:"Strikeout",data:function(){return{formData:{is_strikeout:0,strikeout_rewards:[]},options:[]}},computed:Object(s["a"])(Object(s["a"])({},Object(r["b"])(["config"])),{},{formConfig:function(){var t=[{type:"radio",label:"状态",prop:"is_strikeout",width:"400px",tip:"开启后，用户的奖金收益超出自己等级对应的下单金额倍数（开启后到分销等级→编辑→出局设置处配置比例）后即出局，出局后将不再获得奖金收益，重新下单后可继续获得奖金收益。注：出局倍数对即时奖励有效，如直推佣金、见单奖、平级奖等，对延时奖励无效，如按天的返还、按月的分红等。",options:[{label:"开启",value:1},{label:"关闭",value:0}]}];return 1==this.formData.is_strikeout&&t.push({type:"select",label:"选择扣除奖项",prop:"strikeout_rewards",multiple:!0,width:"400px",tip:"不选默认所有收益。",options:this.options},{type:"selgoods",label:"选择增加倍数商品",prop:"strikeout_goods",multiple:!0,tip:"不选默认所有商品。",width:"600px"}),t}}),created:function(){this.init()},watch:{config:{handler:function(t){this.init()},deep:!0,immediate:!0}},methods:{init:function(){var t=this.config;t.fenxiao&&(this.formData={is_strikeout:t.fenxiao.is_strikeout,strikeout_rewards:t.fenxiao.strikeout_rewards||[],strikeout_goods:t.fenxiao.strikeout_goods||[]}),t.strikeout_rewards&&(this.options=t.strikeout_rewards.map((function(t){return{label:t.title,value:t.type}})))},handleBasicSubmit:function(t){var e=this;this.api.post("strikeout/config/set",t).then((function(t){1==t.code?(e.$util.success(t.message),e.$store.dispatch("settings/getSetting")):e.$util.error(t.message)}))},handleCancel:function(){this.$router.back()}}},c=n,u=i("3d7a"),l=Object(u["a"])(c,o,a,!1,null,"23ef5376",null);e["default"]=l.exports}}]);