ellisran 20 horas atrás
pai
commit
f67059cb5d
2 arquivos alterados com 5 adições e 5 exclusões
  1. 2 2
      app/const/shenpi.js
  2. 3 3
      app/service/safe_stage.js

+ 2 - 2
app/const/shenpi.js

@@ -20,7 +20,7 @@ const sp_type = {
     phasePay: 9,
     inspection: 10,
     safe_inspection: 11,
-    safe_stage: 12,
+    safe_payment: 12,
 };
 const sp_other_type = {
     financial: 8,
@@ -44,7 +44,7 @@ const sp_lc = [
     // { code: 'financial', type: sp_type.financial, name: '资金支付审批' },
     { code: 'phasePay', type: sp_type.phasePay, name: '合同支付审批' },
     { code: 'inspection', type: sp_type.inspection, name: '质量巡检审批' },
-    { code: 'safe_payment', type: sp_type.safe_stage, name: '安全计量审批' },
+    { code: 'safe_payment', type: sp_type.safe_payment, name: '安全计量审批' },
     { code: 'safe_inspection', type: sp_type.safe_inspection, name: '安全巡检审批' },
 ];
 

+ 3 - 3
app/service/safe_stage.js

@@ -249,7 +249,7 @@ module.exports = app => {
         async checkShenpi(safeStage) {
             const status = audit.status;
             const info = this.ctx.tender.info;
-            const shenpi_status = info.shenpi.safe_stage;
+            const shenpi_status = info.shenpi.safe_payment;
             if ((safeStage.audit_status === status.uncheck || safeStage.audit_status === status.checkNo) && shenpi_status !== shenpiConst.sp_status.sqspr) {
                 // 进一步比较审批流是否与审批流程设置的相同,不同则替换为固定审批流或固定的终审
                 const auditList = await this.ctx.service.safeStageAudit.getAllDataByCondition({ where: { stage_id: safeStage.id, audit_times: safeStage.audit_times }, orders: [['audit_order', 'asc']] });
@@ -280,7 +280,7 @@ module.exports = app => {
                         await this.loadUser(safeStage);
                     } else if (!shenpiInfo) {
                         // 不存在终审人的状态下这里恢复为授权审批人
-                        this.ctx.tender.info.shenpi.safe_stage = shenpiConst.sp_status.sqspr;
+                        this.ctx.tender.info.shenpi.safe_payment = shenpiConst.sp_status.sqspr;
                     }
                 }
             }
@@ -380,4 +380,4 @@ module.exports = app => {
     }
 
     return SafeStage;
-};
+};