review.html 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585
  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: 0 0 auto;
  151. z-index: 62;
  152. }
  153. .review-deadline-row .review-sys-rq-input {
  154. width: 240px;
  155. max-width: 240px;
  156. min-width: 180px;
  157. }
  158. /* 截止时间日历:浮在弹窗最上层,不占文档流 */
  159. body.is-dialog .bootstrap-datetimepicker-widget.dropdown-menu {
  160. z-index: 19999999 !important;
  161. box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  162. }
  163. .review-split-right .review-right-title {
  164. flex-shrink: 0;
  165. margin: 0 0 6px;
  166. font-weight: 600;
  167. font-size: 13px;
  168. color: #000;
  169. }
  170. .review-selected-summary .procuremen-review-submit-tip {
  171. margin: 0;
  172. padding: 0;
  173. border: none;
  174. background: transparent;
  175. color: #8a6d3b;
  176. font-size: 12px;
  177. line-height: 1.5;
  178. flex: 1 1 auto;
  179. min-width: 0;
  180. white-space: nowrap;
  181. overflow: hidden;
  182. text-overflow: ellipsis;
  183. }
  184. .review-selected-summary .procuremen-review-submit-tip .fa {
  185. margin-right: 4px;
  186. color: #f0ad4e;
  187. }
  188. /* 提交:与列表审核 / 采购确认、弹层「确定」一致 */
  189. .btn.procuremen-btn-slate {
  190. color: #fff !important;
  191. background-color: #4b5573 !important;
  192. border-color: #3e4659 !important;
  193. }
  194. .btn.procuremen-btn-slate:hover,
  195. .btn.procuremen-btn-slate:focus,
  196. .btn.procuremen-btn-slate:active {
  197. color: #fff !important;
  198. background-color: #3f485f !important;
  199. border-color: #353c4c !important;
  200. }
  201. /* 左侧分类 + 右侧列表 */
  202. .review-company-panel {
  203. flex: 1 1 0%;
  204. min-height: 0;
  205. display: flex;
  206. flex-direction: row;
  207. align-items: stretch;
  208. gap: 0;
  209. border: 1px solid #ddd;
  210. border-radius: 3px;
  211. background: #fff;
  212. overflow: hidden;
  213. }
  214. .review-category-sidebar {
  215. flex: 0 0 210px;
  216. width: 210px;
  217. min-width: 210px;
  218. max-width: 210px;
  219. border-right: 1px solid #e0e0e0;
  220. background: #f9fafb;
  221. overflow-y: auto;
  222. overflow-x: hidden;
  223. font-size: 12px;
  224. }
  225. .review-category-sidebar .review-cat-head {
  226. padding: 8px 10px;
  227. font-weight: 600;
  228. color: #000;
  229. border-bottom: 1px solid #e5e5e5;
  230. background: #f0f2f5;
  231. }
  232. .review-category-sidebar .review-cat-item {
  233. display: block;
  234. padding: 8px 10px;
  235. color: #333;
  236. text-decoration: none;
  237. border-bottom: 1px solid #eee;
  238. cursor: pointer;
  239. white-space: normal;
  240. word-break: break-word;
  241. overflow: visible;
  242. line-height: 1.45;
  243. }
  244. .review-category-sidebar .review-cat-item:hover {
  245. background: #eef6fb;
  246. color: #2c6f9c;
  247. }
  248. .review-category-sidebar .review-cat-item.active {
  249. background: #3c8dbc;
  250. color: #fff;
  251. font-weight: 600;
  252. }
  253. .review-category-sidebar .review-cat-item .review-cat-count {
  254. opacity: 0.85;
  255. font-weight: normal;
  256. font-size: 11px;
  257. }
  258. .review-category-sidebar .review-cat-item.active .review-cat-count {
  259. opacity: 0.95;
  260. }
  261. .review-company-main {
  262. flex: 1 1 0%;
  263. min-width: 0;
  264. min-height: 0;
  265. display: flex;
  266. flex-direction: column;
  267. overflow: hidden;
  268. }
  269. .review-company-toolbar {
  270. flex-shrink: 0;
  271. padding: 8px;
  272. border-bottom: 1px solid #eee;
  273. background: #fafafa;
  274. }
  275. .review-company-toolbar .form-control {
  276. font-size: 13px;
  277. height: 34px;
  278. }
  279. .review-table-scroll {
  280. flex: 1 1 0%;
  281. min-height: 0;
  282. box-sizing: border-box;
  283. width: 100%;
  284. overflow: auto;
  285. font-size: 12px;
  286. border: none;
  287. border-radius: 0;
  288. }
  289. .review-table-scroll .table-responsive {
  290. margin-bottom: 0;
  291. overflow: visible;
  292. }
  293. .review-table-scroll table {
  294. margin-bottom: 0;
  295. }
  296. .review-table-scroll .table > thead > tr > th,
  297. .review-table-scroll .table > tbody > tr > td {
  298. padding: 5px 6px;
  299. }
  300. /* 客户列表滚动时表头固定在滚动区域顶部 */
  301. .review-table-scroll .review-company-table > thead > tr > th {
  302. position: sticky;
  303. top: 0;
  304. z-index: 3;
  305. background-color: #f5f5f5;
  306. box-shadow: 0 1px 0 #ddd;
  307. }
  308. .review-table-scroll .review-company-table > thead > tr > th.review-th-cb {
  309. z-index: 4;
  310. }
  311. .review-company-table {
  312. table-layout: fixed;
  313. width: 100%;
  314. border-collapse: separate;
  315. border-spacing: 0;
  316. }
  317. /* 姓名、邮箱列收窄(colgroup 为主,此处补 max-width 防撑开) */
  318. .review-company-table > thead > tr > th:nth-child(3),
  319. .review-company-table > tbody > tr > td:nth-child(3) {
  320. max-width: 88px;
  321. }
  322. .review-company-table > thead > tr > th:nth-child(4),
  323. .review-company-table > tbody > tr > td:nth-child(4) {
  324. max-width: 200px;
  325. }
  326. .review-company-table > thead > tr > th.review-th-cb,
  327. .review-company-table > tbody > tr > td.review-td-cb {
  328. width: 34px;
  329. min-width: 34px;
  330. max-width: 34px;
  331. text-align: center;
  332. vertical-align: middle !important;
  333. padding-left: 2px;
  334. padding-right: 2px;
  335. }
  336. .review-company-table .review-th-cb input[type="checkbox"],
  337. .review-company-table .review-td-cb input[type="checkbox"] {
  338. margin: 0;
  339. vertical-align: middle;
  340. position: relative;
  341. top: 1px;
  342. }
  343. /* 单元格完整展示,不换行省略号 */
  344. .review-company-table > tbody > tr > td:not(.review-td-cb) {
  345. white-space: normal;
  346. word-wrap: break-word;
  347. word-break: break-word;
  348. overflow: visible;
  349. vertical-align: top;
  350. }
  351. .review-company-table > thead > tr > th:not(.review-th-cb) {
  352. white-space: normal;
  353. word-break: break-word;
  354. vertical-align: middle;
  355. }
  356. .review-company-empty {
  357. padding: 24px 12px;
  358. text-align: center;
  359. color: #999;
  360. font-size: 13px;
  361. }
  362. .review-dialog-form .layer-footer {
  363. flex-shrink: 0;
  364. width: 100%;
  365. box-sizing: border-box;
  366. margin-top: 12px;
  367. padding: 10px 14px 10px 0;
  368. border-top: 1px solid #e5e5e5;
  369. background: #fafafa;
  370. text-align: right !important;
  371. }
  372. .review-dialog-form .layer-footer .pull-right {
  373. padding-right: 4px;
  374. }
  375. .review-dialog-form .layer-footer .btn + .btn {
  376. margin-left: 8px;
  377. }
  378. /* 已选单位:介于订单信息与下方提示之间,筛选滚动时仍可看到 */
  379. .review-selected-summary {
  380. flex-shrink: 0;
  381. margin: 0 0 10px;
  382. padding: 8px 10px;
  383. background: #fafbfc;
  384. border: 1px solid #e3e8ee;
  385. border-radius: 3px;
  386. font-size: 12px;
  387. line-height: 1.45;
  388. }
  389. .review-selected-summary .review-selected-top {
  390. display: flex;
  391. flex-wrap: nowrap;
  392. align-items: center;
  393. gap: 10px 14px;
  394. margin: 0 0 6px;
  395. min-width: 0;
  396. }
  397. .review-selected-summary .review-selected-head {
  398. margin: 0;
  399. font-weight: 600;
  400. color: #333;
  401. flex-shrink: 0;
  402. white-space: nowrap;
  403. }
  404. .review-selected-summary .review-selected-count {
  405. font-weight: 700;
  406. color: #3c8dbc;
  407. }
  408. .review-selected-summary .review-selected-empty {
  409. display: none;
  410. margin: 0;
  411. color: #999;
  412. font-size: 12px;
  413. }
  414. .review-selected-summary .review-selected-tags {
  415. display: flex;
  416. flex-wrap: wrap;
  417. gap: 6px 8px;
  418. align-items: flex-start;
  419. max-height: 104px;
  420. overflow-y: auto;
  421. margin: 0;
  422. }
  423. .review-selected-summary .review-selected-chip {
  424. display: inline-flex;
  425. align-items: flex-start;
  426. max-width: 100%;
  427. padding: 2px 4px 2px 8px;
  428. gap: 2px;
  429. font-size: 12px;
  430. color: #2c6f9c;
  431. background: #e8f4fb;
  432. border: 1px solid #c5dce8;
  433. border-radius: 2px;
  434. box-sizing: border-box;
  435. }
  436. .review-selected-summary .review-chip-text {
  437. flex: 1 1 auto;
  438. min-width: 0;
  439. word-break: break-all;
  440. line-height: 1.35;
  441. padding-top: 1px;
  442. }
  443. .review-selected-summary .review-chip-remove {
  444. flex: 0 0 auto;
  445. margin: 0;
  446. padding: 0 2px;
  447. border: none;
  448. background: transparent;
  449. color: #c9302c;
  450. font-size: 15px;
  451. font-weight: 700;
  452. line-height: 1.1;
  453. cursor: pointer;
  454. vertical-align: middle;
  455. }
  456. .review-selected-summary .review-chip-remove:hover,
  457. .review-selected-summary .review-chip-remove:focus {
  458. color: #a94442;
  459. outline: none;
  460. }
  461. .review-merge-panel {
  462. margin: 0 0 10px;
  463. display: block;
  464. }
  465. .review-merge-panel .review-block-title {
  466. margin: 0 0 8px;
  467. font-weight: 600;
  468. font-size: 13px;
  469. color: #000;
  470. }
  471. .review-merge-table-wrap {
  472. max-height: 200px;
  473. overflow: auto;
  474. border: 1px solid #e5e5e5;
  475. }
  476. .review-merge-table {
  477. margin: 0;
  478. font-size: 12px;
  479. }
  480. .review-merge-table th {
  481. white-space: nowrap;
  482. background: #f5f5f5;
  483. }
  484. .review-merge-table th.text-center,
  485. .review-merge-table td.text-center {
  486. text-align: center;
  487. vertical-align: middle;
  488. }
  489. </style>
  490. <form id="review-form" class="review-dialog-form" role="form" data-toggle="validator" method="post" action="" data-pick-mode="{$pickMode|default=0}">
  491. {:token()}
  492. <textarea class="hide" name="row_json" id="c-row-json" rows="1" cols="1"></textarea>
  493. <textarea class="hide" name="merge_rows_json" id="c-merge-rows-json" rows="1" cols="1"></textarea>
  494. <div class="review-split">
  495. <div class="review-split-left">
  496. <div class="review-merge-panel" id="review-merge-panel">
  497. <div class="review-merge-table-wrap">
  498. <table class="table table-bordered table-condensed review-merge-table">
  499. <thead>
  500. <tr>
  501. <th class="text-center" style="width:100px;">订单号</th>
  502. <th style="min-width:160px;">印件名称</th>
  503. <th>工序名称</th>
  504. <th class="text-center" style="width:56px;">单位</th>
  505. <th class="text-center" style="width:72px;">工作量</th>
  506. <th class="text-center" style="width:72px;">本次数量</th>
  507. <th class="text-center" style="width:72px;">最高限价</th>
  508. <th class="text-center" style="width:80px;">订法</th>
  509. </tr>
  510. </thead>
  511. <tbody id="review-merge-tbody"></tbody>
  512. </table>
  513. </div>
  514. </div>
  515. <div class="review-deadline-row">
  516. <span class="review-field-label">截止时间:<span class="text-danger">*</span></span>
  517. <div class="review-deadline-input-wrap">
  518. <input type="text" id="review-sys-rq" name="sys_rq" class="form-control datetimepicker review-sys-rq-input"
  519. data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true"
  520. placeholder="请选择年月日时分" autocomplete="off" required="required"/>
  521. </div>
  522. </div>
  523. </div>
  524. <div class="review-selected-summary" id="review-selected-summary" aria-live="polite">
  525. <div class="review-selected-top">
  526. <div class="review-selected-head">
  527. 已选单位(<span class="review-selected-count" id="review-selected-count">0</span>)
  528. </div>
  529. <p class="review-selected-tip procuremen-review-submit-tip" role="note">
  530. <i class="fa fa-exclamation-triangle"></i>
  531. <strong>重要提示:</strong>提交将向<strong>已勾选</strong>供应商发送<strong>邮件</strong>与<strong>手机短信</strong>;该操作<strong>不可撤回</strong>,请核对后再确认。
  532. </p>
  533. </div>
  534. <p class="review-selected-empty" id="review-selected-empty">暂未选择供应商</p>
  535. <div class="review-selected-tags" id="review-selected-tags"></div>
  536. </div>
  537. <div class="review-split-right">
  538. <div class="review-company-panel">
  539. <aside class="review-category-sidebar" id="review-category-sidebar">
  540. <div class="review-cat-head">业务分组</div>
  541. <div id="review-category-list"></div>
  542. </aside>
  543. <div class="review-company-main">
  544. <div class="review-company-toolbar">
  545. <input type="text" class="form-control" id="review-company-search" placeholder="搜索公司名称、联系人、邮箱、手机号、业务分类…" autocomplete="off"/>
  546. </div>
  547. <div class="review-table-scroll">
  548. <div class="table-responsive">
  549. <table class="table table-bordered table-hover table-striped table-condensed review-company-table">
  550. <colgroup>
  551. <col style="width:6%"/>
  552. <col style="width:27%"/>
  553. <col style="width:9%"/>
  554. <col style="width:16%"/>
  555. <col style="width: 15%"/>
  556. <col style="width:27%"/>
  557. </colgroup>
  558. <thead>
  559. <tr>
  560. <th class="review-th-cb"><input type="checkbox" id="review-check-all"/></th>
  561. <th>供应商名称</th>
  562. <th>姓名</th>
  563. <th>邮箱</th>
  564. <th>手机号</th>
  565. <th>业务分类</th>
  566. </tr>
  567. </thead>
  568. <tbody id="review-company-tbody">
  569. </tbody>
  570. </table>
  571. </div>
  572. </div>
  573. </div>
  574. </div>
  575. </div>
  576. </div>
  577. <div class="layer-footer clearfix">
  578. <div class="pull-right">
  579. <button type="button" style="margin-right: 20px" id="btn-review-submit" class="btn procuremen-btn-slate btn-embossed">确认</button>
  580. <button type="reset" style="margin-right: 20px" class="btn btn-default btn-embossed btn-close" onclick="Layer.closeAll();">{:__('Close')}</button>
  581. </div>
  582. </div>
  583. </form>