From 3155aaaf555c2c3e6b81102daac25cb29c7a3711 Mon Sep 17 00:00:00 2001 From: yujt Date: Thu, 20 May 2021 10:07:37 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=9F=A5=E8=AF=A2=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/vim/vaccinationinfo.vue | 36 ++++++++++++++++------- 1 file changed, 26 insertions(+), 10 deletions(-) diff --git a/src/views/modules/vim/vaccinationinfo.vue b/src/views/modules/vim/vaccinationinfo.vue index 71932f1..069304b 100644 --- a/src/views/modules/vim/vaccinationinfo.vue +++ b/src/views/modules/vim/vaccinationinfo.vue @@ -24,6 +24,13 @@ placeholder="请输入手机号" clearable> + + + +
-
- + 针 + label="已接种至第"> 针 + +
只检索‘接种中’的记录
若居民已接种完成,则不会显示在查询结果中
+ +
+ prop="vaccTime" v-if="dataForm.dose === 0 && dataForm.vaccNo > 0"> 日 @@ -110,6 +120,7 @@ header-align="center" align="center"> @@ -189,7 +200,8 @@ export default { identityNo: '', vaccNo: 0, vaccTime: 0, - mobile: '' + mobile: '', + dose: 0 }, options: [], compantyOptions: [], @@ -206,10 +218,14 @@ export default { }, methods: { beforeGetDataList () { - if (this.dataForm.vaccNo === 0 && this.dataForm.vaccTime > 0) { - return this.$message.error("请填写已接种至剂次") - } else if (this.dataForm.vaccNo > 0 && this.dataForm.vaccTime === 0) { - return this.$message.error("请填写已接种满时日") + if (this.dataForm.dose > 0) { + this.dataForm.vaccNo = 0 + } + if ((this.dataForm.vaccNo === 0 || !this.dataForm.vaccNo) && this.dataForm.vaccTime > 0) { + this.dataForm.vaccTime = 0 + // return this.$message.error('请填写已接种至剂次') + } else if (this.dataForm.vaccNo > 0 && (!this.dataForm.vaccTime || this.dataForm.vaccTime === 0)) { + return this.$message.error('请填写已接种满时日') } this.getDataList() },