index.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362
  1. <style>
  2. /* 工具栏贴右时避免被 #content / .col / .content 裁切 */
  3. #content:has(#procuremen-layout),
  4. #content .col-xs-12:has(#procuremen-layout),
  5. div.content:has(#procuremen-layout) {
  6. overflow-x: visible !important;
  7. }
  8. div.content:has(#procuremen-layout) {
  9. padding-top: 0 !important;
  10. padding-bottom: 0 !important;
  11. }
  12. #procuremen-layout > .panel-body {
  13. padding-top: 16px !important;
  14. padding-bottom: 0 !important;
  15. }
  16. #procuremen-layout.panel-intro > .panel-heading {
  17. padding-top: 0 !important;
  18. padding-bottom: 0 !important;
  19. }
  20. #procuremen-layout.panel-intro > .panel-heading .panel-lead {
  21. margin-bottom: 0;
  22. }
  23. #procuremen-layout .tab-content,
  24. #procuremen-layout .tab-pane {
  25. padding: 0;
  26. margin: 0;
  27. }
  28. .procuremen-layout { margin: 0 -10px; }
  29. /* 左右列等高:与右侧整块(工具条+Tab+表格+分页)对齐;桌面下取消 float 用 flex */
  30. #procuremen-layout .procuremen-layout.row {
  31. display: flex;
  32. flex-wrap: wrap;
  33. align-items: stretch;
  34. }
  35. @media (min-width: 768px) {
  36. #procuremen-layout .procuremen-layout.row {
  37. min-height: calc(100vh - 132px);
  38. }
  39. #procuremen-layout .procuremen-layout > .procuremen-sidebar,
  40. #procuremen-layout .procuremen-layout > .procuremen-main {
  41. float: none !important;
  42. display: flex;
  43. flex-direction: column;
  44. }
  45. }
  46. #procuremen-layout .procuremen-main {
  47. overflow-x: visible !important;
  48. padding-right: 18px !important;
  49. flex: 1 1 0%;
  50. min-width: 0;
  51. }
  52. .procuremen-sidebar {
  53. flex: 0 0 auto;
  54. align-self: stretch;
  55. min-height: 0;
  56. overflow-y: auto;
  57. border-right: 1px solid #e7e7e7;
  58. background: #fafafa;
  59. }
  60. /* 左侧年月栏:桌面 md 用 1 列(略窄于 2 列);平板 sm 仍为 2 列 */
  61. .procuremen-sidebar .year-title {
  62. font-weight: 600;
  63. padding: 6px 8px;
  64. margin: 6px 0 2px;
  65. background: #eee;
  66. border-radius: 3px;
  67. font-size: 12px;
  68. }
  69. .procuremen-sidebar .procuremen-ym-item {
  70. display: block;
  71. padding: 6px 8px;
  72. margin: 1px 0;
  73. color: #333;
  74. border-radius: 3px;
  75. text-decoration: none;
  76. border: 1px solid transparent;
  77. }
  78. .procuremen-sidebar .procuremen-ym-item:hover {
  79. background: #e8f4fc;
  80. border-color: #bce8f1;
  81. }
  82. .procuremen-sidebar .procuremen-ym-item.active {
  83. background: #3c8dbc;
  84. color: #fff;
  85. border-color: #367fa9;
  86. }
  87. #procuremen-layout .procuremen-main .widget-body {
  88. overflow-x: visible;
  89. overflow-y: hidden;
  90. flex: 1 1 auto;
  91. min-height: 0;
  92. display: flex;
  93. flex-direction: column;
  94. }
  95. #procuremen-layout .procuremen-toolbar-host,
  96. #procuremen-layout .procuremen-wff-tabs {
  97. flex-shrink: 0;
  98. }
  99. #procuremen-layout .procuremen-main .fixed-table-pagination {
  100. background: #fff;
  101. border-top: 1px solid #e7e7e7;
  102. box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.04);
  103. }
  104. /* 主表 loading 遮罩盖不住右侧固定列克隆体,刷新时短暂露出旧「操作」按钮,加载中先隐藏 */
  105. #procuremen-layout .fixed-columns-right.procuremen-hide-fixed-right-loading {
  106. visibility: hidden !important;
  107. pointer-events: none !important;
  108. }
  109. /* JS 把 .fixed-table-toolbar 挪到此处:上一行按钮,下一行 tabs */
  110. .procuremen-toolbar-host {
  111. padding: 6px 12px 8px 0;
  112. margin-bottom: 0;
  113. border-bottom: 1px solid #e7e7e7;
  114. width: 100%;
  115. box-sizing: border-box;
  116. overflow: visible;
  117. position: relative;
  118. z-index: 3;
  119. }
  120. .procuremen-toolbar-host .fixed-table-toolbar {
  121. border: none;
  122. margin: 0;
  123. padding: 0;
  124. display: flex;
  125. align-items: center;
  126. justify-content: flex-start;
  127. flex-wrap: nowrap;
  128. gap: 12px;
  129. width: 100%;
  130. box-sizing: border-box;
  131. overflow: visible;
  132. min-height: 36px;
  133. }
  134. .procuremen-toolbar-host .fixed-table-toolbar > .pull-left,
  135. .procuremen-toolbar-host .fixed-table-toolbar > .bars.pull-left,
  136. .procuremen-toolbar-host .fixed-table-toolbar > .bs-bars.pull-left {
  137. float: none !important;
  138. margin: 0 !important;
  139. flex: 0 0 auto;
  140. }
  141. .procuremen-toolbar-host .fixed-table-toolbar > .pull-right,
  142. .procuremen-toolbar-host .fixed-table-toolbar > .columns.pull-right,
  143. .procuremen-toolbar-host .fixed-table-toolbar > .columns.columns-right {
  144. float: none !important;
  145. margin-left: auto !important;
  146. flex: 0 0 auto;
  147. display: flex;
  148. align-items: center;
  149. flex-wrap: nowrap;
  150. gap: 8px;
  151. }
  152. .procuremen-toolbar-host .fixed-table-toolbar .search {
  153. float: none !important;
  154. margin: 0 !important;
  155. }
  156. .procuremen-toolbar-host .fixed-table-toolbar .search .form-control {
  157. min-width: 140px;
  158. max-width: 220px;
  159. }
  160. .procuremen-toolbar-host .fixed-table-toolbar .procuremen-toolbar-search-wrap {
  161. margin-left: auto !important;
  162. float: none !important;
  163. display: flex !important;
  164. align-items: center;
  165. flex-wrap: nowrap;
  166. gap: 8px;
  167. flex: 0 0 auto !important;
  168. flex-shrink: 0 !important;
  169. min-width: min-content;
  170. }
  171. .procuremen-toolbar-host .fixed-table-toolbar .procuremen-toolbar-search-wrap .btn-group,
  172. .procuremen-toolbar-host .fixed-table-toolbar .procuremen-toolbar-search-wrap button[name="search"] {
  173. flex-shrink: 0;
  174. }
  175. .procuremen-toolbar-host .fixed-table-toolbar .procuremen-toolbar-search-wrap > .search {
  176. order: 0 !important;
  177. }
  178. .procuremen-toolbar-host .fixed-table-toolbar .procuremen-toolbar-search-wrap > *:not(.search) {
  179. order: 2;
  180. }
  181. .procuremen-toolbar-host .fixed-table-toolbar .procuremen-toolbar-search-wrap > button[name="search"] {
  182. order: 4 !important;
  183. }
  184. #procuremen-layout .procuremen-main .procuremen-table-area {
  185. flex: 1 1 auto;
  186. min-height: 0;
  187. overflow: hidden;
  188. display: flex;
  189. flex-direction: column;
  190. }
  191. #procuremen-layout .procuremen-table-area > .bootstrap-table {
  192. flex: 1 1 auto;
  193. min-height: 0;
  194. }
  195. .procuremen-table-area .toolbar.procuremen-toolbar-empty {
  196. display: none !important;
  197. }
  198. .procuremen-wff-tabs {
  199. margin-bottom: 0;
  200. margin-top: 0;
  201. border-bottom: 1px solid #ddd;
  202. }
  203. .procuremen-wff-tabs > li > a {
  204. padding: 8px 14px;
  205. }
  206. #procuremen-layout .bootstrap-table .table > thead > tr > th,
  207. #procuremen-layout .bootstrap-table .table > tbody > tr > td {
  208. padding: 3px 6px;
  209. line-height: 1.28;
  210. vertical-align: middle;
  211. }
  212. /* 复选框列:表头 .th-inner 与表体 td 内边距一致,避免全选与行勾选框错位 */
  213. #procuremen-layout .bootstrap-table th.bs-checkbox,
  214. #procuremen-layout .bootstrap-table td.bs-checkbox {
  215. width: 42px !important;
  216. min-width: 42px !important;
  217. max-width: 42px !important;
  218. padding: 3px 4px !important;
  219. text-align: center !important;
  220. vertical-align: middle !important;
  221. box-sizing: border-box;
  222. }
  223. #procuremen-layout .bootstrap-table th.bs-checkbox .th-inner {
  224. padding: 0 !important;
  225. margin: 0 !important;
  226. text-align: center !important;
  227. line-height: 1;
  228. min-height: 0;
  229. }
  230. #procuremen-layout .bootstrap-table th.bs-checkbox input[type="checkbox"],
  231. #procuremen-layout .bootstrap-table td.bs-checkbox input[type="checkbox"] {
  232. margin: 0 auto !important;
  233. vertical-align: middle !important;
  234. float: none;
  235. position: static;
  236. top: auto;
  237. width: 16px;
  238. height: 16px;
  239. cursor: pointer;
  240. display: block;
  241. }
  242. #procuremen-layout .bootstrap-table tbody td.bs-checkbox {
  243. min-height: 28px;
  244. cursor: pointer;
  245. }
  246. /* 避免出现纵向滚动条时表头与表体列宽错位 */
  247. #procuremen-layout .bootstrap-table .fixed-table-body {
  248. overflow-y: auto;
  249. }
  250. #procuremen-layout .nice-validator .bootstrap-table td.bs-checkbox input[type="checkbox"],
  251. #procuremen-layout .nice-validator .bootstrap-table th.bs-checkbox input[type="checkbox"] {
  252. vertical-align: middle !important;
  253. }
  254. #procuremen-layout .bootstrap-table .table > tbody > tr > td .btn-xs {
  255. padding: 2px 6px;
  256. font-size: 12px;
  257. }
  258. /*
  259. * 右固定列与主表 .fixed-table-body 为同级兄弟,主表全宽时最后一列会叠在固定层「下面」。
  260. * 全局 backend.css 里 .fixed-columns-right 仅 z-index:2,易被主表内层盖住,表现为要点多次才打开弹窗。
  261. * 抬高固定列整体叠层,并把主表滚动区压在 z-index:0,保证命中的是固定层上的按钮。
  262. */
  263. #procuremen-layout .bootstrap-table .fixed-table-container > .fixed-table-body {
  264. position: relative;
  265. z-index: 0;
  266. }
  267. #procuremen-layout .bootstrap-table .fixed-columns-right {
  268. box-shadow: none !important;
  269. border-left: 1px solid #e3e6ea;
  270. background-color: #fff;
  271. z-index: 18 !important;
  272. }
  273. #procuremen-layout .bootstrap-table .fixed-columns-right .fixed-table-header table thead th,
  274. #procuremen-layout .bootstrap-table .fixed-columns-right .fixed-table-body table tbody td {
  275. border-left-color: transparent;
  276. }
  277. /* 操作列按钮在固定层内置于可点区域之上,减少与主表透明重叠导致的「多点一次」 */
  278. /* 固定列操作按钮:抬高层级 + 明确可点,减轻与主表空白区域叠层的「点了没反应」 */
  279. #procuremen-layout .bootstrap-table .fixed-columns-right .fixed-table-body {
  280. pointer-events: auto;
  281. }
  282. #procuremen-layout .bootstrap-table .fixed-columns-right a.procuremen-op-open {
  283. position: relative;
  284. z-index: 6;
  285. pointer-events: auto;
  286. display: inline-block;
  287. vertical-align: middle;
  288. }
  289. /* 完结确认弹层:与操作列「完结」同为警示色主按钮 */
  290. body .layui-layer-procuremen-finish .layui-layer-btn0 {
  291. background-color: #f0ad4e !important;
  292. border-color: #eea236 !important;
  293. color: #fff !important;
  294. }
  295. body .layui-layer-procuremen-finish .layui-layer-btn0:hover {
  296. background-color: #ec971f !important;
  297. border-color: #d58512 !important;
  298. color: #fff !important;
  299. }
  300. #procuremen-layout .procuremen-po-field.procuremen-po-dirty {
  301. border-color: #f0ad4e;
  302. box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 4px rgba(240, 173, 78, 0.45);
  303. }
  304. .procuremen-po-popover {
  305. position: fixed;
  306. z-index: 100050;
  307. padding: 6px 8px;
  308. background: #fff;
  309. border: 1px solid #d2d6de;
  310. border-radius: 4px;
  311. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  312. }
  313. .procuremen-po-popover-inner {
  314. white-space: nowrap;
  315. }
  316. .procuremen-po-popover-inner .btn + .btn {
  317. margin-left: 6px;
  318. }
  319. </style>
  320. <div class="panel panel-default panel-intro" id="procuremen-layout"
  321. data-default-ym="{$defaultYm|htmlentities}"
  322. data-procuremen-redis-api="{$procuremenRedisApi|htmlentities}"
  323. data-procuremen-stage="{$procuremenStage|default='pick'|htmlentities}">
  324. {:build_heading()}
  325. <div class="panel-body">
  326. <div class="row procuremen-layout">
  327. <div class="col-xs-12 col-sm-2 col-md-1 procuremen-sidebar">
  328. {foreach name="sidebarYearMonths" item="block"}
  329. <div class="procuremen-year-block">
  330. <div class="year-title">{$block.year}年</div>
  331. {foreach name="block.months" item="item"}
  332. <a href="javascript:;" class="procuremen-ym-item" data-ym="{$item.ym|htmlentities}">{$item.label|htmlentities}</a>
  333. {/foreach}
  334. </div>
  335. {/foreach}
  336. </div>
  337. <div class="col-xs-12 col-sm-10 col-md-11 procuremen-main">
  338. <div id="myTabContent" class="tab-content">
  339. <div class="tab-pane fade active in" id="one">
  340. <div class="widget-body no-padding">
  341. <div id="procuremen-toolbar-host" class="procuremen-toolbar-host clearfix"></div>
  342. <div class="procuremen-table-area">
  343. <div id="toolbar" class="toolbar">
  344. <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" >刷新 <i class="fa fa-refresh"></i> </a>
  345. <a href="javascript:;" class="btn btn-danger" id="btn-procuremen-audit-abandon" title="勾选一条或多条订单退回外发初选重新下发(历史记录保留)" style="display:none;"><i class="fa fa-repeat"></i> 重新下发</a>
  346. <a href="javascript:;" class="btn btn-info" id="btn-procuremen-pick-review" title="勾选一条或多条工序进行下发(多条须同一订单号)" style="display:none;"><i class="fa fa-paper-plane"></i> 下发</a>
  347. <a href="javascript:;" class="btn btn-warning" id="btn-procuremen-batch-finish" title="勾选一条或多条工序标记为已完结" style="display:none;"><i class="fa fa-flag-checkered"></i> 完结</a>
  348. <a href="javascript:;" class="btn btn-danger" id="btn-procuremen-pick-delete" title="勾选一条或多条工序从初选列表移除" style="display:none;"><i class="fa fa-trash"></i> 删除</a>
  349. </div>
  350. <table id="table"
  351. class="table table-striped table-bordered table-hover">
  352. </table>
  353. </div>
  354. </div>
  355. </div>
  356. </div>
  357. </div>
  358. </div>
  359. </div>
  360. </div>