Browse Source

台账审批报错问题

laiguoran 6 years ago
parent
commit
db7c553217
2 changed files with 3 additions and 3 deletions
  1. 1 1
      app/view/ledger/explode.ejs
  2. 2 2
      app/view/ledger/explode_modal.ejs

+ 1 - 1
app/view/ledger/explode.ejs

@@ -144,7 +144,7 @@
 <script>
     GC.Spread.Sheets.LicenseKey = "559432293813965#A0y3iTOzEDOzkjMyMDN9UTNiojIklkI1pjIEJCLi4TPB9mM5AFNTd4cvZ7SaJUVy3CWKtWYXx4VVhjMpp7dYNGdx2ia9sEVlZGOTh7NRlTUwkWR9wEV4gmbjBDZ4ElR8N7cGdHVvEWVBtCOwIGW0ZmeYVWVr3mI0IyUiwCMzETN8kzNzYTM0IicfJye&Qf35VfiEzRwEkI0IyQiwiIwEjL6ByUKBCZhVmcwNlI0IiTis7W0ICZyBlIsIyNyMzM5ADI5ADNwcTMwIjI0ICdyNkIsIibj9SbvNmL4N7bjRnch56ciojIz5GRiwiI8+Y9sWY9QmZ0Jyp96uL9v6L0wap9biY9qiq95q197Wr9g+89iojIh94Wiqi";
 </script>
-<% if (tender.ledger_status === auditConst.status.uncheck || tender.ledger_status === auditConst.status.checkNo) { %>
+<% if ((tender.ledger_status === auditConst.status.uncheck || tender.ledger_status === auditConst.status.checkNo) && ctx.session.sessionUser.accountId === tender.user_id) { %>
 <script>
     const accountList = JSON.parse('<%- JSON.stringify(accountList) %>');
 </script>

+ 2 - 2
app/view/ledger/explode_modal.ejs

@@ -78,7 +78,7 @@
         </div>
     </div>
 </div>
-<% if (tender.ledger_status === auditConst.status.uncheck || tender.ledger_status === auditConst.status.checkNo) { %>
+<% if ((tender.ledger_status === auditConst.status.uncheck || tender.ledger_status === auditConst.status.checkNo) && ctx.session.sessionUser.accountId === tender.user_id) { %>
 <!--上报审批-->
 <div class="modal fade" id="sub-sp" data-backdrop="static">
     <div class="modal-dialog" role="document">
@@ -130,7 +130,7 @@
     </div>
 </div>
 <% } %>
-<% if (tender.ledger_status === auditConst.status.checkNo) { %>
+<% if (tender.ledger_status === auditConst.status.checkNo && ctx.session.sessionUser.accountId === tender.user_id) { %>
 <!--审批流程/结果-->
 <div class="modal fade" id="sp-list2" data-backdrop="static">
     <div class="modal-dialog modal-lg" role="document">