diff --git a/src/views/ebiz/insureAgain/InsureInformation.vue b/src/views/ebiz/insureAgain/InsureInformation.vue index 654518e97..78cdafd3e 100644 --- a/src/views/ebiz/insureAgain/InsureInformation.vue +++ b/src/views/ebiz/insureAgain/InsureInformation.vue @@ -266,7 +266,7 @@ export default { this.accountPersonInfo.bankName = item.text } }) - this.insuredPersonInfo.homeAddress = '汉字汉字汉字汉字123123' + // this.insuredPersonInfo.homeAddress = '汉字汉字汉字汉字123123' }, setCustomerMarriage(marriageCode) { diff --git a/src/views/ebiz/insureAgain/ProductInformation.vue b/src/views/ebiz/insureAgain/ProductInformation.vue index 2952a6975..51d7732a7 100644 --- a/src/views/ebiz/insureAgain/ProductInformation.vue +++ b/src/views/ebiz/insureAgain/ProductInformation.vue @@ -25,7 +25,7 @@ - {{ item.prem }}元 + {{ item.prem }} @@ -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` + } }) } }) - }, - }, + } + } } diff --git a/src/views/ebiz/insureAgain/Result.vue b/src/views/ebiz/insureAgain/Result.vue index e745f65aa..c933d14f1 100644 --- a/src/views/ebiz/insureAgain/Result.vue +++ b/src/views/ebiz/insureAgain/Result.vue @@ -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' } }) }, diff --git a/src/views/ebiz/insureAgain/SignatureConfirmation.vue b/src/views/ebiz/insureAgain/SignatureConfirmation.vue index f1fa6bb1c..d92f64b08 100644 --- a/src/views/ebiz/insureAgain/SignatureConfirmation.vue +++ b/src/views/ebiz/insureAgain/SignatureConfirmation.vue @@ -135,7 +135,7 @@

{{ item.documentName }} - +

diff --git a/src/views/ebiz/insureAgain/index.vue b/src/views/ebiz/insureAgain/index.vue index 0f0c47a86..11668cb17 100644 --- a/src/views/ebiz/insureAgain/index.vue +++ b/src/views/ebiz/insureAgain/index.vue @@ -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===================')