From d0c91dc0bc3b83a0eca7c9f97a453b9ad848d5b1 Mon Sep 17 00:00:00 2001
From: lyt
Date: Mon, 17 Apr 2023 15:36:07 +0800
Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=BB=BA=E8=AE=AE=E4=B9=A6=E4=BC=98?=
=?UTF-8?q?=E5=8C=96=E9=9C=80=E6=B1=82=E3=80=91=E8=AF=95=E7=AE=97=E9=A1=B5?=
=?UTF-8?q?=E9=9D=A2=E4=B8=8D=E5=A1=AB=E5=86=99=E5=A7=93=E5=90=8D=E6=97=B6?=
=?UTF-8?q?=E5=B1=95=E7=A4=BA=E6=80=A7=E5=88=AB+=E5=B9=B4=E9=BE=84,?=
=?UTF-8?q?=E5=A6=82:=E7=94=B730=E5=B2=81(=E4=B8=8D=E8=90=BD=E5=BA=93)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/ebiz/common/CalculatePremium.vue | 7 ++++
src/views/ebiz/proposal/Appnt.vue | 16 +++++++-
.../ebiz/proposal/ChooseInsuredPerson.vue | 5 +++
src/views/ebiz/proposal/InsuredPerson.vue | 39 ++++++++++++-------
src/views/ebiz/proposal/ProposalInfo.vue | 10 +++++
5 files changed, 60 insertions(+), 17 deletions(-)
diff --git a/src/views/ebiz/common/CalculatePremium.vue b/src/views/ebiz/common/CalculatePremium.vue
index 14dc5a186..774cf20da 100644
--- a/src/views/ebiz/common/CalculatePremium.vue
+++ b/src/views/ebiz/common/CalculatePremium.vue
@@ -607,7 +607,14 @@ export default {
//获取被保险人信息
if (this.$CacheUtils.getLocItem('saleInsuredPersonInfo')) {
this.saleInsuredPersonInfo = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo'))
+ if (this.isFrom == 'proposal' && !this.saleInsuredPersonInfo.name) {
+ this.saleInsuredPersonInfo.age = this.saleInsuredPersonInfo.insuredAge
+ // 建议书投保人/被保人姓名不必填, 填写姓名时展示姓名(落库),不填写姓名时展示性别+年龄,如:男30岁(不落库)
+ let sex = this.saleInsuredPersonInfo.sex == '0'?'男':'女'
+ this.saleInsuredPersonInfo.name = sex + this.saleInsuredPersonInfo.age
+ }
}
+
// this.cvalidateFlag = (this.activeType == 'KMH'||this.activeType == 'SQY') && this.isFrom != 'proposal'
// this.cvalidateStr = this.cvalidateFlag?this.activeType == 'KMH'?'2021-01-01':this.activeType == 'SQY'?'2021-06-01':'':''
//GFRS-2552【需求】关于金掌桂投保流程增设指定生效日按钮的申请
diff --git a/src/views/ebiz/proposal/Appnt.vue b/src/views/ebiz/proposal/Appnt.vue
index 3159706b1..697f65094 100644
--- a/src/views/ebiz/proposal/Appnt.vue
+++ b/src/views/ebiz/proposal/Appnt.vue
@@ -6,8 +6,6 @@
class="border-bottom"
@nameChange="nameChange"
@on-choose="chooseCustomer"
- v-validate="'required|name'"
- :required="true"
name="投保人"
label="姓名"
@on-click="selectClick('1')"
@@ -122,6 +120,11 @@ export default {
}
let res = await getDetail(proposalInfoDTO)
this.appntDTO = res.content[0].appntDTO
+ // 建议书投保人/被保人姓名不必填, 填写姓名时展示姓名(落库),不填写姓名时展示性别+年龄,如:男30岁(不落库)
+ if(!this.appntDTO.name){
+ let sex = this.appntDTO.sex == '0'?'男':'女'
+ this.appntDTO.name = sex+this.appntDTO.age
+ }
}
},
stepIn() {
@@ -245,6 +248,12 @@ export default {
},
nextStep() {
+ // 建议书投保人/被保人姓名不必填, 填写姓名时展示姓名(落库),不填写姓名时展示性别+年龄,如:男30岁(不落库)
+ let sex = this.appntDTO.sex == '0'?'男':'女'
+ let name = sex + this.appntDTO.age
+ if(this.appntDTO.name == name){
+ this.appntDTO.name = ''
+ }
this.appntDTO.age = String(this.appntDTO.age)
this.$validator.validate().then(valid => {
if (true === valid) {
@@ -291,6 +300,9 @@ export default {