'保费试算'

This commit is contained in:
proudlx
2021-04-01 22:03:56 +08:00
parent c1b08c9d2a
commit 91dacd105d
2 changed files with 54 additions and 26 deletions

View File

@@ -156,22 +156,50 @@ export default {
this.riskDTOLst = this.insuredDTOs.riskDTOLst
let trialInfos = []
this.riskDTOLst.forEach((element, index) => {
trialInfos.push({
birthday: this.insuredDTOs.birthday,
insuYear: element.insuYear,
insuYearFlag: element.insuYearFlag,
medical: this.insuredDTOs.medical,
occupationCode: this.insuredDTOs.occupationCode,
occupationName: this.insuredDTOs.occupationName,
payEndYear: element.payEndYear,
payEndYearFlag: element.payEndYearFlag,
payIntv: element.payIntv,
platformType: 'app',
prem: element.prem,
productCode: element.riskCode,
sex: this.insuredDTOs.sex,
amt:element.amt,
})
if (element.isMainRisk == '0') {
trialInfos.push({
birthday: this.insuredDTOs.birthday,
insuYear: element.insuYear,
insuYearFlag: element.insuYearFlag,
medical: this.insuredDTOs.medical,
occupationCode: this.insuredDTOs.occupationCode,
occupationName: this.insuredDTOs.occupationName,
payEndYear: element.payEndYear,
payEndYearFlag: element.payEndYearFlag,
payIntv: element.payIntv,
platformType: 'app',
prem: element.prem,
productCode: element.riskCode,
sex: this.insuredDTOs.sex,
amt: element.amt
})
} else {
trialInfos.push({
birthday: this.insuredDTOs.birthday,
duty:element.dutyLst,
isMainRisk:element.isMainRisk,
isRemit:element.isRemit,
remitType:'',
showPrem:element.showPrem,
standPrem:element.standPrem,
trialType:'',
insuYear: element.insuYear,
insuYearFlag: element.insuYearFlag,
medical: this.insuredDTOs.medical,
occupationCode: this.insuredDTOs.occupationCode,
occupationName: this.insuredDTOs.occupationName,
payEndYear: element.payEndYear,
payEndYearFlag: element.payEndYearFlag,
payIntv: element.payIntv,
platformType: 'app',
prem: element.prem,
productCode: element.riskCode,
sex: this.insuredDTOs.sex,
amt: element.amt
})
}
})
insureTrial({ trialInfos }).then((res) => {
console.log(res.trialList)

View File

@@ -161,17 +161,17 @@ export default {
// item.reInsuranceFlag = '3';
// item.reInsuranceState = item4[Math.floor(Math.random()*item4.length)];
if (this.active === 'uncommit' && item.reInsuranceFlag === '3' && item.reInsuranceState === '0') {
if (item.newOrderStatus === null || item.newOrderStatus === '02' || item.newOrderStatus === '05' || item.newOrderStatus === '06' || item.newOrderStatus === '08' || item.newOrderStatus === '38' || item.newOrderStatus === '39' || item.newOrderStatus === '40' ) {
NewItems.push(item)
}
} else if(this.active === 'commit' && item.reInsuranceFlag === '3' && (item.reInsuranceState === '1' || item.reInsuranceState === '2' || item.reInsuranceState === '3')){
if (item.newOrderStatus === '07' || item.newOrderStatus === '19' || item.newOrderStatus === '55') {
NewItems.push(item)
}
}
// if (this.active === 'uncommit' && item.reInsuranceFlag === '3' && item.reInsuranceState === '0') {
// if (item.newOrderStatus === null || item.newOrderStatus === '02' || item.newOrderStatus === '05' || item.newOrderStatus === '06' || item.newOrderStatus === '08' || item.newOrderStatus === '38' || item.newOrderStatus === '39' || item.newOrderStatus === '40' ) {
// NewItems.push(item)
// }
// } else if(this.active === 'commit' && item.reInsuranceFlag === '3' && (item.reInsuranceState === '1' || item.reInsuranceState === '2' || item.reInsuranceState === '3')){
// if (item.newOrderStatus === '07' || item.newOrderStatus === '19' || item.newOrderStatus === '55') {
// NewItems.push(item)
// }
// }
// NewItems.push(item)
NewItems.push(item)
}
})
console.log(NewItems, '======================NewItems===================')