Commit 990fa688 by Sweet Zhang

新单跟进冲突解决

parents de16072c b9c161b7
...@@ -55,6 +55,7 @@ const productPlan = [ ...@@ -55,6 +55,7 @@ const productPlan = [
label: '供款期数', label: '供款期数',
key: 'issueNumber', key: 'issueNumber',
domType: 'Input', domType: 'Input',
inputType: 'number',
required: true, required: true,
placeholder: '请选择', placeholder: '请选择',
dictType: 'issueNumber', dictType: 'issueNumber',
......
...@@ -425,33 +425,35 @@ const handleSearchSelectChange = (father, key) => { ...@@ -425,33 +425,35 @@ const handleSearchSelectChange = (father, key) => {
}) })
}) })
} }
if (key == 'productLaunchMainName') { // 有些产品会没有供款年期,所以这段逻辑先注释掉后续在加
father.data.forEach(item => { // if (key == 'productLaunchMainName') {
searchOptions.value['productLaunchMainName'].forEach(item1 => { // father.data.forEach(item => {
if (item1.value == form.value[father.key][key]) { // searchOptions.value['productLaunchMainName'].forEach(item1 => {
form.value[father.key][key] = item1.label // if (item1.value == form.value[father.key][key]) {
form.value[father.key]['productLaunchBizId'] = item1.value // // form.value[father.key][key] = item1.label
} // // form.value[father.key]['productLaunchBizId'] = item1.value
item1.apiAttributeSettingDtoList.forEach(item2 => { // console.log('item1.apiAttributeSettingDtoList', item1.apiAttributeSettingDtoList)
if (item2.fieldBizId == 'field_eWCnuwS3WPKog5kZ' && item.key == 'issueNumber') { // item1.apiAttributeSettingDtoList.forEach(item2 => {
if (item2.value) { // if (item2.fieldBizId == 'field_eWCnuwS3WPKog5kZ' && item.key == 'issueNumber') {
item.options = item2.value // if (item2.value) {
.split(/[,,;;\s]+/) // item.options = item2.value
.map(item => item.trim()) // .split(/[,,;;\s]+/)
.filter(item => item !== '') // .map(item => item.trim())
.map(item => { // .filter(item => item !== '')
return { label: item, value: item } // .map(item => {
}) // return { label: item, value: item }
// })
if (item.options.length > 0) // if (item.options.length > 0)
form.value[father.key]['issueNumber'] = item.options[0].value // form.value[father.key]['issueNumber'] = item.options[0].value
} // }
console.log(item.options, item, '1111') // console.log(item.options, item, '1111')
} // }
}) // })
}) // }
}) // })
} // })
// }
if (key == 'insuranceTypeName') { if (key == 'insuranceTypeName') {
searchOptions.value['insuranceTypeName'].forEach(item => { searchOptions.value['insuranceTypeName'].forEach(item => {
if (item.value == form.value['apiProductPlanMainInfoDto']['insuranceTypeName']) { if (item.value == form.value['apiProductPlanMainInfoDto']['insuranceTypeName']) {
......
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