|
@@ -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;
|
|
|
|