diff --git a/src/views/ebiz/sale/SignatureConfirmation.vue b/src/views/ebiz/sale/SignatureConfirmation.vue index 7dbcb6b2e..41b64ca79 100644 --- a/src/views/ebiz/sale/SignatureConfirmation.vue +++ b/src/views/ebiz/sale/SignatureConfirmation.vue @@ -21,6 +21,47 @@
+ + +
+ 代理人 + {{ recmd.name }} +
+

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

+
+

需阅读

+

+ {{ agentSign.documentName }} + +

+
+
+
+

{{ item.documentCode == '1' || item.documentCode == '8' || item.documentCode == '9' ? '需阅读' : '需签署' }}

+

+ {{ item.documentName }} + + +

+
+
+

点击【开始】,进行相关操作

+
+ 开始 +
+
操作时间已失效,请联系销售人员!
+
+
+
@@ -313,10 +354,12 @@ export default { insured: [], // 投保人签名阅读信息 appntSign: [], + //代理人签名阅读信息 + agentSign: [], // 被保险人签名阅读信息 insuredSign: [], // 折叠面板 - activeNames: ['1', '2'], + activeNames: ['0','1', '2'], // 图片路径 src: this.$assetsUrl + 'images/u6490.png', // 被保险人信息 @@ -335,7 +378,7 @@ export default { signInvalid: '', // 微信分享链接是否失效 false 为未失效 true为已失效 isInvalid: false, - // 是谁分享的微信链接 1为被保险人 0或2为投保人 + // 是谁分享的微信链接 1为被保险人 0或2为投保人 3代理人 shareCode: '', // 是否从空签成功跳转过来 1为是 其他为不是 airSign: '', @@ -354,6 +397,7 @@ export default { // }, appntSignStatus: '', //投保人电子签名状态 insuredSignStatus: '', //被保险人电子签名状态 + agentSignStatus:'', //代理人电子签名状态 changeCard: localStorage.changeCard, salePageFlag: '-10', recognizeResult: '', //微信端-人脸识别结果 @@ -501,7 +545,10 @@ export default { if (sessionStorage.shareCode == '1') { console.log('进来被保险人') this.tipsName = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).name - } else { + } else if(sessionStorage.shareCode == '3'){ + console.log('进来代理人') + this.tipsName =this.recmd.name + }else { console.log('进来投保人') this.tipsName = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).name // console.log('localStorage.saleInsuredInfo', localStorage.saleInsuredInfo) @@ -1190,7 +1237,10 @@ export default { let shareName = '' if (code == '1') { shareName = '被保险人' - } else { + } else if(code == '3'){ + shareName = '代理人' + } + else { shareName = '投保人' } console.log('`````````````测试安卓url`````````````````') @@ -1531,7 +1581,10 @@ export default { that.appntSign = item //投保 } } - } else { + } else if(item.signType == '3'){ + that.agentSign.push(item)//代理人 + that.addKey(item) + }else { that.insuredSign.push(item) //被保 } }) @@ -1555,6 +1608,11 @@ export default { that.insuredSignStatus = item.documentStatus } }) + that.agentSign.map((item) => { + if (item.documentCode == '10') { + that.agentSignStatus = item.documentStatus + } + }) } resolve('success') } @@ -1563,7 +1621,7 @@ export default { }, //自定义key值排序用 addKey(item) { - //ducumentCode 1投保须知 2投保单 3产品说明书 4提示书 6免除保险人责任条款说明书 7保险销售行为双录说明 8指定保单生效日 9短期险投保须知 + //ducumentCode 1投保须知 2投保单 3产品说明书 4提示书 6免除保险人责任条款说明书 7保险销售行为双录说明 8指定保单生效日 9短期险投保须知 10国富人寿自保件承诺书 if (item.documentCode == '1') { item.key = 2 item.routePath = 'insuranceInformation' @@ -1588,6 +1646,9 @@ export default { } else if (item.documentCode == '9') { item.key = 3 item.routePath = 'shortPeriodProduct' + }else if (item.documentCode == '10') { + item.key = 1 + item.routePath = 'commitmentSelfProtect' } }, getSignInvalid() { @@ -1755,8 +1816,53 @@ export default { saveCustomerRid(param).then((res) => { console.log('saveCustomerRid', res) }) - } + }, + //代理人签署 跳过人脸识别 + async start_agent(val) { + // val 0投保人 1被保险人 2本人 3代理人 + console.log(val) + let that = this + window.localStorage.setItem('sign-val', val) + window.localStorage.setItem('sign-agent', JSON.stringify(that.agentSign)) + that.agentUrl() + }, + agentUrl() { + let that = this + let path = '' + console.log('that.agentSign 1 ==', that.agentSign) + if (that.changeCard) { + path = 'insuranceInformation' + } else { + console.log('that.agentSign.length ==', that.agentSign.length, typeof that.agentSign.length) + for (let i = 0; i < that.agentSign.length; i++) { + if ((that.agentSign[i].documentCode == '1' || that.agentSign[i].documentCode == '8' || that.agentSign[i].documentCode == '9') && that.agentSign[i].documentStatus == 0) { + //1投保须知 未读 + path = that.agentSign[i].routePath + break + } else { + if (that.agentSign[i].documentStatus == 2) { + path = that.agentSign[i].routePath + break + } + } + } + + } + console.log('跳转页面path', path) + if (path) + that.$jump({ + flag: 'h5', + extra: { + url: location.origin + '/#/sale/' + path + }, + routerInfo: { + path: '/sale/' + path + } + }) + + }, }, + created() { setTimeout(() => { // eslint-disable-next-line no-undef diff --git a/src/views/ebiz/sale/commitmentSelfProtect.vue b/src/views/ebiz/sale/commitmentSelfProtect.vue new file mode 100644 index 000000000..5e7765bcf --- /dev/null +++ b/src/views/ebiz/sale/commitmentSelfProtect.vue @@ -0,0 +1,804 @@ + + +