From 48c5b78a226d6e174da75771c3d99f1115dcfd6f Mon Sep 17 00:00:00 2001 From: jiangyy Date: Tue, 26 Jul 2022 16:16:31 +0800 Subject: [PATCH] 11 --- src/views/modules/communityService/fuwujilu/addForm.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/views/modules/communityService/fuwujilu/addForm.vue b/src/views/modules/communityService/fuwujilu/addForm.vue index bf9eaceb..ee39e716 100644 --- a/src/views/modules/communityService/fuwujilu/addForm.vue +++ b/src/views/modules/communityService/fuwujilu/addForm.vue @@ -533,6 +533,13 @@ export default { app.util.validateRule(messageObj) this.btnDisable = false } else { + var oDate1 = new Date(this.formData.serviceTimeStart); + var oDate2 = new Date(this.formData.serviceTimeEnd); + if (oDate1.getTime() > oDate2.getTime()) { + this.$message.error('服务截止时间必须大于服务开始时间') + return false + } + if (this.showFeedback) { this.$refs['ref_form_feedback'].validate((valid, messageObj) => {