(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-aba5"],{"1VRB":function(t,a,e){"use strict";e.r(a);var s=e("conU"),o={name:"customer",components:{},data:function(){return{loading:!1,customerData:{type:0,followupDay:0,dealDay:0}}},created:function(){this.customerSettingData()},methods:{customerSettingData:function(){var t=this;this.loading=!0,this.$store.dispatch("CRMSettingConfig").then(function(a){t.loading=!1,t.customerData.type=a.data.customerConfig,t.customerData.followupDay=a.data.followupDay,t.customerData.dealDay=a.data.dealDay}).catch(function(){t.loading=!1})},customerSettingSave:function(){var t=this;this.loading=!0,Object(s.h)(this.customerData).then(function(a){t.loading=!1,t.$message.success("操作成功")}).catch(function(){t.loading=!1})}}},i=(e("XHhh"),e("ZrdR")),n=Object(i.a)(o,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.type,callback:function(a){t.$set(t.customerData,"type",a)},expression:"customerData.type"}},[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.followupDay,callback:function(a){t.$set(t.customerData,"followupDay",a)},expression:"customerData.followupDay"}}),t._v(" "),e("span",[t._v(" 天不跟进或 ")]),t._v(" "),e("el-input-number",{attrs:{"controls-position":"right",min:0,size:"small"},model:{value:t.customerData.dealDay,callback:function(a){t.$set(t.customerData,"dealDay",a)},expression:"customerData.dealDay"}}),t._v(" "),e("span",[t._v(" 天未成交")])],1)])])])])},[],!1,null,"0b9a028c",null);n.options.__file="index.vue";a.default=n.exports},XHhh:function(t,a,e){"use strict";var s=e("nbjF");e.n(s).a},nbjF:function(t,a,e){}}]);