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) {
if (this.dataForm.distinctNum < 2){
if (event === this.maxDose && this.dataForm.vaccinationNum + 1 === event && this.dataForm.companyId === this.historyCompanyId){
// if (this.dataForm.distinctNum < 2){
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
} else {
this.dataForm.vaccinationState = 1
}
} else {
this.dataForm.vaccinationState = 1
}
// } else {
// this.dataForm.vaccinationState = 1
// }
},
//
getInfo () {

Loading…
Cancel
Save