|
@@ -107,11 +107,14 @@ class BillService extends CrudService {
|
|
|
const type = dictData.find(f => f.value === o.type);
|
|
|
const moneyDetail = this.moneyDetail(order);
|
|
|
const obj = {
|
|
|
+ _id: _.get(o, '_id'),
|
|
|
no: _.get(o, 'no'),
|
|
|
type: _.get(type, 'label'),
|
|
|
pay_time: _.get(o, 'pay_time'),
|
|
|
+ goods_id: _.get(o, 'goods.goods._id'),
|
|
|
goods: _.get(o, 'goods.goods.name'),
|
|
|
spec: _.get(o, 'goods.name'),
|
|
|
+ spec_id: _.get(o, 'goods._id'),
|
|
|
buy_num: _.get(o, 'goods.buy_num'),
|
|
|
price: o.type === '1' ? _.get(o, 'goods.group_config.money') : _.get(o, 'goods.sell_money'),
|
|
|
discount: _.get(moneyDetail, 'dt'),
|