fix: 修改库存字段

This commit is contained in:
zhangds 2024-05-21 10:36:19 +08:00
parent 6e01ef59c3
commit 0fbc857e89
1 changed files with 11 additions and 10 deletions

View File

@ -493,17 +493,18 @@ const UseCouponAddEdit = forwardRef((props, ref) => {
// //
// //
if (state.rank.length > 0) { if (state.rank.length > 0) {
//let arr = state.tableData.filter((item) => item.checked) let arr = state.tableData.filter((item) => item.checked)
// //
// // --
// let sum = 0 let sum = 0
// arr.map((item) => { arr.map((item) => {
// sum += parseInt(item.quantity) // sum += parseInt(item.quantity)
// }) sum += item.all_budget
// if (sum < Number(form_rule_data.quantity)) { })
// Notify.error("") if (sum < Number(form_rule_data.quantity)) {
// return false Notify.error("所选商品库存总数小于发放量")
// } return false
}
// //
if (couponType === 1) { if (couponType === 1) {
return true return true