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('请选择抵平时间') }