|
@@ -47,10 +47,11 @@ class AfterSaleService extends CrudService {
|
|
});
|
|
});
|
|
// 套装的数据处理
|
|
// 套装的数据处理
|
|
if (set_id && _.get(goods, 'set_id') === set_id) {
|
|
if (set_id && _.get(goods, 'set_id') === set_id) {
|
|
|
|
+ const { buy_num } = goods;
|
|
const setData = goods.goods.find(f => _.get(f, 'spec._id') === goods_id);
|
|
const setData = goods.goods.find(f => _.get(f, 'spec._id') === goods_id);
|
|
if (setData) {
|
|
if (setData) {
|
|
const { spec, goods: sg } = setData;
|
|
const { spec, goods: sg } = setData;
|
|
- const newGoods = { ...spec, goods: sg };
|
|
|
|
|
|
+ const newGoods = { ...spec, buy_num, goods: sg };
|
|
goods = newGoods;
|
|
goods = newGoods;
|
|
}
|
|
}
|
|
}
|
|
}
|