Procházet zdrojové kódy

合同支付,隐藏管理员修改审批流程功能

MaiXinRong před 6 měsíci
rodič
revize
ea733aab77

+ 1 - 1
app/controller/pay_controller.js

@@ -421,7 +421,7 @@ module.exports = app => {
         }
         async auditCheckAgain(ctx) {
             try {
-                if (ctx.phasePay.isLatest) throw '非最新一期,不可重新审批';
+                if (!ctx.phasePay.isLatest) throw '非最新一期,不可重新审批';
                 if (ctx.phasePay.audit_status !== audit.common.status.checked) throw '未审批完成,不可重新审批';
                 if (ctx.phasePay.revising) throw '台账修订中,不可重审';
 

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

@@ -95,7 +95,7 @@
                            id="hideSp">修改审批流程</a>
                         <% } else if(ctx.phasePay.audit_status !== auditConst.status.checked && ctx.session.sessionUser.is_admin) { %>
                         <a class="sp-list-item" href="#sub-sp2" data-toggle="modal" data-target="#sub-sp2"
-                           id="hideSp">修改审批流程</a>
+                           id="hideSp" style="display: none;">修改审批流程</a>
                         <% } %>
                         <div class="card modal-height-500 mt-3" style="overflow: auto">
                             <ul class="list-group list-group-flush auditors-list" id="auditors-list">