ソースを参照

关联台账,台账计算问题

MaiXinRong 3 年 前
コミット
43a2b8034b
1 ファイル変更5 行追加5 行削除
  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);
             }
         }
         // 加载树结构