review.html 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623
  1. <style>
  2. /*
  3. * 上:订单信息(订单号、印件名称突出);下:左侧分类 + 右侧搜索与公司表格。
  4. */
  5. body.is-dialog #main,
  6. body.is-dialog #main > .tab-content,
  7. body.is-dialog #main #content {
  8. height: 100%;
  9. min-height: 0;
  10. }
  11. body.is-dialog #content > .row,
  12. body.is-dialog #content > .row > [class*="col-"] {
  13. height: 100%;
  14. min-height: 0;
  15. }
  16. body.is-dialog .content {
  17. height: 100%;
  18. min-height: 0;
  19. box-sizing: border-box;
  20. }
  21. body.is-dialog .review-dialog-form,
  22. .review-dialog-form {
  23. display: flex;
  24. flex-direction: column;
  25. height: 100%;
  26. max-height: 100%;
  27. min-height: min(72vh, 640px);
  28. box-sizing: border-box;
  29. padding: 8px 12px 0;
  30. }
  31. .review-split {
  32. display: flex;
  33. flex-direction: column;
  34. align-items: stretch;
  35. flex-wrap: nowrap;
  36. gap: 10px;
  37. flex: 1 1 0%;
  38. min-height: 0;
  39. overflow: visible;
  40. }
  41. .review-split-left {
  42. flex: 0 0 auto;
  43. width: 100%;
  44. min-width: 0;
  45. padding-bottom: 10px;
  46. border-bottom: 1px solid #e5e5e5;
  47. overflow: visible;
  48. position: relative;
  49. z-index: 60;
  50. }
  51. .review-split-right {
  52. flex: 1 1 0%;
  53. width: 100%;
  54. min-width: 0;
  55. min-height: 0;
  56. display: flex;
  57. flex-direction: column;
  58. overflow: hidden;
  59. }
  60. .review-split-left .review-block-title {
  61. margin: 0 0 8px;
  62. font-weight: 600;
  63. font-size: 13px;
  64. color: #000;
  65. }
  66. /* 订单号、印件名称:标签与数值同字号;标题黑色,数值样式不变 */
  67. .review-order-highlight {
  68. display: flex;
  69. flex-direction: row;
  70. flex-wrap: wrap;
  71. align-items: baseline;
  72. gap: 6px 22px;
  73. margin-bottom: 8px;
  74. font-size: 15px;
  75. line-height: 1.5;
  76. }
  77. .review-order-highlight .review-highlight-item {
  78. display: flex;
  79. flex-direction: row;
  80. align-items: baseline;
  81. gap: 6px;
  82. min-width: 0;
  83. }
  84. .review-order-highlight .review-field-label {
  85. flex-shrink: 0;
  86. margin: 0;
  87. font-weight: 600;
  88. font-size: 15px;
  89. color: #000;
  90. }
  91. .review-order-highlight .review-highlight-value {
  92. margin: 0;
  93. color: #333;
  94. font-size: 15px;
  95. font-weight: 700;
  96. word-break: break-word;
  97. }
  98. /* 工序名称等:标题黑色;标签与内容同 13px */
  99. .review-order-meta {
  100. display: flex;
  101. flex-direction: row;
  102. flex-wrap: wrap;
  103. align-items: baseline;
  104. gap: 6px 22px;
  105. font-size: 13px;
  106. line-height: 1.5;
  107. }
  108. .review-order-meta .review-meta-item {
  109. display: flex;
  110. flex-direction: row;
  111. align-items: baseline;
  112. gap: 6px;
  113. min-width: 0;
  114. }
  115. .review-order-meta .review-field-label {
  116. flex-shrink: 0;
  117. margin: 0;
  118. font-weight: 600;
  119. font-size: 13px;
  120. color: #000;
  121. }
  122. .review-order-meta .review-meta-inline {
  123. margin: 0;
  124. color: #333;
  125. font-size: 13px;
  126. word-break: break-word;
  127. }
  128. .review-deadline-row {
  129. display: flex;
  130. flex-wrap: wrap;
  131. align-items: flex-start;
  132. gap: 8px 12px;
  133. margin-top: 10px;
  134. padding-top: 10px;
  135. border-top: 1px dashed #e0e0e0;
  136. width: 100%;
  137. position: relative;
  138. z-index: 61;
  139. overflow: visible;
  140. }
  141. .review-deadline-row .review-field-label {
  142. flex-shrink: 0;
  143. margin: 0;
  144. font-weight: 600;
  145. font-size: 13px;
  146. color: #000;
  147. }
  148. .review-deadline-input-wrap {
  149. position: relative;
  150. flex: 1 1 auto;
  151. min-width: 0;
  152. z-index: 62;
  153. }
  154. .procuremen-sys-rq-split .procuremen-sys-rq-fields {
  155. display: flex;
  156. flex-wrap: wrap;
  157. align-items: center;
  158. gap: 8px;
  159. }
  160. .procuremen-sys-rq-split .procuremen-sys-rq-date {
  161. width: 148px;
  162. min-width: 132px;
  163. height: 32px;
  164. padding: 4px 8px;
  165. }
  166. .procuremen-sys-rq-split .procuremen-sys-rq-time-group {
  167. display: inline-flex;
  168. align-items: center;
  169. gap: 4px;
  170. }
  171. .procuremen-sys-rq-split .procuremen-sys-rq-hour,
  172. .procuremen-sys-rq-split .procuremen-sys-rq-minute {
  173. width: 62px;
  174. height: 32px;
  175. padding: 4px 6px;
  176. }
  177. .procuremen-sys-rq-split .procuremen-sys-rq-colon {
  178. color: #666;
  179. font-weight: 600;
  180. line-height: 32px;
  181. }
  182. /* 截止时间日历:浮在弹窗最上层,不占文档流 */
  183. body.is-dialog .bootstrap-datetimepicker-widget.dropdown-menu {
  184. z-index: 19999999 !important;
  185. box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  186. }
  187. .review-split-right .review-right-title {
  188. flex-shrink: 0;
  189. margin: 0 0 6px;
  190. font-weight: 600;
  191. font-size: 13px;
  192. color: #000;
  193. }
  194. .review-selected-summary .procuremen-review-submit-tip {
  195. margin: 0;
  196. padding: 0;
  197. border: none;
  198. background: transparent;
  199. color: #8a6d3b;
  200. font-size: 12px;
  201. line-height: 1.5;
  202. flex: 1 1 auto;
  203. min-width: 0;
  204. white-space: nowrap;
  205. overflow: hidden;
  206. text-overflow: ellipsis;
  207. }
  208. .review-selected-summary .procuremen-review-submit-tip .fa {
  209. margin-right: 4px;
  210. color: #f0ad4e;
  211. }
  212. /* 提交:与列表审核 / 采购确认、弹层「确定」一致 */
  213. .btn.procuremen-btn-slate {
  214. color: #fff !important;
  215. background-color: #4b5573 !important;
  216. border-color: #3e4659 !important;
  217. }
  218. .btn.procuremen-btn-slate:hover,
  219. .btn.procuremen-btn-slate:focus,
  220. .btn.procuremen-btn-slate:active {
  221. color: #fff !important;
  222. background-color: #3f485f !important;
  223. border-color: #353c4c !important;
  224. }
  225. /* 左侧分类 + 右侧列表 */
  226. .review-company-panel {
  227. flex: 1 1 0%;
  228. min-height: 0;
  229. display: flex;
  230. flex-direction: row;
  231. align-items: stretch;
  232. gap: 0;
  233. border: 1px solid #ddd;
  234. border-radius: 3px;
  235. background: #fff;
  236. overflow: hidden;
  237. }
  238. .review-category-sidebar {
  239. flex: 0 0 210px;
  240. width: 210px;
  241. min-width: 210px;
  242. max-width: 210px;
  243. border-right: 1px solid #e0e0e0;
  244. background: #f9fafb;
  245. overflow-y: auto;
  246. overflow-x: hidden;
  247. font-size: 12px;
  248. }
  249. .review-category-sidebar .review-cat-head {
  250. padding: 8px 10px;
  251. font-weight: 600;
  252. color: #000;
  253. border-bottom: 1px solid #e5e5e5;
  254. background: #f0f2f5;
  255. }
  256. .review-category-sidebar .review-cat-item {
  257. display: block;
  258. padding: 8px 10px;
  259. color: #333;
  260. text-decoration: none;
  261. border-bottom: 1px solid #eee;
  262. cursor: pointer;
  263. white-space: normal;
  264. word-break: break-word;
  265. overflow: visible;
  266. line-height: 1.45;
  267. }
  268. .review-category-sidebar .review-cat-item:hover {
  269. background: #eef6fb;
  270. color: #2c6f9c;
  271. }
  272. .review-category-sidebar .review-cat-item.active {
  273. background: #3c8dbc;
  274. color: #fff;
  275. font-weight: 600;
  276. }
  277. .review-category-sidebar .review-cat-item .review-cat-count {
  278. opacity: 0.85;
  279. font-weight: normal;
  280. font-size: 11px;
  281. }
  282. .review-category-sidebar .review-cat-item.active .review-cat-count {
  283. opacity: 0.95;
  284. }
  285. .review-company-main {
  286. flex: 1 1 0%;
  287. min-width: 0;
  288. min-height: 0;
  289. display: flex;
  290. flex-direction: column;
  291. overflow: hidden;
  292. }
  293. .review-company-toolbar {
  294. flex-shrink: 0;
  295. padding: 8px;
  296. border-bottom: 1px solid #eee;
  297. background: #fafafa;
  298. }
  299. .review-company-toolbar .form-control {
  300. font-size: 13px;
  301. height: 34px;
  302. }
  303. .review-table-scroll {
  304. flex: 1 1 0%;
  305. min-height: 0;
  306. box-sizing: border-box;
  307. width: 100%;
  308. overflow: auto;
  309. font-size: 12px;
  310. border: none;
  311. border-radius: 0;
  312. }
  313. .review-table-scroll .table-responsive {
  314. margin-bottom: 0;
  315. overflow: visible;
  316. }
  317. .review-table-scroll table {
  318. margin-bottom: 0;
  319. }
  320. .review-table-scroll .table > thead > tr > th,
  321. .review-table-scroll .table > tbody > tr > td {
  322. padding: 5px 6px;
  323. }
  324. /* 客户列表滚动时表头固定在滚动区域顶部 */
  325. .review-table-scroll .review-company-table > thead > tr > th {
  326. position: sticky;
  327. top: 0;
  328. z-index: 3;
  329. background-color: #f5f5f5;
  330. box-shadow: 0 1px 0 #ddd;
  331. }
  332. .review-table-scroll .review-company-table > thead > tr > th.review-th-cb {
  333. z-index: 4;
  334. }
  335. .review-company-table {
  336. table-layout: fixed;
  337. width: 100%;
  338. border-collapse: separate;
  339. border-spacing: 0;
  340. }
  341. /* 姓名、邮箱列收窄(colgroup 为主,此处补 max-width 防撑开) */
  342. .review-company-table > thead > tr > th:nth-child(3),
  343. .review-company-table > tbody > tr > td:nth-child(3) {
  344. max-width: 88px;
  345. }
  346. .review-company-table > thead > tr > th:nth-child(4),
  347. .review-company-table > tbody > tr > td:nth-child(4) {
  348. max-width: 200px;
  349. }
  350. .review-company-table > thead > tr > th.review-th-cb,
  351. .review-company-table > tbody > tr > td.review-td-cb {
  352. width: 34px;
  353. min-width: 34px;
  354. max-width: 34px;
  355. text-align: center;
  356. vertical-align: middle !important;
  357. padding-left: 2px;
  358. padding-right: 2px;
  359. }
  360. .review-company-table .review-th-cb input[type="checkbox"],
  361. .review-company-table .review-td-cb input[type="checkbox"] {
  362. margin: 0;
  363. vertical-align: middle;
  364. position: relative;
  365. top: 1px;
  366. }
  367. /* 单元格完整展示,不换行省略号 */
  368. .review-company-table > tbody > tr > td:not(.review-td-cb) {
  369. white-space: normal;
  370. word-wrap: break-word;
  371. word-break: break-word;
  372. overflow: visible;
  373. vertical-align: top;
  374. }
  375. .review-company-table > thead > tr > th:not(.review-th-cb) {
  376. white-space: normal;
  377. word-break: break-word;
  378. vertical-align: middle;
  379. }
  380. .review-company-empty {
  381. padding: 24px 12px;
  382. text-align: center;
  383. color: #999;
  384. font-size: 13px;
  385. }
  386. .review-dialog-form .layer-footer {
  387. flex-shrink: 0;
  388. width: 100%;
  389. box-sizing: border-box;
  390. margin-top: 12px;
  391. padding: 10px 14px 10px 0;
  392. border-top: 1px solid #e5e5e5;
  393. background: #fafafa;
  394. text-align: right !important;
  395. }
  396. .review-dialog-form .layer-footer .pull-right {
  397. padding-right: 4px;
  398. }
  399. .review-dialog-form .layer-footer .btn + .btn {
  400. margin-left: 8px;
  401. }
  402. /* 已选单位:介于订单信息与下方提示之间,筛选滚动时仍可看到 */
  403. .review-selected-summary {
  404. flex-shrink: 0;
  405. margin: 0 0 10px;
  406. padding: 8px 10px;
  407. background: #fafbfc;
  408. border: 1px solid #e3e8ee;
  409. border-radius: 3px;
  410. font-size: 12px;
  411. line-height: 1.45;
  412. }
  413. .review-selected-summary .review-selected-top {
  414. display: flex;
  415. flex-wrap: nowrap;
  416. align-items: center;
  417. gap: 10px 14px;
  418. margin: 0 0 6px;
  419. min-width: 0;
  420. }
  421. .review-selected-summary .review-selected-head {
  422. margin: 0;
  423. font-weight: 600;
  424. color: #333;
  425. flex-shrink: 0;
  426. white-space: nowrap;
  427. }
  428. .review-selected-summary .review-selected-count {
  429. font-weight: 700;
  430. color: #3c8dbc;
  431. }
  432. .review-selected-summary .review-selected-empty {
  433. display: none;
  434. margin: 0;
  435. color: #999;
  436. font-size: 12px;
  437. }
  438. .review-selected-summary .review-selected-tags {
  439. display: flex;
  440. flex-wrap: wrap;
  441. gap: 6px 8px;
  442. align-items: flex-start;
  443. max-height: 104px;
  444. overflow-y: auto;
  445. margin: 0;
  446. }
  447. .review-selected-summary .review-selected-chip {
  448. display: inline-flex;
  449. align-items: flex-start;
  450. max-width: 100%;
  451. padding: 2px 4px 2px 8px;
  452. gap: 2px;
  453. font-size: 12px;
  454. color: #2c6f9c;
  455. background: #e8f4fb;
  456. border: 1px solid #c5dce8;
  457. border-radius: 2px;
  458. box-sizing: border-box;
  459. }
  460. .review-selected-summary .review-chip-text {
  461. flex: 1 1 auto;
  462. min-width: 0;
  463. word-break: break-all;
  464. line-height: 1.35;
  465. padding-top: 1px;
  466. }
  467. .review-selected-summary .review-chip-remove {
  468. flex: 0 0 auto;
  469. margin: 0;
  470. padding: 0 2px;
  471. border: none;
  472. background: transparent;
  473. color: #c9302c;
  474. font-size: 15px;
  475. font-weight: 700;
  476. line-height: 1.1;
  477. cursor: pointer;
  478. vertical-align: middle;
  479. }
  480. .review-selected-summary .review-chip-remove:hover,
  481. .review-selected-summary .review-chip-remove:focus {
  482. color: #a94442;
  483. outline: none;
  484. }
  485. .review-merge-panel {
  486. margin: 0 0 10px;
  487. display: block;
  488. }
  489. .review-merge-panel .review-block-title {
  490. margin: 0 0 8px;
  491. font-weight: 600;
  492. font-size: 13px;
  493. color: #000;
  494. }
  495. .review-merge-table-wrap {
  496. max-height: 200px;
  497. overflow: auto;
  498. border: 1px solid #e5e5e5;
  499. }
  500. .review-merge-table {
  501. margin: 0;
  502. font-size: 12px;
  503. }
  504. .review-merge-table th {
  505. white-space: nowrap;
  506. background: #f5f5f5;
  507. }
  508. .review-merge-table th.text-center,
  509. .review-merge-table td.text-center {
  510. text-align: center;
  511. vertical-align: middle;
  512. }
  513. </style>
  514. <form id="review-form" class="review-dialog-form" role="form" data-toggle="validator" method="post" action="" data-pick-mode="{$pickMode|default=0}">
  515. {:token()}
  516. <textarea class="hide" name="row_json" id="c-row-json" rows="1" cols="1"></textarea>
  517. <textarea class="hide" name="merge_rows_json" id="c-merge-rows-json" rows="1" cols="1"></textarea>
  518. <div class="review-split">
  519. <div class="review-split-left">
  520. <div class="review-merge-panel" id="review-merge-panel">
  521. <div class="review-merge-table-wrap">
  522. <table class="table table-bordered table-condensed review-merge-table">
  523. <thead>
  524. <tr>
  525. <th class="text-center" style="width:100px;">订单号</th>
  526. <th style="min-width:160px;">印件名称</th>
  527. <th>工序名称</th>
  528. <th class="text-center" style="width:56px;">单位</th>
  529. <th class="text-center" style="width:72px;">本次数量</th>
  530. <th class="text-center" style="width:72px;">最高限价</th>
  531. <th class="text-center" style="width:80px;">订法</th>
  532. <th style="min-width:120px;">备注</th>
  533. </tr>
  534. </thead>
  535. <tbody id="review-merge-tbody"></tbody>
  536. </table>
  537. </div>
  538. </div>
  539. <div class="review-deadline-row">
  540. <span class="review-field-label">截止时间:<span class="text-danger">*</span></span>
  541. <div class="review-deadline-input-wrap procuremen-sys-rq-split" id="review-sys-rq-wrap">
  542. <input type="hidden" id="review-sys-rq" name="sys_rq" value=""/>
  543. <div class="procuremen-sys-rq-fields">
  544. <input type="date" class="form-control procuremen-sys-rq-date" title="截止日期"/>
  545. <div class="procuremen-sys-rq-time-group">
  546. <select class="form-control procuremen-sys-rq-hour" title="时"></select>
  547. <span class="procuremen-sys-rq-colon">:</span>
  548. <select class="form-control procuremen-sys-rq-minute" title="分"></select>
  549. </div>
  550. </div>
  551. </div>
  552. </div>
  553. </div>
  554. <div class="review-selected-summary" id="review-selected-summary" aria-live="polite">
  555. <div class="review-selected-top">
  556. <div class="review-selected-head">
  557. 已选单位(<span class="review-selected-count" id="review-selected-count">0</span>)
  558. </div>
  559. <p class="review-selected-tip procuremen-review-submit-tip" role="note">
  560. <i class="fa fa-exclamation-triangle"></i>
  561. <strong>重要提示:</strong>确认后将向所选供应商<strong>发送短信与邮件</strong>,请仔细核对后再提交。
  562. </p>
  563. </div>
  564. <p class="review-selected-empty" id="review-selected-empty">暂未选择供应商</p>
  565. <div class="review-selected-tags" id="review-selected-tags"></div>
  566. </div>
  567. <div class="review-split-right">
  568. <div class="review-company-panel">
  569. <aside class="review-category-sidebar" id="review-category-sidebar">
  570. <div class="review-cat-head">业务分组</div>
  571. <div id="review-category-list"></div>
  572. </aside>
  573. <div class="review-company-main">
  574. <div class="review-company-toolbar">
  575. <input type="text" class="form-control" id="review-company-search" placeholder="搜索供应商名称、姓名、邮箱、手机号、业务分类…" autocomplete="off"/>
  576. </div>
  577. <div class="review-table-scroll">
  578. <div class="table-responsive">
  579. <table class="table table-bordered table-hover table-striped table-condensed review-company-table">
  580. <colgroup>
  581. <col style="width:6%"/>
  582. <col style="width:27%"/>
  583. <col style="width:9%"/>
  584. <col style="width:16%"/>
  585. <col style="width: 15%"/>
  586. <col style="width:27%"/>
  587. </colgroup>
  588. <thead>
  589. <tr>
  590. <th class="review-th-cb"><input type="checkbox" id="review-check-all"/></th>
  591. <th>供应商名称</th>
  592. <th>姓名</th>
  593. <th>邮箱</th>
  594. <th>手机号</th>
  595. <th>业务分类</th>
  596. </tr>
  597. </thead>
  598. <tbody id="review-company-tbody">
  599. </tbody>
  600. </table>
  601. </div>
  602. </div>
  603. </div>
  604. </div>
  605. </div>
  606. </div>
  607. <div class="layer-footer clearfix">
  608. <div class="pull-right">
  609. {if isset($pickMode) && $pickMode}
  610. {if $auth->check('procuremen/picksubmit')}
  611. <button type="button" style="margin-right: 20px" id="btn-review-submit" class="btn procuremen-btn-slate btn-embossed">确认</button>
  612. {/if}
  613. {else /}
  614. {if $auth->check('procuremen/review')}
  615. <button type="button" style="margin-right: 20px" id="btn-review-submit" class="btn procuremen-btn-slate btn-embossed">确认</button>
  616. {/if}
  617. {/if}
  618. <button type="button" style="margin-right: 20px" class="btn btn-default btn-embossed btn-close">{:__('Close')}</button>
  619. </div>
  620. </div>
  621. </form>