From 07d0c0c64d04b834d51840ca1a972745f1019db0 Mon Sep 17 00:00:00 2001 From: wangmingzhe Date: Thu, 19 Dec 2019 09:14:08 +0800 Subject: [PATCH 1/2] =?UTF-8?q?[IMP]=20=E4=BC=98=E5=8C=96=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/claims/Accident.vue | 6 +++--- src/views/ebiz/claims/InsuredInfo.vue | 4 ++-- src/views/ebiz/claims/ReportApply.vue | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/views/ebiz/claims/Accident.vue b/src/views/ebiz/claims/Accident.vue index 3eb11a15b..90b00be19 100644 --- a/src/views/ebiz/claims/Accident.vue +++ b/src/views/ebiz/claims/Accident.vue @@ -59,13 +59,13 @@ v-model="userInfo.accidentAddress" rows="1" autosize - required + v-validate="'required'" center - label="详细地址" + label="" name="详细地址" type="textarea" clearable - placeholder="请输入详细地址" + placeholder="请输入详细地点" maxlength="30" /> - + Date: Thu, 19 Dec 2019 11:20:36 +0800 Subject: [PATCH 2/2] =?UTF-8?q?[IMP]=20=E4=BF=AE=E6=94=B9=E5=AE=A2?= =?UTF-8?q?=E6=88=B7=E6=9F=A5=E8=AF=A2=EF=BC=8C=E6=90=9C=E7=B4=A2=E5=92=8C?= =?UTF-8?q?=E5=8F=96=E6=B6=88=E7=9A=84=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ebiz/claims/Customer.vue | 7 +++++++ src/views/ebiz/claims/Accident.vue | 16 ++++++++++------ src/views/ebiz/claims/ReportApply.vue | 4 ++++ src/views/ebiz/claims/SearchCustomer.vue | 8 +++++++- 4 files changed, 28 insertions(+), 7 deletions(-) diff --git a/src/components/ebiz/claims/Customer.vue b/src/components/ebiz/claims/Customer.vue index 571318351..bbde0dffe 100644 --- a/src/components/ebiz/claims/Customer.vue +++ b/src/components/ebiz/claims/Customer.vue @@ -12,6 +12,7 @@ show-action @search="onSearch" @cancel="onCancel" + @input="valChange" >
搜索
取消
@@ -88,6 +89,12 @@ export default { next() }, methods: { + // 输入内容变化时 + valChange(value) { + if(value == ''){ + this.isSearch = true + } + }, // 搜索 onSearch() { let data = { diff --git a/src/views/ebiz/claims/Accident.vue b/src/views/ebiz/claims/Accident.vue index 90b00be19..ce6de10d1 100644 --- a/src/views/ebiz/claims/Accident.vue +++ b/src/views/ebiz/claims/Accident.vue @@ -61,7 +61,7 @@ autosize v-validate="'required'" center - label="" + label name="详细地址" type="textarea" clearable @@ -258,7 +258,7 @@ export default { otherCompany: '', //新增其他公司保险名称(非必填) accidentAddress: '', //出险地点 - accAddressInfo:'',//出险地点的字符串拼接 + accAddressInfo: '', //出险地点的字符串拼接 caseDesc: '', //事故经过 mandatorName: '', //受托人姓名 @@ -379,8 +379,8 @@ export default { //区域选择 sureArea(area, type) { this.areaName = getAreaName(area) - - //这个后端需要,后面可能删掉 + + //这个后端需要,后面可能删掉 this.accAddressInfo = area[0].name + area[1].name + area[2].name ;[this.userInfo.accProvince, this.userInfo.accCity, this.userInfo.accCounty] = [area[0].code, area[1].code, area[2].code] this.areaShow = false @@ -388,10 +388,14 @@ export default { nextStep() { console.log(this.userInfo) - if (localStorage.insuranceId) { - this.userInfo.id = localStorage.getItem('insuranceId') + if (!this.userInfo.applyType) { + this.$toast('申请类型不能为空') + return } this.$validator.validate().then(valid => { + if (localStorage.insuranceId) { + this.userInfo.id = localStorage.getItem('insuranceId') + } if (true === valid) { switch (this.cause) { case '0': diff --git a/src/views/ebiz/claims/ReportApply.vue b/src/views/ebiz/claims/ReportApply.vue index 297e34694..ae5f4f959 100644 --- a/src/views/ebiz/claims/ReportApply.vue +++ b/src/views/ebiz/claims/ReportApply.vue @@ -515,6 +515,10 @@ export default { }, //点击提交 nextStep() { + if (!this.userInfo.applyType) { + this.$toast('申请类型不能为空') + return + } this.$validator.validate().then(valid => { if (true === valid) { if (this.certiType == '0') { diff --git a/src/views/ebiz/claims/SearchCustomer.vue b/src/views/ebiz/claims/SearchCustomer.vue index d2f9d1255..f35c1650f 100644 --- a/src/views/ebiz/claims/SearchCustomer.vue +++ b/src/views/ebiz/claims/SearchCustomer.vue @@ -5,7 +5,7 @@ - +
搜索
取消
@@ -62,6 +62,12 @@ export default { next() }, methods: { + // 输入内容改变时 + valChange(value) { + if(value == '') { + this.isSearch = true + } + }, // 搜索 onSearch() { this.$toast.loading({