|
@@ -392,6 +392,11 @@ function editCustomer(row: any) { // row 有数据代表编辑
|
|
|
customerTemplateValue.value = formVal
|
|
|
allText.editCustomerText = '编辑客户'
|
|
|
} else { // 没有数据代表新建
|
|
|
+ setTimeout(() => {
|
|
|
+ console.log(customerTemplateRef.value)
|
|
|
+ customerTemplateValue.value = {}
|
|
|
+ customerTemplateRefKey.value++
|
|
|
+ }, 200)
|
|
|
allText.editCustomerText = '新增客户'
|
|
|
}
|
|
|
showVisible('editCustomerVisible')
|