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) {