优化订单显示出菜时间

This commit is contained in:
gyq
2025-12-04 16:14:59 +08:00
parent 97b18651ef
commit 9018708e87
2 changed files with 11 additions and 1 deletions

View File

@@ -310,7 +310,11 @@ const tabSelectChange = _.debounce(function (val) {
}
})
if (num) {
refundAmount.value = formatDecimal(num)
if (num >= item.value.payAmount) {
refundAmount.value = formatDecimal(item.value.payAmount - item.value.refundAmount)
} else {
refundAmount.value = formatDecimal(num)
}
}
}, 100)