Browse Source

上报自检相关

MaiXinRong 2 years ago
parent
commit
7bf67ec68c
2 changed files with 2 additions and 2 deletions
  1. 1 1
      app/controller/revise_controller.js
  2. 1 1
      app/lib/ledger.js

+ 1 - 1
app/controller/revise_controller.js

@@ -442,7 +442,7 @@ module.exports = app => {
                 reviseCheck.checkBillsTp([
                     {qty: 'sgfh_qty', tp: 'sgfh_tp'}, {qty: 'qtcl_qty', tp: 'qtcl_tp'},
                     {qty: 'sjcl_qty', tp: 'sjcl_tp'}, {qty: 'quantity', tp: 'total_price'}
-                ], this.ctx.tender.info.decimal);
+                ], this.ctx.tender.info.decimal, x => { return !x.check_calc; });
                 ctx.body = { err: 0, msg: '', data: reviseCheck.checkResult };
             } catch (err) {
                 this.log(err);

+ 1 - 1
app/lib/ledger.js

@@ -847,7 +847,7 @@ class checkData {
     }
     checkBillsTp(field, decimal, filter) {
         for (const b of this.checkBills.nodes) {
-            if ((b.children && b.children.length > 0) || !b.check_calc) continue;
+            if ((b.children && b.children.length > 0)) continue;
             if (filter && filter(b)) continue;
 
             const checkData = {}, calcData = {};