Browse Source

调差审批流程不显示bug

laiguoran 5 năm trước cách đây
mục cha
commit
9bc420e1a5
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/controller/material_controller.js

+ 1 - 1
app/controller/material_controller.js

@@ -198,7 +198,7 @@ module.exports = app => {
             const times = ctx.material.status === auditConst.status.checkNo ? ctx.material.times - 1 : ctx.material.times;
             ctx.material.user = await ctx.service.projectAccount.getAccountInfoById(ctx.material.user_id);
             ctx.material.auditHistory = [];
-            if (ctx.material.times > 1) {
+            if (ctx.material.times >= 1) {
                 for (let i = 1; i <= times; i++) {
                     ctx.material.auditHistory.push(await ctx.service.materialAudit.getAuditors(ctx.material.id, i));
                 }