bwtz.ejs 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <% include ../tender/tender_sub_menu.ejs %>
  2. <div class="panel-content">
  3. <div class="panel-title">
  4. <div class="title-main d-flex justify-content-between">
  5. <% include ../tender/tender_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="javascirpt: void(0);">第一层</a>
  14. <a class="dropdown-item" name="showLevel" tag="2" href="javascirpt: void(0);">第二层</a>
  15. <a class="dropdown-item" name="showLevel" tag="3" href="javascirpt: void(0);">第三层</a>
  16. <a class="dropdown-item" name="showLevel" tag="4" href="javascirpt: void(0);">第四层</a>
  17. <a class="dropdown-item" name="showLevel" tag="5" href="javascirpt: void(0);">第五层</a>
  18. <a class="dropdown-item" name="showLevel" tag="last" href="javascirpt: void(0);">最底层</a>
  19. </div>
  20. </div>
  21. </div>
  22. <div class="d-inline-block ml-3">
  23. <a id="exportBwtz" class="btn btn-primary btn-sm" href="javascript: void(0)">导出部位台账Excel</a>
  24. </div>
  25. </div>
  26. <div class="ml-auto">
  27. </div>
  28. </div>
  29. </div>
  30. <div class="content-wrap pr-46">
  31. <div class="c-header p-0"></div>
  32. <div class="row w-100 sub-content">
  33. <!--左栏-->
  34. <div class="c-body" id="left-view" style="width: 100%">
  35. <div class="sjs-height-1" id="xmj-spread">
  36. </div>
  37. <div class="bcontent-wrap" id="main-bottom">
  38. <div id="main-resize" class="resize-y" r-Type="height" div1="#xmj-spread" div2="#main-bottom" store-id="stage-bwtz" store-version="1.0.0" min="100"></div>
  39. <div class="bc-bar mb-1">
  40. <ul class="nav nav-tabs">
  41. <li class="nav-item">
  42. <a class="nav-link active" data-toggle="tab" href="#jldyjlqd" role="tab">计量单元/计量清单</a>
  43. </li>
  44. </ul>
  45. </div>
  46. <div class="sp-wrap" id="unit-spread">
  47. </div>
  48. </div>
  49. </div>
  50. <!--右栏-->
  51. <div class="c-body" id="right-view" style="display: none; width: 33%">
  52. <div class="resize-x" id="right-spr" r-Type="width" div1="#left-view" div2="#right-view" title="调整大小" a-type="percent"><!--调整左右高度条--></div>
  53. <div class="tab-content">
  54. <div id="search" class="tab-pane">
  55. </div>
  56. </div>
  57. </div>
  58. </div>
  59. <!--右侧菜单-->
  60. <div class="side-menu">
  61. <!--右侧菜单-->
  62. <ul class="nav flex-column right-nav">
  63. <li class="nav-item">
  64. <a class="nav-link" href="javascript: void(0);" role="tab" content="#search">查找定位</a>
  65. </li>
  66. </ul>
  67. </div>
  68. </div>
  69. </div>
  70. <script>
  71. const xmjSpreadSetting = {
  72. cols: [
  73. {title: '项目节编号', colSpan: '1', rowSpan: '2', field: 'code', hAlign: 0, width: 145, formatter: '@', cellType: 'tree'},
  74. {title: '名称', colSpan: '1', rowSpan: '2', field: 'name', hAlign: 0, width: 185, formatter: '@'},
  75. {title: '单位', colSpan: '1', rowSpan: '2', field: 'unit', hAlign: 1, width: 60, formatter: '@', cellType: 'unit'},
  76. <% if (ctx.tender.info.display.ledger.dgnQty) { %>
  77. {title: '项目节数量|数量1', colSpan: '2|1', rowSpan: '1|1', field: 'dgn_qty1', hAlign: 2, width: 60, type: 'Number'},
  78. {title: '|数量2', colSpan: '|1', rowSpan: '|1', field: 'dgn_qty2', hAlign: 2, width: 60, type: 'Number'},
  79. {title: '经济指标', colSpan: '1', rowSpan: '2', field: 'dgn_price', hAlign: 2, width: 60, type: 'Number'},
  80. <% } %>
  81. {title: '台账金额', colSpan: '1', rowSpan: '2', field: 'total_price', hAlign: 2, width: 100, type: 'Number'},
  82. {title: '图(册)号', colSpan: '1', rowSpan: '2', field: 'drawing_code', hAlign: 0, width: 100, formatter: '@'},
  83. {title: '备注', colSpan: '1', rowSpan: '2', field: 'memo', hAlign: 0, width: 120, formatter: '@', cellType: 'ellipsisAutoTip'}
  84. ],
  85. emptyRows: 0,
  86. headRows: 2,
  87. headRowHeight: [25, 25],
  88. defaultRowHeight: 21,
  89. headerFont: '12px 微软雅黑',
  90. font: '12px 微软雅黑',
  91. readOnly: true,
  92. localCache: {
  93. key: 'bwtz-xmj',
  94. colWidth: true,
  95. }
  96. };
  97. const unitSpreadSetting = {
  98. cols: [
  99. {title: '计量单元', colSpan: '1', rowSpan: '2', field: 'code', hAlign: 0, width: 120, formatter: '@', cellType: 'tree'},
  100. {title: '清单编号', colSpan: '1', rowSpan: '2', field: 'b_code', hAlign: 0, width: 70, formatter: '@'},
  101. {
  102. title: '名称', colSpan: '1', rowSpan: '2', field: 'name', hAlign: 0, width: 185, formatter: '@',
  103. getValue: function (data) {
  104. return data.pos_name + data.name;
  105. }
  106. },
  107. {title: '单位', colSpan: '1', rowSpan: '2', field: 'unit', hAlign: 1, width: 60, formatter: '@', cellType: 'unit'},
  108. {title: '单价', colSpan: '1', rowSpan: '2', field: 'unit_price', hAlign: 2, width: 60, type: 'Number'},
  109. {title: '台账|数量', colSpan: '2|1', rowSpan: '1|1', field: 'quantity', hAlign: 2, width: 80, type: 'Number'},
  110. {title: '|金额', colSpan: '|1', rowSpan: '|1', field: 'total_price', hAlign: 2, width: 80, type: 'Number'},
  111. {title: '图(册)号', colSpan: '1', rowSpan: '2', field: 'drawing_code_merge', hAlign: 0, width: 100, formatter: '@'},
  112. {title: '备注', colSpan: '1', rowSpan: '2', field: 'memo_merge', hAlign: 0, width: 120, formatter: '@', cellType: 'ellipsisAutoTip'},
  113. ],
  114. emptyRows: 0,
  115. headRows: 2,
  116. headRowHeight: [25, 25],
  117. defaultRowHeight: 21,
  118. headerFont: '12px 微软雅黑',
  119. font: '12px 微软雅黑',
  120. readOnly: true,
  121. localCache: {
  122. key: 'bwtz-unit',
  123. colWidth: true,
  124. }
  125. };
  126. const thousandth = <%- ctx.tender.info.display.thousandth %>;
  127. const decimal = <%- ctx.tender.info.decimal.tp %>;
  128. </script>