bwtz.ejs 6.8 KB

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