mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-09 18:06:44 +08:00
【国富惠桂保团体医疗保险产品上线金掌桂投保开发需求】投保人信息去掉产品信息和试算
This commit is contained in:
@@ -359,7 +359,6 @@ export default {
|
||||
occupationShowPicker: false,
|
||||
timeId: null,
|
||||
chooseProducts: JSON.parse(localStorage.chooseProducts),
|
||||
trialList: JSON.parse(CacheUtils.getLocItem('trialList')),
|
||||
pdf: ['', '', ''],
|
||||
insureType: '',
|
||||
pickerIndex: 0,
|
||||
@@ -410,22 +409,6 @@ export default {
|
||||
}
|
||||
// 筛选按钮的点击事件
|
||||
window.appCallBack = this.appCallBack
|
||||
if (this.itemProductDTOS.productCode === 'GFRS_M0022') {
|
||||
this.proScheme = '畅行无忧'
|
||||
this.proSchemeCode = ''
|
||||
this.allPrice = this.trialList[0].prem
|
||||
} else if (this.itemProductDTOS.productCode === 'GFRS_M0052'){
|
||||
this.proScheme = this.trialList[0].proScheme,
|
||||
this.proSchemeCode = this.trialList[0].proSchemeCode,
|
||||
this.chooseKind = this.trialList[0].chooseKind
|
||||
this.allPrice = this.trialList[0].prem
|
||||
this.now = afterDate.getAfterDays(Number(this.trialList[0].timeliness))
|
||||
}else {
|
||||
// this.proScheme = this.trialList[0].proScheme
|
||||
// this.proSchemeCode = this.trialList[0].proSchemeCode
|
||||
// this.allPrice = this.trialList[0].prem
|
||||
this.now = afterDate.getAfterDays(Number(this.trialList[0].timeliness))
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
//长期状态改变时
|
||||
@@ -633,13 +616,6 @@ export default {
|
||||
this.columns = DataDictionary.salarySource
|
||||
} else if (pickerType == '10') {
|
||||
this.columns = []
|
||||
this.trialList.forEach(item => {
|
||||
this.columns.push({
|
||||
id: item.proSchemeCode,
|
||||
text: item.proScheme,
|
||||
label: item.chooseKind
|
||||
})
|
||||
})
|
||||
}
|
||||
},
|
||||
//确认选择字段
|
||||
@@ -677,12 +653,6 @@ export default {
|
||||
this.proScheme = value.text
|
||||
this.proSchemeCode = value.id
|
||||
this.chooseKind = value.label
|
||||
for (let item of this.trialList) {
|
||||
if (item.proSchemeCode === this.proSchemeCode) {
|
||||
this.allPrice = item.prem
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
//证件起始截止日期
|
||||
@@ -966,70 +936,6 @@ export default {
|
||||
}
|
||||
}
|
||||
|
||||
//组装险种提交数据
|
||||
let [mainRiskCode, riskDTOLst] = ['', []]
|
||||
let rollInResult = '' //校验预计转入保费结果
|
||||
this.chooseProducts.forEach((item, index) => {
|
||||
console.log('itemssss', item)
|
||||
if (item.isMainRisk == 0) {
|
||||
mainRiskCode = item.productCode
|
||||
}
|
||||
let insuYearDate = JSON.parse(localStorage.insuYear)
|
||||
let riskItem = {
|
||||
cvaliDate: this.cvaliDate,
|
||||
isMainRisk: item.isMainRisk,
|
||||
riskName: item.riskName,
|
||||
riskType: item.riskType,
|
||||
riskCode: item.productCode,
|
||||
mainRiskCode: mainRiskCode,
|
||||
prem: this.allPrice,
|
||||
standPrem: this.allPrice,
|
||||
predictTransferPrem: item.predictTransferPrem,
|
||||
thirdInsuraceNo: this.policyNo,
|
||||
mult: this.mult,
|
||||
proScheme: this.proScheme,
|
||||
proSchemeCode: this.proSchemeCode,
|
||||
insuYear: insuYearDate.insuYear,
|
||||
insuYearFlag: insuYearDate.insuYearFlag,
|
||||
firstOr: this.firstOr,
|
||||
medical: this.medical,
|
||||
chooseKind: this.chooseKind
|
||||
}
|
||||
if (item.hasPredictTransferPrem && item.hasPredictTransferPrem === '0') {
|
||||
//增加万能险 预计转入保费校验
|
||||
rollInResult = this.rollInCheck(item.predictTransferPrem)
|
||||
} else {
|
||||
rollInResult = true
|
||||
}
|
||||
//责任险保存参数构建
|
||||
if (this.trialList[index].duty) {
|
||||
riskItem['dutyLst'] = this.trialList[index].duty
|
||||
//930折中方案,责任险分档
|
||||
riskItem['amt'] = this.trialList[index].amt
|
||||
}
|
||||
|
||||
//保费算保额
|
||||
if (this.trialList[index].trialType == '1') {
|
||||
riskItem['amt'] = this.trialList[index].amt
|
||||
}
|
||||
//万能型产品保费赋值给保额
|
||||
if (this.trialList[index].productCode == 'GFRS_M0003') {
|
||||
riskItem['amt'] = this.trialList[index].prem
|
||||
}
|
||||
// //豁免险保额处理
|
||||
// if (item.isRemit == '0') {
|
||||
// this.trialInfos[index].amt = this.trialList[0].prem
|
||||
// }
|
||||
// console.log()
|
||||
// riskItem = Object.assign(riskItem, this.trialInfos[index])
|
||||
|
||||
riskDTOLst.push(riskItem)
|
||||
})
|
||||
if (!rollInResult) {
|
||||
return
|
||||
}
|
||||
params.orderDTO.insuredDTOs[0].riskDTOLst = riskDTOLst
|
||||
|
||||
let resultData = await saveOrUpdateCard(params)
|
||||
if (resultData.result == 0) {
|
||||
console.log('resultData.orderNo', resultData.content.object)
|
||||
|
||||
Reference in New Issue
Block a user