From ed7d5575ef69963094b201757922de0b06507803 Mon Sep 17 00:00:00 2001 From: "yang.huaxiang" Date: Wed, 11 Nov 2020 10:46:50 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E5=BC=80=E9=97=A8=E7=BA=A2=E9=9C=80?= =?UTF-8?q?=E6=B1=82-=E7=94=B5=E6=8A=95=E6=8F=90=E7=A4=BA=EF=BC=9A?= =?UTF-8?q?=E7=94=B5=E6=8A=95=E6=8F=90=E7=A4=BA=E5=A4=84=E7=90=86=E5=88=9D?= =?UTF-8?q?=E7=89=88=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4=20--=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E4=BA=BA=EF=BC=9A=E9=98=B3=E5=8D=8E=E7=A5=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/ebiz/sale/sale.js | 18 + src/router/ebiz/sale.js | 9 + src/views/ebiz/common/CalculatePremium.vue | 4 + src/views/ebiz/common/MainRiskList.vue | 31 +- src/views/ebiz/common/SelectedProduct.vue | 80 +++- src/views/ebiz/sale/InsuranceInformation.vue | 5 + src/views/ebiz/sale/SignatureConfirmation.vue | 41 +- src/views/ebiz/sale/apointValidDoc.vue | 376 ++++++++++++++++++ 8 files changed, 535 insertions(+), 29 deletions(-) create mode 100644 src/views/ebiz/sale/apointValidDoc.vue diff --git a/src/api/ebiz/sale/sale.js b/src/api/ebiz/sale/sale.js index b8e3ca7f9..0c1d2e10d 100644 --- a/src/api/ebiz/sale/sale.js +++ b/src/api/ebiz/sale/sale.js @@ -253,3 +253,21 @@ export function checkCard(data) { data }) } + +// 获取订单活动信息 +export function getOrderActiveInfo(data) { + return request({ + url: getUrl('/sale/order/getActiveInfo', 1), + method: 'post', + data + }) +} + +// 获取订单活动信息 +export function saveOrderActiveType(data) { + return request({ + url: getUrl('/sale/order/saveActiveType', 1), + method: 'post', + data + }) +} diff --git a/src/router/ebiz/sale.js b/src/router/ebiz/sale.js index 8f2e7ae98..75456c643 100644 --- a/src/router/ebiz/sale.js +++ b/src/router/ebiz/sale.js @@ -25,6 +25,7 @@ const productTip = () => import('@/views/ebiz/sale/productTip') const avoidDutyTip = () => import('@/views/ebiz/sale/AvoidDutyTip') const doubleRecordTip = () => import('@/views/ebiz/sale/DoubleRecordTip') const PayResultFail = () => import('@/views/ebiz/sale/PayResultFail') +const apointValidDoc = () => import('@/views/ebiz/sale/apointValidDoc') let riskName = localStorage.riskName console.log('sale/riskName==', riskName) export default [ @@ -161,6 +162,14 @@ export default [ title: '免除保险人责任条款说明书' } }, + { + path: '/sale/apointValidDoc', + name: 'apointValidDoc', + component: apointValidDoc, + meta: { + title: '免除保险人责任条款说明书' + } + }, { path: '/sale/doubleRecordTip', name: 'doubleRecordTip', diff --git a/src/views/ebiz/common/CalculatePremium.vue b/src/views/ebiz/common/CalculatePremium.vue index bc9c82878..451edf603 100644 --- a/src/views/ebiz/common/CalculatePremium.vue +++ b/src/views/ebiz/common/CalculatePremium.vue @@ -270,6 +270,9 @@ 保额(元): {{ trialList[index].showPrem | moneyFormat }} +
+ 指定保单生效日:2021年1月1日 +
完成 @@ -350,6 +353,7 @@ export default { }, data() { return { + activeType: localStorage.getItem('active_type'), chooseProducts: [], productIndex: '', calFactorIndex: '', diff --git a/src/views/ebiz/common/MainRiskList.vue b/src/views/ebiz/common/MainRiskList.vue index 8566e49d3..a1f605e40 100644 --- a/src/views/ebiz/common/MainRiskList.vue +++ b/src/views/ebiz/common/MainRiskList.vue @@ -3,11 +3,13 @@ -

- {{ item.productType }} - {{ item.riskName }} -

- +
+

+ {{ item.productType }} + {{ item.riskName }} +

+ +
@@ -40,7 +42,8 @@ export default { result: '', delList: [], radioVal: '', - isFrom: localStorage.isFrom + isFrom: localStorage.isFrom, + activeFlag: '' } }, async mounted() { @@ -61,6 +64,8 @@ export default { this.specilFlag = '1' } // ------------------------专为桂企写死--end---------------// + // 处理活动产品 + this.activeFlag = res.orderDTO.orderInfoDTO.activeType } resolve(this.getMainRiskList()) }, @@ -74,6 +79,20 @@ export default { } }, methods: { + checkItemShow(item) { + if (this.activeFlag != 'KMH') { + return true + } + let showFlag = false + if (item.activeLst && item.activeLst.length > 0) { + item.activeLst.forEach(subItem => { + if (subItem == 'KMH') { + showFlag = true + } + }) + } + return showFlag + }, //获取主险列表 async getMainRiskList() { let mainRiskCodes = localStorage.mainRiskCodes && JSON.parse(localStorage.mainRiskCodes) diff --git a/src/views/ebiz/common/SelectedProduct.vue b/src/views/ebiz/common/SelectedProduct.vue index e52b0ae70..d07cb6c96 100644 --- a/src/views/ebiz/common/SelectedProduct.vue +++ b/src/views/ebiz/common/SelectedProduct.vue @@ -33,6 +33,25 @@
+ +
+ + +
+ +
开门红产品
+
+
+ +
+ +
普通产品
+
+
+
+
+
+
@@ -45,11 +64,12 @@
+ From d6eaf1ea2ff1a7de1cdf8fda8967ae3bc82700fd Mon Sep 17 00:00:00 2001 From: "yang.huaxiang" Date: Wed, 11 Nov 2020 10:49:57 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E5=BC=80=E9=97=A8=E7=BA=A2=E9=9C=80?= =?UTF-8?q?=E6=B1=82-=E7=94=B5=E6=8A=95=E6=8F=90=E7=A4=BA=EF=BC=9A?= =?UTF-8?q?=E7=94=B5=E6=8A=95=E6=8F=90=E7=A4=BA=E5=A4=84=E7=90=86=E5=88=9D?= =?UTF-8?q?=E7=89=88=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4=20--=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E4=BA=BA=EF=BC=9A=E9=98=B3=E5=8D=8E=E7=A5=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/common/SelectedProduct.vue | 57 ++++++++++++++--------- 1 file changed, 34 insertions(+), 23 deletions(-) diff --git a/src/views/ebiz/common/SelectedProduct.vue b/src/views/ebiz/common/SelectedProduct.vue index d07cb6c96..da77965f1 100644 --- a/src/views/ebiz/common/SelectedProduct.vue +++ b/src/views/ebiz/common/SelectedProduct.vue @@ -375,7 +375,6 @@ export default { let resultData = await getOrderActiveInfo(param) if (resultData.result == 0) { if (resultData.content.activeFlag != '1') { - // todo 弹框 显示 this.active_show = true return } @@ -396,31 +395,43 @@ export default { }) }, comfirmCheckActive() { - let param = { - orderDTO: { - orderInfoDTO: { - orderNo: localStorage.orderNo, - activeType: 'KMH' + if (this.active_radio == '1') { + let param = { + orderDTO: { + orderInfoDTO: { + orderNo: localStorage.orderNo, + activeType: 'KMH' + } } } + saveOrderActiveType(param).then(res => { + this.active_show = false + localStorage.setItem('active_type', 'KMH') + if (res.result == 0) { + this.$jump({ + flag: 'h5', + extra: { + url: location.origin + '/#/common/mainRiskList' + }, + routerInfo: { + path: '/common/mainRiskList' + } + }) + } else { + this.$toast(res.resultMessage) + } + }) + } else { + this.$jump({ + flag: 'h5', + extra: { + url: location.origin + '/#/common/mainRiskList' + }, + routerInfo: { + path: '/common/mainRiskList' + } + }) } - saveOrderActiveType(param).then(res => { - this.active_show = false - localStorage.setItem('active_type', 'KMH') - if (res.result == 0) { - this.$jump({ - flag: 'h5', - extra: { - url: location.origin + '/#/common/mainRiskList' - }, - routerInfo: { - path: '/common/mainRiskList' - } - }) - } else { - this.$toast(res.resultMessage) - } - }) }, showTipForDoubleRecord() { //判断投保人年龄是否大于等于60岁 From 808f849ed23e2ad6be7540cd8bc8adaf5a8acd23 Mon Sep 17 00:00:00 2001 From: "yang.huaxiang" Date: Thu, 12 Nov 2020 16:45:56 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E5=BC=80=E9=97=A8=E7=BA=A2=E9=9C=80?= =?UTF-8?q?=E6=B1=82-=E7=94=B5=E6=8A=95=E6=8F=90=E7=A4=BA=EF=BC=9A?= =?UTF-8?q?=E7=94=B5=E6=8A=95=E6=8F=90=E7=A4=BA=E5=A4=84=E7=90=86=E5=88=9D?= =?UTF-8?q?=E7=89=88=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4=20--=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E4=BA=BA=EF=BC=9A=E9=98=B3=E5=8D=8E=E7=A5=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/common/MainRiskList.vue | 25 +++---- src/views/ebiz/common/SelectedProduct.vue | 88 +++++++++++------------ src/views/ebiz/sale/apointValidDoc.vue | 33 ++++----- 3 files changed, 74 insertions(+), 72 deletions(-) diff --git a/src/views/ebiz/common/MainRiskList.vue b/src/views/ebiz/common/MainRiskList.vue index a1f605e40..9f6757831 100644 --- a/src/views/ebiz/common/MainRiskList.vue +++ b/src/views/ebiz/common/MainRiskList.vue @@ -2,20 +2,16 @@
- -
-

- {{ item.productType }} - {{ item.riskName }} -

- -
+ +

+ {{ item.productType }} + {{ item.riskName }} +

+
- -
- +
完成
@@ -354,4 +350,9 @@ export default { } } - + diff --git a/src/views/ebiz/common/SelectedProduct.vue b/src/views/ebiz/common/SelectedProduct.vue index da77965f1..bbed03c07 100644 --- a/src/views/ebiz/common/SelectedProduct.vue +++ b/src/views/ebiz/common/SelectedProduct.vue @@ -33,22 +33,26 @@
- -
+ +
+

请选择:

- -
- -
开门红产品
+ +
+ +
开门红产品
- -
- -
普通产品
+ +
+ +
普通产品
+
+ 确认 +
@@ -395,43 +399,31 @@ export default { }) }, comfirmCheckActive() { - if (this.active_radio == '1') { - let param = { - orderDTO: { - orderInfoDTO: { - orderNo: localStorage.orderNo, - activeType: 'KMH' - } + let param = { + orderDTO: { + orderInfoDTO: { + orderNo: localStorage.orderNo, + activeType: this.active_radio == '1' ? 'KMH' : '' } } - saveOrderActiveType(param).then(res => { - this.active_show = false - localStorage.setItem('active_type', 'KMH') - if (res.result == 0) { - this.$jump({ - flag: 'h5', - extra: { - url: location.origin + '/#/common/mainRiskList' - }, - routerInfo: { - path: '/common/mainRiskList' - } - }) - } else { - this.$toast(res.resultMessage) - } - }) - } else { - this.$jump({ - flag: 'h5', - extra: { - url: location.origin + '/#/common/mainRiskList' - }, - routerInfo: { - path: '/common/mainRiskList' - } - }) } + saveOrderActiveType(param).then(res => { + this.active_show = false + localStorage.setItem('active_type', this.active_radio == '1' ? 'KMH' : '') + if (res.result == 0) { + this.$jump({ + flag: 'h5', + extra: { + url: location.origin + '/#/common/mainRiskList' + }, + routerInfo: { + path: '/common/mainRiskList' + } + }) + } else { + this.$toast(res.resultMessage) + } + }) }, showTipForDoubleRecord() { //判断投保人年龄是否大于等于60岁 @@ -484,5 +476,13 @@ export default { font-weight: bold; font-size: 15px; } + .radio_class { + height: 80px; + border-bottom: 1px solid #8e8d8d; + } + .dialog-comfirm-button { + width: 50%; + border-radius: 6px; + } } diff --git a/src/views/ebiz/sale/apointValidDoc.vue b/src/views/ebiz/sale/apointValidDoc.vue index bebc33f76..95c410a42 100644 --- a/src/views/ebiz/sale/apointValidDoc.vue +++ b/src/views/ebiz/sale/apointValidDoc.vue @@ -1,29 +1,30 @@