fix: 修改部分失败

This commit is contained in:
zhangds 2024-04-10 23:34:19 +08:00
parent f14d17cf95
commit 616a786c9f
2 changed files with 12 additions and 2 deletions

View File

@ -343,7 +343,12 @@
// 部分失败 // 部分失败
if (self.goods.send_status === 4) { if (self.goods.send_status === 4) {
let all_product_voucher = res.data.product.filter(item => item.voucher); let all_product_voucher = [];
new_data.product.forEach(item => {
all_product_voucher.concat(item.voucher)
})
console.log("all_product_voucher =>", all_product_voucher); console.log("all_product_voucher =>", all_product_voucher);
let is_err_length = all_product_voucher.filter(item => item.voucher.status === 9).length; let is_err_length = all_product_voucher.filter(item => item.voucher.status === 9).length;

View File

@ -342,7 +342,12 @@
// 部分失败 // 部分失败
if (self.goods.send_status === 4) { if (self.goods.send_status === 4) {
let all_product_voucher = res.data.product.filter(item => item.voucher); let all_product_voucher = [];
new_data.product.forEach(item => {
all_product_voucher.concat(item.voucher)
})
console.log("all_product_voucher =>", all_product_voucher); console.log("all_product_voucher =>", all_product_voucher);
let is_err_length = all_product_voucher.filter(item => item.voucher.status === 9).length; let is_err_length = all_product_voucher.filter(item => item.voucher.status === 9).length;