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 &&