diff --git a/src/views/ebiz/sale/AccountInformation.vue b/src/views/ebiz/sale/AccountInformation.vue index 5f3eeda77..309fbfc5f 100644 --- a/src/views/ebiz/sale/AccountInformation.vue +++ b/src/views/ebiz/sale/AccountInformation.vue @@ -160,7 +160,8 @@ export default { changeCard: localStorage.changeCard, age: null, productNo: null, - salePageFlag: '6' + salePageFlag: '6', + appntDTO: null } }, methods: { @@ -286,13 +287,25 @@ export default { this.$toast('本产品年龄大于65岁不能投保') return } - let data = { - "account": this.bankId, - "idNo": this.saleInsuredInfo.idNo, - "idType": this.saleInsuredInfo.idType, - "mobile": this.saleInsuredInfo.mobile, - "name": this.saleInsuredInfo.name + let data + if(this.saleInsuredInfo.idNo){ + data = { + "account": this.bankId, + "idNo": this.saleInsuredInfo.idNo, + "idType": this.saleInsuredInfo.idType, + "mobile": this.saleInsuredInfo.mobile, + "name": this.saleInsuredInfo.name + } + }else { + data = { + "account": this.bankId, + "idNo": this.appntDTO.idNo, + "idType": this.appntDTO.idType, + "mobile": this.appntDTO.mobile, + "name": this.appntDTO.name + } } + this.$toast.loading({ duration: 0, // 持续展示 toast forbidClick: true, // 禁用背景点击 @@ -453,6 +466,9 @@ export default { getOrderDetail({ orderNo: localStorage.orderNo }).then(res => { console.log(res) if (res.result == 0) { + + this.appntDTO = res.orderDTO.appntDTO + //如果是从编辑进来的 if (this.$route.query.edit) { //投被保险人关系