From f55cda57366f0f43d82f417ade222f8aa38b25ae Mon Sep 17 00:00:00 2001
From: proudlx <965752348@qq.com>
Date: Tue, 20 Apr 2021 13:28:41 +0800
Subject: [PATCH] =?UTF-8?q?'=E9=87=8D=E6=96=B0=E6=8A=95=E4=BF=9D=E6=96=B0?=
=?UTF-8?q?=E4=BF=9D=E5=8D=95=E8=AF=A6=E6=83=85?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../ebiz/insureAgain/InsureInformation.vue | 224 +++++++++++-------
src/views/ebiz/insureAgain/Notification.vue | 10 +-
.../insureAgain/SignatureConfirmation.vue | 28 +--
3 files changed, 158 insertions(+), 104 deletions(-)
diff --git a/src/views/ebiz/insureAgain/InsureInformation.vue b/src/views/ebiz/insureAgain/InsureInformation.vue
index a70cc16e5..18f2ebaa8 100644
--- a/src/views/ebiz/insureAgain/InsureInformation.vue
+++ b/src/views/ebiz/insureAgain/InsureInformation.vue
@@ -136,6 +136,7 @@
placeholder="请输入,单位cm"
v-validate="'required|onlyNumber|stature'"
clearable
+ :readonly="insuredPersonInfo.relationToAppnt == 1"
@blur="checkStature(insuredPersonInfo.stature)"
maxlength="5"
/>
@@ -147,6 +148,7 @@
placeholder="请输入,单位kg"
v-validate="'required|onlyNumber|avoirdupois'"
clearable
+ :readonly="insuredPersonInfo.relationToAppnt == 1"
@blur="checkAvoirdupois(insuredPersonInfo.avoirdupois)"
/>
{
- item.subs.forEach((item) => {
- if (item.code == this.userInfo.occupationCode) {
- this.userInfo.occupationName = item.name
- this.userInfo.lifeGrade = item.lifeGrade
- return
- }
- })
- })
- this.setCustomerMarriage(res.orderDTO.appntDTO.marriage)
- //是否长期
- this.userInfo.effectiveDateType = res.orderDTO.appntDTO.effectiveDateType ? true : false
- //有无社保
- this.userInfo.medical = res.orderDTO.appntDTO.medical
-
- this.$utils.intLocalStorage(res)
- this.homeName = getAreaName([{ code: this.userInfo.homeProvince }, { code: this.userInfo.homeCity }, { code: this.userInfo.homeArea }])
-
- // 被投保人信息
- this.insuredPersonInfo = res.orderDTO.insuredDTOs[0]
- let firstTier = Number(this.insuredPersonInfo.occupationCode.substr(0, 1)) - 1
- occupationList[firstTier].subs.forEach((item) => {
- item.subs.forEach((item) => {
- if (item.code == this.insuredPersonInfo.occupationCode) {
- this.insuredPersonInfo.occupationName = item.name
- this.insuredPersonInfo.lifeGrade = item.lifeGrade
- return
- }
- })
- })
- this.setInsuredCustomerMarriage(this.insuredPersonInfo.marriage)
- if (this.insuredPersonInfo.homeProvince.length) {
- this.insuredHomeName = getAreaName([
- { code: this.insuredPersonInfo.homeProvince },
- { code: this.insuredPersonInfo.homeCity },
- { code: this.insuredPersonInfo.homeArea }
- ])
- }
-
- //受益人信息
- //bnfFlag 0-法定受益人 1-指定受益人
- this.bnfPersonInfo = res.orderDTO.insuredDTOs[0]['bnfDTOs']
- if (this.bnfPersonInfo[0]['bnfType'] === '1') {
- this.bnftype = '1'
- this.bnfPersonInfo.forEach((item, index) => {
- this.bnfHomeName[index] = getAreaName([{ code: item.province }, { code: item.city }, { code: item.area }])
- //设置婚姻文字显示
- for (let status of DataDictionary.marriage) {
- if (status.id == item.marriage) {
- item.marriageStatus = status.text
+ getOrderDetail({
+ orderNo: CacheUtils.getLocItem('orderNo'),
+ getOtherType: 'RID'
+ }).then(async (res) => {
+ if (res.result == 1) {
+ var res = JSON.parse(CacheUtils.getLocItem('orderDetailData'))
+ if (!res) {
+ console.log('==================orderDetailData不存在=========================')
+ res = await getReAppntPolicy({ policyNo: CacheUtils.getLocItem('policyNo') })
+ if (res.result == 0) {
+ CacheUtils.setLocItem('orderDetailData', JSON.stringify(res))
+ } else {
+ this.$toast(res.resultMessage)
+ return false
}
}
- let firstTierBnf = Number(item.occupationCode.substr(0, 1)) - 1
- occupationList[firstTierBnf].subs.forEach((key) => {
- key.subs.forEach((key) => {
- if (key.code == item.occupationCode) {
- item.occupationName = key.name
- item.lifeGrade = item.lifeGrade
- return
- }
- })
+ }
+ //投保人信息返显
+ this.userInfo = res.orderDTO.appntDTO
+ let firstTierUserInfo = Number(this.userInfo.occupationCode.substr(0, 1)) - 1
+ occupationList[firstTierUserInfo].subs.forEach((item) => {
+ item.subs.forEach((item) => {
+ if (item.code == this.userInfo.occupationCode) {
+ this.userInfo.occupationName = item.name
+ this.userInfo.lifeGrade = item.lifeGrade
+ return
+ }
})
})
- } else {
- this.bnftype = '0'
- this.insuredPersonInfo['bnfDTOs'] = []
- }
- // 账户信息
- this.accountPersonInfo = res.orderDTO.orderAccountDTO
- this.accountPersonInfo.bankCode = this.accountPersonInfo.bankName
- dataDic['edorBankType'].some((item) => {
- if (item.id == this.accountPersonInfo.bankName) {
- this.accountPersonInfo.bankName = item.text
+ this.setCustomerMarriage(res.orderDTO.appntDTO.marriage)
+ //是否长期
+ this.userInfo.effectiveDateType = res.orderDTO.appntDTO.effectiveDateType ? true : false
+ //有无社保
+ this.userInfo.medical = res.orderDTO.appntDTO.medical
+
+ this.$utils.intLocalStorage(res)
+ this.homeName = getAreaName([{ code: this.userInfo.homeProvince }, { code: this.userInfo.homeCity }, { code: this.userInfo.homeArea }])
+
+ // 被投保人信息
+ this.insuredPersonInfo = res.orderDTO.insuredDTOs[0]
+ let firstTier = Number(this.insuredPersonInfo.occupationCode.substr(0, 1)) - 1
+ occupationList[firstTier].subs.forEach((item) => {
+ item.subs.forEach((item) => {
+ if (item.code == this.insuredPersonInfo.occupationCode) {
+ this.insuredPersonInfo.occupationName = item.name
+ this.insuredPersonInfo.lifeGrade = item.lifeGrade
+ return
+ }
+ })
+ })
+ this.setInsuredCustomerMarriage(this.insuredPersonInfo.marriage)
+ if (this.insuredPersonInfo.homeProvince.length) {
+ this.insuredHomeName = getAreaName([
+ { code: this.insuredPersonInfo.homeProvince },
+ { code: this.insuredPersonInfo.homeCity },
+ { code: this.insuredPersonInfo.homeArea }
+ ])
+ }
+
+ //受益人信息
+ //bnfFlag 0-法定受益人 1-指定受益人
+ this.bnfPersonInfo = res.orderDTO.insuredDTOs[0]['bnfDTOs']
+ if (this.bnfPersonInfo && this.bnfPersonInfo[0]['bnfType'] === '1') {
+ this.bnftype = '1'
+ this.bnfPersonInfo.forEach((item, index) => {
+ this.bnfHomeName[index] = getAreaName([{ code: item.province }, { code: item.city }, { code: item.area }])
+ //设置婚姻文字显示
+ for (let status of DataDictionary.marriage) {
+ if (status.id == item.marriage) {
+ item.marriageStatus = status.text
+ }
+ }
+ let firstTierBnf = Number(item.occupationCode.substr(0, 1)) - 1
+ occupationList[firstTierBnf].subs.forEach((key) => {
+ key.subs.forEach((key) => {
+ if (key.code == item.occupationCode) {
+ item.occupationName = key.name
+ item.lifeGrade = item.lifeGrade
+ return
+ }
+ })
+ })
+ })
+ } else {
+ this.bnftype = '0'
+ this.insuredPersonInfo['bnfDTOs'] = []
+ }
+ // 账户信息
+ this.accountPersonInfo = res.orderDTO.orderAccountDTO
+ this.accountPersonInfo.bankCode = this.accountPersonInfo.bankName
+ dataDic['edorBankType'].some((item) => {
+ if (item.id == this.accountPersonInfo.bankName) {
+ this.accountPersonInfo.bankName = item.text
+ }
+ })
+ if (this.accountPersonInfo.accBankProvince) {
+ let provinces = areaList.province_list
+ let cities = areaList.city_list
+ this.accountPersonInfo.areaStr = `${provinces[this.accountPersonInfo.accBankProvince]}-${cities[this.accountPersonInfo.accBankCity]}`
}
})
// this.insuredPersonInfo.homeAddress = '汉字汉字汉字汉字123123'
@@ -606,6 +651,7 @@ export default {
* @return {*}
*/
toSelect(pickerType, valueKey, userType, bnfIndex) {
+ if (this.insuredPersonInfo.relationToAppnt == 1 && userType == 'insuredDTOs') return
bnfIndex ? (this.bnfIndex = bnfIndex) : (this.bnfIndex = 0)
;[this.popupShow, this.pickerType] = [true, pickerType]
if (valueKey) this.valueKey = valueKey
@@ -709,6 +755,9 @@ export default {
} else if (this.pickerType === '10') {
if (this.userType === 'appntDTO') {
this.userInfo.marriageStatus = value.text
+ if (this.insuredPersonInfo.relationToAppnt == 1) {
+ this.insuredPersonInfo.marriageStatus = this.userInfo.marriageStatus
+ }
} else if (this.userType === 'insuredDTOs') {
this.insuredPersonInfo.marriageStatus = value.text
} else if (this.userType === 'bnfDTOs') {
@@ -809,6 +858,9 @@ export default {
if (status.text === this.userInfo.marriageStatus) {
this.userInfo.marriage = status.id
}
+ if (status.text === this.insuredPersonInfo.marriageStatus) {
+ this.insuredPersonInfo.marriage = status.id
+ }
}
this.save()
} else {
diff --git a/src/views/ebiz/insureAgain/Notification.vue b/src/views/ebiz/insureAgain/Notification.vue
index 6e935ec3c..1756c0cb4 100644
--- a/src/views/ebiz/insureAgain/Notification.vue
+++ b/src/views/ebiz/insureAgain/Notification.vue
@@ -203,14 +203,16 @@ export default {
) {
if (insuredPersionFinanceImpartDTO && insuredPersionFinanceImpartDTO.impartItemDTOS && this.relationToAppnt == '1') {
this.impartDTOS.push({ impartItemDTOS: insuredPersionFinanceImpartDTO.impartItemDTOS, impartType: insuredPersionFinanceImpartDTO.impartType })
- } else if (insuredFinanceImpartDTO && insuredFinanceImpartDTO.impartItemDTOS) {
- this.impartDTOS.push({ impartItemDTOS: insuredFinanceImpartDTO.impartItemDTOS, impartType: insuredFinanceImpartDTO.impartType })
}
+ // else if (insuredFinanceImpartDTO && insuredFinanceImpartDTO.impartItemDTOS) {
+ // this.impartDTOS.push({ impartItemDTOS: insuredFinanceImpartDTO.impartItemDTOS, impartType: insuredFinanceImpartDTO.impartType })
+ // }
if (insuredPersionImpartDTO && insuredPersionImpartDTO.impartItemDTOS && this.relationToAppnt == '1') {
this.impartDTOS.push({ impartItemDTOS: insuredPersionImpartDTO.impartItemDTOS, impartType: insuredPersionImpartDTO.impartType })
- } else if (insuredImpartDTO && insuredImpartDTO.impartItemDTOS) {
- this.impartDTOS.push({ impartItemDTOS: insuredImpartDTO.impartItemDTOS, impartType: insuredImpartDTO.impartType })
}
+ // else if (insuredImpartDTO && insuredImpartDTO.impartItemDTOS) {
+ // this.impartDTOS.push({ impartItemDTOS: insuredImpartDTO.impartItemDTOS, impartType: insuredImpartDTO.impartType })
+ // }
if (this.relationToAppnt != '1') {
if (insuredPersionFinanceImpartDTO && insuredPersionFinanceImpartDTO.impartItemDTOS) {
this.impartDTOS.push({ impartItemDTOS: insuredPersionFinanceImpartDTO.impartItemDTOS, impartType: insuredPersionFinanceImpartDTO.impartType })
diff --git a/src/views/ebiz/insureAgain/SignatureConfirmation.vue b/src/views/ebiz/insureAgain/SignatureConfirmation.vue
index 65cac7ba5..0cd5cb9a4 100644
--- a/src/views/ebiz/insureAgain/SignatureConfirmation.vue
+++ b/src/views/ebiz/insureAgain/SignatureConfirmation.vue
@@ -1166,21 +1166,21 @@ export default {
res.orderDTO.productDTO.special.content !== ''
) {
- let content = res.orderDTO.productDTO.special.content
+ // let content = res.orderDTO.productDTO.special.content
- try {
- const config = JSON.parse(content)
- config.message = ' ' + config.message
- config.message = config.message.split('\\n').join('\n ')
- Dialog(config)
- } catch (error) {
- const message = ' ' + content
- Dialog({
- message: message.split('\\n').join('\n '),
- confirmButtonText: '本人已阅读并同意上述特别约定内容',
- messageAlign: 'left'
- })
- }
+ // try {
+ // const config = JSON.parse(content)
+ // config.message = ' ' + config.message
+ // config.message = config.message.split('\\n').join('\n ')
+ // Dialog(config)
+ // } catch (error) {
+ // const message = ' ' + content
+ // Dialog({
+ // message: message.split('\\n').join('\n '),
+ // confirmButtonText: '本人已阅读并同意上述特别约定内容',
+ // messageAlign: 'left'
+ // })
+ // }
}
localStorage.setItem('lastOrderNo', data.orderNo)
localStorage.setItem('AppntidType', res.orderDTO.appntDTO.idType)