mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-07 04:16:44 +08:00
'进入核保流程'
This commit is contained in:
@@ -266,7 +266,7 @@ export default {
|
||||
this.accountPersonInfo.bankName = item.text
|
||||
}
|
||||
})
|
||||
this.insuredPersonInfo.homeAddress = '汉字汉字汉字汉字123123'
|
||||
// this.insuredPersonInfo.homeAddress = '汉字汉字汉字汉字123123'
|
||||
},
|
||||
|
||||
setCustomerMarriage(marriageCode) {
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
<template #cellLabel>
|
||||
<span style="font-weight: bold">保费(元)</span>
|
||||
</template>
|
||||
{{ item.prem }}元
|
||||
{{ item.prem }}
|
||||
</InfoCell>
|
||||
</DropdownBox>
|
||||
</div>
|
||||
@@ -110,6 +110,7 @@
|
||||
import ProgressBar from '@/components/ebiz/insureAgain/ProgressBar'
|
||||
import DropdownBox from '@/components/ebiz/insureAgain/DropdownBox'
|
||||
import InfoCell from '@/components/ebiz/insureAgain/InfoCell'
|
||||
import { insureTrial } from '@/api/ebiz/cardList/cardList.js'
|
||||
import ReadingAgreement from '@/components/ebiz/insureAgain/ReadingAgreement'
|
||||
import { commitReOrder, getReAppntPolicy } from '@/api/ebiz/insureAgain/insureAgain'
|
||||
import { Checkbox, RadioGroup, Radio, Dialog, CheckboxGroup } from 'vant'
|
||||
@@ -124,7 +125,7 @@ export default {
|
||||
[Checkbox.name]: Checkbox,
|
||||
[CheckboxGroup.name]: CheckboxGroup,
|
||||
[RadioGroup.name]: RadioGroup,
|
||||
[Radio.name]: Radio,
|
||||
[Radio.name]: Radio
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -142,7 +143,7 @@ export default {
|
||||
insuredDTOs: [],
|
||||
orderInfoDTO: [],
|
||||
appntDTO: [],
|
||||
orderAccountDTO: [],
|
||||
orderAccountDTO: []
|
||||
}
|
||||
},
|
||||
created() {
|
||||
@@ -153,43 +154,65 @@ export default {
|
||||
this.orderInfoDTO = res.orderDTO.orderInfoDTO
|
||||
this.orderAccountDTO = res.orderDTO.orderAccountDTO
|
||||
this.riskDTOLst = this.insuredDTOs.riskDTOLst
|
||||
let trialInfos = []
|
||||
this.riskDTOLst.forEach((element, index) => {
|
||||
if (element.dutyLst && element.dutyLst.length > 0) {
|
||||
element.dutyLst.forEach((val, index) => {
|
||||
if (val.dutyCode == '320205' || val.dutyCode == '320404') {
|
||||
this.needRead = true
|
||||
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
|
||||
})
|
||||
})
|
||||
insureTrial({ trialInfos }).then((res) => {
|
||||
console.log(res.trialList)
|
||||
this.riskDTOLst.forEach((element, index) => {
|
||||
element.prem = res.trialList[index].prem
|
||||
if (element.dutyLst && element.dutyLst.length > 0) {
|
||||
element.dutyLst.forEach((val, index) => {
|
||||
if (val.dutyCode == '320205' || val.dutyCode == '320404') {
|
||||
this.needRead = true
|
||||
}
|
||||
})
|
||||
}
|
||||
if (element.isMainRisk === '0') {
|
||||
switch (element.payIntv) {
|
||||
case -1:
|
||||
element.payIntvName = '不定期交'
|
||||
break
|
||||
case 0:
|
||||
element.payIntvName = '一次交清'
|
||||
break
|
||||
case 1:
|
||||
element.payIntvName = '月交'
|
||||
break
|
||||
case 3:
|
||||
element.payIntvName = '季交'
|
||||
break
|
||||
case 6:
|
||||
element.payIntvName = '半年交'
|
||||
break
|
||||
case 12:
|
||||
element.payIntvName = '年交'
|
||||
break
|
||||
}
|
||||
})
|
||||
}
|
||||
if (element.isMainRisk === '0') {
|
||||
switch (element.payIntv) {
|
||||
case -1:
|
||||
element.payIntvName = '不定期交'
|
||||
break
|
||||
case 0:
|
||||
element.payIntvName = '一次交清'
|
||||
break
|
||||
case 1:
|
||||
element.payIntvName = '月交'
|
||||
break
|
||||
case 3:
|
||||
element.payIntvName = '季交'
|
||||
break
|
||||
case 6:
|
||||
element.payIntvName = '半年交'
|
||||
break
|
||||
case 12:
|
||||
element.payIntvName = '年交'
|
||||
break
|
||||
CacheUtils.setLocItem('productCode', element.riskCode)
|
||||
this.mainList.push(element)
|
||||
} else {
|
||||
if (element.riskCode === 'GFRS_A0008') {
|
||||
this.checkboxResult.push(element.riskCode)
|
||||
}
|
||||
this.additionalList.push(element)
|
||||
}
|
||||
CacheUtils.setLocItem('productCode', element.riskCode)
|
||||
this.mainList.push(element)
|
||||
} else {
|
||||
if (element.riskCode === 'GFRS_A0008') {
|
||||
this.checkboxResult.push(element.riskCode)
|
||||
}
|
||||
this.additionalList.push(element)
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
mounted() {
|
||||
@@ -204,7 +227,7 @@ export default {
|
||||
this.show = false
|
||||
setTimeout(() => {
|
||||
window.EWebBridge.webCallAppInJs('webview_left_button', {
|
||||
intercept: '1',
|
||||
intercept: '1'
|
||||
})
|
||||
}, 100)
|
||||
} else {
|
||||
@@ -216,7 +239,7 @@ export default {
|
||||
setTimeout(() => {
|
||||
window.EWebBridge.webCallAppInJs('webview_left_button', {
|
||||
img: this.$assetsUrl + 'images/del-close-btn@3x.png',
|
||||
intercept: '1', //是否拦截原生返回事件 1是 其他否
|
||||
intercept: '1' //是否拦截原生返回事件 1是 其他否
|
||||
})
|
||||
}, 100)
|
||||
this.show = true
|
||||
@@ -228,9 +251,9 @@ export default {
|
||||
extra: {
|
||||
url: location.origin + `/#/insureAgain`,
|
||||
forbidSwipeBack: '1',
|
||||
needRefresh: '1',
|
||||
needRefresh: '1'
|
||||
},
|
||||
routerInfo: { path: `/insureAgain` },
|
||||
routerInfo: { path: `/insureAgain` }
|
||||
})
|
||||
},
|
||||
readAgreement() {
|
||||
@@ -238,7 +261,7 @@ export default {
|
||||
this.isRead = true
|
||||
setTimeout(() => {
|
||||
window.EWebBridge.webCallAppInJs('webview_left_button', {
|
||||
intercept: '1', //是否拦截原生返回事件 1是 其他否
|
||||
intercept: '1' //是否拦截原生返回事件 1是 其他否
|
||||
})
|
||||
}, 100)
|
||||
},
|
||||
@@ -247,7 +270,7 @@ export default {
|
||||
Dialog.alert({
|
||||
title: '提示',
|
||||
message: '亲,请您阅读和确认特别约定哦~',
|
||||
confirmButtonColor: '#ff0000',
|
||||
confirmButtonColor: '#ff0000'
|
||||
})
|
||||
} else {
|
||||
this.commitReOrder()
|
||||
@@ -281,11 +304,11 @@ export default {
|
||||
insuredDTOs: [this.insuredDTOs],
|
||||
orderInfoDTO: {
|
||||
orderNo: CacheUtils.getLocItem('orderNo'),
|
||||
supportBank: '0',
|
||||
supportBank: '0'
|
||||
},
|
||||
orderAccountDTO: this.orderAccountDTO,
|
||||
orderAccountDTO: this.orderAccountDTO
|
||||
},
|
||||
orderType: 'RE_RISK_ORDER',
|
||||
orderType: 'RE_RISK_ORDER'
|
||||
}
|
||||
|
||||
commitReOrder(data).then((res) => {
|
||||
@@ -293,16 +316,16 @@ export default {
|
||||
this.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
url: location.origin + `/#/insureAgain/Notification`,
|
||||
url: location.origin + `/#/insureAgain/Notification`
|
||||
},
|
||||
routerInfo: {
|
||||
path: `/insureAgain/Notification`,
|
||||
},
|
||||
path: `/insureAgain/Notification`
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -101,10 +101,10 @@ export default {
|
||||
this.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
url: location.origin + '/#/insureAgain/index'
|
||||
url: location.origin + '/#/insureAgain'
|
||||
},
|
||||
routerInfo: {
|
||||
path: '/insureAgain/index'
|
||||
path: '/insureAgain'
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
@@ -135,7 +135,7 @@
|
||||
<p class="mb20">
|
||||
<span class="text">{{ item.documentName }}</span>
|
||||
<img :src="src" v-if="(item.documentCode == '1' || item.documentCode == '8') && item.documentStatus == '1'" />
|
||||
<img :src="src" v-if="(item.documentCode == '1' || item.documentCode == '8') && item.documentStatus == '3'" />
|
||||
<img :src="src" v-if="!(item.documentCode == '1' || item.documentCode == '8') && item.documentStatus == '3'" />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -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.orderStatus === '02' || item.orderStatus === '05' || item.orderStatus === '06' || item.orderStatus === '08' || item.orderStatus === '38' || item.orderStatus === '39' || item.orderStatus === '40' ) {
|
||||
// NewItems.push(item)
|
||||
// }
|
||||
// } else if(this.active === 'commit' && item.reInsuranceFlag === '3' && (item.reInsuranceState === '1' || item.reInsuranceState === '2' || item.reInsuranceState === '3')){
|
||||
// if (item.orderStatus === '07' || item.orderStatus === '19' || item.orderStatus === '55') {
|
||||
// NewItems.push(item)
|
||||
// }
|
||||
// }
|
||||
if (this.active === 'uncommit' && item.reInsuranceFlag === '3' && item.reInsuranceState === '0') {
|
||||
// if (item.orderStatus === '02' || item.orderStatus === '05' || item.orderStatus === '06' || item.orderStatus === '08' || item.orderStatus === '38' || item.orderStatus === '39' || item.orderStatus === '40' ) {
|
||||
NewItems.push(item)
|
||||
// }
|
||||
} else if(this.active === 'commit' && item.reInsuranceFlag === '3' && (item.reInsuranceState === '1' || item.reInsuranceState === '2' || item.reInsuranceState === '3')){
|
||||
if (item.orderStatus === '07' || item.orderStatus === '19' || item.orderStatus === '55') {
|
||||
NewItems.push(item)
|
||||
}
|
||||
}
|
||||
|
||||
NewItems.push(item)
|
||||
// NewItems.push(item)
|
||||
}
|
||||
})
|
||||
console.log(NewItems, '======================NewItems===================')
|
||||
|
||||
Reference in New Issue
Block a user