Browse Source

feat: 材料调差删除权限变更

lanjianrong 4 years ago
parent
commit
060df49570
1 changed files with 7 additions and 6 deletions
  1. 7 6
      app/public/js/material_file.js

+ 7 - 6
app/public/js/material_file.js

@@ -263,12 +263,13 @@ $(document).ready(function () {
             let showDel = false
             // 只判断当前期,因为以往期都是只读的
             if (file.mid === parseInt(mid) && file.tid === parseInt(tid) && file.user_id === parseInt(cur_uid)) {
-                if (!curAuditor) {
-                    materialStatus === auditConst.status.uncheck && parseInt(cur_uid) === materialUid && (showDel = true)
-                    materialStatus === auditConst.status.checkNo && parseInt(cur_uid) === materialUid && (showDel = true)
-                } else {
-                    curAuditor.aid === parseInt(cur_uid) && (showDel = true)
-                }
+                // if (!curAuditor) {
+                //     materialStatus === auditConst.status.uncheck && parseInt(cur_uid) === materialUid && (showDel = true)
+                //     materialStatus === auditConst.status.checkNo && parseInt(cur_uid) === materialUid && (showDel = true)
+                // } else {
+                //     curAuditor.aid === parseInt(cur_uid) && (showDel = true)
+                // }
+                showDel = true
             }
             return showDel ? {...file, canDel: true, index} : {...file, index}
         })