浏览代码

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

ellisran 6 月之前
父节点
当前提交
365b690d7c
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 1 1
      app/public/js/material_audit.js
  2. 2 1
      app/service/material_audit.js

+ 1 - 1
app/public/js/material_audit.js

@@ -59,7 +59,7 @@ $(document).ready(function () {
     })
 
     // 添加审批流程按钮逻辑
-    $('.book-list').on('click', '.book-list dt', function () {
+    $('body').on('click', '.book-list dt', function () {
         const idx = $(this).find('.acc-btn').attr('data-groupid')
         const type = $(this).find('.acc-btn').attr('data-type')
         if (type === 'hide') {

+ 2 - 1
app/service/material_audit.js

@@ -1272,7 +1272,8 @@ module.exports = app => {
 
         async getAuditorGroup(materialId, times) {
             const auditors = await this.getAuditors(materialId, times); // 全部参与的审批人
-            return this.ctx.helper.groupAuditors(auditors);
+            const newAuditors = auditors.filter(x => { return x.is_old === 0; });
+            return this.ctx.helper.groupAuditors(newAuditors);
         }
 
         async getUserGroup(materialId, times) {