From 2ed685384d057ca60e9599edb28a248784d703e0 Mon Sep 17 00:00:00 2001 From: lzhizhao <790086754@qq.com> Date: Fri, 2 May 2025 19:07:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B0=BE=E6=AC=BE=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/presale/products/popup/add-or-update.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/views/modules/presale/products/popup/add-or-update.vue b/src/views/modules/presale/products/popup/add-or-update.vue index 5fb8a3c..a2a8212 100644 --- a/src/views/modules/presale/products/popup/add-or-update.vue +++ b/src/views/modules/presale/products/popup/add-or-update.vue @@ -646,6 +646,10 @@ export default { this.$message.error('付尾款开始时间必须大于等于定金开始时间') return } + if (dayjs(this.ruleForm.endTime).isAfter(dayjs(this.ruleForm.balancePaymentEndTime))) { + this.$message.error('付尾款结束时间必须大于等于定金结束时间') + return + } if ( this.ruleForm.productList && this.ruleForm.productList.length === 0 @@ -711,6 +715,10 @@ export default { this.$message.error('付尾款开始时间必须大于等于定金开始时间') return } + if (dayjs(this.ruleForm.endTime).isAfter(dayjs(this.ruleForm.balancePaymentEndTime))) { + this.$message.error('付尾款结束时间必须大于等于定金结束时间') + return + } console.log(valid) if ( this.ruleForm.productSpecificationList &&