From 0bc5cdf138c31e2b4aacd80c2dadbd6e0e9a7655 Mon Sep 17 00:00:00 2001 From: zhangyuan Date: Tue, 1 Jun 2021 14:57:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E7=A7=8D=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/epidemic/regist.vue | 19 +-- .../vim/vaccinationrole-add-or-update.vue | 105 ++++++++++++++ src/views/modules/vim/vaccinationrole.vue | 68 +++++++++ .../vim/vaccinationuserrole-add-or-update.vue | 134 ++++++++++++++++++ src/views/modules/vim/vaccinationuserrole.vue | 68 +++++++++ 5 files changed, 385 insertions(+), 9 deletions(-) create mode 100644 src/views/modules/vim/vaccinationrole-add-or-update.vue create mode 100644 src/views/modules/vim/vaccinationrole.vue create mode 100644 src/views/modules/vim/vaccinationuserrole-add-or-update.vue create mode 100644 src/views/modules/vim/vaccinationuserrole.vue diff --git a/src/views/modules/epidemic/regist.vue b/src/views/modules/epidemic/regist.vue index 898324d..2edfbb7 100644 --- a/src/views/modules/epidemic/regist.vue +++ b/src/views/modules/epidemic/regist.vue @@ -275,17 +275,18 @@ export default { } this.maxDose = res.data.maxDose this.doseAble = false - }).catch(() => { }) - if (this.dataForm.companyId !== this.historyCompanyId && this.historyCompanyId != 0) { - this.dataForm.vaccinationState = 1 - return this.$message.warning('与上次接种疫苗厂家不同') - } else { - if (this.dataForm.dose === this.maxDose) { - this.dataForm.vaccinationState = 2 - } else { + + if (this.dataForm.companyId !== this.historyCompanyId && this.historyCompanyId != 0) { this.dataForm.vaccinationState = 1 + return this.$message.warning('与上次接种疫苗厂家不同') + } else { + if (this.dataForm.dose === this.maxDose) { + this.dataForm.vaccinationState = 2 + } else { + this.dataForm.vaccinationState = 1 + } } - } + }).catch(() => { }) }, doseChange (event) { // if (this.dataForm.distinctNum < 2){ diff --git a/src/views/modules/vim/vaccinationrole-add-or-update.vue b/src/views/modules/vim/vaccinationrole-add-or-update.vue new file mode 100644 index 0000000..88081c5 --- /dev/null +++ b/src/views/modules/vim/vaccinationrole-add-or-update.vue @@ -0,0 +1,105 @@ + + + diff --git a/src/views/modules/vim/vaccinationrole.vue b/src/views/modules/vim/vaccinationrole.vue new file mode 100644 index 0000000..3acc3b2 --- /dev/null +++ b/src/views/modules/vim/vaccinationrole.vue @@ -0,0 +1,68 @@ + + + diff --git a/src/views/modules/vim/vaccinationuserrole-add-or-update.vue b/src/views/modules/vim/vaccinationuserrole-add-or-update.vue new file mode 100644 index 0000000..fb9b79d --- /dev/null +++ b/src/views/modules/vim/vaccinationuserrole-add-or-update.vue @@ -0,0 +1,134 @@ + + + diff --git a/src/views/modules/vim/vaccinationuserrole.vue b/src/views/modules/vim/vaccinationuserrole.vue new file mode 100644 index 0000000..ffdda56 --- /dev/null +++ b/src/views/modules/vim/vaccinationuserrole.vue @@ -0,0 +1,68 @@ + + +