组合立即领取
This commit is contained in:
parent
af0dcf5446
commit
7edd2592cc
|
@ -410,20 +410,21 @@
|
|||
all_err.push(row.receive_error);
|
||||
}
|
||||
});
|
||||
|
||||
if(el.order_voucher.length) {
|
||||
let obj = {
|
||||
id: item.id,
|
||||
type: item.type,
|
||||
voucher: {
|
||||
denomination: item.voucher.denomination,
|
||||
reduce_amount: item.voucher.reduce_amount,
|
||||
status: el.order_voucher.length ? self.statusSort(el.order_voucher)[0] : item.voucher.status,
|
||||
num: el.order_voucher.length ? self.statusSort(el.order_voucher)[1] : item.voucher.num,
|
||||
send_num: el.order_voucher.length ? el.order_voucher.length : item.voucher.send_num,
|
||||
status: self.statusSort(el.order_voucher)[0],
|
||||
num: self.statusSort(el.order_voucher)[1],
|
||||
send_num: el.order_voucher.length,
|
||||
}
|
||||
};
|
||||
product_all.push(obj);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// 第二步:更新商品数据
|
||||
|
|
|
@ -412,20 +412,21 @@
|
|||
all_err.push(row.receive_error);
|
||||
}
|
||||
});
|
||||
|
||||
if(el.order_voucher.length){
|
||||
let obj = {
|
||||
id: item.id,
|
||||
type: item.type,
|
||||
voucher: {
|
||||
denomination: item.voucher.denomination,
|
||||
reduce_amount: item.voucher.reduce_amount,
|
||||
status: el.order_voucher.length ? self.statusSort(el.order_voucher)[0] : item.voucher.status,
|
||||
num: el.order_voucher.length ? self.statusSort(el.order_voucher)[1] : item.voucher.num,
|
||||
send_num: el.order_voucher.length ? el.order_voucher.length : item.voucher.send_num,
|
||||
status: self.statusSort(el.order_voucher)[0],
|
||||
num: self.statusSort(el.order_voucher)[1],
|
||||
send_num: el.order_voucher.length,
|
||||
}
|
||||
};
|
||||
product_all.push(obj);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// 第二步:更新商品数据
|
||||
|
|
Loading…
Reference in New Issue