|
|
|
@ -173,14 +173,15 @@ watch( |
|
|
|
|
); |
|
|
|
|
// 新增判分记录 |
|
|
|
|
const addRecord = async (data: Record<string, any>) => { |
|
|
|
|
const preIds = `1,${Cookies.get('sand-level')},275,${data.insuranceType === 310 ? 276 : 277}`; // 1,关卡id,角色(这个页面是保险产品经理新增产品) |
|
|
|
|
const isAcci = data.insuranceType === 310; // 意外险 |
|
|
|
|
const preIds = `1,${Cookies.get('sand-level')},275,${isAcci ? 276 : 277}`; // 1,关卡id,角色(这个页面是保险产品经理新增产品) |
|
|
|
|
const rule: Array<Record<string, any>> = [handleId(278, 118, data.insuranceName, preIds + ',278', 3), handleId(279, 119, data.insuranceType, preIds + ',279', 1)]; |
|
|
|
|
data.minimumAge && rule.push(handleId(680, 219, data.minimumAge, preIds + ',678,680', 3)); |
|
|
|
|
data.maximumAge && rule.push(handleId(679, 218, data.maximumAge, preIds + ',678,679', 3)); |
|
|
|
|
// 保险额度 |
|
|
|
|
config.value[form.insuranceType === 310 ? 0 : 1]?.recordChildren[2]?.recordChildren?.map((e) => { |
|
|
|
|
rule.push(handleId(766, 140, e.check ? 345 : 346, `${preIds},280,${e.id},766`, 1)); |
|
|
|
|
e.check && e.sumInsured && rule.push(handleId(767, 234, e.sumInsured, `${preIds},280,${e.id},767`, 3)); |
|
|
|
|
rule.push(handleId(isAcci ? 766 : 768, 140, e.check ? 345 : 346, `${preIds},${isAcci ? 280 : 288},${e.id},${isAcci ? 766 : 768}`, 1)); |
|
|
|
|
e.check && e.sumInsured && rule.push(handleId(isAcci ? 767 : 769, 234, e.sumInsured, `${preIds},${isAcci ? 280 : 288},${e.id},${isAcci ? 767 : 769}`, 3)); |
|
|
|
|
}); |
|
|
|
|
data.premiumAmount && rule.push(handleId(296, 134, data.premiumAmount, preIds + ',296', 3)); |
|
|
|
|
data.formOfPayment && rule.push(handleId(297, 135, data.formOfPayment, preIds + ',297', 1)); |
|
|
|
@ -196,7 +197,7 @@ const addRecord = async (data: Record<string, any>) => { |
|
|
|
|
1, |
|
|
|
|
), |
|
|
|
|
); |
|
|
|
|
data.applicationMaterial && rule.push(handleId(299, 137, data.applicationMaterial, preIds + ',299', 1)); |
|
|
|
|
data.applicationMaterial && rule.push(handleId(isAcci ? 299 : 300, isAcci ? 137 : 138, data.applicationMaterial, `${preIds},${isAcci ? 299 : 300}`, 1)); |
|
|
|
|
data.exemptionFromLiability && rule.push(handleId(301, 139, data.exemptionFromLiability, preIds + ',301', 1)); |
|
|
|
|
|
|
|
|
|
await addOperation({ |
|
|
|
|