lrf 2 anos atrás
pai
commit
5d766f6e43
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      app/service/view/order.js

+ 2 - 2
app/service/view/order.js

@@ -72,7 +72,7 @@ class OrderService extends CrudService {
         for (const shop of goods) {
           const { goods: specGoods } = shop;
           for (const sg of specGoods) {
-            const spec = _.pick(sg, [ '_id', 'name', 'file', 'act', 'buy_num', 'gift', 'price', 'freight' ]);
+            const spec = _.pick(sg, [ '_id', 'name', 'file', 'act', 'buy_num', 'gift', 'price', 'freight', 'sp_price' ]);
             const goods = _.pick(sg.goods, [ '_id', 'name', 'file' ]);
             spec.goods = goods;
             specs.push(spec);
@@ -93,7 +93,7 @@ class OrderService extends CrudService {
         const rate = await this.goodsRateModel.find({ orderDetail: i._id });
         const specs = [];
         for (const sg of goods) {
-          const spec = _.pick(sg, [ '_id', 'name', 'file', 'act', 'buy_num', 'gift', 'price', 'freight' ]);
+          const spec = _.pick(sg, [ '_id', 'name', 'file', 'act', 'buy_num', 'gift', 'price', 'freight', 'sp_price' ]);
           const goods = _.pick(sg.goods, [ '_id', 'name', 'file' ]);
           spec.goods = goods;