diff --git a/src/views/ebiz/sale/SignatureConfirmation.vue b/src/views/ebiz/sale/SignatureConfirmation.vue index 0c9d14212..83066e625 100644 --- a/src/views/ebiz/sale/SignatureConfirmation.vue +++ b/src/views/ebiz/sale/SignatureConfirmation.vue @@ -1573,7 +1573,8 @@ export default { }, //自定义key值排序用 addKey(item) { - //ducumentCode 1投保须知 2投保单 3产品说明书 4提示书 6免除保险人责任条款说明书 7保险销售行为双录说明 8指定保单生效日 9短期险投保须知 10国富人寿自保件承诺书 + //ducumentCode 1投保须知 2投保单 3产品说明书 4提示书 6免除保险人责任条款说明书 7保险销售行为双录说明 + // 8指定保单生效日 9短期险投保须知 10国富人寿自保件承诺书 11柳州保险行业寿险投保风险提示书 if (item.documentCode == '1') { item.key = 2 item.routePath = 'insuranceInformation' @@ -1606,7 +1607,7 @@ export default { item.routePath = 'InsuranceRiskReminder' } else if (item.documentCode == '12') { item.key = 10 - item.routePath = 'InsuranceRiskReminder' + item.routePath = 'PersonalInformation' } }, getSignInvalid() { diff --git a/src/views/ebiz/sale/SignatureOfElectronic.vue b/src/views/ebiz/sale/SignatureOfElectronic.vue index 622b0160e..29b340d0e 100644 --- a/src/views/ebiz/sale/SignatureOfElectronic.vue +++ b/src/views/ebiz/sale/SignatureOfElectronic.vue @@ -91,7 +91,7 @@ 提交
- 完成 + 下一步
@@ -169,7 +169,8 @@ export default { // // 产品编码 // chooseProductCodes: '', // pdf名字 - pdfName: '' + pdfName: '', + isPersonalInformation:'' // 0是 1否 } }, components: { @@ -294,6 +295,11 @@ export default { getOrderDetail(data).then(res => { if (res.result == '0') { res.orderDTO.ebizSignDTOS.map(item => { + if (item.documentCode == '12') { + this.isPersonalInformation = 0 // 0代表有code12 + } else{ + this.isPersonalInformation = 1 // 1代表无code12 + } if (item.documentCode == '2') { this.pdfUrl = encodeURIComponent(config.imgDomain + `/returnDirectStream?imgPath=${item.policyUrl}`) this.pdfName = item.documentName @@ -433,44 +439,68 @@ export default { window.localStorage.setItem('jumpFromSign', '1') if (this.isWeixin) { localStorage.removeItem('signInfo') - this.$jump({ - flag: 'h5', - extra: { - url: location.origin + '/#/sale/PersonalInformation', - pullRefresh: '1', - backToFirst: '1' - }, - routerInfo: { - path: - '/sale/PersonalInformation?orderNo=' + - localStorage.orderNo + - '&token=' + - localStorage.token + - '&saleInsuredInfo=' + - this.$CacheUtils.getLocItem('saleInsuredInfo') + - '&saleInsuredPersonInfo=' + - this.$CacheUtils.getLocItem('saleInsuredPersonInfo') + - '&relationToAppnt=' + - JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).relationToAppnt + - '&attachmentShow=' + - window.localStorage.getItem('attachmentShow') + - '&signInvalid=' + - sessionStorage.getItem('signInvalid') + - '&airSign=1' - } - }) + if(this.isPersonalInformation == '0'){ + this.$jump({ + flag: 'h5', + extra: { + url: location.origin + '/#/sale/PersonalInformation', + pullRefresh: '1', + backToFirst: '1' + }, + routerInfo: { + path: + '/sale/PersonalInformation?orderNo=' + + localStorage.orderNo + + '&token=' + + localStorage.token + + '&saleInsuredInfo=' + + this.$CacheUtils.getLocItem('saleInsuredInfo') + + '&saleInsuredPersonInfo=' + + this.$CacheUtils.getLocItem('saleInsuredPersonInfo') + + '&relationToAppnt=' + + JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).relationToAppnt + + '&attachmentShow=' + + window.localStorage.getItem('attachmentShow') + + '&signInvalid=' + + sessionStorage.getItem('signInvalid') + + '&airSign=1' + } + }) + }else{ + this.$jump({ + flag: 'h5', + extra: { + url: location.origin + '/#/sale/signatureConfirmation' + }, + routerInfo: { + path: '/sale/signatureConfirmation' + } + }) + } } else { - this.$jump({ - flag: 'h5', - extra: { - url: location.origin + '/#/sale/PersonalInformation', - pullRefresh: '1', - backToFirst: '1' - }, - routerInfo: { - path: '/sale/PersonalInformation' - } - }) + if(this.isPersonalInformation == '0'){ + this.$jump({ + flag: 'h5', + extra: { + url: location.origin + '/#/sale/PersonalInformation', + pullRefresh: '1', + backToFirst: '1' + }, + routerInfo: { + path: '/sale/PersonalInformation' + } + }) + }else{ + this.$jump({ + flag: 'h5', + extra: { + url: location.origin + '/#/sale/signatureConfirmation' + }, + routerInfo: { + path: '/sale/signatureConfirmation' + } + }) + } } } else { that.$toast(res.resultMessage) @@ -504,44 +534,68 @@ export default { window.localStorage.setItem('jumpFromSign', '1') if (this.isWeixin) { localStorage.removeItem('signInfo') - this.$jump({ - flag: 'h5', - extra: { - url: location.origin + '/#/sale/PersonalInformation', - pullRefresh: '1', - backToFirst: '1' - }, - routerInfo: { - path: - '/sale/PersonalInformation?orderNo=' + - localStorage.orderNo + - '&token=' + - localStorage.token + - '&saleInsuredInfo=' + - this.$CacheUtils.getLocItem('saleInsuredInfo') + - '&saleInsuredPersonInfo=' + - this.$CacheUtils.getLocItem('saleInsuredPersonInfo') + - '&relationToAppnt=' + - JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).relationToAppnt + - '&attachmentShow=' + - window.localStorage.getItem('attachmentShow') + - '&signInvalid=' + - sessionStorage.getItem('signInvalid') + - '&airSign=1' - } - }) + if(this.isPersonalInformation == '0'){ + this.$jump({ + flag: 'h5', + extra: { + url: location.origin + '/#/sale/PersonalInformation', + pullRefresh: '1', + backToFirst: '1' + }, + routerInfo: { + path: + '/sale/PersonalInformation?orderNo=' + + localStorage.orderNo + + '&token=' + + localStorage.token + + '&saleInsuredInfo=' + + this.$CacheUtils.getLocItem('saleInsuredInfo') + + '&saleInsuredPersonInfo=' + + this.$CacheUtils.getLocItem('saleInsuredPersonInfo') + + '&relationToAppnt=' + + JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).relationToAppnt + + '&attachmentShow=' + + window.localStorage.getItem('attachmentShow') + + '&signInvalid=' + + sessionStorage.getItem('signInvalid') + + '&airSign=1' + } + }) + }else{ + this.$jump({ + flag: 'h5', + extra: { + url: location.origin + '/#/sale/signatureConfirmation' + }, + routerInfo: { + path: '/sale/signatureConfirmation' + } + }) + } } else { - this.$jump({ - flag: 'h5', - extra: { - url: location.origin + '/#/sale/PersonalInformation', - pullRefresh: '1', - backToFirst: '1' - }, - routerInfo: { - path: '/sale/PersonalInformation' - } - }) + if(this.isPersonalInformation == '0'){ + this.$jump({ + flag: 'h5', + extra: { + url: location.origin + '/#/sale/PersonalInformation', + pullRefresh: '1', + backToFirst: '1' + }, + routerInfo: { + path: '/sale/PersonalInformation' + } + }) + }else{ + this.$jump({ + flag: 'h5', + extra: { + url: location.origin + '/#/sale/signatureConfirmation' + }, + routerInfo: { + path: '/sale/signatureConfirmation' + } + }) + } } } else { that.$toast(res.resultMessage)