diff --git a/src/api/crm/customer/index.ts b/src/api/crm/customer/index.ts index 200cc9ef7..e90a6af2e 100644 --- a/src/api/crm/customer/index.ts +++ b/src/api/crm/customer/index.ts @@ -112,6 +112,11 @@ export const getCustomer = async (id: number) => { return await request.get({ url: `/crm/customer/get?id=` + id }) } +// 更新客户信息 +export const getChangeCustomer = async (id: number) => { + return await request.get({ url: `/crm/customer/getRiskControl?id=` + id }) +} + // 查询客户详情带报价单 export const getCustomerDetail = async (id: number) => { return await request.get({ url: `/crm/customer/get-contract-customer-detail?id=` + id }) diff --git a/src/components/contact/index.vue b/src/components/contact/index.vue index d7389744b..2ec8b2865 100644 --- a/src/components/contact/index.vue +++ b/src/components/contact/index.vue @@ -154,7 +154,6 @@ const setSelections = async () => { id: item.customerContactId } }) - console.log('%csrc/components/product/index.vue:153 list.value', 'color: #007acc;', multipleSelection); if (selections && selections.length > 0) { list.value.forEach((row: any) => { diff --git a/src/views/crm/contract/ContractChange.vue b/src/views/crm/contract/ContractChange.vue index b673e3f7c..464f24392 100644 --- a/src/views/crm/contract/ContractChange.vue +++ b/src/views/crm/contract/ContractChange.vue @@ -392,7 +392,7 @@ if(contractFormRef.value) { } else if(formData.value.changeItem == 2) { let ids = [] dataFormList.map(item => { - ids.push(item.id) + ids.push(item.customerContactId) }) data.afterAuthorizerId = ids.join(',') } else if(formData.value.changeItem == 3) { @@ -411,7 +411,7 @@ if(contractFormRef.value) { }) data.afterAffiliateCompanyId = ids.join(',') } else if(formData.value.changeItem == 6) { - data.newContract = data + data.newContract = dataFormList } data.contractId = data.id delete data.id diff --git a/src/views/crm/contract/ContractForm.vue b/src/views/crm/contract/ContractForm.vue index a3b5d5bf2..d9884239e 100644 --- a/src/views/crm/contract/ContractForm.vue +++ b/src/views/crm/contract/ContractForm.vue @@ -571,7 +571,7 @@ * 合同甲方授权人信息 - + + + 更新用户信息 + 领取 分配 @@ -205,6 +208,12 @@ const handlePutPool = async () => { close() } +/** 更新用户信息 */ +const handleChangeCustomer = async () => { + await CustomerApi.getChangeCustomer(customerId.value) + getCustomer() +} + /** 获取操作日志 */ const logList = ref([]) // 操作日志列表 const getOperateLog = async () => {