提交 d42e6815 编写于 作者: q289089000's avatar q289089000

4-14

上级 b46c67e5
......@@ -37,7 +37,7 @@ export class OrderDataGateway {
//遍历统计
orderList.map((i)=>{
totalOrder.box+=i.box;
totalOrder.total+=(i.box*i.qty*i.price*i.discount);
totalOrder.total+=Math.round(i.box*i.qty*i.price*i.discount);
totalOrder.size+=i.size;
totalOrder.weight+=i.weight;
})
......
......@@ -67,9 +67,7 @@ export class OrdersGateway {
result.data=_data
resolve(result)
})
}
}
})
})
......@@ -84,6 +82,9 @@ export class OrdersGateway {
result.ok=1;
//判断当前用户等级
this._Orders.Update(data).then(doc=>{
//发布更新
client.emit("freshOrder",doc)
console.log('UPD',doc)
result.msg='Upded Order'
result.data=doc;
......
......@@ -15,7 +15,13 @@ export class Payment extends Document {
default:Date.now
})
pay_date: Date;
//金额变动类型 1 支付,2 调整. 调整金额 不统计 不显示在财务管理
@Prop({
default:1
})
pay_type:number;
//关联订单
@Prop({
type:mSchame.Types.ObjectId,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册