Explorar o código

关联台账,台账计算问题

MaiXinRong %!s(int64=3) %!d(string=hai) anos
pai
achega
43a2b8034b
Modificáronse 1 ficheiros con 5 adicións e 5 borrados
  1. 5 5
      app/public/js/sr_detail.js

+ 5 - 5
app/public/js/sr_detail.js

@@ -521,11 +521,11 @@ $(document).ready(() => {
             const sd = result.sumDeal.find(x => { return x.code === l.b_code && x.name === l.name && x.unit === l.unit; });
             if (sd) {
                 l.unit_price = sd.unit_price;
-                l.deal_tp = ZhCalc.mul(l.unit_price, l.deal_qty);
-                l.sgfh_tp = ZhCalc.mul(l.unit_price, l.sgfh_qty);
-                l.sjcl_tp = ZhCalc.mul(l.unit_price, l.sjcl_qty);
-                l.qtcl_tp = ZhCalc.mul(l.unit_price, l.qtcl_qty);
-                l.total_price = ZhCalc.mul(l.unit_price, l.quantity);
+                l.deal_tp = ZhCalc.mul(l.unit_price, l.deal_qty, tenderInfo.decimal.tp);
+                l.sgfh_tp = ZhCalc.mul(l.unit_price, l.sgfh_qty, tenderInfo.decimal.tp);
+                l.sjcl_tp = ZhCalc.mul(l.unit_price, l.sjcl_qty, tenderInfo.decimal.tp);
+                l.qtcl_tp = ZhCalc.mul(l.unit_price, l.qtcl_qty, tenderInfo.decimal.tp);
+                l.total_price = ZhCalc.mul(l.unit_price, l.quantity, tenderInfo.decimal.tp);
             }
         }
         // 加载树结构