index.html 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462
  1. <style>
  2. /* 工具栏贴右时避免被裁切;主内容区约束宽度,表格在内部横向滚动 */
  3. #content:has(#procuremen-layout),
  4. #content .col-xs-12:has(#procuremen-layout),
  5. div.content:has(#procuremen-layout) {
  6. overflow-x: hidden !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. #procuremen-layout .procuremen-layout > .procuremen-sidebar {
  46. flex: 0 0 92px;
  47. max-width: 92px;
  48. width: 92px !important;
  49. }
  50. }
  51. #procuremen-layout .procuremen-main {
  52. overflow-x: hidden !important;
  53. overflow-y: visible;
  54. padding-right: 8px !important;
  55. flex: 1 1 0%;
  56. min-width: 0;
  57. }
  58. .procuremen-sidebar {
  59. flex: 0 0 auto;
  60. align-self: stretch;
  61. min-height: 0;
  62. overflow-y: auto;
  63. border-right: 1px solid #e7e7e7;
  64. background: #fafafa;
  65. }
  66. /* 左侧年月栏:桌面固定约 92px,略宽于纯数字月份便于显示「2026年」 */
  67. .procuremen-sidebar .year-title {
  68. font-weight: 600;
  69. padding: 6px 8px;
  70. margin: 6px 0 2px;
  71. background: #eee;
  72. border-radius: 3px;
  73. font-size: 12px;
  74. }
  75. .procuremen-sidebar .procuremen-ym-item {
  76. display: block;
  77. padding: 6px 8px;
  78. margin: 1px 0;
  79. color: #333;
  80. border-radius: 3px;
  81. text-decoration: none;
  82. border: 1px solid transparent;
  83. }
  84. .procuremen-sidebar .procuremen-ym-item:hover {
  85. background: #e8f4fc;
  86. border-color: #bce8f1;
  87. }
  88. .procuremen-sidebar .procuremen-ym-item.active {
  89. background: #3c8dbc;
  90. color: #fff;
  91. border-color: #367fa9;
  92. }
  93. #procuremen-layout .procuremen-main .widget-body {
  94. overflow-x: hidden;
  95. overflow-y: hidden;
  96. flex: 1 1 auto;
  97. min-height: 0;
  98. min-width: 0;
  99. display: flex;
  100. flex-direction: column;
  101. }
  102. #procuremen-layout .procuremen-toolbar-host,
  103. #procuremen-layout .procuremen-wff-tabs {
  104. flex-shrink: 0;
  105. }
  106. #procuremen-layout .procuremen-main .fixed-table-pagination {
  107. background: #fff;
  108. border-top: 1px solid #e7e7e7;
  109. box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.04);
  110. }
  111. /* 主表 loading 遮罩盖不住右侧固定列克隆体,刷新时短暂露出旧「操作」按钮,加载中先隐藏 */
  112. #procuremen-layout .fixed-columns-right.procuremen-hide-fixed-right-loading {
  113. visibility: hidden !important;
  114. pointer-events: none !important;
  115. }
  116. /* JS 把 .fixed-table-toolbar 挪到此处:上一行按钮,下一行 tabs */
  117. .procuremen-toolbar-host {
  118. padding: 6px 12px 8px 0;
  119. margin-bottom: 0;
  120. border-bottom: 1px solid #e7e7e7;
  121. width: 100%;
  122. box-sizing: border-box;
  123. overflow: visible;
  124. position: relative;
  125. z-index: 3;
  126. }
  127. .procuremen-toolbar-host .fixed-table-toolbar {
  128. border: none;
  129. margin: 0;
  130. padding: 0;
  131. display: flex;
  132. align-items: center;
  133. justify-content: flex-start;
  134. flex-wrap: nowrap;
  135. gap: 12px;
  136. width: 100%;
  137. box-sizing: border-box;
  138. overflow: visible;
  139. min-height: 36px;
  140. }
  141. .procuremen-toolbar-host .fixed-table-toolbar > .pull-left,
  142. .procuremen-toolbar-host .fixed-table-toolbar > .bars.pull-left,
  143. .procuremen-toolbar-host .fixed-table-toolbar > .bs-bars.pull-left {
  144. float: none !important;
  145. margin: 0 !important;
  146. flex: 0 0 auto;
  147. }
  148. .procuremen-toolbar-host .fixed-table-toolbar > .pull-right,
  149. .procuremen-toolbar-host .fixed-table-toolbar > .columns.pull-right,
  150. .procuremen-toolbar-host .fixed-table-toolbar > .columns.columns-right {
  151. float: none !important;
  152. margin-left: auto !important;
  153. flex: 0 0 auto;
  154. display: flex;
  155. align-items: center;
  156. flex-wrap: nowrap;
  157. gap: 8px;
  158. }
  159. .procuremen-toolbar-host .fixed-table-toolbar .search {
  160. float: none !important;
  161. margin: 0 !important;
  162. }
  163. .procuremen-toolbar-host .fixed-table-toolbar .search .form-control {
  164. min-width: 140px;
  165. max-width: 220px;
  166. }
  167. .procuremen-toolbar-host .fixed-table-toolbar .procuremen-toolbar-search-wrap {
  168. margin-left: auto !important;
  169. float: none !important;
  170. display: flex !important;
  171. align-items: center;
  172. flex-wrap: nowrap;
  173. gap: 8px;
  174. flex: 0 0 auto !important;
  175. flex-shrink: 0 !important;
  176. min-width: min-content;
  177. }
  178. .procuremen-toolbar-host .fixed-table-toolbar .procuremen-toolbar-search-wrap .btn-group,
  179. .procuremen-toolbar-host .fixed-table-toolbar .procuremen-toolbar-search-wrap button[name="search"] {
  180. flex-shrink: 0;
  181. }
  182. .procuremen-toolbar-host .fixed-table-toolbar .procuremen-toolbar-search-wrap > .search {
  183. order: 0 !important;
  184. }
  185. .procuremen-toolbar-host .fixed-table-toolbar .procuremen-toolbar-search-wrap > *:not(.search) {
  186. order: 2;
  187. }
  188. .procuremen-toolbar-host .fixed-table-toolbar .procuremen-toolbar-search-wrap > button[name="search"] {
  189. order: 4 !important;
  190. }
  191. #procuremen-layout .procuremen-main .procuremen-table-area {
  192. flex: 1 1 auto;
  193. min-height: 0;
  194. min-width: 0;
  195. overflow: hidden;
  196. display: flex;
  197. flex-direction: column;
  198. }
  199. #procuremen-layout .procuremen-table-area > .bootstrap-table {
  200. flex: 1 1 auto;
  201. min-height: 0;
  202. min-width: 0;
  203. width: 100%;
  204. }
  205. #procuremen-layout .bootstrap-table .fixed-table-container {
  206. width: 100% !important;
  207. }
  208. .procuremen-table-area .toolbar.procuremen-toolbar-empty {
  209. display: none !important;
  210. }
  211. .procuremen-wff-tabs {
  212. margin-bottom: 0;
  213. margin-top: 0;
  214. border-bottom: 1px solid #ddd;
  215. }
  216. .procuremen-wff-tabs > li > a {
  217. padding: 8px 14px;
  218. }
  219. #procuremen-layout .bootstrap-table .table > thead > tr > th,
  220. #procuremen-layout .bootstrap-table .table > tbody > tr > td {
  221. padding: 3px 6px;
  222. line-height: 1.28;
  223. vertical-align: middle;
  224. }
  225. /* 复选框列:表头 .th-inner 与表体 td 内边距一致,避免全选与行勾选框错位 */
  226. #procuremen-layout .bootstrap-table th.bs-checkbox,
  227. #procuremen-layout .bootstrap-table td.bs-checkbox {
  228. width: 42px !important;
  229. min-width: 42px !important;
  230. max-width: 42px !important;
  231. padding: 3px 4px !important;
  232. text-align: center !important;
  233. vertical-align: middle !important;
  234. box-sizing: border-box;
  235. }
  236. #procuremen-layout .bootstrap-table th.bs-checkbox .th-inner {
  237. padding: 0 !important;
  238. margin: 0 !important;
  239. text-align: center !important;
  240. line-height: 1;
  241. min-height: 0;
  242. }
  243. #procuremen-layout .bootstrap-table th.bs-checkbox input[type="checkbox"],
  244. #procuremen-layout .bootstrap-table td.bs-checkbox input[type="checkbox"] {
  245. margin: 0 auto !important;
  246. vertical-align: middle !important;
  247. float: none;
  248. position: static;
  249. top: auto;
  250. width: 16px;
  251. height: 16px;
  252. cursor: pointer;
  253. display: block;
  254. }
  255. #procuremen-layout .bootstrap-table tbody td.bs-checkbox {
  256. min-height: 28px;
  257. cursor: pointer;
  258. }
  259. /* 表头与表体同步横向滚动,避免右侧列(如提交日期)被裁切 */
  260. #procuremen-layout .bootstrap-table .fixed-table-body {
  261. overflow: auto !important;
  262. -webkit-overflow-scrolling: touch;
  263. box-sizing: border-box;
  264. }
  265. #procuremen-layout .bootstrap-table .fixed-table-body > table.table {
  266. margin-right: 14px;
  267. }
  268. #procuremen-layout .bootstrap-table .fixed-table-header {
  269. overflow: hidden;
  270. }
  271. /* 日期列加宽并禁止省略,避免滚到最右仍被竖向滚动条挡住 */
  272. #procuremen-layout .bootstrap-table thead th[data-field="dStamp"],
  273. #procuremen-layout .bootstrap-table thead th[data-field="dputrecord"],
  274. #procuremen-layout .bootstrap-table tbody td[data-field="dStamp"],
  275. #procuremen-layout .bootstrap-table tbody td[data-field="dputrecord"] {
  276. min-width: 176px !important;
  277. width: 176px !important;
  278. white-space: nowrap;
  279. overflow: visible;
  280. text-overflow: clip;
  281. }
  282. #procuremen-layout .nice-validator .bootstrap-table td.bs-checkbox input[type="checkbox"],
  283. #procuremen-layout .nice-validator .bootstrap-table th.bs-checkbox input[type="checkbox"] {
  284. vertical-align: middle !important;
  285. }
  286. #procuremen-layout .bootstrap-table .table > tbody > tr > td .btn-xs {
  287. padding: 2px 6px;
  288. font-size: 12px;
  289. }
  290. /*
  291. * 右固定列与主表 .fixed-table-body 为同级兄弟,主表全宽时最后一列会叠在固定层「下面」。
  292. * 全局 backend.css 里 .fixed-columns-right 仅 z-index:2,易被主表内层盖住,表现为要点多次才打开弹窗。
  293. * 抬高固定列整体叠层,并把主表滚动区压在 z-index:0,保证命中的是固定层上的按钮。
  294. */
  295. #procuremen-layout .bootstrap-table .fixed-table-container > .fixed-table-body {
  296. position: relative;
  297. z-index: 0;
  298. }
  299. #procuremen-layout .bootstrap-table .fixed-columns-right {
  300. box-shadow: none !important;
  301. border-left: 1px solid #e3e6ea;
  302. background-color: #fff;
  303. z-index: 18 !important;
  304. }
  305. #procuremen-layout .bootstrap-table .fixed-columns-right .fixed-table-header table thead th,
  306. #procuremen-layout .bootstrap-table .fixed-columns-right .fixed-table-body table tbody td {
  307. border-left-color: transparent;
  308. }
  309. /* 操作列按钮在固定层内置于可点区域之上,减少与主表透明重叠导致的「多点一次」 */
  310. /* 固定列操作按钮:抬高层级 + 明确可点,减轻与主表空白区域叠层的「点了没反应」 */
  311. #procuremen-layout .bootstrap-table .fixed-columns-right .fixed-table-body {
  312. pointer-events: auto;
  313. }
  314. #procuremen-layout .bootstrap-table .fixed-columns-right a.procuremen-op-open {
  315. position: relative;
  316. z-index: 6;
  317. pointer-events: auto;
  318. display: inline-block;
  319. vertical-align: middle;
  320. }
  321. #procuremen-layout .procuremen-op-btns .btn + .btn {
  322. margin-left: 6px;
  323. }
  324. /* 可排序列表头:排序图标紧跟文字后面(th-inner 仅包裹文字宽度) */
  325. #procuremen-layout .bootstrap-table thead th.sortable,
  326. #procuremen-layout .bootstrap-table thead th .th-inner.sortable {
  327. background-image: none !important;
  328. background-position: unset !important;
  329. padding-right: 6px !important;
  330. }
  331. #procuremen-layout .bootstrap-table thead th.sortable .th-inner,
  332. #procuremen-layout .bootstrap-table thead th .th-inner.sortable {
  333. display: inline-block !important;
  334. width: auto !important;
  335. max-width: calc(100% - 2px);
  336. padding-right: 0 !important;
  337. box-sizing: border-box;
  338. vertical-align: middle;
  339. white-space: nowrap;
  340. }
  341. #procuremen-layout .bootstrap-table thead th.sortable .th-inner:after,
  342. #procuremen-layout .bootstrap-table thead th .th-inner.sortable:after {
  343. content: '\f0dc';
  344. font-family: FontAwesome;
  345. font-size: 11px;
  346. line-height: 1;
  347. color: #bbb;
  348. margin-left: 4px;
  349. vertical-align: middle;
  350. }
  351. #procuremen-layout .bootstrap-table thead th.sortable.asc .th-inner:after,
  352. #procuremen-layout .bootstrap-table thead th.sortable.desc .th-inner:after,
  353. #procuremen-layout .bootstrap-table thead th .th-inner.sortable.asc:after,
  354. #procuremen-layout .bootstrap-table thead th .th-inner.sortable.desc:after {
  355. color: #337ab7;
  356. }
  357. /* 完结确认弹层:与「已完结」卡片、完结按钮同为绿色 */
  358. body .layui-layer-procuremen-finish .layui-layer-btn0 {
  359. background-color: #27C24C !important;
  360. border-color: #23ad44 !important;
  361. color: #fff !important;
  362. }
  363. body .layui-layer-procuremen-finish .layui-layer-btn0:hover {
  364. background-color: #1e983e !important;
  365. border-color: #1a8737 !important;
  366. color: #fff !important;
  367. }
  368. #procuremen-layout .procuremen-po-field.procuremen-po-dirty {
  369. border-color: #f0ad4e;
  370. box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 4px rgba(240, 173, 78, 0.45);
  371. }
  372. .procuremen-po-popover {
  373. position: fixed;
  374. z-index: 100050;
  375. padding: 6px 8px;
  376. background: #fff;
  377. border: 1px solid #d2d6de;
  378. border-radius: 4px;
  379. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  380. }
  381. .procuremen-po-popover-inner {
  382. white-space: nowrap;
  383. }
  384. .procuremen-po-popover-inner .btn + .btn {
  385. margin-left: 6px;
  386. }
  387. #procuremen-layout .procuremen-supplier-lines-cell {
  388. position: relative;
  389. }
  390. #procuremen-layout .procuremen-supplier-lines-cell .procuremen-supplier-caret {
  391. position: absolute;
  392. right: 0;
  393. top: 0;
  394. height: 100%;
  395. line-height: 1;
  396. background: #eee;
  397. color: #ddd;
  398. padding: 0 5px;
  399. display: flex;
  400. justify-content: center;
  401. align-items: center;
  402. cursor: pointer;
  403. }
  404. #procuremen-layout .procuremen-supplier-lines-cell .procuremen-supplier-caret:hover {
  405. color: #999;
  406. }
  407. </style>
  408. <div class="panel panel-default panel-intro" id="procuremen-layout"
  409. data-default-ym="{$defaultYm|htmlentities}"
  410. data-procuremen-redis-api="{$procuremenRedisApi|htmlentities}"
  411. data-procuremen-stage="{$procuremenStage|default='pick'|htmlentities}"
  412. data-can-dispatch="{$procuremenBtnDispatch|default=0}"
  413. data-can-pick-delete="{$procuremenBtnPickDelete|default=0}"
  414. data-can-complete="{$procuremenBtnComplete|default=0}"
  415. data-can-audit-abandon="{$procuremenBtnAuditAbandon|default=0}">
  416. {:build_heading()}
  417. <div class="panel-body">
  418. <div class="row procuremen-layout">
  419. <div class="col-xs-12 col-sm-2 col-md-1 procuremen-sidebar">
  420. {foreach name="sidebarYearMonths" item="block"}
  421. <div class="procuremen-year-block">
  422. <div class="year-title">{$block.year}年</div>
  423. {foreach name="block.months" item="item"}
  424. <a href="javascript:;" class="procuremen-ym-item{if $item.ym == $defaultYm} active{/if}" data-ym="{$item.ym|htmlentities}">{$item.label|htmlentities}</a>
  425. {/foreach}
  426. </div>
  427. {/foreach}
  428. </div>
  429. <div class="col-xs-12 col-sm-10 col-md-11 procuremen-main">
  430. <div id="myTabContent" class="tab-content">
  431. <div class="tab-pane fade active in" id="one">
  432. <div class="widget-body no-padding">
  433. <div id="procuremen-toolbar-host" class="procuremen-toolbar-host clearfix"></div>
  434. <div class="procuremen-table-area">
  435. <div id="toolbar" class="toolbar">
  436. <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" >刷新 <i class="fa fa-refresh"></i> </a>
  437. {if isset($procuremenBtnAuditAbandon) && $procuremenBtnAuditAbandon}
  438. <a href="javascript:;" class="btn btn-danger" id="btn-procuremen-audit-abandon" title="勾选一条或多条订单退回协助初选重新下发(历史记录保留)" style="display:none;"><i class="fa fa-repeat"></i> 重新下发</a>
  439. {/if}
  440. {if isset($procuremenBtnDispatch) && $procuremenBtnDispatch}
  441. <a href="javascript:;" class="btn btn-info" id="btn-procuremen-pick-review" title="勾选一条或多条工序进行下发(多条须同一订单号)" style="display:none;"><i class="fa fa-paper-plane"></i> 下发</a>
  442. {/if}
  443. {if isset($procuremenBtnComplete) && $procuremenBtnComplete}
  444. <a href="javascript:;" class="btn btn-success" id="btn-procuremen-batch-finish" title="勾选一条或多条工序标记为已完结" style="display:none;"><i class="fa fa-flag-checkered"></i> 完结</a>
  445. {/if}
  446. {if isset($procuremenBtnPickDelete) && $procuremenBtnPickDelete}
  447. <a href="javascript:;" class="btn btn-danger" id="btn-procuremen-pick-delete" title="勾选一条或多条工序从初选列表移除" style="display:none;"><i class="fa fa-trash"></i> 删除</a>
  448. {/if}
  449. </div>
  450. <table id="table"
  451. class="table table-striped table-bordered table-hover">
  452. </table>
  453. </div>
  454. </div>
  455. </div>
  456. </div>
  457. </div>
  458. </div>
  459. </div>
  460. </div>