Przeglądaj źródła

1. 清单汇总,计算补差
2. 审核比较,原单价显示

MaiXinRong 2 lat temu
rodzic
commit
014a7f63af

+ 2 - 1
app/public/js/gcl_gather.js

@@ -12,7 +12,7 @@
 const gclGatherModel = (function () {
     // 需要汇总计算的字段
     let ledgerGatherFields = ['quantity', 'total_price', 'deal_qty', 'deal_tp',
-        'contract_qty', 'contract_tp', 'qc_qty', 'qc_tp', 'qc_minus_qty',
+        'contract_qty', 'contract_tp', 'qc_qty', 'qc_tp', 'qc_minus_qty', 'contract_pc_tp', 'qc_pc_tp', 'pc_tp',
         'pre_contract_qty', 'pre_contract_tp', 'pre_qc_qty', 'pre_qc_tp', 'pre_qc_minus_qty',
         'end_contract_qty', 'end_contract_tp', 'end_qc_qty', 'end_qc_tp', 'end_qc_minus_qty'];
     let posGatherFields = ['quantity', 'contract_qty', 'qc_qty', 'gather_qty','qc_minus_qty',
@@ -112,6 +112,7 @@ const gclGatherModel = (function () {
             name: node.name,
             unit: node.unit,
             unit_price: node.unit_price,
+            org_price: node.org_price,
             leafXmjs: [],
         };
         gclList.push(gcl);

+ 1 - 1
app/public/js/shares/sjs_setting.js

@@ -96,7 +96,7 @@ const sjsSettingObj = (function () {
         for (const r of rela) {
             const col = _.find(cols, {field: r.field});
             if (col) {
-                col.getValue = function (data) { return data.contract_pc_tp || data.qc_pc_tp ? data.org_price : null; };
+                col.getValue = function (data) { return data.contract_pc_tp || data.qc_pc_tp || data.pc_tp ? data.org_price : null; };
             }
         }
     };