Browse Source

接种逻辑修改

origin/feature/monitoring
zhangyuan 5 years ago
parent
commit
9ec6d106dc
  1. 9
      src/views/modules/epidemic/regist.vue

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

Loading…
Cancel
Save