diff --git a/src/views/modules/plugins/point/icpointvaccinesinoculation-add-or-update.vue b/src/views/modules/plugins/point/icpointvaccinesinoculation-add-or-update.vue index 7a265b8e..14184c26 100644 --- a/src/views/modules/plugins/point/icpointvaccinesinoculation-add-or-update.vue +++ b/src/views/modules/plugins/point/icpointvaccinesinoculation-add-or-update.vue @@ -39,7 +39,7 @@ > - + - + @@ -234,34 +236,6 @@ export default { trigger: "blur", }, ], - moStartTime: [ - { - required: true, - message: this.$t("validate.required"), - trigger: "blur", - }, - ], - moEndTime: [ - { - required: true, - message: this.$t("validate.required"), - trigger: "blur", - }, - ], - afStartTime: [ - { - required: true, - message: this.$t("validate.required"), - trigger: "blur", - }, - ], - afEndTime: [ - { - required: true, - message: this.$t("validate.required"), - trigger: "blur", - }, - ], noAvailableVaccines: [ { required: true, @@ -312,7 +286,7 @@ export default { let hour_0 = Number(this.startTime[0].substring(0, 2)); let hour_1 = Number(this.startTime[1].substring(0, 2)); if (hour_0 >= 12 || hour_1 >= 12) { - this.$message.error("请选择00:00:00-11:59:59时间段的时间"); + this.$message.error("请选择00:00-11:59时间段的时间"); this.startTime = null; return false; } @@ -325,7 +299,7 @@ export default { let hour_0 = Number(this.endTime[0].substring(0, 2)); let hour_1 = Number(this.endTime[1].substring(0, 2)); if (hour_0 < 12 || hour_1 < 12) { - this.$message.error("请选择12:00:00-23:59:59时间段的时间"); + this.$message.error("请选择12:00-23:59时间段的时间"); this.endTime = null; return false; } @@ -496,6 +470,14 @@ export default { if (!valid) { return false; } + if(this.startTime === null){ + this.$message.error('请填写上午接种时间'); + return false + } + if(this.endTime === null ){ + this.$message.error('请填写下午接种时间'); + return false + } this.$http[!this.dataForm.id ? "post" : "put"]( "/epmetuser/icPointVaccinesInoculation/", this.dataForm