From 0343aeb2a4aed6dbb350d453b1ffefb1a3383491 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=B3=E5=8D=8E=E7=A5=A5?= Date: Fri, 13 Mar 2020 10:18:11 +0800 Subject: [PATCH] =?UTF-8?q?GFRS-729=E3=80=900326=E3=80=91=E5=9B=BD?= =?UTF-8?q?=E5=AF=8C=E4=BA=BA=E5=AF=BF=E5=9B=BD=E5=AF=8C=E6=B0=91=E5=AE=89?= =?UTF-8?q?=E9=87=8D=E5=A4=A7=E7=96=BE=E7=97=85=E4=BF=9D=E9=99=A9=EF=BC=88?= =?UTF-8?q?2020=E7=89=88=EF=BC=89=5F1=20=E4=BF=9D=E8=B4=B9=E8=AE=A1?= =?UTF-8?q?=E7=AE=97=E9=99=A9=E7=A7=8D=E6=8F=90=E7=A4=BA=E8=AF=AD=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E3=80=81=E7=AD=BE=E5=90=8D=E9=A1=B5=E7=89=B9=E5=88=AB?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E6=B7=BB=E5=8A=A0=20--=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=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/AddRiskList.vue | 1 + src/views/ebiz/common/CalculatePremium.vue | 20 ++++++++++--------- src/views/ebiz/common/MainRiskList.vue | 1 + src/views/ebiz/sale/SignatureConfirmation.vue | 11 ++++++++++ 4 files changed, 24 insertions(+), 9 deletions(-) diff --git a/src/views/ebiz/common/AddRiskList.vue b/src/views/ebiz/common/AddRiskList.vue index 6a15b5ea4..5abe3d653 100644 --- a/src/views/ebiz/common/AddRiskList.vue +++ b/src/views/ebiz/common/AddRiskList.vue @@ -122,6 +122,7 @@ export default { let currentProductInfo = { calFactorLst, isMainRisk: 1, + hint: resultData.hint, riskType: resultData.riskType, riskName: this.result.riskName, productCode: this.result.productCode, diff --git a/src/views/ebiz/common/CalculatePremium.vue b/src/views/ebiz/common/CalculatePremium.vue index e9a1e3a10..bee47e640 100644 --- a/src/views/ebiz/common/CalculatePremium.vue +++ b/src/views/ebiz/common/CalculatePremium.vue @@ -488,17 +488,18 @@ export default { return } let currentEle = this.chooseProducts[productIndex].calFactorLst[calFactorIndex].rules[dutyItemIndex] + let showHint = this.chooseProducts[productIndex].hint if (value < min || value > max) { - this.$toast(localStorage.hint) + this.$toast(showHint) } else { if ((Number(value) * 10000) % (Number(currentEle.limit) * 10000) != 0) { Dialog.alert({ - message: localStorage.hint + message: showHint }).then(() => { currentEle.defaultDutyAmt = currentEle.minDutyAmt }) - // this.$toast(localStorage.hint) + // this.$toast(showHint) } else { // this.mainRiskInfluenceAddRisk() // currentEle['amt'] = Number(defalutValue) * Number(currentEle.moneyUnit) @@ -1071,18 +1072,19 @@ export default { : this.chooseProducts[productIndex].calFactorLst[calFactorIndex] //改动原因:孝心保产品有对年龄的特殊要求 //添加判断,是否是孝心保产品 + let showHint = this.chooseProducts[productIndex].hint let productCode = localStorage.trialList == '' ? '' : JSON.parse(localStorage.trialList)[0].productCode if (productCode == 'GFRS_M0014') { //被保险人年龄如果在50-65区间 if (this.saleInsuredPersonInfo.age >= 50 && this.saleInsuredPersonInfo.age <= 65) { //使用rules规则里的第二条控制保额份数 if (Number(defalutValue) < Number(riskFactor.rules[1].minPrem) || Number(defalutValue) > Number(riskFactor.rules[1].maxPrem)) { - this.$toast(localStorage.hint) + this.$toast(showHint) this.nextStepFlag = true } else { if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) { // this.defalutAmt = currentEle.rules[productIndex].displayAmount - this.$toast(localStorage.hint) + this.$toast(showHint) this.nextStepFlag = true } else { this.mainRiskInfluenceAddRisk() @@ -1094,12 +1096,12 @@ export default { } else if (this.saleInsuredPersonInfo.age >= 66 && this.saleInsuredPersonInfo.age <= 75) { //使用rules规则里的第一条控制保额份数 if (Number(defalutValue) < Number(riskFactor.rules[0].minPrem) || Number(defalutValue) > Number(riskFactor.rules[0].maxPrem)) { - this.$toast(localStorage.hint) + this.$toast(showHint) this.nextStepFlag = true } else { if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) { // this.defalutAmt = currentEle.rules[productIndex].displayAmount - this.$toast(localStorage.hint) + this.$toast(showHint) this.nextStepFlag = true } else { this.mainRiskInfluenceAddRisk() @@ -1144,12 +1146,12 @@ export default { } } else { if (Number(defalutValue) < Number(min) || Number(defalutValue) > Number(max)) { - this.$toast(localStorage.hint) + this.$toast(showHint) this.nextStepFlag = true } else { if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) { // defalutValue = currentEle.rules[productIndex].displayAmount - this.$toast(localStorage.hint) + this.$toast(showHint) this.nextStepFlag = true } else { this.mainRiskInfluenceAddRisk() diff --git a/src/views/ebiz/common/MainRiskList.vue b/src/views/ebiz/common/MainRiskList.vue index b5922a808..d2e611839 100644 --- a/src/views/ebiz/common/MainRiskList.vue +++ b/src/views/ebiz/common/MainRiskList.vue @@ -171,6 +171,7 @@ export default { calFactorLst, hasAddtionRisk, isMainRisk: 0, + hint: resultData.hint, riskType: resultData.riskType, riskName: this.result.riskName, productCode: this.result.riskProductCode, diff --git a/src/views/ebiz/sale/SignatureConfirmation.vue b/src/views/ebiz/sale/SignatureConfirmation.vue index cb841cdae..431af6fb4 100644 --- a/src/views/ebiz/sale/SignatureConfirmation.vue +++ b/src/views/ebiz/sale/SignatureConfirmation.vue @@ -729,6 +729,17 @@ export default { : '您以无社保身份投保,理赔时,若未通过社会基本医疗保险或者公费医疗就诊并结算的,意外伤害医疗保险金的赔付比例和免赔额分别70%,100元;理赔时,若通过社会基本医疗保险或者公费医疗就诊并结算的,意外伤害医疗保险金的赔付比例为90%,免赔额为0元。' Dialog({ message }) } + } else { + // 附加住院医疗险 GFRS_A0004 + if ( + !!res.orderDTO.productDTO && + !!res.orderDTO.productDTO.special && + !!res.orderDTO.productDTO.special.content && + res.orderDTO.productDTO.special.content !== '' + ) { + const message = res.orderDTO.productDTO.special.content + Dialog({ message }) + } } localStorage.setItem('lastOrderNo', data.orderNo)