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