fix: 修改部分失败

This commit is contained in:
zhangds 2024-04-10 23:31:50 +08:00
parent e2a99a8e53
commit f14d17cf95
1 changed files with 5 additions and 4 deletions

View File

@ -342,12 +342,13 @@
// 部分失败 // 部分失败
if (self.goods.send_status === 4) { if (self.goods.send_status === 4) {
let all_product_length = res.data.product.length; let all_product_voucher = res.data.product.filter(item => item.voucher);
let is_err_length = res.data.product.filter(item => item.voucher.status === 9).length; console.log("all_product_voucher =>", all_product_voucher);
self.isOKLength = all_product_length - is_err_length;
let is_err_length = all_product_voucher.filter(item => item.voucher.status === 9).length;
self.isOKLength = all_product_voucher.length - is_err_length;
self.isErrLength = is_err_length; self.isErrLength = is_err_length;
} }
// 1.发放中 轮循 // 1.发放中 轮循
if (res.data.send_status === 1) { if (res.data.send_status === 1) {
// 2.发放中才有 轮播 // 2.发放中才有 轮播