(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-59dc"],{"1VRB":function(t,a,e){"use strict";e.r(a);var s=e("conU"),i={name:"customer",components:{},data:function(){return{loading:!1,customerData:{config:0,follow_day:0,deal_day:0}}},created:function(){this.customerSettingData()},methods:{customerSettingData:function(){var t=this;this.loading=!0,this.$store.dispatch("CRMSettingConfig").then(function(a){t.loading=!1,a.data.config=parseInt(a.data.config),t.customerData=a.data}).catch(function(){t.loading=!1})},customerSettingSave:function(){var t=this;this.loading=!0,Object(s.i)(this.customerData).then(function(a){t.loading=!1,t.$message.success(a.data)}).catch(function(){t.loading=!1})}}},n=(e("B5Wc"),e("KHd+")),o=Object(n.a)(i,function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"system-customer"},[e("div",{staticClass:"title"},[t._v("客户管理")]),t._v(" "),e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"customer-content"},[e("div",{staticClass:"system-view-table"},[e("div",{staticClass:"content-title"},[e("span",[t._v("客户公海规则设置")]),t._v(" "),e("el-button",{staticClass:"rt",attrs:{type:"primary",size:"medium"},on:{click:t.customerSettingSave}},[t._v("保存")])],1),t._v(" "),e("div",{staticClass:"customer-setting"},[e("label",[t._v("客户公海规则设置")]),t._v(" "),e("div",{staticClass:"customer-radio"},[e("el-radio-group",{model:{value:t.customerData.config,callback:function(a){t.$set(t.customerData,"config",a)},expression:"customerData.config"}},[e("el-radio",{attrs:{label:0}},[t._v("不启用")]),t._v(" "),e("el-radio",{attrs:{label:1}},[t._v("启用")])],1),t._v(" "),e("br"),t._v(" "),e("el-input-number",{attrs:{"controls-position":"right",min:0,size:"small"},model:{value:t.customerData.follow_day,callback:function(a){t.$set(t.customerData,"follow_day",a)},expression:"customerData.follow_day"}}),t._v(" "),e("span",[t._v(" 天不跟进或 ")]),t._v(" "),e("el-input-number",{attrs:{"controls-position":"right",min:0,size:"small"},model:{value:t.customerData.deal_day,callback:function(a){t.$set(t.customerData,"deal_day",a)},expression:"customerData.deal_day"}}),t._v(" "),e("span",[t._v(" 天未成交")])],1)])])])])},[],!1,null,"78ee97a0",null);o.options.__file="index.vue";a.default=o.exports},B5Wc:function(t,a,e){"use strict";var s=e("IjGH");e.n(s).a},IjGH:function(t,a,e){}}]);