You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
3.6 KiB
1 line
3.6 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-497a"],{"4aKk":function(t,a,e){"use strict";var s=e("yXz8");e.n(s).a},yXz8:function(t,a,e){},zhZs:function(t,a,e){"use strict";e.r(a);var s=e("7Dod"),i={name:"Customer",components:{},data:function(){return{loading:!1,customerData:{config:0,follow_day:0,deal_day:0,remind_config:0,remind_day:0}}},created:function(){this.customerSettingData()},methods:{customerSettingData:function(){var t=this;this.loading=!0,Object(s.P)().then(function(a){t.loading=!1,a.data.config=parseInt(a.data.config),a.data.remind_config=parseInt(a.data.remind_config),t.customerData=a.data}).catch(function(){t.loading=!1})},customerSettingSave:function(){var t=this;this.loading=!0,Object(s.O)(this.customerData).then(function(a){t.loading=!1,t.$message.success(a.data)}).catch(function(){t.loading=!1})}}},n=(e("4aKk"),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",{staticClass:"label"},[t._v("客户公海规则设置"),e("el-tooltip",{attrs:{effect:"dark",content:"客户自动进入公海的天数设置",placement:"top"}},[e("i",{staticClass:"wukong wukong-help_tips"}),t._v(">\n ")])],1),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:{min:0,"controls-position":"right",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:{min:0,"controls-position":"right",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)]),t._v(" "),e("div",{staticClass:"customer-setting"},[e("label",{staticClass:"label"},[t._v("提前提醒设置"),e("el-tooltip",{attrs:{effect:"dark",content:"提醒时间不能大于公海回收时间",placement:"top"}},[e("i",{staticClass:"wukong wukong-help_tips"}),t._v(">\n ")])],1),t._v(" "),e("div",{staticClass:"customer-radio"},[e("el-radio-group",{model:{value:t.customerData.remind_config,callback:function(a){t.$set(t.customerData,"remind_config",a)},expression:"customerData.remind_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("span",[t._v("提前")]),t._v(" "),e("el-input-number",{attrs:{min:0,"controls-position":"right",size:"small"},model:{value:t.customerData.remind_day,callback:function(a){t.$set(t.customerData,"remind_day",a)},expression:"customerData.remind_day"}}),t._v(" "),e("span",[t._v(" 天提醒")])],1)])])])])},[],!1,null,"04131827",null);o.options.__file="index.vue";a.default=o.exports}}]); |