list_menu_list.ejs 1.9 KB

123456789101112131415161718192021
  1. <nav-menu title="返回" url="/sp/<%= ctx.subProject.id %>/cost" tclass="text-primary" ml="1" icon="fa-chevron-left"></nav-menu>
  2. <% if (ctx.tender.costDuty) { %>
  3. <nav-menu title="责任成本" url="/sp/<%= ctx.subProject.id %>/cost/tender/<%- ctx.tender.id %>/duty/1/stage" ml="3" active="<%= (ctx.url.indexOf('duty') >= 0 ? 1 : -1) %>"></nav-menu>
  4. <% } %>
  5. <nav-menu title="成本报审" url="/sp/<%= ctx.subProject.id %>/cost/tender/<%- ctx.tender.id %>/ledger" ml="3" active="<%= (ctx.url.indexOf('ledger') >= 0 ? 1 : -1) %>"></nav-menu>
  6. <nav-menu title="财务账面" url="/sp/<%= ctx.subProject.id %>/cost/tender/<%- ctx.tender.id %>/book" ml="3" active="<%= (ctx.url.indexOf('book') >= 0 ? 1 : -1) %>"></nav-menu>
  7. <nav-menu title="成本分析" url="/sp/<%= ctx.subProject.id %>/cost/tender/<%- ctx.tender.id %>/analysis" ml="3" active="<%= (ctx.url.indexOf('analysis') >= 0 ? 1 : -1) %>"></nav-menu>
  8. <nav-menu title="汇总分析" url="/sp/<%= ctx.subProject.id %>/cost/tender/<%- ctx.tender.id %>/gather" ml="3" active="<%= (ctx.url.indexOf('gather') >= 0 ? 1 : -1) %>"></nav-menu>
  9. <nav-menu title="输出报表" url="/sp/<%= ctx.subProject.id %>/cost/tender/<%- ctx.tender.id %>/report" ml="3" active="<%= (ctx.url.indexOf('report') >= 0 ? 1 : -1) %>"></nav-menu>
  10. <% if (ctx.session.sessionUser.is_admin) { %>
  11. <nav-menu title="审批流程" url="/sp/<%= ctx.subProject.id %>/cost/tender/<%- ctx.tender.id %>/flow" ml="3" active="<%= (ctx.url.indexOf('flow') >= 0 ? 1 : -1) %>"></nav-menu>
  12. <% } %>
  13. <% if (!ctx.tender.costDuty && ctx.permission.cost.duty_add) { %>
  14. <div class="contarl-box">
  15. <form action="/sp/<%= ctx.subProject.id %>/cost/tender/<%- ctx.tender.id %>/addStage" method="post">
  16. <input type="hidden" name="_csrf_j" value="<%= ctx.csrf %>" />
  17. <input type="hidden" name="stage_type" value="duty" />
  18. <button class="btn btn-primary btn-sm btn-block" type="submit"><i class="fa fa-plus"></i> 责任成本</button>
  19. </form>
  20. </div>
  21. <% } %>