From 9ec6d106dc876992db7666ef9ab6232af61047de Mon Sep 17 00:00:00 2001 From: zhangyuan Date: Sun, 9 May 2021 10:33:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E7=A7=8D=E9=80=BB=E8=BE=91=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/epidemic/regist.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/views/modules/epidemic/regist.vue b/src/views/modules/epidemic/regist.vue index 95c57a3..51408da 100644 --- a/src/views/modules/epidemic/regist.vue +++ b/src/views/modules/epidemic/regist.vue @@ -276,14 +276,15 @@ export default { this.maxDose = res.data.maxDose this.doseAble = false }).catch(() => { }) - if (this.dataForm.distinctNum < 2){ - if (this.dataForm.dose === this.maxDose && this.dataForm.vaccinationNum + 1 === this.dataForm.dose && this.dataForm.companyId === this.historyCompanyId){ + if (this.dataForm.companyId !== this.historyCompanyId) { + this.dataForm.vaccinationState = 1 + return this.$message.warning("与上次接种疫苗厂家不同") + } else { + if (this.dataForm.dose === this.maxDose){ this.dataForm.vaccinationState = 2 } else { this.dataForm.vaccinationState = 1 } - } else { - this.dataForm.vaccinationState = 1 } }, doseChange (event) {