mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-06 16:36:44 +08:00
'保费试算'
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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===================')
|
||||
|
||||
Reference in New Issue
Block a user