diff --git a/src/views/ebiz/insureAgain/InsureInformation.vue b/src/views/ebiz/insureAgain/InsureInformation.vue index ea16b4512..8472e0e19 100644 --- a/src/views/ebiz/insureAgain/InsureInformation.vue +++ b/src/views/ebiz/insureAgain/InsureInformation.vue @@ -120,6 +120,7 @@ import InfoCell from '@/components/ebiz/insureAgain/InfoCell' import { commitReOrder, getReAppntPolicy } from '@/api/ebiz/insureAgain/insureAgain' import { getOrderDetail, insureAgain } from '@/api/ebiz/insureAgain/insureAgain' import DataDictionary from '@/assets/js/utils/data-dictionary' +import dataDic from '@/views/ebiz/preserve/js/data-dictionary.js' import SelectRadio from '@/components/ebiz/SelectRadio' import getAreaName from '@/assets/js/utils/getAreaNameForSale' import areaLists from '@/assets/js/utils/areaNewForSale' @@ -292,7 +293,7 @@ export default { "birthday": "1980-01-02", "bnfLot": 50, "bnfOrder": 1, - "bnfType": "0 1-是法定;0-不是法定", + "bnfType": "1", "certiexpiredate": "2035-03-31", "city": "450100", "effectiveDateType": "false", @@ -317,7 +318,7 @@ export default { "birthday": "1983-03-12", "bnfLot": 50, "bnfOrder": 1, - "bnfType": "0 1-是法定;0-不是法定", + "bnfType": "1", "certiexpiredate": "2035-03-31", "city": "450100", "effectiveDateType": "false", @@ -394,10 +395,10 @@ export default { "cardBookCode": "4354256325325678790" }, "orderInfoDTO": { - "contNo": "保单号", - "contState": "保单状态 1-承保;4-终止;0-投保中", - "cValiDate": "生效日期 String", - "orderStatus": "签收状态 0-未签收 1-已签收" + "contNo": "234234234232334", + "contState": "1", + "cValiDate": "12", + "orderStatus": "0" } } }` @@ -417,6 +418,7 @@ export default { // 被投保人信息 this.insuredPersonInfo = res.orderDTO.insuredDTOs[0] + this.insuredPersonInfo.relationToAppnt = this.insuredPersonInfo.relationToMainInsured if (this.insuredPersonInfo.homeProvince.length) { this.insuredHomeName = getAreaName([ { code: this.insuredPersonInfo.homeProvince }, @@ -437,6 +439,12 @@ export default { } // 账户信息 this.accountPersonInfo = res.orderDTO.orderAccountDTO + this.accountPersonInfo.bankCode = this.accountPersonInfo.bankName + dataDic['edorBankType'].some(item => { + if (item.id == this.accountPersonInfo.bankName) { + this.accountPersonInfo.bankName = item.text + } + }) } }) }, @@ -671,17 +679,18 @@ export default { return this.$toast(this.$validator.errors.all()[0]) } }, - async save() { + async save() { let params = { orderType: 'RE_APPNT_ORDER', orderDTO: { orderInfoDTO: { - orderNo: localStorage.orderNo, + orderNo: '', + oldPolicyContNo: CacheUtils.getLocItem('policyNo'), isElecCont: this.isElecCont, supportBank: '0' }, appntDTO: this.userInfo, - insuredDTOs: this.insuredPersonInfo, + insuredDTOs: [this.insuredPersonInfo], orderAccountDTO: this.accountPersonInfo } } diff --git a/src/views/ebiz/insureAgain/index.vue b/src/views/ebiz/insureAgain/index.vue index d84b63fb0..130862bf3 100644 --- a/src/views/ebiz/insureAgain/index.vue +++ b/src/views/ebiz/insureAgain/index.vue @@ -106,26 +106,30 @@ export default { computed:{ NewItems() { var NewItems = [] - let item1 = ['1','4','0']; - let item2 = ['19','38','39','40']; - let item3 = ['1','2','3']; - let item4 = ['0','1','2','3','4']; + // let item1 = ['1','4','0']; + // let item2 = ['19','38','39','40']; + // let item3 = ['1','2','3']; + // let item4 = ['0','1','2','3','4']; this.policyListDTOList.map(item => { if (item.riskName.search(this.searchName) != -1 || item.policyNo.search(this.searchName) != -1 || item.appntName.search(this.searchName) != -1) { - item.policyNo = '23424333333331'; - item.orderStatus = item1[Math.floor(Math.random()*item1.length)]; - item.newOrderNo = '32422222222222234'; - item.newOrderStatus = item2[Math.floor(Math.random()*item2.length)]; - item.reInsuranceFlag = '3'; - item.reInsuranceState = item4[Math.floor(Math.random()*item4.length)]; + // item.policyNo = '23424333333331'; + // item.orderStatus = item1[Math.floor(Math.random()*item1.length)]; + // item.newOrderNo = '32422222222222234'; + // item.newOrderStatus = item2[Math.floor(Math.random()*item2.length)]; + // item.reInsuranceFlag = '3'; + // item.reInsuranceState = item4[Math.floor(Math.random()*item4.length)]; - if (this.active === 'uncommit' && item.reInsuranceFlag === '3' && item.reInsuranceState === '0') { - NewItems.push(item) - } else if(this.active === 'commit' && item.reInsuranceFlag === '3' && (item.reInsuranceState === '1' || item.reInsuranceState === '2' || item.reInsuranceState === '3')){ - 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===================') @@ -199,6 +203,7 @@ export default { }) }, commitInsureDetail(order) { + CacheUtils.setLocItem('policyNo', order.policyNo) this.$jump({ flag: 'h5', extra: {