Browse Source

更新状态逻辑

origin/feature/monitoring
zhangyuan 5 years ago
parent
commit
04d5e6007c
  1. 11
      src/views/modules/epidemic/regist.vue

11
src/views/modules/epidemic/regist.vue

@ -287,15 +287,16 @@ export default {
} }
}, },
doseChange (event) { doseChange (event) {
if (this.dataForm.distinctNum < 2){ // if (this.dataForm.distinctNum < 2){
if (event === this.maxDose && this.dataForm.vaccinationNum + 1 === event && this.dataForm.companyId === this.historyCompanyId){ if (event === this.maxDose && (this.dataForm.companyId === this.historyCompanyId || this.historyCompanyId === 0)){
// if (event === this.maxDose && this.dataForm.vaccinationNum + 1 === event && this.dataForm.companyId === this.historyCompanyId){
this.dataForm.vaccinationState = 2 this.dataForm.vaccinationState = 2
} else { } else {
this.dataForm.vaccinationState = 1 this.dataForm.vaccinationState = 1
} }
} else { // } else {
this.dataForm.vaccinationState = 1 // this.dataForm.vaccinationState = 1
} // }
}, },
// //
getInfo () { getInfo () {

Loading…
Cancel
Save