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