fix: 尾款时间规则

This commit is contained in:
lzhizhao 2025-05-02 19:07:35 +08:00
parent 4a1d34e6dc
commit 2ed685384d
1 changed files with 8 additions and 0 deletions

View File

@ -646,6 +646,10 @@ export default {
this.$message.error('付尾款开始时间必须大于等于定金开始时间') this.$message.error('付尾款开始时间必须大于等于定金开始时间')
return return
} }
if (dayjs(this.ruleForm.endTime).isAfter(dayjs(this.ruleForm.balancePaymentEndTime))) {
this.$message.error('付尾款结束时间必须大于等于定金结束时间')
return
}
if ( if (
this.ruleForm.productList && this.ruleForm.productList &&
this.ruleForm.productList.length === 0 this.ruleForm.productList.length === 0
@ -711,6 +715,10 @@ export default {
this.$message.error('付尾款开始时间必须大于等于定金开始时间') this.$message.error('付尾款开始时间必须大于等于定金开始时间')
return return
} }
if (dayjs(this.ruleForm.endTime).isAfter(dayjs(this.ruleForm.balancePaymentEndTime))) {
this.$message.error('付尾款结束时间必须大于等于定金结束时间')
return
}
console.log(valid) console.log(valid)
if ( if (
this.ruleForm.productSpecificationList && this.ruleForm.productSpecificationList &&