Commit 6587484e by yuzhenWang

证件类型多位加bug修复发布生产

parent e0c3f04c
...@@ -1148,9 +1148,6 @@ const setFormValue = (obj, formData, exportValue) => { ...@@ -1148,9 +1148,6 @@ const setFormValue = (obj, formData, exportValue) => {
obj.apiCertificateDtoList.length > 0 obj.apiCertificateDtoList.length > 0
) { ) {
obj.apiCertificateDtoList.forEach(item => { obj.apiCertificateDtoList.forEach(item => {
// if (item.certificateStartDate) {
// item.certificateValidityPeriod = [item.certificateStartDate, item.certificateEndDate]
// }
if (item.isPermanent || item.isPermanent == 0) { if (item.isPermanent || item.isPermanent == 0) {
item.isPermanent = String(item.isPermanent) item.isPermanent = String(item.isPermanent)
} }
...@@ -1233,9 +1230,7 @@ const setFormValue = (obj, formData, exportValue) => { ...@@ -1233,9 +1230,7 @@ const setFormValue = (obj, formData, exportValue) => {
tempAddressList.push(addressObj) tempAddressList.push(addressObj)
} }
} }
console.log('====================================')
console.log('form.value[field.key]', field.key, form.value[field.key])
console.log('====================================')
break break
case 'country': case 'country':
form.value[field.key] = obj.nationality form.value[field.key] = obj.nationality
...@@ -1538,9 +1533,7 @@ const handleFormValues = source => { ...@@ -1538,9 +1533,7 @@ const handleFormValues = source => {
resolve(errorFields.value.length == 0 ? submitObj : null) resolve(errorFields.value.length == 0 ? submitObj : null)
} else { } else {
errorFields.value = getInvalidFields(fields) errorFields.value = getInvalidFields(fields)
console.log('====================================')
console.log('222222', errorFields.value)
console.log('====================================')
if (errorFields.value.length > 0) { if (errorFields.value.length > 0) {
proxy.$message.error(errorFields.value[0].message) proxy.$message.error(errorFields.value[0].message)
} }
...@@ -1600,7 +1593,8 @@ watch( ...@@ -1600,7 +1593,8 @@ watch(
(newVal, oldVal) => { (newVal, oldVal) => {
editStatus.value = false editStatus.value = false
customerRightRef.value = null customerRightRef.value = null
if (newVal === 'customer' || newVal === 'policyholder' || newVal === 'insurantInfo') { // || newVal === 'policyholder' || newVal === 'insurantInfo'
if (newVal === 'customer') {
processFormData() processFormData()
// 因为客户资料里的编辑状态是单独控制的 // 因为客户资料里的编辑状态是单独控制的
if (props.tabSource == 'customer' && props.customerBizId) { if (props.tabSource == 'customer' && props.customerBizId) {
...@@ -1608,15 +1602,35 @@ watch( ...@@ -1608,15 +1602,35 @@ watch(
} else if (props.tabSource == 'customer' && !props.customerBizId) { } else if (props.tabSource == 'customer' && !props.customerBizId) {
editStatus.value = false editStatus.value = false
} }
if (newVal === 'policyholder' || newVal === 'insurantInfo') { // if (newVal === 'policyholder' || newVal === 'insurantInfo') {
// editStatus.value = props.fatherEditStatus
// }
}
// 切换tab要保存各自的表单值
// if (oldVal == 'policyholder') {
// policyholderForm.value = JSON.parse(JSON.stringify(form.value))
// } else if (oldVal == 'insurantInfo') {
// insuredForm.value = JSON.parse(JSON.stringify(form.value))
// }
if (newVal === 'policyholder') {
editStatus.value = props.fatherEditStatus editStatus.value = props.fatherEditStatus
if (JSON.stringify(policyholderForm.value) != '{}') {
form.value = JSON.parse(JSON.stringify(policyholderForm.value))
processedCustomerData.value = JSON.parse(JSON.stringify(tempPolicyholderDom.value))
return
} else {
processFormData()
} }
} else if (newVal === 'insurantInfo') {
editStatus.value = props.fatherEditStatus
if (JSON.stringify(insuredForm.value) != '{}') {
form.value = JSON.parse(JSON.stringify(insuredForm.value))
processedCustomerData.value = JSON.parse(JSON.stringify(tempInsurantDom.value))
return
} else {
processFormData()
} }
// 切换tab要保存各自的表单值
if (oldVal == 'policyholder') {
policyholderForm.value = JSON.parse(JSON.stringify(form.value))
} else if (oldVal == 'insurantInfo') {
insuredForm.value = JSON.parse(JSON.stringify(form.value))
} }
} }
) )
......
...@@ -886,6 +886,40 @@ const getDictsData = async () => { ...@@ -886,6 +886,40 @@ const getDictsData = async () => {
dictStore.setSignPeopleList(response7.data.records) dictStore.setSignPeopleList(response7.data.records)
} }
} }
// 获取下拉框所需要得数据
const getDictsLabelData = async () => {
proxy.useDictLists([
'csf_employment',
'sys_no_yes',
'bx_currency_type',
'csf_liquid_asset_type',
'csf_premium_funding_source',
'csf_customer_type',
'csf_customer_title',
'sys_gender',
'csf_marriage',
'csf_education',
'csf_id_type',
'csf_ap_apply_type',
'csf_ap_meeting_point',
'csf_ap_first_issue',
'csf_ap_dividend',
'csf_ap_frequency',
'csf_ap_rel',
'csf_ap_registration',
'csf_ap_exercise',
'csf_ap_risk',
'csf_ap_movie',
'csf_ap_game',
'csf_ap_policy_transfer',
'wj_question_first_category',
'wj_question_second_category',
'csf_ap_status',
'md_bank',
'oss_data_type',
'oss_data_person'
])
}
// Tab切换前的验证 // Tab切换前的验证
const beforeTabLeave = async (activeTabName, oldTabName) => { const beforeTabLeave = async (activeTabName, oldTabName) => {
foldInsurantInfo.value = false foldInsurantInfo.value = false
...@@ -1094,6 +1128,7 @@ if (route.query.appointmentNo && route.query.source == 'appointmentList') { ...@@ -1094,6 +1128,7 @@ if (route.query.appointmentNo && route.query.source == 'appointmentList') {
processInfo.value = route.query processInfo.value = route.query
idsObj.value.appointmentBizId = route.query.appointmentBizId idsObj.value.appointmentBizId = route.query.appointmentBizId
getDictsData() getDictsData()
// getDictsLabelData()
setTimeout(() => { setTimeout(() => {
// 请求预约单聚合详情 // 请求预约单聚合详情
getAppointmentInfo(idsObj.value.appointmentBizId, true) getAppointmentInfo(idsObj.value.appointmentBizId, 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