|
|
|
@ -84,6 +84,21 @@
|
|
|
|
|
<create-sections
|
|
|
|
|
v-if="recycleRuleData"
|
|
|
|
|
title="规则设置">
|
|
|
|
|
<flexbox
|
|
|
|
|
class="row"
|
|
|
|
|
align="stretch">
|
|
|
|
|
<div class="row-label">客户类型列表</div>
|
|
|
|
|
<div class="row-content">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="baseFrom.customerTypes">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="itemOption in customerTypes"
|
|
|
|
|
:key="itemOption.value"
|
|
|
|
|
:label="itemOption.name"
|
|
|
|
|
:value="itemOption.value"/>
|
|
|
|
|
</el-select>
|
|
|
|
|
</div>
|
|
|
|
|
</flexbox>
|
|
|
|
|
<flexbox
|
|
|
|
|
class="row"
|
|
|
|
|
align="stretch">
|
|
|
|
@ -200,7 +215,8 @@ import {
|
|
|
|
|
crmCustomerPoolQueryPoolFieldAPI,
|
|
|
|
|
crmCustomerPoolSetAPI,
|
|
|
|
|
crmCustomerPoolSetDetailAPI,
|
|
|
|
|
crmCustomerPoolQueryLevelAPI
|
|
|
|
|
crmCustomerPoolQueryLevelAPI,
|
|
|
|
|
crmCustomerType
|
|
|
|
|
} from '@/api/crm/customer'
|
|
|
|
|
|
|
|
|
|
import CreateView from '@/components/CreateView'
|
|
|
|
@ -264,6 +280,7 @@ export default {
|
|
|
|
|
recycleRuleData: null,
|
|
|
|
|
levelCustomerName: [], // 客户级别数据源
|
|
|
|
|
customerPoolFields: [],
|
|
|
|
|
customerTypes: [], // 客户类型
|
|
|
|
|
requestFields: {
|
|
|
|
|
before_owner_day: '前负责人限制领取天数需大于0',
|
|
|
|
|
receive_count: '领取频率限制个数需大于0',
|
|
|
|
@ -293,6 +310,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.getLevelCustomerData()
|
|
|
|
|
this.getCustomerTypes()
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
beforeDestroy() {},
|
|
|
|
@ -302,7 +320,11 @@ export default {
|
|
|
|
|
this.levelCustomerName = res.data || []
|
|
|
|
|
}).catch(() => {})
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
getCustomerTypes() {
|
|
|
|
|
crmCustomerType().then(res => {
|
|
|
|
|
this.customerTypes = res.data || []
|
|
|
|
|
}).catch(() => {})
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
* 编辑操作
|
|
|
|
|
*/
|
|
|
|
@ -331,6 +353,7 @@ export default {
|
|
|
|
|
users: data.user_info,
|
|
|
|
|
strucs: data.department_info
|
|
|
|
|
},
|
|
|
|
|
customerTypes: data.crm_customer_type,// 客户类型列表
|
|
|
|
|
before_owner_conf: data.before_owner_conf, // 前负责人领取规则 0不限制 1限制
|
|
|
|
|
before_owner_day: data.before_owner_day,
|
|
|
|
|
receive_conf: data.receive_conf, // 0 不启用 1 启用
|
|
|
|
@ -393,6 +416,7 @@ export default {
|
|
|
|
|
users: [],
|
|
|
|
|
strucs: []
|
|
|
|
|
},
|
|
|
|
|
customerTypes: [],
|
|
|
|
|
before_owner_conf: 0, // 前负责人领取规则 0不限制 1限制
|
|
|
|
|
before_owner_day: '',
|
|
|
|
|
receive_conf: 0, // 0 不启用 1 启用
|
|
|
|
@ -626,7 +650,6 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
// 公海字段
|
|
|
|
|
params.field = this.customerPoolFields
|
|
|
|
|
|
|
|
|
|
return params
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|