Преглед на файлове

Revert "数字带 元 问题"

This reverts commit 5bb17ab45eacfbe020909386f4aecde70782ce0b.
laiguoran преди 2 години
родител
ревизия
60d506d0fd
променени са 1 файла, в които са добавени 1 реда и са изтрити 4 реда
  1. 1 4
      app/service/stage.js

+ 1 - 4
app/service/stage.js

@@ -763,13 +763,10 @@ module.exports = app => {
 
         async getStageByDataCollect(tenderId) {
             const stages = await this.db.select(this.tableName, {
-                columns: ['status', 's_time', 'contract_tp', 'qc_tp', 'pc_tp', 'pre_contract_tp', 'pre_qc_tp'],
+                columns: ['s_time', 'contract_tp', 'qc_tp', 'pc_tp', 'pre_contract_tp', 'pre_qc_tp'],
                 where: { tid: tenderId },
                 orders: [['order', 'desc']],
             });
-            if (stages.length > 0 && stages[0].status === auditConst.status.uncheck) {
-                stages.splice(0, 1);
-            }
             for (const s of stages) {
                 s.tp = this.ctx.helper.sum([s.contract_tp, s.qc_tp, s.pc_tp]);
                 s.pre_tp = this.ctx.helper.add(s.pre_contract_tp, s.pre_qc_tp);