lrf 2 年之前
父节点
当前提交
3eb3af206c
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/service/util/order.js

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

@@ -42,8 +42,8 @@ class OrderService extends CrudService {
         i.discount = this.ctx.minus(0, discount);
       } else {
         const { sell_money, num, freight } = i;
-        goods_total = this.ctx.multiply(num, sell_money);
-        freight_total = this.ctx.multiply(num, freight);
+        i.goods_total = this.ctx.multiply(num, sell_money);
+        i.freight_total = this.ctx.multiply(num, freight);
       }
 
     }