Pārlūkot izejas kodu

修复调差管理员修改流程bug

ellisran 8 mēneši atpakaļ
vecāks
revīzija
71e548c69a
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      app/view/material/audit_modal.ejs

+ 1 - 1
app/view/material/audit_modal.ejs

@@ -609,7 +609,7 @@
                                                                                         <div class="form-check form-check-inline">
                                                                                             <input class="form-check-input" type="radio" name="checkType" id="inlineRadio2" value="<%- auditConst.status.checkNoPre %>">
                                                                                             <label class="form-check-label" for="inlineRadio2">退回上一审批人
-                                                                                                <% const pre = his.find(x => { return x.audit_order === auditor.audit_order - 1}); %>
+                                                                                                <% const pre = ctx.helper._.findLast(his, x => { return x.audit_order === auditor.audit_order - 1 }); %>
                                                                                                 <%- (pre.audit_type === auditType.key.common ? pre.auditors[0].name : `${pre.audit_order}审`)%>
                                                                                             </label>
                                                                                         </div>