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