From 7054c35de0584470fc09a6e01499fee8a6dd0996 Mon Sep 17 00:00:00 2001 From: "zhang.weiwei" <578974917@qq.com> Date: Thu, 6 Feb 2025 11:54:29 +0800 Subject: [PATCH] =?UTF-8?q?feat-=E8=B0=83=E7=94=A8=E4=BA=BA=E8=84=B8?= =?UTF-8?q?=E8=AF=86=E5=88=AB=E6=8F=92=E4=BB=B6=E6=96=B0=E5=A2=9E=20orderN?= =?UTF-8?q?o=20=E5=85=A5=E5=8F=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 +- src/views/ebiz/agentEenter/SignContract.vue | 39 +- .../SignatureConfirmation.vue | 117 +-- .../ebiz/claims/SignatureConfirmation.vue | 23 +- .../insureAgain/SignatureConfirmation.vue | 109 +-- src/views/ebiz/insureAgain/index.vue | 234 ++--- .../ebiz/preserve/common/HandleResult.vue | 11 +- src/views/ebiz/renewalManage/policyDetail.vue | 21 +- .../ebiz/renewalManage/shortPolicyDetail.vue | 21 +- src/views/ebiz/sale/SignatureConfirmation.vue | 851 ++++++++++-------- .../ebiz/sale/SignatureConfirmationOld.vue | 48 +- 11 files changed, 809 insertions(+), 668 deletions(-) diff --git a/.gitignore b/.gitignore index d251397c1..cb3e9eed5 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ dist .eslintrc.js .prettierrc -.idea \ No newline at end of file +.idea +.history \ No newline at end of file diff --git a/src/views/ebiz/agentEenter/SignContract.vue b/src/views/ebiz/agentEenter/SignContract.vue index 5a88e23bd..afe1cf29d 100644 --- a/src/views/ebiz/agentEenter/SignContract.vue +++ b/src/views/ebiz/agentEenter/SignContract.vue @@ -34,14 +34,12 @@ 点击【开始】按钮,进行相关操作
温馨提示:请尽量使用正楷文字进行签名
- 开始 + 开始
-

- 以下内容需要您按照顺序阅读并签字确认: -

+

以下内容需要您按照顺序阅读并签字确认:

需签署: 点击【开始】或【分享】,进行相关操作
温馨提示:请尽量使用正楷文字进行签名
-
- 分享 - 开始 +
+ 分享 + 开始
操作时间已失效,请联系销售人员!
@@ -238,8 +236,8 @@ export default { loadingType: 'spinner', message: '加载中……' }) - return new Promise(resolve => { - agreementQuery(data).then(res => { + return new Promise((resolve) => { + agreementQuery(data).then((res) => { if (res.result == '0') { this.$toast.clear() this.agentInfo = res.content.ebizEnterCustomerDto @@ -251,10 +249,10 @@ export default { this.agentInfo.createdDate = this.agentInfo.createdDate.substring(0, 10) this.agentSignList = filtSignList(this, this.signList).agentSignList this.guaranteeSignList = filtSignList(this, this.signList).guaranteeSignList - this.isAgentSubmit = this.agentSignList.every(item => { + this.isAgentSubmit = this.agentSignList.every((item) => { return item.signState == '1' }) - this.isguranteeSubmit = this.guaranteeSignList.every(item => { + this.isguranteeSubmit = this.guaranteeSignList.every((item) => { return item.signState == '1' }) resolve() @@ -285,7 +283,7 @@ export default { message: '加载中……' }) let data = {} - getSignInvalid(data).then(res => { + getSignInvalid(data).then((res) => { if (res.result == '0') { this.$toast.clear() this.signInvalid = res.content.sign @@ -321,8 +319,8 @@ export default { let data = { sign: signInvalid } - return new Promise(resolve => { - checkSignInvalid(data).then(res => { + return new Promise((resolve) => { + checkSignInvalid(data).then((res) => { if (res.result == '0') { that.$toast.clear() let status = res.content.status @@ -338,7 +336,7 @@ export default { if (code == '0') { if (this.agentInfo.idType == '1') { - this.goUrl(code) + this.goUrl(code) // 人脸识别次数小于3次 this.$toast.loading({ duration: 0, // 持续展示 toast @@ -366,7 +364,8 @@ export default { const authRes = await EWebBridge.webCallAppInJs('face_auth', { businessSource: '2', //业务来源:1-电投,2-入司,3-理赔,4-保全 number: this.agentInfo.idNo, //身份证号码 - name: this.agentInfo.name //姓名 + name: this.agentInfo.name, //姓名 + orderNo: this.$CacheUtils.getLocItem('orderNo') //订单号 }) // const authRes = await this.fakeFaceAuth(true) console.log(authRes) @@ -395,7 +394,7 @@ export default { }, fakeFaceAuth(expect) { console.log('模拟调用人脸识别') - return new Promise(function(resolve, reject) { + return new Promise(function (resolve, reject) { setTimeout(() => { console.log('模拟人脸识别完成') if (expect) { @@ -409,11 +408,11 @@ export default { goUrl(code) { let path = '' if (code == '0') { - path = this.agentSignList.filter(v => { + path = this.agentSignList.filter((v) => { return v.signState == '0' })[0].path } else if (code == '1') { - path = this.guaranteeSignList.filter(v => { + path = this.guaranteeSignList.filter((v) => { return v.signState == '0' })[0].path } @@ -437,7 +436,7 @@ export default { loadingType: 'spinner', message: '加载中……' }) - signAgreement(data).then(res => { + signAgreement(data).then((res) => { console.log(res) if (res.result == '0') { this.$toast.clear() diff --git a/src/views/ebiz/allowance/application/SignatureConfirmation/SignatureConfirmation.vue b/src/views/ebiz/allowance/application/SignatureConfirmation/SignatureConfirmation.vue index 7ad49cb71..0a5b807c2 100644 --- a/src/views/ebiz/allowance/application/SignatureConfirmation/SignatureConfirmation.vue +++ b/src/views/ebiz/allowance/application/SignatureConfirmation/SignatureConfirmation.vue @@ -1,27 +1,24 @@ - - diff --git a/src/views/ebiz/preserve/common/HandleResult.vue b/src/views/ebiz/preserve/common/HandleResult.vue index 2b7752221..f25e55aa4 100644 --- a/src/views/ebiz/preserve/common/HandleResult.vue +++ b/src/views/ebiz/preserve/common/HandleResult.vue @@ -177,7 +177,8 @@ export default { this.toFace({ number: this.customerInfo.idNo, //身份证号码 name: this.customerInfo.customerName, //姓名 - businessSource: '4' //业务来源:1-电投,2-入司,3-理赔,4-保全 + businessSource: '4', //业务来源:1-电投,2-入司,3-理赔,4-保全 + orderNo: this.$CacheUtils.getLocItem('orderNo') //订单号 }) } } else if (this.entry == 'BC') { @@ -193,7 +194,8 @@ export default { this.toFace({ number: this.policy.insuredInfo.idNo, //身份证号码 name: this.policy.insuredInfo.insuredName, //姓名 - businessSource: '4' //业务来源:1-电投,2-入司,3-理赔,4-保全 + businessSource: '4', //业务来源:1-电投,2-入司,3-理赔,4-保全 + orderNo: this.$CacheUtils.getLocItem('orderNo') //订单号 }) } } else { @@ -204,7 +206,8 @@ export default { this.toFace({ number: this.policy.appntInfo.idNo, //身份证号码 name: this.policy.appntInfo.appntName, //姓名 - businessSource: '4' //业务来源:1-电投,2-入司,3-理赔,4-保全 + businessSource: '4', //业务来源:1-电投,2-入司,3-理赔,4-保全 + orderNo: this.$CacheUtils.getLocItem('orderNo') //订单号 }) } } @@ -244,7 +247,7 @@ export default { // console.log('--跳过人脸识别--返回识别成功') // resolve(JSON.stringify({ state: '0' })) // }) - .then(data => { + .then((data) => { if (JSON.parse(data).state == '1') { this.jumpNextPage(this.path) } else { diff --git a/src/views/ebiz/renewalManage/policyDetail.vue b/src/views/ebiz/renewalManage/policyDetail.vue index ba2415ac5..c63a4e664 100644 --- a/src/views/ebiz/renewalManage/policyDetail.vue +++ b/src/views/ebiz/renewalManage/policyDetail.vue @@ -180,7 +180,7 @@ export default { operateCode: this.customerMobile, system: 'agentApp', operateCodeType: '0' - }).then(res => { + }).then((res) => { console.log(res) if (res.result == 0) { this.sid = res.sessionId @@ -238,7 +238,7 @@ export default { this.authCode = null // eslint-disable-next-line no-unused-vars return new Promise((resolve, reject) => { - checkPhone(data).then(res => { + checkPhone(data).then((res) => { if (res.result == '0') { console.log(res) this.show = true @@ -260,7 +260,7 @@ export default { // policyNo: '809920190000597308' } - getPolicyDetail(data).then(res => { + getPolicyDetail(data).then((res) => { if (res.result == '0') { let appntDTO = res.content.appntDTO let orderInfoDTO = res.content.orderInfoDTO @@ -282,8 +282,8 @@ export default { that.appntDTO = appntDTO this.$CacheUtils.setLocItem('saleInsuredInfo', JSON.stringify(appntDTO)) // 被保险人信息 - res.content.insuredDTOs.map(insured => { - insured.riskDTOLst.map(risk => { + res.content.insuredDTOs.map((insured) => { + insured.riskDTOLst.map((risk) => { Number(risk.payIntv) switch (risk.payIntv) { case -1: @@ -320,7 +320,7 @@ export default { this.filterData(dataDictionary.sex, 'sex', insured) this.filterData(dataDictionary.idType, 'idType', insured) this.filterData(dataDictionary.relationToAppnt, 'relation', insured) - insured.bnfDTOs.map(bnf => { + insured.bnfDTOs.map((bnf) => { this.filterData(dataDictionary.bnfType, 'bnfType', bnf) this.filterData(dataDictionary.sex, 'sex', bnf) this.filterData(dataDictionary.idType, 'idType', bnf) @@ -337,7 +337,7 @@ export default { }, //根据数据字典 将后端返回的数据渲染到页面中 filterData(dictionary, key, pageData) { - dictionary.forEach(item => { + dictionary.forEach((item) => { if (pageData[key] == item.id) { pageData[key + 'Text'] = item.text //渲染页面使用的字段 } @@ -351,8 +351,9 @@ export default { //证件类型为身份证时,进行人脸识别 EWebBridge.webCallAppInJs('face_auth', { number: this.appntDTO.idNo, //身份证号码 - name: this.appntDTO.name //姓名 - }).then(data => { + name: this.appntDTO.name, //姓名 + orderNo: this.$CacheUtils.getLocItem('orderNo') //订单号 + }).then((data) => { this.$toast.loading({ duration: 0, // 持续展示 toast forbidClick: true, // 禁用背景点击 @@ -380,7 +381,7 @@ export default { let params = { contNo: window.localStorage.getItem('policyNo') } - getReceiptSign(params).then(res => { + getReceiptSign(params).then((res) => { if (res.result == '0') { this.$toast.clear() window.localStorage.setItem('insurance-policyUrl', res.signUrl) diff --git a/src/views/ebiz/renewalManage/shortPolicyDetail.vue b/src/views/ebiz/renewalManage/shortPolicyDetail.vue index 6944f4f3f..31b61b082 100644 --- a/src/views/ebiz/renewalManage/shortPolicyDetail.vue +++ b/src/views/ebiz/renewalManage/shortPolicyDetail.vue @@ -179,7 +179,7 @@ export default { operateCode: this.customerMobile, system: 'agentApp', operateCodeType: '0' - }).then(res => { + }).then((res) => { console.log(res) if (res.result == 0) { this.sid = res.sessionId @@ -237,7 +237,7 @@ export default { this.authCode = null // eslint-disable-next-line no-unused-vars return new Promise((resolve, reject) => { - checkPhone(data).then(res => { + checkPhone(data).then((res) => { if (res.result == '0') { console.log(res) this.show = true @@ -259,7 +259,7 @@ export default { // policyNo: '809920190000597308' } - getPolicyDetail(data).then(res => { + getPolicyDetail(data).then((res) => { if (res.result == '0') { let appntDTO = res.content.appntDTO let orderInfoDTO = res.content.orderInfoDTO @@ -281,8 +281,8 @@ export default { that.appntDTO = appntDTO this.$CacheUtils.setLocItem('saleInsuredInfo', JSON.stringify(appntDTO)) // 被保险人信息 - res.content.insuredDTOs.map(insured => { - insured.riskDTOLst.map(risk => { + res.content.insuredDTOs.map((insured) => { + insured.riskDTOLst.map((risk) => { Number(risk.payIntv) switch (risk.payIntv) { case -1: @@ -319,7 +319,7 @@ export default { this.filterData(dataDictionary.sex, 'sex', insured) this.filterData(dataDictionary.idType, 'idType', insured) this.filterData(dataDictionary.relationToAppnt, 'relation', insured) - insured.bnfDTOs.map(bnf => { + insured.bnfDTOs.map((bnf) => { this.filterData(dataDictionary.bnfType, 'bnfType', bnf) this.filterData(dataDictionary.sex, 'sex', bnf) this.filterData(dataDictionary.idType, 'idType', bnf) @@ -336,7 +336,7 @@ export default { }, //根据数据字典 将后端返回的数据渲染到页面中 filterData(dictionary, key, pageData) { - dictionary.forEach(item => { + dictionary.forEach((item) => { if (pageData[key] == item.id) { pageData[key + 'Text'] = item.text //渲染页面使用的字段 } @@ -350,8 +350,9 @@ export default { //证件类型为身份证时,进行人脸识别 EWebBridge.webCallAppInJs('face_auth', { number: this.appntDTO.idNo, //身份证号码 - name: this.appntDTO.name //姓名 - }).then(data => { + name: this.appntDTO.name, //姓名 + orderNo: this.$CacheUtils.getLocItem('orderNo') //订单号 + }).then((data) => { this.$toast.loading({ duration: 0, // 持续展示 toast forbidClick: true, // 禁用背景点击 @@ -379,7 +380,7 @@ export default { let params = { contNo: window.localStorage.getItem('policyNo') } - getReceiptSign(params).then(res => { + getReceiptSign(params).then((res) => { if (res.result == '0') { this.$toast.clear() window.localStorage.setItem('insurance-policyUrl', res.signUrl) diff --git a/src/views/ebiz/sale/SignatureConfirmation.vue b/src/views/ebiz/sale/SignatureConfirmation.vue index 791b9e950..8d5a20bb1 100644 --- a/src/views/ebiz/sale/SignatureConfirmation.vue +++ b/src/views/ebiz/sale/SignatureConfirmation.vue @@ -17,10 +17,10 @@ -
- - -
+
+ + +
@@ -34,43 +34,65 @@ 代理人 {{ recmd.name }}
-

以下内容需要您按照顺序阅读并签字确认:

+

以下内容需要您按照顺序阅读并签字确认:

-

- 需阅读 - - - 已阅读 - 签署完成 +

+ 需阅读 + + + 已阅读 + 签署完成

- {{ agentSign.documentName }} + {{ agentSign.documentName }}

-

- {{ item.documentCode == '1' || item.documentCode == '3' || item.documentCode == '8' || item.documentCode == '9' || item.documentCode == '12' || item.documentCode == '13' || item.documentCode == '14' ? '需阅读' : '需阅读并签署' }} - - - 已阅读 - 签署完成 +

+ {{ + item.documentCode == '1' || + item.documentCode == '3' || + item.documentCode == '8' || + item.documentCode == '9' || + item.documentCode == '12' || + item.documentCode == '13' || + item.documentCode == '14' + ? '需阅读' + : '需阅读并签署' + }} + + + 已阅读 + 签署完成

-

- {{ item.documentName }} +

+ {{ item.documentName }}

-

- 代理人签名: - +

+ 代理人签名: +

-

点击【立即阅读签名】按钮,进行相关操作

+

点击【立即阅读签名】按钮,进行相关操作

- - {{agentSignStatus == '3' ? '面对面重签' : '立即阅读签名'}} + + {{ agentSignStatus == '3' ? '面对面重签' : '立即阅读签名' }}
操作时间已失效,请联系销售人员!
@@ -83,50 +105,81 @@ 投保人 {{ appnt.name }} -

以下内容需要您按照顺序阅读并签字确认:

+

以下内容需要您按照顺序阅读并签字确认:

-

- 需阅读 - - - 已阅读 +

+ 需阅读 + + + 已阅读

-

- {{ item.documentName }} +

+ {{ item.documentName }}

-

- {{ item.documentCode == '1' || item.documentCode == '3' || item.documentCode == '8' || item.documentCode == '9' || item.documentCode == '12' || item.documentCode == '13' || item.documentCode == '14' ? '需阅读' : '需阅读并签署' }} - - - 已阅读 - 签署完成 +

+ {{ + item.documentCode == '1' || + item.documentCode == '3' || + item.documentCode == '8' || + item.documentCode == '9' || + item.documentCode == '12' || + item.documentCode == '13' || + item.documentCode == '14' + ? '需阅读' + : '需阅读并签署' + }} + + + 已阅读 + 签署完成

-

- {{ item.documentName }} +

+ {{ item.documentName }}

-

- 投保人签名: - +

+ 投保人签名: +

-

点击【分享签名】、【立即阅读签名】按钮,进行相关操作

-

点击【分享重签】、【面对面重签】按钮,进行相关操作

+

点击【分享签名】、【立即阅读签名】按钮,进行相关操作

+

点击【分享重签】、【面对面重签】按钮,进行相关操作

- - {{appntSignStatus == '3' ? '分享重签' : '分享签名'}} + + {{ appntSignStatus == '3' ? '分享重签' : '分享签名' }} - - {{appntSignStatus == '3' ? '面对面重签' : '立即阅读签名'}} + + {{ appntSignStatus == '3' ? '面对面重签' : '立即阅读签名' }}
操作时间已失效,请联系销售人员!
@@ -140,33 +193,64 @@ 被保险人 {{ item.name }} -

以下内容需要您按照顺序阅读并签字确认:

+

以下内容需要您按照顺序阅读并签字确认:

-

- {{ item.documentCode == '1' || item.documentCode == '3' || item.documentCode == '8' || item.documentCode == '9' || item.documentCode == '12' || item.documentCode == '13' || item.documentCode == '14' ? '需阅读' : '需阅读并签署' }} - - - 已阅读 - 签署完成 +

+ {{ + item.documentCode == '1' || + item.documentCode == '3' || + item.documentCode == '8' || + item.documentCode == '9' || + item.documentCode == '12' || + item.documentCode == '13' || + item.documentCode == '14' + ? '需阅读' + : '需阅读并签署' + }} + + + 已阅读 + 签署完成

-

- {{ item.documentName }} +

+ {{ item.documentName }}

-

- 被保险人签名: - 被保险人/监护人签名: - +

+ 被保险人签名: + 被保险人/监护人签名: +

-

点击【分享签名】、【立即阅读签名】按钮,进行相关操作

-

点击【分享重签】、【面对面重签】按钮,进行相关操作

+

点击【分享签名】、【立即阅读签名】按钮,进行相关操作

+

点击【分享重签】、【面对面重签】按钮,进行相关操作

- - {{insuredSignStatus == '3' ? '分享重签' : '分享签名'}} + + {{ insuredSignStatus == '3' ? '分享重签' : '分享签名' }} - - {{insuredSignStatus == '3' ? '面对面重签' : '立即阅读签名'}} + + {{ insuredSignStatus == '3' ? '面对面重签' : '立即阅读签名' }}
操作时间已失效,请联系销售人员!
@@ -183,43 +267,66 @@ 投保人 {{ appnt.name }} -

以下内容需要您按照顺序阅读并签字确认:

+

以下内容需要您按照顺序阅读并签字确认:

-

需阅读

-

+

需阅读

+

需阅读 - - - 已阅读 - 签署完成 + + + 已阅读 + 签署完成

- {{ agentSign.documentName }} + {{ agentSign.documentName }}

-

- {{ item.documentCode == '1' || item.documentCode == '3' || item.documentCode == '8' || item.documentCode == '9' || item.documentCode == '12' || item.documentCode == '13' || item.documentCode == '14' ? '需阅读' : '需阅读并签署' }} - - - 已阅读 - 签署完成 +

+ {{ + item.documentCode == '1' || + item.documentCode == '3' || + item.documentCode == '8' || + item.documentCode == '9' || + item.documentCode == '12' || + item.documentCode == '13' || + item.documentCode == '14' + ? '需阅读' + : '需阅读并签署' + }} + + + 已阅读 + 签署完成

-

- {{ item.documentName }} +

+ {{ item.documentName }}

-

- 投保人签名: - +

+ 投保人签名: +

-

点击【立即阅读签名】按钮,进行相关操作

+

点击【立即阅读签名】按钮,进行相关操作

- + 立即阅读签名
@@ -234,27 +341,50 @@ 被保险人 {{ item.name }} -

以下内容需要您按照顺序阅读并签字确认:

+

以下内容需要您按照顺序阅读并签字确认:

-

- {{ item.documentCode == '1' || item.documentCode == '3' || item.documentCode == '8' || item.documentCode == '9' || item.documentCode == '12' || item.documentCode == '13' || item.documentCode == '14' ? '需阅读' : '需阅读并签署' }} - - - 已阅读 - 签署完成 +

+ {{ + item.documentCode == '1' || + item.documentCode == '3' || + item.documentCode == '8' || + item.documentCode == '9' || + item.documentCode == '12' || + item.documentCode == '13' || + item.documentCode == '14' + ? '需阅读' + : '需阅读并签署' + }} + + + 已阅读 + 签署完成

-

- {{ item.documentName }} +

+ {{ item.documentName }}

-

- 被保人签名: - +

+ 被保人签名: +

-

点击【立即阅读签名】按钮,进行相关操作

+

点击【立即阅读签名】按钮,进行相关操作

- + 立即阅读签名
@@ -267,15 +397,29 @@
- + 支付
-
- +
+ 提交
@@ -285,13 +429,16 @@
- +
- - 下一步 - + 下一步
@@ -333,7 +480,7 @@ export default { data() { let isWeixin = this.$utils.device().isWeixin //判断环境 return { - signImgUrl:'data:image/gif;base64,', + signImgUrl: 'data:image/gif;base64,', isInsuYearFlag: false, //是否为长期险 isVideo: false, //是否已阅读视频 isVideoNext: false, @@ -376,7 +523,7 @@ export default { // 被保险人签名阅读信息 insuredSign: [], // 折叠面板 - activeNames: ['0','1', '2'], + activeNames: ['0', '1', '2'], // 图片路径 src: isChoose, // 被保险人信息 @@ -409,7 +556,7 @@ export default { }, appntSignStatus: '', //投保人电子签名状态 insuredSignStatus: '', //被保险人电子签名状态 - agentSignStatus:'', //代理人电子签名状态 + agentSignStatus: '', //代理人电子签名状态 changeCard: localStorage.changeCard, salePageFlag: '-10', recognizeResult: '', //微信端-人脸识别结果 @@ -418,16 +565,16 @@ export default { appntRidFlag: null, insureRidFlag: null }, - showAgentView:0, - signMap:{}, - isFirstCome:0, + showAgentView: 0, + signMap: {}, + isFirstCome: 0, cvalidateStr: '', activeType: '', - insuredAge:'', + insuredAge: '' } }, async created() { - if(this.$route.query.token){ + if (this.$route.query.token) { window.localStorage.setItem('token', this.$route.query.token) } this.renovate = new Date().getTime() @@ -441,7 +588,7 @@ export default { window.appCallBack = this.appCallBack }, mounted() { - if(this.$route.query.isFirstCome == 1){ + if (this.$route.query.isFirstCome == 1) { this.isFirstCome = 1 } //若进入签名页,则不允许回到签名页前面的页面 @@ -574,50 +721,50 @@ export default { this.relationToAppnt = this.$route.query.relationToAppnt this.isShow = false await this.getOrderDetail() - if ( - (this.appntSignStatus == '3' && sessionStorage.getItem('shareCode') == '0') || - (this.appntSignStatus == '3' && sessionStorage.getItem('shareCode') == '2') - ) { - // this.$toast('签名成功,请联系业务员进行后续流程!') - if(this.isFirstCome != 1){ - Dialog.alert({ title: '提示', message: '签名成功,请联系业务员进行后续流程!' }) - } - } else if (this.insuredSignStatus == '3' && sessionStorage.getItem('shareCode') == '1') { - if(this.isFirstCome != 1){ - Dialog.alert({ title: '提示', message: '签名成功,请联系业务员进行后续流程!' }) - } + if ( + (this.appntSignStatus == '3' && sessionStorage.getItem('shareCode') == '0') || + (this.appntSignStatus == '3' && sessionStorage.getItem('shareCode') == '2') + ) { + // this.$toast('签名成功,请联系业务员进行后续流程!') + if (this.isFirstCome != 1) { + Dialog.alert({ title: '提示', message: '签名成功,请联系业务员进行后续流程!' }) } - if (this.changeCard && this.appntSign.documentStatus == '1') { - Dialog.alert({ title: '提示', message: '确认完成,请联系业务员完成后续流程!' }) + } else if (this.insuredSignStatus == '3' && sessionStorage.getItem('shareCode') == '1') { + if (this.isFirstCome != 1) { + Dialog.alert({ title: '提示', message: '签名成功,请联系业务员进行后续流程!' }) } - if (localStorage['faceAuthWeXin-requestId'] && localStorage['faceAuthWeXin-bizToken'] && this.$route.query.faceAuthCountWeixin != undefined) { - this.getRecognitionResult(JSON.parse(localStorage['faceAuthWeXin-requestId']), JSON.parse(localStorage['faceAuthWeXin-bizToken'])) - } - if (sessionStorage.shareCode == '1') { - console.log('进来被保险人') - this.tipsName = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).name - } else if(sessionStorage.shareCode == '3'){ - console.log('进来代理人') - this.tipsName =this.recmd.name - }else { - console.log('进来投保人') - this.tipsName = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).name - } - weixinShare({ - title: '国富人寿计划书', - imgUrl: 'http://47.96.143.111:8000/app/images/logo.png', - desc: '国富为您量身定制的保险产品,请查收' - }) - this.faceAuthCount.appnt = this.$route.query.faceAuthCountAppnt == undefined ? 0 : Number(this.$route.query.faceAuthCountAppnt) - this.faceAuthCount.insured = this.$route.query.faceAuthCountInsured == undefined ? 0 : Number(this.$route.query.faceAuthCountInsured) - this.faceAuthCount.weixin = this.$route.query.faceAuthCountWeixin == undefined ? 0 : Number(this.$route.query.faceAuthCountWeixin) - } else { - // 获取详情消息 - this.getOrderDetail() - this.getSignInvalid() - this.isShow = true } - }, + if (this.changeCard && this.appntSign.documentStatus == '1') { + Dialog.alert({ title: '提示', message: '确认完成,请联系业务员完成后续流程!' }) + } + if (localStorage['faceAuthWeXin-requestId'] && localStorage['faceAuthWeXin-bizToken'] && this.$route.query.faceAuthCountWeixin != undefined) { + this.getRecognitionResult(JSON.parse(localStorage['faceAuthWeXin-requestId']), JSON.parse(localStorage['faceAuthWeXin-bizToken'])) + } + if (sessionStorage.shareCode == '1') { + console.log('进来被保险人') + this.tipsName = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).name + } else if (sessionStorage.shareCode == '3') { + console.log('进来代理人') + this.tipsName = this.recmd.name + } else { + console.log('进来投保人') + this.tipsName = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).name + } + weixinShare({ + title: '国富人寿计划书', + imgUrl: 'http://47.96.143.111:8000/app/images/logo.png', + desc: '国富为您量身定制的保险产品,请查收' + }) + this.faceAuthCount.appnt = this.$route.query.faceAuthCountAppnt == undefined ? 0 : Number(this.$route.query.faceAuthCountAppnt) + this.faceAuthCount.insured = this.$route.query.faceAuthCountInsured == undefined ? 0 : Number(this.$route.query.faceAuthCountInsured) + this.faceAuthCount.weixin = this.$route.query.faceAuthCountWeixin == undefined ? 0 : Number(this.$route.query.faceAuthCountWeixin) + } else { + // 获取详情消息 + this.getOrderDetail() + this.getSignInvalid() + this.isShow = true + } + }, // 获取消息和阅读状态 realPeopelCheck() { this.$toast.loading({ @@ -766,9 +913,21 @@ export default { }, // 人脸识别 async start_ocr(val) { - if(this.isWeixin) { - let shareUrl = '?orderNo=' + this.$route.query.orderNo + '&token=' + localStorage.token + '&relationToAppnt=' + this.$route.query.relationToAppnt + '&shareCode=' + this.$route.query.shareCode + '&signInvalid=' + this.signInvalid + '&productCode=' + this.$route.query.productCode - window.sessionStorage.setItem('shareUrl',shareUrl) + if (this.isWeixin) { + let shareUrl = + '?orderNo=' + + this.$route.query.orderNo + + '&token=' + + localStorage.token + + '&relationToAppnt=' + + this.$route.query.relationToAppnt + + '&shareCode=' + + this.$route.query.shareCode + + '&signInvalid=' + + this.signInvalid + + '&productCode=' + + this.$route.query.productCode + window.sessionStorage.setItem('shareUrl', shareUrl) } // val 0投保人 1被保险人 2本人 let that = this @@ -809,9 +968,9 @@ export default { if (localStorage['faceAuthWeXin-requestId'] && localStorage['faceAuthWeXin-bizToken'] && this.$route.query.faceAuthCountWeixin != undefined) { this.getRecognitionResult(JSON.parse(localStorage['faceAuthWeXin-requestId']), JSON.parse(localStorage['faceAuthWeXin-bizToken'])) } else { - this.idcardData.realName = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).name - this.idcardData.idno = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).idNo - this.recognition() + this.idcardData.realName = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).name + this.idcardData.idno = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).idNo + this.recognition() } // if (this.faceAuthCount.appnt < this.smsAuthNum) { // this.idcardData.realName = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).name @@ -827,14 +986,12 @@ export default { window.localStorage.setItem('sign-insured', JSON.stringify(that.insuredSign)) let thismysaleInsuredPersonInfo = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')) let thismyage = '' - if(thismysaleInsuredPersonInfo.age === 0 || thismysaleInsuredPersonInfo.age === '0' || thismysaleInsuredPersonInfo.age){ + if (thismysaleInsuredPersonInfo.age === 0 || thismysaleInsuredPersonInfo.age === '0' || thismysaleInsuredPersonInfo.age) { thismyage = thismysaleInsuredPersonInfo.age } else { thismyage = thismysaleInsuredPersonInfo.insuredAge } - if ( - JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).idType != '1' || thismyage < '18' - ) { + if (JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).idType != '1' || thismyage < '18') { that.goUrl() } else { // 白名单校验 @@ -866,9 +1023,9 @@ export default { if (localStorage['faceAuthWeXin-requestId'] && localStorage['faceAuthWeXin-bizToken'] && this.$route.query.faceAuthCountWeixin != undefined) { this.getRecognitionResult(JSON.parse(localStorage['faceAuthWeXin-requestId']), JSON.parse(localStorage['faceAuthWeXin-bizToken'])) } else { - this.idcardData.realName = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).name - this.idcardData.idno = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).idNo - this.recognition() + this.idcardData.realName = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).name + this.idcardData.idno = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).idNo + this.recognition() } // if (this.faceAuthCount.insured < this.smsAuthNum) { // this.idcardData.realName = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).name @@ -917,7 +1074,8 @@ export default { const authRes = await EWebBridge.webCallAppInJs('face_auth', { businessSource: '1', //业务来源:1-电投,2-入司,3-理赔,4-保全 number: that.saleInsuredInfo.idNo, //身份证号码 - name: that.saleInsuredInfo.name //姓名 + name: that.saleInsuredInfo.name, //姓名 + orderNo: this.$CacheUtils.getLocItem('orderNo') //订单号 }).then((data) => { if (JSON.parse(data).state == '1') { // 保存rid 数据 @@ -940,7 +1098,7 @@ export default { window.localStorage.setItem('sign-val', val) window.localStorage.setItem('sign-insured', JSON.stringify(that.insuredSign)) let thismyage = '' - if(this.saleInsuredPersonInfo.age === 0 || this.saleInsuredPersonInfo.age === '0' || this.saleInsuredPersonInfo.age){ + if (this.saleInsuredPersonInfo.age === 0 || this.saleInsuredPersonInfo.age === '0' || this.saleInsuredPersonInfo.age) { thismyage = this.saleInsuredPersonInfo.age } else { thismyage = this.saleInsuredPersonInfo.insuredAge @@ -981,7 +1139,8 @@ export default { const authRes = await EWebBridge.webCallAppInJs('face_auth', { businessSource: '1', //业务来源:1-电投,2-入司,3-理赔,4-保全 number: that.saleInsuredPersonInfo.idNo, //身份证号码 - name: that.saleInsuredPersonInfo.name //姓名 + name: that.saleInsuredPersonInfo.name, //姓名 + orderNo: this.$CacheUtils.getLocItem('orderNo') //订单号 }).then((data) => { if (JSON.parse(data).state == '1') { that.saveCustomerRidInfo('insured_rid', 'B') @@ -1004,60 +1163,58 @@ export default { }, goUrl() { let that = this - if(window.localStorage.getItem('sign-val') == '3') { - if(that.agentSignStatus == '3') { + if (window.localStorage.getItem('sign-val') == '3') { + if (that.agentSignStatus == '3') { let thisAgentSign = JSON.parse(JSON.stringify(that.agentSign)) - if(thisAgentSign && thisAgentSign.length != 0){ - thisAgentSign.forEach(item => { - if(item.documentType == '1') { + if (thisAgentSign && thisAgentSign.length != 0) { + thisAgentSign.forEach((item) => { + if (item.documentType == '1') { item.documentStatus = '2' } else { item.documentStatus = '0' } }) } - window.localStorage.setItem('agentSignFile',JSON.stringify(thisAgentSign)) + window.localStorage.setItem('agentSignFile', JSON.stringify(thisAgentSign)) } else { - window.localStorage.setItem('agentSignFile',JSON.stringify(that.agentSign)) + window.localStorage.setItem('agentSignFile', JSON.stringify(that.agentSign)) } - } - else if(window.localStorage.getItem('sign-val') == '0' || window.localStorage.getItem('sign-val') == '2') { - if(that.appntSignStatus == '3') { + } else if (window.localStorage.getItem('sign-val') == '0' || window.localStorage.getItem('sign-val') == '2') { + if (that.appntSignStatus == '3') { let thisAppntSign = JSON.parse(JSON.stringify(that.appntSign)) - if(thisAppntSign && thisAppntSign.length != 0){ - thisAppntSign.forEach(item => { - if(item.documentType == '1') { + if (thisAppntSign && thisAppntSign.length != 0) { + thisAppntSign.forEach((item) => { + if (item.documentType == '1') { item.documentStatus = '2' } else { item.documentStatus = '0' } }) } - window.localStorage.setItem('appntSignFile',JSON.stringify(thisAppntSign)) + window.localStorage.setItem('appntSignFile', JSON.stringify(thisAppntSign)) } else { - window.localStorage.setItem('appntSignFile',JSON.stringify(that.appntSign)) + window.localStorage.setItem('appntSignFile', JSON.stringify(that.appntSign)) } - } - else { - if(that.insuredSignStatus == '3') { + } else { + if (that.insuredSignStatus == '3') { let thisInsuredSign = JSON.parse(JSON.stringify(that.insuredSign)) - if(thisInsuredSign && thisInsuredSign.length != 0){ - thisInsuredSign.forEach(item => { - if(item.documentType == '1') { + if (thisInsuredSign && thisInsuredSign.length != 0) { + thisInsuredSign.forEach((item) => { + if (item.documentType == '1') { item.documentStatus = '2' } else { item.documentStatus = '0' } }) } - window.localStorage.setItem('insuredSignFile',JSON.stringify(thisInsuredSign)) + window.localStorage.setItem('insuredSignFile', JSON.stringify(thisInsuredSign)) } else { - window.localStorage.setItem('insuredSignFile',JSON.stringify(that.insuredSign)) + window.localStorage.setItem('insuredSignFile', JSON.stringify(that.insuredSign)) } } - window.localStorage.setItem('appntName',that.appnt.name) - window.localStorage.setItem('insuredName',that.insured[0].name) - window.localStorage.setItem('recmdName',that.recmd.name) + window.localStorage.setItem('appntName', that.appnt.name) + window.localStorage.setItem('insuredName', that.insured[0].name) + window.localStorage.setItem('recmdName', that.recmd.name) let path = '' if (this.isInsuYearFlag && !that.changeCard) { this.$toast.loading({ @@ -1070,7 +1227,7 @@ export default { }) getAgentInfo({}).then((res) => { console.log(res) - if ((res.branchType == 'N1' || res.branchType == '1'||res.branchType == '12' || res.branchType == '13') && !this.isVideo) { + if ((res.branchType == 'N1' || res.branchType == '1' || res.branchType == '12' || res.branchType == '13') && !this.isVideo) { this.$jump({ flag: 'navigation', extra: { @@ -1081,14 +1238,12 @@ export default { this.videoShow = true this.isVideo = true this.isVideoUrl = 'goUrl' - } - else { - if(window.localStorage.getItem('sign-val') == '3') { - if(that.agentSignStatus == '3') { + } else { + if (window.localStorage.getItem('sign-val') == '3') { + if (that.agentSignStatus == '3') { path = that.agentSign[0].routePath - } - else { - if(that.agentSign[that.agentSign.length - 1].documentStatus == 1){ + } else { + if (that.agentSign[that.agentSign.length - 1].documentStatus == 1) { path = 'signDocuments' } else { for (let i = 0; i < that.agentSign.length; i++) { @@ -1097,18 +1252,16 @@ export default { break } } - if(!path) { + if (!path) { path = 'signDocuments' } } } - } - else if(window.localStorage.getItem('sign-val') == '0' || window.localStorage.getItem('sign-val') == '2') { - if(that.appntSignStatus == '3') { + } else if (window.localStorage.getItem('sign-val') == '0' || window.localStorage.getItem('sign-val') == '2') { + if (that.appntSignStatus == '3') { path = that.appntSign[0].routePath - } - else { - if(that.appntSign[that.appntSign.length - 1].documentStatus == 1){ + } else { + if (that.appntSign[that.appntSign.length - 1].documentStatus == 1) { path = 'signDocuments' } else { for (let i = 0; i < that.appntSign.length; i++) { @@ -1117,31 +1270,28 @@ export default { break } } - if(!path) { + if (!path) { path = 'signDocuments' } } } - } - else if(window.localStorage.getItem('sign-val') == '1') { - if(that.insuredSignStatus == '3') { + } else if (window.localStorage.getItem('sign-val') == '1') { + if (that.insuredSignStatus == '3') { path = that.insuredSign[0].routePath - } - else { + } else { for (let i = 0; i < that.insuredSign.length; i++) { if (that.insuredSign[i].documentStatus == 0 || that.insuredSign[i].documentStatus == 2) { path = that.insuredSign[i].routePath break } } - if(!path) { + if (!path) { path = 'signDocuments' } } } - - if (path){ + if (path) { that.$jump({ flag: 'h5', extra: { @@ -1154,14 +1304,12 @@ export default { } } }) - } - else { - if(window.localStorage.getItem('sign-val') == '3') { - if(that.agentSignStatus == '3') { + } else { + if (window.localStorage.getItem('sign-val') == '3') { + if (that.agentSignStatus == '3') { path = that.agentSign[0].routePath - } - else { - if(that.agentSign[that.agentSign.length - 1].documentStatus == 1){ + } else { + if (that.agentSign[that.agentSign.length - 1].documentStatus == 1) { path = 'signDocuments' } else { for (let i = 0; i < that.agentSign.length; i++) { @@ -1170,18 +1318,16 @@ export default { break } } - if(!path) { + if (!path) { path = 'signDocuments' } } } - } - else if(window.localStorage.getItem('sign-val') == '0' || window.localStorage.getItem('sign-val') == '2') { - if(that.appntSignStatus == '3') { + } else if (window.localStorage.getItem('sign-val') == '0' || window.localStorage.getItem('sign-val') == '2') { + if (that.appntSignStatus == '3') { path = that.appntSign[0].routePath - } - else { - if(that.appntSign[that.appntSign.length - 1].documentStatus == 1){ + } else { + if (that.appntSign[that.appntSign.length - 1].documentStatus == 1) { path = 'signDocuments' } else { for (let i = 0; i < that.appntSign.length; i++) { @@ -1190,30 +1336,28 @@ export default { break } } - if(!path) { - path = 'signDocuments' + if (!path) { + path = 'signDocuments' } } } - } - else if(window.localStorage.getItem('sign-val') == '1') { - if(that.insuredSignStatus == '3') { + } else if (window.localStorage.getItem('sign-val') == '1') { + if (that.insuredSignStatus == '3') { path = that.insuredSign[0].routePath - } - else { + } else { for (let i = 0; i < that.insuredSign.length; i++) { if (that.insuredSign[i].documentStatus == 0 || that.insuredSign[i].documentStatus == 2) { path = that.insuredSign[i].routePath break } } - if(!path) { + if (!path) { path = 'signDocuments' } } } - console.log('12321321'+path) - if (path){ + console.log('12321321' + path) + if (path) { that.$jump({ flag: 'h5', extra: { @@ -1231,10 +1375,9 @@ export default { let shareName = '' if (code == '1') { shareName = '被保险人' - } else if(code == '3'){ + } else if (code == '3') { shareName = '代理人' - } - else { + } else { shareName = '投保人' } if (this.changeCard) { @@ -1245,20 +1388,20 @@ export default { title: '国富人寿修改银行卡号确认', content: '签字进行', url: - location.origin + - '/#/sale/signatureConfirmation?orderNo=' + - this.$route.query.orderNo + - '&token=' + - localStorage.token + - '&relationToAppnt=' + - JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).relationToAppnt + - '&shareCode=' + - code + - '&signInvalid=' + - this.signInvalid + - '&productCode=' + - localStorage.productCode + - '&changeCard=0&isFirstCome=1', + location.origin + + '/#/sale/signatureConfirmation?orderNo=' + + this.$route.query.orderNo + + '&token=' + + localStorage.token + + '&relationToAppnt=' + + JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).relationToAppnt + + '&shareCode=' + + code + + '&signInvalid=' + + this.signInvalid + + '&productCode=' + + localStorage.productCode + + '&changeCard=0&isFirstCome=1', img: this.$assetsUrl + 'images/logo.png' } }) @@ -1270,19 +1413,20 @@ export default { title: `国富人寿电子投保单(${shareName})签字`, content: '签字进行', url: - location.origin + - '/#/sale/signatureConfirmation?orderNo=' + - this.$route.query.orderNo + - '&token=' + - localStorage.token + - '&relationToAppnt=' + - JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).relationToAppnt + - '&shareCode=' + - code + - '&signInvalid=' + - this.signInvalid + - '&productCode=' + - localStorage.productCode+'&isFirstCome=1', + location.origin + + '/#/sale/signatureConfirmation?orderNo=' + + this.$route.query.orderNo + + '&token=' + + localStorage.token + + '&relationToAppnt=' + + JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).relationToAppnt + + '&shareCode=' + + code + + '&signInvalid=' + + this.signInvalid + + '&productCode=' + + localStorage.productCode + + '&isFirstCome=1', img: this.$assetsUrl + 'images/logo.png' } }) @@ -1421,55 +1565,60 @@ export default { getOrderDetail(data).then((res) => { if (res.result == '0') { this.insuredAge = utilsAge.getAge(res.orderDTO.insuredDTOs[0].birthday, new Date()) - if(res.orderDTO.orderInfoDTO.activeType == 'KMH') { + if (res.orderDTO.orderInfoDTO.activeType == 'KMH') { this.cvalidateStr = res.orderDTO.orderInfoDTO.cvaliDate this.activeType = res.orderDTO.orderInfoDTO.activeType - if(new Date() > new Date(res.orderDTO.orderInfoDTO.cvaliDate)) { + if (new Date() > new Date(res.orderDTO.orderInfoDTO.cvaliDate)) { this.cvalidateStr = '' } } - window.localStorage.setItem('productType',res.orderDTO.orderInfoDTO.productType) - if(res.orderDTO.signMap) { - for(let key in res.orderDTO.signMap) { - if(key == 3) { + window.localStorage.setItem('productType', res.orderDTO.orderInfoDTO.productType) + if (res.orderDTO.signMap) { + for (let key in res.orderDTO.signMap) { + if (key == 3) { this.signMap.agentSign = res.orderDTO.signMap[key] } - if(key == 0 || key == 2) { + if (key == 0 || key == 2) { this.signMap.appntSign = res.orderDTO.signMap[key] } - if(key == 1) { + if (key == 1) { this.signMap.insuredSign = res.orderDTO.signMap[key] } } } - if(this.signMap.agentSign){ + if (this.signMap.agentSign) { this.agentSignStatus = '3' } - if(this.signMap.appntSign){ + if (this.signMap.appntSign) { this.appntSignStatus = '3' } - if(this.signMap.insuredSign){ + if (this.signMap.insuredSign) { this.insuredSignStatus = '3' } if (res.orderDTO && res.orderDTO.prtType) { localStorage.setItem('readingProtocolType', res.orderDTO.prtType) } - let documentCodeType = res.orderDTO.ebizSignDTOS.filter(item=>item.documentCode == '14').length>0 + let documentCodeType = res.orderDTO.ebizSignDTOS.filter((item) => item.documentCode == '14').length > 0 localStorage.setItem('documentCodeType', documentCodeType) let riskDTOLst = res.orderDTO.insuredDTOs[0].riskDTOLst[0] this.riskInfo = res.orderDTO.insuredDTOs[0].riskDTOLst[0] // 判断是否为长期险 if ((riskDTOLst.insuYearFlag == 'Y' && riskDTOLst.insuYear > 1) || riskDTOLst.insuYearFlag == 'A') { - this.$CacheUtils.setLocItem('isLongInsuranceFlag', "Y"); + this.$CacheUtils.setLocItem('isLongInsuranceFlag', 'Y') this.isInsuYearFlag = true - }else{ - this.$CacheUtils.setLocItem('isLongInsuranceFlag', "N"); + } else { + this.$CacheUtils.setLocItem('isLongInsuranceFlag', 'N') } //弹框展示是否有社保、赔付比例和免赔额信息 const isMedical = res.orderDTO.insuredDTOs[0].medical === '0' const mainRiskCode = res.orderDTO.insuredDTOs[0].riskDTOLst[0].mainRiskCode const isShowDialog = mainRiskCode === 'GFRS_M0016' - if (!!res.orderDTO.productDTO && !!res.orderDTO.productDTO.special && !!res.orderDTO.productDTO.special.content && res.orderDTO.productDTO.special.content !== '') { + if ( + !!res.orderDTO.productDTO && + !!res.orderDTO.productDTO.special && + !!res.orderDTO.productDTO.special.content && + res.orderDTO.productDTO.special.content !== '' + ) { let content = res.orderDTO.productDTO.special.content try { const config = JSON.parse(content) @@ -1492,13 +1641,13 @@ export default { // 获取被保险人信息recmd this.saleInsuredPersonInfo = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')) let thismyage = '' - if(this.saleInsuredPersonInfo.age === 0 || this.saleInsuredPersonInfo.age === '0' || this.saleInsuredPersonInfo.age){ + if (this.saleInsuredPersonInfo.age === 0 || this.saleInsuredPersonInfo.age === '0' || this.saleInsuredPersonInfo.age) { thismyage = this.saleInsuredPersonInfo.age } else { thismyage = this.saleInsuredPersonInfo.insuredAge } this.saleInsuredPersonInfo.age = thismyage - window.localStorage.setItem('insuredAge',thismyage) + window.localStorage.setItem('insuredAge', thismyage) // 获取投保人信息 this.saleInsuredInfo = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')) @@ -1521,7 +1670,7 @@ export default { riskName = res.orderDTO.insuredDTOs[0].riskDTOLst[0].riskName } if (that.orderInfo && that.orderInfo.activeType) { - that.$CacheUtils.setLocItem('activeType',that.orderInfo.activeType) + that.$CacheUtils.setLocItem('activeType', that.orderInfo.activeType) } localStorage.setItem('productCode', productCode) this.riskName = riskName @@ -1548,11 +1697,11 @@ export default { that.addKey(item) } } - } else if(item.signType == '3') { - that.showAgentView = !localStorage.changeCard?1:0 - that.agentSign.push(item)//代理人 + } else if (item.signType == '3') { + that.showAgentView = !localStorage.changeCard ? 1 : 0 + that.agentSign.push(item) //代理人 that.addKey(item) - }else if(item.signType == '1') { + } else if (item.signType == '1') { that.insuredSign.push(item) //被保 that.addKey(item) } @@ -1571,8 +1720,8 @@ export default { return a.key - b.key }) //获取投保和被保险人电子投保单签字状态 - console.log(that.appntSign,'that.appntSign') - that.appntSign.map((item,index) => { + console.log(that.appntSign, 'that.appntSign') + that.appntSign.map((item, index) => { // 判断是否双录 if (item.documentCode == '7') { localStorage.doubleRecordFlag = '1' @@ -1627,7 +1776,7 @@ export default { item.documentShortName = '健康险提示' item.key = 5 item.routePath = 'readDocuments' - }else if (item.documentCode == '10') { + } else if (item.documentCode == '10') { item.documentShortName = '自保件承诺书' item.key = 1 item.routePath = 'readDocuments' @@ -1643,7 +1792,7 @@ export default { item.documentShortName = '保险条款' item.key = 4 item.routePath = 'readDocuments' - }else if (item.documentCode == '14') { + } else if (item.documentCode == '14') { item.documentShortName = '风险承受测评' item.key = 3 item.routePath = 'readDocuments' @@ -1657,20 +1806,20 @@ export default { this.$toast.loading({ duration: 0, // 持续展示 toast - forbidClick: true, // 禁用背景点击 + forbidClick: true, // 禁用背景点击 - loadingType: 'spinner', + loadingType: 'spinner', - message: '加载中……' - }) - let data = {} - getSignInvalid(data).then((res) => { - if (res.result == '0') { - this.$toast.clear() - this.signInvalid = res.content.sign - } - }) - }, + message: '加载中……' + }) + let data = {} + getSignInvalid(data).then((res) => { + if (res.result == '0') { + this.$toast.clear() + this.signInvalid = res.content.sign + } + }) + }, async checkSignInvalid(signInvalid) { let that = this this.$toast.loading({ @@ -1736,7 +1885,7 @@ export default { //替换redirectUrl replaceSearch() { let obj = this.$route.query, - str = '/#/sale/signatureConfirmation?' + str = '/#/sale/signatureConfirmation?' obj.faceAuthCountAppnt = this.faceAuthCount.appnt obj.faceAuthCountInsured = this.faceAuthCount.insured obj.faceAuthCountWeixin = this.faceAuthCount.weixin @@ -1832,16 +1981,16 @@ export default { window.localStorage.setItem('sign-agent', JSON.stringify(that.agentSign)) that.goUrl() }, - gosomefile(data,currentIndex,val) { - if(data.documentType == '0' && data.documentStatus == '0') { + gosomefile(data, currentIndex, val) { + if (data.documentType == '0' && data.documentStatus == '0') { this.$toast('文件尚未完成阅读,请点击“立即阅读签名”按钮阅读文件') - } else if(data.documentType == '1' && data.documentStatus == '2') { + } else if (data.documentType == '1' && data.documentStatus == '2') { this.$toast('文件尚未完成阅读,请点击“立即阅读签名”按钮阅读文件') } else { - window.localStorage.setItem('agentSignFile',JSON.stringify(this.agentSign)) - window.localStorage.setItem('appntSignFile',JSON.stringify(this.appntSign)) - window.localStorage.setItem('insuredSignFile',JSON.stringify(this.insuredSign)) - window.localStorage.setItem('sign-val',val) + window.localStorage.setItem('agentSignFile', JSON.stringify(this.agentSign)) + window.localStorage.setItem('appntSignFile', JSON.stringify(this.appntSign)) + window.localStorage.setItem('insuredSignFile', JSON.stringify(this.insuredSign)) + window.localStorage.setItem('sign-val', val) this.$router.push({ path: '/sale/readDocuments', query: { @@ -1850,7 +1999,7 @@ export default { } }) } - }, + } }, components: { [Cell.name]: Cell, @@ -1870,26 +2019,26 @@ export default { diff --git a/src/views/ebiz/sale/SignatureConfirmationOld.vue b/src/views/ebiz/sale/SignatureConfirmationOld.vue index 4a1a9623a..5ed3df3c8 100644 --- a/src/views/ebiz/sale/SignatureConfirmationOld.vue +++ b/src/views/ebiz/sale/SignatureConfirmationOld.vue @@ -47,16 +47,17 @@ v-if="isShow" type="danger" size="normal" - class="w150" + class="w150" plain v-no-more-click="1000" :disabled="appntSign.signStatus == '1'" @click="share(insured.length == '0' ? '2' : '0')" - >分享
+ >分享 分享 + >分享
- +
@@ -158,7 +160,7 @@ { // console.log('--跳过人脸识别--返回识别成功') // resolve(JSON.stringify({ state: '1' })) - }).then(data => { + }).then((data) => { if (JSON.parse(data).state == '1') { if (that.appntSign.readStatus == '0') { console.log('--跳过人脸识别--返回识别成功zzzzzzzzzz') @@ -537,12 +538,13 @@ export default { // 跳过人脸识别 EWebBridge.webCallAppInJs('face_auth', { number: that.saleInsuredInfo.idNo, //身份证号码 - name: that.saleInsuredInfo.name //姓名 + name: that.saleInsuredInfo.name, //姓名 + orderNo: this.$CacheUtils.getLocItem('orderNo') //订单号 // }) // new Promise(resolve => { // console.log('--跳过人脸识别--返回识别成功') // resolve(JSON.stringify({ state: '1' })) - }).then(data => { + }).then((data) => { if (JSON.parse(data).state == '1') { if (that.insuredSign.readStatus == '0') { this.$jump({ @@ -657,7 +659,7 @@ export default { } } // /insure/selfToHuman - underWrite(data).then(res => { + underWrite(data).then((res) => { this.$toast.clear() let that = this if (res.result == '0') { @@ -747,7 +749,7 @@ export default { let data = { orderNo: window.localStorage.getItem('orderNo') } - getOrderDetail(data).then(res => { + getOrderDetail(data).then((res) => { if (res.result == '0') { this.$toast.clear() this.$utils.intLocalStorage(res) @@ -767,7 +769,7 @@ export default { that.appnt = res.orderDTO.appntDTO that.date = res.orderDTO.orderInfoDTO.appntDateLabel - res.orderDTO.signDTOS.map(item => { + res.orderDTO.signDTOS.map((item) => { if (item.signType == '0') { that.appntSign = item } else if (item.signType == '1') { @@ -791,7 +793,7 @@ export default { message: '加载中……' }) let data = {} - getSignInvalid(data).then(res => { + getSignInvalid(data).then((res) => { if (res.result == '0') { this.$toast.clear() this.signInvalid = res.content.sign @@ -813,7 +815,7 @@ export default { sign: signInvalid } return new Promise((resolve, reject) => { - checkSignInvalid(data).then(res => { + checkSignInvalid(data).then((res) => { if (res.result == '0') { that.$toast.clear() let status = res.content.status