Browse Source

汇总相关

MaiXinRong 4 years ago
parent
commit
d629a62dcb
1 changed files with 6 additions and 2 deletions
  1. 6 2
      app/lib/rptCustomData.js

+ 6 - 2
app/lib/rptCustomData.js

@@ -153,7 +153,6 @@ class jhHelper {
                 rst[prefix + 'qc_tp'] = this.ctx.helper.mul(rst.unit_price, rst[prefix + 'qc_qty'], 2);
             }
         } else {
-            if (bills.b_code === '203-1-a') console.log(bills);
             rst.qc_qty = bills.qc_qty;
             rst.qc_tp = bills.qc_tp;
             rst.pre_qc_qty = bills.pre_qc_qty;
@@ -280,7 +279,13 @@ class jhHelper {
         const helper = this.ctx.helper;
 
         await this.ctx.service.stage.doCheckStage(stage);
+
         const auditors = this.getLastestAuditors(stage.auditors);
+        const user = await this.ctx.service.projectAccount.getDataById(stage.user_id);
+        auditors.unshift({
+            aid: user.id, name: user.name, company: user.company, role: user.role,
+            times: stage.curTimes, order: 0
+        });
         const billsData = await this._loadStageBillsData(tender, stage, gsDefine, auditors);
         const posData = await this._loadStagePosData(tender, stage, gsDefine, auditors);
         // 创建索引
@@ -366,7 +371,6 @@ class jhHelper {
         const helper = this.ctx.helper;
         // 排序
         this.result.sort((x, y) => { return helper.compareCode(x.b_code, y.b_code); });
-        // console.log(this.result);
         return this.result;
     }