From 2c45f0831a2b3abc34bf18ab6793b9bf3c6b66a8 Mon Sep 17 00:00:00 2001 From: liuye Date: Fri, 25 Nov 2022 15:17:02 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A4=BE=E5=8C=BA=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/project/pingchang/AppCommunityManagement/Edit.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/project/pingchang/AppCommunityManagement/Edit.vue b/src/project/pingchang/AppCommunityManagement/Edit.vue index f4c15a2f..c5dcfb04 100644 --- a/src/project/pingchang/AppCommunityManagement/Edit.vue +++ b/src/project/pingchang/AppCommunityManagement/Edit.vue @@ -199,16 +199,16 @@ export default { }, methods: { submit() { - if (!this.form.idNumber) { + if (!this.form.idNumber && this.fromType != 1) { return this.$u.toast('请输入身份证号') } - if (!/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/.test(this.form.idNumber)) { + if (!/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/.test(this.form.idNumber) && this.fromType != 1) { return this.$u.toast('请输入正确的身份证账号') } - if (!this.form.phone) { + if (!this.form.phone && this.fromType != 1) { return this.$u.toast('请输入手机号码') } - if (!this.form.name) { + if (!this.form.name && this.fromType != 1) { return this.$u.toast('请输入姓名') } if(!this.travelType.length) {