mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-09 21:36:43 +08:00
[new] 完成 国富人寿附加豁免保险费重大疾病保险关连3款主险产品 中 。对 国富瑞利年金保险、国富人寿国富鑫享年金保险 进行特殊规则表达式配置
This commit is contained in:
@@ -49,7 +49,7 @@
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
<div
|
||||
class="flex justify-content-s pv10 border-bottom"
|
||||
v-if="riskFactor.type == 0"
|
||||
:class="{ hidden: riskFactor.code == 'payEndYear' && item.isHidden }"
|
||||
@@ -233,7 +233,7 @@
|
||||
/>
|
||||
<van-checkbox
|
||||
v-model="dutyItem.necess"
|
||||
:disabled="dutyItem.defaultValue == '0'"
|
||||
:disabled="dutyItem.isDisabled || dutyItem.defaultValue == '0'"
|
||||
shape="square"
|
||||
@change="changeChecked(index, riskFactorIndex, dutyItemIndex, dutyItem)"
|
||||
></van-checkbox>
|
||||
@@ -377,7 +377,8 @@ export default {
|
||||
//缴费期间对应index索引
|
||||
payEndYearColumnsIndex: 0,
|
||||
// 后台配置的校验规则
|
||||
ruleExpression: {}
|
||||
ruleExpression: {},
|
||||
mainRiskCode: ''
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
@@ -535,7 +536,42 @@ export default {
|
||||
// funPar: ['par','ParKey','Par'],
|
||||
// }
|
||||
// console.log("config",config);
|
||||
// config = {
|
||||
// eventName: 'GFRS_A0003_noMainCode',
|
||||
// eventType: 'init',
|
||||
// initBody: [
|
||||
// 'for(let item of that.chooseProducts){',
|
||||
// ' if(item.productCode == "GFRS_A0003"){',
|
||||
// ' for(let itemC of item.calFactorLst){',
|
||||
// ' if(itemC.code == "dutyGroup"){',
|
||||
// ' for(let itemR of itemC.rules){',
|
||||
// ' that.$emit("GFRS_A0003_noMainCode", itemR, that.mainRiskCode)',
|
||||
// ' }',
|
||||
// ' }',
|
||||
// ' }',
|
||||
// ' }',
|
||||
// ' }',
|
||||
// ],
|
||||
// funBody: [
|
||||
// 'let noMainCode = {',
|
||||
// ' "GFRS_M0004" : true,',
|
||||
// ' "GFRS_M0011" : true',
|
||||
// '};',
|
||||
// 'let noduty = {',
|
||||
// ' "310101" : true',
|
||||
// '};',
|
||||
// 'if(noMainCode[mainRiskCode] && noduty[dutyItem.duty]){',
|
||||
// ' dutyItem.necess = false;',
|
||||
// ' dutyItem.isDisabled = true;',
|
||||
// '}',
|
||||
// ],
|
||||
// funPar:['dutyItem', 'mainRiskCode'],
|
||||
// }
|
||||
this.$on(config.eventName, new Function( ...config.funPar, config.funBody.join('')));
|
||||
if(config.eventType == 'init'){
|
||||
let initFn = new Function('that', config.initBody.join(''));
|
||||
initFn(this)
|
||||
}
|
||||
rules.eventList.push(config.eventName)
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user