Commit e449a2ed authored by dcy's avatar dcy

新建客户分配为其他的客户经理,创建后,客户经理仍然为创建账号 bug修复

parent a98e369f
...@@ -492,7 +492,6 @@ export default { ...@@ -492,7 +492,6 @@ export default {
// 新建客户 // 新建客户
this.handleAddContact() this.handleAddContact()
if(this.isCustomerServiceConfirmed){ if(this.isCustomerServiceConfirmed){
console.log(this.userId);
this.form.customerService = this.userId this.form.customerService = this.userId
} }
} }
...@@ -512,7 +511,7 @@ export default { ...@@ -512,7 +511,7 @@ export default {
getWarehouseList().then(r => { getWarehouseList().then(r => {
this.warehouseList = r.data this.warehouseList = r.data
}) })
listSimpleUsers().then(r => { listServiceUser().then(r => {
this.serviceUserList = r.data this.serviceUserList = r.data
}) })
getCountryListAll().then(r => { getCountryListAll().then(r => {
...@@ -700,7 +699,9 @@ export default { ...@@ -700,7 +699,9 @@ export default {
} }
// 添加的提交 // 添加的提交
//我的客户页面跳转直接 //我的客户页面跳转直接
form.isCustomerServiceConfirmed = true; if(this.isCustomerServiceConfirmed){
form.isCustomerServiceConfirmed = this.isCustomerServiceConfirmed;
}
createCustomer(form).then(response => { createCustomer(form).then(response => {
this.$modal.msgSuccess(this.$t('新增成功')); this.$modal.msgSuccess(this.$t('新增成功'));
this.open = false; this.open = false;
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
<el-descriptions-item :label="$t('客户类别')">{{ getDictDatas2(DICT_TYPE.CUSTOMER_TYPE, (customer.type||'').split(',')).map(e => e.label).join(', ') }}</el-descriptions-item> <el-descriptions-item :label="$t('客户类别')">{{ getDictDatas2(DICT_TYPE.CUSTOMER_TYPE, (customer.type||'').split(',')).map(e => e.label).join(', ') }}</el-descriptions-item>
<!-- <el-descriptions-item :label="$t('联系方式')">{{ customer }}</el-descriptions-item>--> <!-- <el-descriptions-item :label="$t('联系方式')">{{ customer }}</el-descriptions-item>-->
<el-descriptions-item :label="$t('推介人')">{{ promoter }}</el-descriptions-item> <el-descriptions-item :label="$t('推介人')">{{ promoter }}</el-descriptions-item>
<el-descriptions-item :label="$t('客户经理')">{{ customerService }}</el-descriptions-item> <el-descriptions-item :label="$t('客户经理')">{{customerService }}</el-descriptions-item>
<el-descriptions-item :label="$t('公司名称')">{{ customer.company }}</el-descriptions-item> <el-descriptions-item :label="$t('公司名称')">{{ customer.company }}</el-descriptions-item>
<el-descriptions-item :label="$t('联系地址')">{{ customer.address }}</el-descriptions-item> <el-descriptions-item :label="$t('联系地址')">{{ customer.address }}</el-descriptions-item>
<el-descriptions-item :label="$t('创建时间')">{{ parseTime(customer.createTime) }}</el-descriptions-item> <el-descriptions-item :label="$t('创建时间')">{{ parseTime(customer.createTime) }}</el-descriptions-item>
...@@ -469,6 +469,7 @@ export default { ...@@ -469,6 +469,7 @@ export default {
getCustomerSelect().then(r => { getCustomerSelect().then(r => {
this.customerSelect = r.data.list this.customerSelect = r.data.list
}) })
listServiceUser().then(r => { listServiceUser().then(r => {
this.serviceUserList = r.data this.serviceUserList = r.data
}) })
...@@ -601,6 +602,7 @@ export default { ...@@ -601,6 +602,7 @@ export default {
return this.customerSelect.find(e => e.id === this.customer.promoter)?.name || '' return this.customerSelect.find(e => e.id === this.customer.promoter)?.name || ''
}, },
customerService() { customerService() {
console.log(this.serviceUserList,'this.serviceUserList');
return this.serviceUserList.find(e => e.id === this.customer.customerService)?.nickname || '' return this.serviceUserList.find(e => e.id === this.customer.customerService)?.nickname || ''
}, },
id() { id() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment