From 844cf33dcd64ac5c5cec63b991a2638074fce28b 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/proposal/Appnt.vue | 16 +++++++- .../ebiz/proposal/ChooseInsuredPerson.vue | 5 +++ src/views/ebiz/proposal/InsuredPerson.vue | 39 ++++++++++++------- src/views/ebiz/proposal/ProposalInfo.vue | 10 +++++ 4 files changed, 53 insertions(+), 17 deletions(-) diff --git a/src/views/ebiz/proposal/Appnt.vue b/src/views/ebiz/proposal/Appnt.vue index dafb71fdd..8831ee594 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 {