From d046ca1dd6a0ab36b4af8cbdef67351bb1bf1d84 Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Mon, 4 Jul 2022 14:24:27 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=91=E6=B5=8B=E5=AF=B9=E8=B1=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/work/AppHelpedResident/hrAdd.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/work/AppHelpedResident/hrAdd.vue b/packages/work/AppHelpedResident/hrAdd.vue index 0666c7f1..1f02f493 100644 --- a/packages/work/AppHelpedResident/hrAdd.vue +++ b/packages/work/AppHelpedResident/hrAdd.vue @@ -457,6 +457,11 @@ export default { this.form = {...this.form, birthDate, sex, age: this.$calcAge(idNumber)} }, submit() { + if(this.form.houseType == 1) { + if(!this.form.form.objectType) { + return this.$message.error('请选择监测对象类型') + } + } this.$refs.ruleForm.validate(v => { if (v) { this.form.isHousehold = 1