lrf 2 năm trước cách đây
mục cha
commit
31542d74bd
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      app/service/trade/afterSale.js

+ 2 - 1
app/service/trade/afterSale.js

@@ -47,10 +47,11 @@ class AfterSaleService extends CrudService {
       });
       // 套装的数据处理
       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);
         if (setData) {
           const { spec, goods: sg } = setData;
-          const newGoods = { ...spec, goods: sg };
+          const newGoods = { ...spec, buy_num, goods: sg };
           goods = newGoods;
         }
       }