Commit 63da828a by yuzhenWang

修复客户资料

parent fdc2533e
...@@ -1507,6 +1507,7 @@ const handleFormValues = source => { ...@@ -1507,6 +1507,7 @@ const handleFormValues = source => {
if (props.customerBizId && props.activeName == 'customer') { if (props.customerBizId && props.activeName == 'customer') {
submitObj['fnaBizId'] = props.idsObj.fnaBizId submitObj['fnaBizId'] = props.idsObj.fnaBizId
editCustomer(submitObj).then(res => { editCustomer(submitObj).then(res => {
if (res.code == 200) { if (res.code == 200) {
handleEditStatus() handleEditStatus()
...@@ -1606,14 +1607,15 @@ watch( ...@@ -1606,14 +1607,15 @@ watch(
editStatus.value = false editStatus.value = false
customerRightRef.value = null customerRightRef.value = null
if (newVal === 'customer') { if (newVal === 'customer') {
if (JSON.stringify(customerForm.value) != '{}') { processFormData()
form.value = JSON.parse(JSON.stringify(customerForm.value)) // if (JSON.stringify(customerForm.value) != '{}') {
// form.value = JSON.parse(JSON.stringify(customerForm.value))
processedCustomerData.value = JSON.parse(JSON.stringify(tempCustomerDom.value)) // processedCustomerData.value = JSON.parse(JSON.stringify(tempCustomerDom.value))
return // return
} else { // } else {
processFormData() // processFormData()
} // }
// 因为客户资料里的编辑状态是单独控制的 // 因为客户资料里的编辑状态是单独控制的
if (props.tabSource == 'customer' && props.customerBizId) { if (props.tabSource == 'customer' && props.customerBizId) {
editStatus.value = true editStatus.value = true
......
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