From 6b16a7abce9ccad5d642f179d0230fd4359858c4 Mon Sep 17 00:00:00 2001 From: liuye Date: Fri, 25 Nov 2022 16:13:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E7=A4=BA=E4=BF=A1=E6=81=AF=E9=A1=BA?= =?UTF-8?q?=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/project/pingchang/AppCommunityManagement/Edit.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/project/pingchang/AppCommunityManagement/Edit.vue b/src/project/pingchang/AppCommunityManagement/Edit.vue index 9fc6e8dd..431525f1 100644 --- a/src/project/pingchang/AppCommunityManagement/Edit.vue +++ b/src/project/pingchang/AppCommunityManagement/Edit.vue @@ -207,14 +207,11 @@ export default { if (this.form.idNumber.length == 18 && !reg.test(this.form.idNumber) && this.fromType != 1) { return this.$u.toast('请输入正确的身份证账号') } - if (!this.form.phone && this.fromType != 1) { - return this.$u.toast('请输入手机号码') - } if (!this.form.name && this.fromType != 1) { return this.$u.toast('请输入姓名') } - if(!this.travelType.length) { - return this.$u.toast('请选择出行方式') + if (!this.form.phone && this.fromType != 1) { + return this.$u.toast('请输入手机号码') } if(!this.form.startTime) { return this.$u.toast('请选择出发时间') @@ -225,6 +222,9 @@ export default { if (this.form.startAreaId.substr(4,this.form.startAreaId.length - 4) === '00000000') { return this.$u.toast('出发地必须选至县级及以下') } + if(!this.travelType.length) { + return this.$u.toast('请选择出行方式') + } if(!this.form.arriveTime) { return this.$u.toast('请选择抵平时间') }