Commit 1a4d9815 by yuzhenWang

Merge branch 'feature-20260316wyz-预约修改' into 'test'

Feature 20260316wyz 预约修改

See merge request !97
parents 22d3ffda 9fd6dd8c
...@@ -627,6 +627,9 @@ const handleAppendInput = child => { ...@@ -627,6 +627,9 @@ const handleAppendInput = child => {
const handleInputChange = (val, child) => { const handleInputChange = (val, child) => {
let newVal = numberFormat(val, child) let newVal = numberFormat(val, child)
form.value[child.key] = newVal form.value[child.key] = newVal
if (child.key == 'nameCn' && !form.value['nameCn']) {
form.value['namePyEn'] = ''
}
} }
const handleInputBlur = child => { const handleInputBlur = child => {
if ( if (
...@@ -1122,7 +1125,7 @@ const setFormValue = (obj, formData, exportValue) => { ...@@ -1122,7 +1125,7 @@ const setFormValue = (obj, formData, exportValue) => {
// 深拷贝原始数据 // 深拷贝原始数据
form.value = JSON.parse(JSON.stringify(obj)) form.value = JSON.parse(JSON.stringify(obj))
// 新增预约,是受保人,与投保人关系默认值是本人 // 新增预约,是受保人,与投保人关系默认值是本人
if (props.activeName == 'insurantInfo' && !props.idsObj.appointmentBizId) { if (props.activeName == 'insurantInfo' && !props.idsObj.appointmentBizId && !exportValue) {
form.value['policyholderRel'] = 'MYSELF' form.value['policyholderRel'] = 'MYSELF'
} }
// 深拷贝原始数据 // 深拷贝原始数据
...@@ -1271,7 +1274,10 @@ const setFormValue = (obj, formData, exportValue) => { ...@@ -1271,7 +1274,10 @@ const setFormValue = (obj, formData, exportValue) => {
} else { } else {
form.value.age = null form.value.age = null
} }
// 使用历史客户导入的,要保持原来的与投保人关系的值
if (exportValue) {
form.value['policyholderRel'] = oldObjInfo.value['policyholderRel']
}
phoneQuickList.value = removeDuplicates(tempPhoneList, 'phoneString') phoneQuickList.value = removeDuplicates(tempPhoneList, 'phoneString')
addressQuickList.value = removeDuplicates(tempAddressList, 'addressString') addressQuickList.value = removeDuplicates(tempAddressList, 'addressString')
if (addressQuickList.value.length > 0) { if (addressQuickList.value.length > 0) {
......
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