|
@@ -378,11 +378,11 @@ function editCustomerSave(flag: boolean) {
|
|
|
|
|
|
function editCustomer(row: any) { // row 有数据代表编辑
|
|
function editCustomer(row: any) { // row 有数据代表编辑
|
|
if (row) {
|
|
if (row) {
|
|
- const { id, companyPhone, customName, inchargerId, createTime, customSourceId, customerIndustryId, customerLevelId, email } = row
|
|
|
|
|
|
+ const { id, companyPhone, customName, inchargerId, createTime, customSourceId, customerIndustryId, customerLevelId, email, telPhone } = row
|
|
const formVal = {
|
|
const formVal = {
|
|
id, customName, inchargerId, customerIndustryId, customerLevelId, email, customSourceId,
|
|
id, customName, inchargerId, customerIndustryId, customerLevelId, email, customSourceId,
|
|
createTime: formatDate(new Date(createTime)),
|
|
createTime: formatDate(new Date(createTime)),
|
|
- telPhone: companyPhone,
|
|
|
|
|
|
+ telPhone, companyPhone
|
|
}
|
|
}
|
|
allLoading.customerTemplateRefLoading = true
|
|
allLoading.customerTemplateRefLoading = true
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
@@ -392,6 +392,11 @@ function editCustomer(row: any) { // row 有数据代表编辑
|
|
customerTemplateValue.value = formVal
|
|
customerTemplateValue.value = formVal
|
|
allText.editCustomerText = '编辑客户'
|
|
allText.editCustomerText = '编辑客户'
|
|
} else { // 没有数据代表新建
|
|
} else { // 没有数据代表新建
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ console.log(customerTemplateRef.value)
|
|
|
|
+ customerTemplateValue.value = {}
|
|
|
|
+ customerTemplateRefKey.value++
|
|
|
|
+ }, 200)
|
|
allText.editCustomerText = '新增客户'
|
|
allText.editCustomerText = '新增客户'
|
|
}
|
|
}
|
|
showVisible('editCustomerVisible')
|
|
showVisible('editCustomerVisible')
|