explode.ejs 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. <% include ../tender/tender_sub_menu.ejs %>
  2. <div class="panel-content">
  3. <div class="panel-title">
  4. <div class="title-main d-flex"><!--工具-->
  5. <div>
  6. <div class="d-inline-block">
  7. <div class="dropdown">
  8. <button class="btn btn-sm btn-light dropdown-toggle text-primary" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  9. <i class="fa fa-list-ol"></i> 显示层级
  10. </button>
  11. <div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
  12. <a class="dropdown-item" name="showLevel" tag="1" href="javascirpt: void(0);">第一层</a>
  13. <a class="dropdown-item" name="showLevel" tag="2" href="javascirpt: void(0);">第二层</a>
  14. <a class="dropdown-item" name="showLevel" tag="3" href="javascirpt: void(0);">第三层</a>
  15. <a class="dropdown-item" name="showLevel" tag="4" href="javascirpt: void(0);">第四层</a>
  16. <a class="dropdown-item" name="showLevel" tag="5" href="javascirpt: void(0);">第五层</a>
  17. <a class="dropdown-item" name="showLevel" tag="last" href="javascirpt: void(0);">最底层</a>
  18. <a class="dropdown-item" name="showLevel" tag="leafXmj" href="javascirpt: void(0);">只显示项目节</a>
  19. </div>
  20. </div>
  21. </div>
  22. <div class="d-inline-block">
  23. <a href="javascript:void(0)" id="insert" class="btn btn-sm" data-toggle="tooltip" data-placement="bottom" title=""
  24. data-original-title="插入"><i class="fa fa-sign-in" aria-hidden="true"></i></a>
  25. <a href="javascript:void(0)" id="copy" class="btn btn-sm" data-toggle="tooltip" data-placement="bottom" title=""
  26. data-original-title="复制"><i class="fa fa-files-o" aria-hidden="true"></i></a>
  27. <a href="javascript:void(0)" id="cut" class="btn btn-sm" data-toggle="tooltip" data-placement="bottom" title=""
  28. data-original-title="剪切"><i class="fa fa-scissors" aria-hidden="true"></i></a>
  29. <a href="javascript:void(0)" id="paste" class="btn btn-sm" data-toggle="tooltip" data-placement="bottom" title=""
  30. data-original-title="粘贴"><i class="fa fa-clipboard" aria-hidden="true"></i></a>
  31. <a href="javascript:void(0)" id="delete" class="btn btn-sm" data-toggle="tooltip" data-placement="bottom" title=""
  32. data-original-title="删除"><i class="fa fa-remove" aria-hidden="true"></i></a>
  33. <a href="javascript:void(0)" id="up-level" class="btn btn-sm" data-toggle="tooltip" data-placement="bottom" title=""
  34. data-original-title="升级"><i class="fa fa-arrow-left" aria-hidden="true"></i></a>
  35. <a href="javascript:void(0)" id="down-level" class="btn btn-sm" data-toggle="tooltip" data-placement="bottom" title=""
  36. data-original-title="降级"><i class="fa fa-arrow-right" aria-hidden="true"></i></a>
  37. <a href="javascript:void(0)" id="down-move" class="btn btn-sm" data-toggle="tooltip" data-placement="bottom" title=""
  38. data-original-title="下移"><i class="fa fa-arrow-down" aria-hidden="true"></i></a>
  39. <a href="javascript:void(0)" id="up-move" class="btn btn-sm" data-toggle="tooltip" data-placement="bottom" title=""
  40. data-original-title="上移"><i class="fa fa-arrow-up" aria-hidden="true"></i></a>
  41. </div>
  42. <div class="d-inline-block">
  43. <div class="input-group input-group-sm ml-2 mt-1">
  44. <div class="input-group-prepend">
  45. <span class="input-group-text" id="basic-addon1">表达式</span>
  46. </div>
  47. <input type="text" class="form-control m-0">
  48. </div>
  49. </div>
  50. </div>
  51. <div class="ml-auto">
  52. <% if (tender.ledger_status === auditConst.status.checkNo) { %>
  53. <a href="#sp-list" data-toggle="modal" data-target="#sp-list" class="btn btn-outline-warning btn-sm pull-right text-dark">审批退回</a>
  54. <% } else if (tender.ledger_status === auditConst.status.checking) { %>
  55. <a href="#sp-list" data-toggle="modal" data-target="#sp-list" class="btn btn-outline-warning btn-sm pull-right text-dark">审批中</a>
  56. <% } else if (tender.ledger_status === auditConst.status.checked) { %>
  57. <a href="#sp-list" data-toggle="modal" data-target="#sp-list" class="btn btn-outline-secondary btn-sm pull-right">审批完成</a>
  58. <% } %>
  59. <% if (ctx.session.sessionUser.accountId === tender.user_id) { %>
  60. <% if (tender.ledger_status === auditConst.status.uncheck) { %>
  61. <a href="#sub-sp" data-toggle="modal" data-target="#sub-sp" class="btn btn-primary btn-sm pull-right">上报审批</a>
  62. <% } else if (tender.ledger_status === auditConst.status.checkNo) { %>
  63. <a href="#sp-list2" data-toggle="modal" data-target="#sp-list2" class="btn btn-primary btn-sm pull-right">重新上报</a>
  64. <% } %>
  65. <% } %>
  66. </div>
  67. </div>
  68. </div>
  69. <div class="content-wrap row pr-46">
  70. <div class="c-header p-0 col-12">
  71. </div>
  72. <!--核心内容(两栏)-->
  73. <div class="row w-100 sub-content">
  74. <!--左栏-->
  75. <div class="c-body" id="left-view" style="width: 100%">
  76. <div id="ledger-spread" class="<% if (tender.measure_type === measureType.tz.value) { %>sjs-height-1<% } else { %>sjs-height-0<% } %>"></div>
  77. <% if (tender.measure_type === measureType.tz.value) { %>
  78. <div class="bcontent-wrap" id="main-bottom">
  79. <div id="main-resize" class="resize-y" id="top-spr" r-Type="height" div1=".sjs-height-1" div2=".bcontent-wrap" title="调整大小"><!--调整上下高度条--></div>
  80. <div class="bc-bar mb-1">
  81. <ul class="nav nav-tabs">
  82. <li class="nav-item">
  83. <a class="nav-link active" href="javascript:void(0)">部位明细</a>
  84. </li>
  85. <li class="nav-item">
  86. <div class="mt-1 ml-2">
  87. <div class="input-group input-group-sm">
  88. <input type="text" class="form-control" placeholder="输入名称查找" id="pos-keyword">
  89. <div class="input-group-append" id="button-addon3">
  90. <button class="btn btn-outline-secondary" type="button" title="上一个" id="search-pre-pos"><i class="fa fa-angle-double-left"></i></button>
  91. <button class="btn btn-outline-secondary" type="button" title="下一个" id="search-next-pos"><i class="fa fa-angle-double-right"></i></button>
  92. </div>
  93. <div class="small" id="pos-search-hint" style="vertical-align: bottom; display: none"></div>
  94. </div>
  95. </div>
  96. </li>
  97. </ul>
  98. </div>
  99. <div class="sp-wrap" id="pos-spread">
  100. </div>
  101. </div>
  102. <% } %>
  103. </div>
  104. <div class="c-body" id="right-view" style="display: none; width: 33%;">
  105. <div class="resize-x" id="right-spr" r-Type="width" div1="#left-view" div2="#right-view" title="调整大小" a-type="percent"><!--调整左右高度条--></div>
  106. <div class="tab-content">
  107. <div id="search" class="tab-pane">
  108. <div class="sjs-bar-1">
  109. <div class="input-group input-group-sm">
  110. <input id="searchKeyword" type="text" class="form-control" placeholder="可查找 项目节编号/清单编号/名称" aria-label="Recipient's username" aria-describedby="button-addon2">
  111. <div class="input-group-append">
  112. <button class="btn btn-outline-secondary" type="button" id="searchLedger">搜索</button>
  113. </div>
  114. </div>
  115. </div>
  116. <div id="search-result" class="sjs-sh-1">
  117. </div>
  118. </div>
  119. <div id="std-chapter" class="tab-pane">
  120. <div class="sjs-bar-2">
  121. <select class="form-control form-control-sm"><option>0号计量台帐部位参考(项目节)</option></select>
  122. </div>
  123. <div id="std-chapter-spread" class="sjs-sh-2">
  124. </div>
  125. </div>
  126. <div id="std-bills" class="tab-pane">
  127. <div class="sjs-bar-3">
  128. <select class="form-control form-control-sm"><option>0号计量台帐清单参考(工程量清单)</option></select>
  129. </div>
  130. <div id="std-bills-spread" class="sjs-sh-3">
  131. </div>
  132. </div>
  133. <div id="deal-bills" class="tab-pane">
  134. <div class="sjs-bar-4">
  135. <a href="#upload-deal" data-toggle="modal" data-target="#upload-deal" class="btn btn-sm btn-primary">上传签约清单</a>
  136. </div>
  137. <div id="deal-bills-spread" class="sjs-sh-4">
  138. </div>
  139. </div>
  140. </div>
  141. </div>
  142. </div>
  143. <!--右侧菜单-->
  144. <div class="side-menu">
  145. <ul class="nav flex-column right-nav" id="side-menu">
  146. <li>
  147. <a class="nav-link" content="#search" href="javascript: void(0);">查找定位</a>
  148. </li>
  149. <li class="nav-item">
  150. <a class="nav-link" content="#std-chapter" href="javascript: void(0);">项目节</a>
  151. </li>
  152. <li class="nav-item">
  153. <a class="nav-link" content="#std-bills" href="javascript: void(0);">工程量清单</a>
  154. </li>
  155. <li class="nav-item">
  156. <a class="nav-link" content="#deal-bills" href="javascript: void(0);">签约清单</a>
  157. </li>
  158. </ul>
  159. </div>
  160. </div>
  161. </div>
  162. <script type="text/javascript">
  163. const tender = JSON.parse('<%- JSON.stringify(tender) %>');
  164. const tenderInfo = JSON.parse('<%- JSON.stringify(tenderInfo) %>');
  165. const measureType = JSON.parse('<%- JSON.stringify(measureType) %>');
  166. let ledger = '<%- ledger %>';
  167. ledger = JSON.parse(ledger);
  168. let ledgerSpreadSetting = '<%- ledgerSpreadSetting %>';
  169. ledgerSpreadSetting = JSON.parse(ledgerSpreadSetting);
  170. let posSpreadSetting = JSON.parse('<%- posSpreadSetting %>');
  171. </script>
  172. <% if ((tender.ledger_status === auditConst.status.uncheck || tender.ledger_status === auditConst.status.checkNo) && ctx.session.sessionUser.accountId === tender.user_id) { %>
  173. <script>
  174. const accountList = JSON.parse('<%- JSON.stringify(accountList) %>');
  175. </script>
  176. <% } %>