index.ejs 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <% include ./sub_menu.ejs %>
  2. <div class="panel-content">
  3. <div class="panel-title">
  4. <div class="title-main d-flex">
  5. <% include ./sub_mini_menu.ejs %>
  6. <div>
  7. <div class="d-inline-block">
  8. <div class="dropdown">
  9. <button class="btn btn-sm btn-light dropdown-toggle text-primary" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  10. <i class="fa fa-list-ol"></i> 显示层级
  11. </button>
  12. <div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
  13. <a class="dropdown-item" name="showLevel" tag="1" href="javascript: void(0);">第一层</a>
  14. <a class="dropdown-item" name="showLevel" tag="2" href="javascript: void(0);">第二层</a>
  15. <a class="dropdown-item" name="showLevel" tag="3" href="javascript: void(0);">第三层</a>
  16. <a class="dropdown-item" name="showLevel" tag="4" href="javascript: void(0);">第四层</a>
  17. <a class="dropdown-item" name="showLevel" tag="last" href="javascript: void(0);">最底层</a>
  18. </div>
  19. </div>
  20. </div>
  21. <% if (ctx.detail.uid === ctx.session.sessionUser.accountId) { %>
  22. <div class="d-inline-block">
  23. <a href="javascript: void(0);" name="base-opr" type="add" class="btn btn-sm btn-light text-primary" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="新增"><i class="fa fa-plus" aria-hidden="true"></i></a>
  24. <a href="javascript: void(0);" name="base-opr" type="delete" class="btn btn-sm btn-light text-primary" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="删除"><i class="fa fa-remove" aria-hidden="true"></i></a>
  25. <a href="javascript: void(0);" name="base-opr" type="up-level" class="btn btn-sm btn-light text-primary" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="升级"><i class="fa fa-arrow-left" aria-hidden="true"></i></a>
  26. <a href="javascript: void(0);" name="base-opr" type="down-level" class="btn btn-sm btn-light text-primary" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="降级"><i class="fa fa-arrow-right" aria-hidden="true"></i></a>
  27. <a href="javascript: void(0);" name="base-opr" type="down-move" class="btn btn-sm btn-light text-primary" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="下移"><i class="fa fa-arrow-down" aria-hidden="true"></i></a>
  28. <a href="javascript: void(0);" name="base-opr" type="up-move" class="btn btn-sm btn-light text-primary" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="上移"><i class="fa fa-arrow-up" aria-hidden="true"></i></a>
  29. </div>
  30. <% } %>
  31. </div>
  32. <div class="ml-auto">
  33. <% include ../payment/audit_btn.ejs %>
  34. </div>
  35. </div>
  36. </div>
  37. <div class="content-wrap row pr-46">
  38. <div class="c-header p-0 col-12">
  39. </div>
  40. <!--核心内容(两栏)-->
  41. <div class="row w-100 sub-content">
  42. <!--左栏-->
  43. <div class="c-body" id="left-view" style="width: 100%">
  44. <div id="bills-spread" class="sjs-height-1"></div>
  45. </div>
  46. <div class="c-body" id="right-view" style="display: none; width: 33%;">
  47. <div class="resize-x" id="right-spr" r-Type="width" div1="#left-view" div2="#right-view" title="调整大小" a-type="percent"><!--调整左右高度条--></div>
  48. <div class="tab-content">
  49. <div id="std-gcl" class="tab-pane tab-select-show">
  50. </div>
  51. <div id="fujian" class="tab-pane tab-select-show">
  52. <div class="sjs-bar">
  53. <ul class="nav nav-tabs">
  54. <li class="nav-item">
  55. <a class="nav-link active" data-toggle="tab" href="#cur-att" role="tab" fujian-content="cur-att">当前节点</a>
  56. </li>
  57. <li class="nav-item">
  58. <a class="nav-link" data-toggle="tab" href="#all-att" role="tab" fujian-content="all-att">所有附件</a>
  59. </li>
  60. <li class="nav-item ml-auto pt-1">
  61. <button id="batch-download-att" class="btn btn-sm btn-primary" type="curr">批量下载</button>
  62. <!--所有附件 翻页-->
  63. <span id="showPage" style="display: none"><a href="javascript:void(0);" class="page-select ml-3" content="pre"><i class="fa fa-chevron-left"></i></a> <span id="currentPage">1</span>/<span id="totalPage">10</span> <a href="javascript:void(0);" class="page-select mr-3" content="next"><i class="fa fa-chevron-right"></i></a></span>
  64. <a href="#upload" data-toggle="modal" data-target="#upload" class="btn btn-sm btn-outline-primary ml-3">上传</a>
  65. </li>
  66. </ul>
  67. </div>
  68. <div class="tab-content">
  69. <div class="tab-pane active" id="cur-att">
  70. <div class="sjs-sh-3" style="overflow:auto; overflow-x:hidden;">
  71. <table class="table table-sm table-bordered table-hover" style="word-break:break-all; table-layout: fixed">
  72. <tr><th width="25"><input type="checkbox" class="check-all-file"><th>文件名</th><th width="80">上传</th></tr>
  73. <tbody id="cur-att-list" class="list-table">
  74. </tbody>
  75. </table>
  76. </div>
  77. </div>
  78. <div class="tab-pane" id="all-att">
  79. <div class="sjs-sh-3" style="overflow:auto; overflow-x:hidden;">
  80. <table class="table table-sm table-bordered table-hover" style="word-break:break-all; table-layout: fixed">
  81. <tr><th width="25"><input type="checkbox" class="check-all-file"></th><th>文件名</th><th width="80">上传</th></tr>
  82. <tbody id="all-att-list" class="list-table">
  83. </tbody>
  84. </table>
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. </div>
  92. <!--右侧菜单-->
  93. <div class="side-menu">
  94. <ul class="nav flex-column right-nav" id="side-menu">
  95. <li class="nav-item">
  96. <a class="nav-link" content="#std-gcl" href="javascript: void(0);">工程量清单</a>
  97. </li>
  98. <li class="nav-item">
  99. <a class="nav-link" content="#fujian" href="javascript: void(0);">附件</a>
  100. </li>
  101. </ul>
  102. </div>
  103. </div>
  104. </div>
  105. <script>
  106. const readOnly = <%- ctx.detail.readOnly %>;
  107. const stdBills = JSON.parse(unescape('<%- escape(JSON.stringify(stdBills)) %>'));
  108. const tenderId = parseInt('<%- ctx.paymentTender.id %>');
  109. const detailId = parseInt('<%- ctx.detail.id %>');
  110. const whiteList = JSON.parse('<%- JSON.stringify(ctx.app.config.multipart.whitelist) %>');
  111. </script>