Commit a31dd98b by Sweet Zhang

修改显示字段

parent 990fa688
...@@ -274,34 +274,9 @@ const emit = defineEmits(['update:modelValue', 'submit', 'cancel', 'saveRow']) ...@@ -274,34 +274,9 @@ const emit = defineEmits(['update:modelValue', 'submit', 'cancel', 'saveRow'])
const introducerTableData = ref([]) const introducerTableData = ref([])
const introducerConfig = [ const introducerConfig = [
<<<<<<< HEAD
{ {
type: 'select', type: 'select',
prop: 'brokerBizId', prop: 'brokerName',
label: '转介人',
onChangeExtraFields: {
brokerName: 'realName',
internalCode: 'code',
team: 'teamName',
phone: 'phone',
},
displayProp: 'brokerName',
api: '/insurance/base/api/userSaleExpand/page',
keywordField: 'realName',
requestParams: { pageNo: 1, pageSize: 20 },
placeholder: '输入转介人名称搜索',
debounceWait: 500, // 自定义防抖时间
transform: (res) => {
return (res?.data.records || []).map(item => ({
value: item.clientUserBizId,
label: item.realName,
...item
}))
},
=======
{
type: 'select',
prop: 'brokerBizId',
label: '转介人', label: '转介人',
api: '/insurance/base/api/userSaleExpand/page', api: '/insurance/base/api/userSaleExpand/page',
keywordField: 'realName', keywordField: 'realName',
...@@ -309,16 +284,14 @@ const introducerConfig = [ ...@@ -309,16 +284,14 @@ const introducerConfig = [
placeholder: '输入转介人名称搜索', placeholder: '输入转介人名称搜索',
debounceWait: 500, // 自定义防抖时间 debounceWait: 500, // 自定义防抖时间
onChangeExtraFields: { onChangeExtraFields: {
broker: 'realName', // 选中后自动填 broker = raw.realName
brokerName: 'realName',
internalCode: 'code', internalCode: 'code',
team: 'teamName', team: 'teamName',
phone: 'phone' phone: 'phone',
>>>>>>> test brokerBizId: 'clientUserBizId'
}, },
transform: res => { transform: res => {
return (res?.data.records || []).map(item => ({ return (res?.data.records || []).map(item => ({
value: item.clientUserBizId, value: item.realName,
label: item.realName, label: item.realName,
...item ...item
})) }))
...@@ -1016,7 +989,6 @@ const handleTabClick = tab => { ...@@ -1016,7 +989,6 @@ const handleTabClick = tab => {
} }
const handleSubmit = () => { const handleSubmit = () => {
<<<<<<< HEAD
formRef.value?.validate((valid) => { formRef.value?.validate((valid) => {
if (valid) { if (valid) {
console.log('提交数据', introducerTableData.value) console.log('提交数据', introducerTableData.value)
...@@ -1042,34 +1014,6 @@ const handleSubmit = () => { ...@@ -1042,34 +1014,6 @@ const handleSubmit = () => {
} }
}) })
=======
formRef.value?.validate(valid => {
if (valid) {
console.log('提交数据', introducerTableData.value)
if (activeTab.value === 'postal') {
emit('submit', { ...postalFormData.value, activeTab: activeTab.value })
} else if (activeTab.value === 'firstPayment') {
emit('submit', { ...firstPremiumFormData.value, activeTab: activeTab.value })
} else if (activeTab.value === 'attachment') {
emit('submit', { activeTab: activeTab.value })
} else if (activeTab.value === 'introducer') {
emit('submit', { ...introducerTableData.value, activeTab: activeTab.value })
} else if (activeTab.value === 'basic') {
emit('submit', {
...basicInfoFormData.value,
activeTab: activeTab.value,
...policyInfoFormData.value
})
} else if (activeTab.value === 'productPlan') {
emit('submit', {
...basicPlanFormData.value,
activeTab: activeTab.value,
...localData.additionalPlans
})
}
}
})
>>>>>>> test
} }
const handleCancel = () => { const handleCancel = () => {
...@@ -1109,23 +1053,7 @@ const getPolicyfollowDetail = () => { ...@@ -1109,23 +1053,7 @@ const getPolicyfollowDetail = () => {
introducerTableData.value = res.data.brokerList || [] introducerTableData.value = res.data.brokerList || []
console.log('====父组件在赋值basicPlanFormData后', basicPlanFormData.value) console.log('====父组件在赋值basicPlanFormData后', basicPlanFormData.value)
} }
<<<<<<< HEAD
getPolicyfollow(props.policyBizId).then(res => {
if (res.code === 200) {
console.log('====父组件在赋值basicPlanFormData前', basicPlanFormData.value)
newOrderData.value = res.data
policyInfoFormData.value = { ...transformToFormData(res.data, policyInfoFormConfig.value) };
basicPlanFormData.value = { ...transformToFormData(res.data, basicPlanFormConfig.value) };
basicInfoFormData.value = { ...transformToFormData(res.data, basicInfoFormConfig.value) };
firstPremiumFormData.value = { ...transformToFormData(res.data, firstPremiumFormConfig.value) };
introducerTableData.value = res.data.brokerList || []
// console.log('====父组件在赋值introducerTableData后=====', introducerTableData.value)
}
})
=======
}) })
>>>>>>> test
} }
// 查询附件列表 // 查询附件列表
......
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