review.html 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490
  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: hidden;
  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-x: hidden;
  48. }
  49. .review-split-right {
  50. flex: 1 1 0%;
  51. width: 100%;
  52. min-width: 0;
  53. min-height: 0;
  54. display: flex;
  55. flex-direction: column;
  56. overflow: hidden;
  57. }
  58. .review-split-left .review-block-title {
  59. margin: 0 0 8px;
  60. font-weight: 600;
  61. font-size: 13px;
  62. color: #000;
  63. }
  64. /* 订单号、印件名称:标签与数值同字号;标题黑色,数值样式不变 */
  65. .review-order-highlight {
  66. display: flex;
  67. flex-direction: row;
  68. flex-wrap: wrap;
  69. align-items: baseline;
  70. gap: 6px 22px;
  71. margin-bottom: 8px;
  72. font-size: 15px;
  73. line-height: 1.5;
  74. }
  75. .review-order-highlight .review-highlight-item {
  76. display: flex;
  77. flex-direction: row;
  78. align-items: baseline;
  79. gap: 6px;
  80. min-width: 0;
  81. }
  82. .review-order-highlight .review-field-label {
  83. flex-shrink: 0;
  84. margin: 0;
  85. font-weight: 600;
  86. font-size: 15px;
  87. color: #000;
  88. }
  89. .review-order-highlight .review-highlight-value {
  90. margin: 0;
  91. color: #333;
  92. font-size: 15px;
  93. font-weight: 700;
  94. word-break: break-word;
  95. }
  96. /* 工序名称等:标题黑色;标签与内容同 13px */
  97. .review-order-meta {
  98. display: flex;
  99. flex-direction: row;
  100. flex-wrap: wrap;
  101. align-items: baseline;
  102. gap: 6px 22px;
  103. font-size: 13px;
  104. line-height: 1.5;
  105. }
  106. .review-order-meta .review-meta-item {
  107. display: flex;
  108. flex-direction: row;
  109. align-items: baseline;
  110. gap: 6px;
  111. min-width: 0;
  112. }
  113. .review-order-meta .review-field-label {
  114. flex-shrink: 0;
  115. margin: 0;
  116. font-weight: 600;
  117. font-size: 13px;
  118. color: #000;
  119. }
  120. .review-order-meta .review-meta-inline {
  121. margin: 0;
  122. color: #333;
  123. font-size: 13px;
  124. word-break: break-word;
  125. }
  126. .review-split-right .review-right-title {
  127. flex-shrink: 0;
  128. margin: 0 0 6px;
  129. font-weight: 600;
  130. font-size: 13px;
  131. color: #000;
  132. }
  133. .review-split-right .review-notice {
  134. flex-shrink: 0;
  135. display: block;
  136. margin: 0 0 8px;
  137. padding: 6px 8px;
  138. font-size: 12px;
  139. line-height: 1.5;
  140. color: #777;
  141. background: #f4f8fb;
  142. border: 1px solid #dce8f2;
  143. border-radius: 3px;
  144. }
  145. .review-split-right .review-notice .fa {
  146. margin-right: 4px;
  147. color: #3c8dbc;
  148. }
  149. /* 左侧分类 + 右侧列表 */
  150. .review-company-panel {
  151. flex: 1 1 0%;
  152. min-height: 0;
  153. display: flex;
  154. flex-direction: row;
  155. align-items: stretch;
  156. gap: 0;
  157. border: 1px solid #ddd;
  158. border-radius: 3px;
  159. background: #fff;
  160. overflow: hidden;
  161. }
  162. .review-category-sidebar {
  163. flex: 0 0 210px;
  164. width: 210px;
  165. min-width: 210px;
  166. max-width: 210px;
  167. border-right: 1px solid #e0e0e0;
  168. background: #f9fafb;
  169. overflow-y: auto;
  170. overflow-x: hidden;
  171. font-size: 12px;
  172. }
  173. .review-category-sidebar .review-cat-head {
  174. padding: 8px 10px;
  175. font-weight: 600;
  176. color: #000;
  177. border-bottom: 1px solid #e5e5e5;
  178. background: #f0f2f5;
  179. }
  180. .review-category-sidebar .review-cat-item {
  181. display: block;
  182. padding: 8px 10px;
  183. color: #333;
  184. text-decoration: none;
  185. border-bottom: 1px solid #eee;
  186. cursor: pointer;
  187. white-space: normal;
  188. word-break: break-word;
  189. overflow: visible;
  190. line-height: 1.45;
  191. }
  192. .review-category-sidebar .review-cat-item:hover {
  193. background: #eef6fb;
  194. color: #2c6f9c;
  195. }
  196. .review-category-sidebar .review-cat-item.active {
  197. background: #3c8dbc;
  198. color: #fff;
  199. font-weight: 600;
  200. }
  201. .review-category-sidebar .review-cat-item .review-cat-count {
  202. opacity: 0.85;
  203. font-weight: normal;
  204. font-size: 11px;
  205. }
  206. .review-category-sidebar .review-cat-item.active .review-cat-count {
  207. opacity: 0.95;
  208. }
  209. .review-company-main {
  210. flex: 1 1 0%;
  211. min-width: 0;
  212. min-height: 0;
  213. display: flex;
  214. flex-direction: column;
  215. overflow: hidden;
  216. }
  217. .review-company-toolbar {
  218. flex-shrink: 0;
  219. padding: 8px;
  220. border-bottom: 1px solid #eee;
  221. background: #fafafa;
  222. }
  223. .review-company-toolbar .form-control {
  224. font-size: 13px;
  225. height: 34px;
  226. }
  227. .review-table-scroll {
  228. flex: 1 1 0%;
  229. min-height: 0;
  230. box-sizing: border-box;
  231. width: 100%;
  232. overflow: auto;
  233. font-size: 12px;
  234. border: none;
  235. border-radius: 0;
  236. }
  237. .review-table-scroll .table-responsive {
  238. margin-bottom: 0;
  239. }
  240. .review-table-scroll table {
  241. margin-bottom: 0;
  242. }
  243. .review-table-scroll .table > thead > tr > th,
  244. .review-table-scroll .table > tbody > tr > td {
  245. padding: 5px 6px;
  246. }
  247. .review-company-table {
  248. table-layout: fixed;
  249. width: 100%;
  250. }
  251. /* 姓名、邮箱列收窄(colgroup 为主,此处补 max-width 防撑开) */
  252. .review-company-table > thead > tr > th:nth-child(3),
  253. .review-company-table > tbody > tr > td:nth-child(3) {
  254. max-width: 88px;
  255. }
  256. .review-company-table > thead > tr > th:nth-child(4),
  257. .review-company-table > tbody > tr > td:nth-child(4) {
  258. max-width: 200px;
  259. }
  260. .review-company-table > thead > tr > th.review-th-cb,
  261. .review-company-table > tbody > tr > td.review-td-cb {
  262. width: 34px;
  263. min-width: 34px;
  264. max-width: 34px;
  265. text-align: center;
  266. vertical-align: middle !important;
  267. padding-left: 2px;
  268. padding-right: 2px;
  269. }
  270. .review-company-table .review-th-cb input[type="checkbox"],
  271. .review-company-table .review-td-cb input[type="checkbox"] {
  272. margin: 0;
  273. vertical-align: middle;
  274. position: relative;
  275. top: 1px;
  276. }
  277. /* 单元格完整展示,不换行省略号 */
  278. .review-company-table > tbody > tr > td:not(.review-td-cb) {
  279. white-space: normal;
  280. word-wrap: break-word;
  281. word-break: break-word;
  282. overflow: visible;
  283. vertical-align: top;
  284. }
  285. .review-company-table > thead > tr > th:not(.review-th-cb) {
  286. white-space: normal;
  287. word-break: break-word;
  288. vertical-align: middle;
  289. }
  290. .review-company-empty {
  291. padding: 24px 12px;
  292. text-align: center;
  293. color: #999;
  294. font-size: 13px;
  295. }
  296. .review-dialog-form .layer-footer {
  297. flex-shrink: 0;
  298. width: 100%;
  299. box-sizing: border-box;
  300. margin-top: 12px;
  301. padding: 10px 14px 10px 0;
  302. border-top: 1px solid #e5e5e5;
  303. background: #fafafa;
  304. text-align: right !important;
  305. }
  306. .review-dialog-form .layer-footer .pull-right {
  307. padding-right: 4px;
  308. }
  309. .review-dialog-form .layer-footer .btn + .btn {
  310. margin-left: 8px;
  311. }
  312. /* 已选单位:介于订单信息与下方提示之间,筛选滚动时仍可看到 */
  313. .review-selected-summary {
  314. flex-shrink: 0;
  315. margin: 0 0 10px;
  316. padding: 8px 10px;
  317. background: #fafbfc;
  318. border: 1px solid #e3e8ee;
  319. border-radius: 3px;
  320. font-size: 12px;
  321. line-height: 1.45;
  322. }
  323. .review-selected-summary .review-selected-head {
  324. margin: 0 0 6px;
  325. font-weight: 600;
  326. color: #333;
  327. }
  328. .review-selected-summary .review-selected-count {
  329. font-weight: 700;
  330. color: #3c8dbc;
  331. }
  332. .review-selected-summary .review-selected-empty {
  333. margin: 0;
  334. color: #999;
  335. font-size: 12px;
  336. }
  337. .review-selected-summary .review-selected-tags {
  338. display: flex;
  339. flex-wrap: wrap;
  340. gap: 6px 8px;
  341. align-items: flex-start;
  342. max-height: 104px;
  343. overflow-y: auto;
  344. margin: 0;
  345. }
  346. .review-selected-summary .review-selected-chip {
  347. display: inline-flex;
  348. align-items: flex-start;
  349. max-width: 100%;
  350. padding: 2px 4px 2px 8px;
  351. gap: 2px;
  352. font-size: 12px;
  353. color: #2c6f9c;
  354. background: #e8f4fb;
  355. border: 1px solid #c5dce8;
  356. border-radius: 2px;
  357. box-sizing: border-box;
  358. }
  359. .review-selected-summary .review-chip-text {
  360. flex: 1 1 auto;
  361. min-width: 0;
  362. word-break: break-all;
  363. line-height: 1.35;
  364. padding-top: 1px;
  365. }
  366. .review-selected-summary .review-chip-remove {
  367. flex: 0 0 auto;
  368. margin: 0;
  369. padding: 0 2px;
  370. border: none;
  371. background: transparent;
  372. color: #c9302c;
  373. font-size: 15px;
  374. font-weight: 700;
  375. line-height: 1.1;
  376. cursor: pointer;
  377. vertical-align: middle;
  378. }
  379. .review-selected-summary .review-chip-remove:hover,
  380. .review-selected-summary .review-chip-remove:focus {
  381. color: #a94442;
  382. outline: none;
  383. }
  384. </style>
  385. <form id="review-form" class="review-dialog-form" role="form" data-toggle="validator" method="post" action="">
  386. {:token()}
  387. <textarea class="hide" name="row_json" id="c-row-json" rows="1" cols="1"></textarea>
  388. <div class="review-split">
  389. <div class="review-split-left">
  390. <div class="review-order-highlight">
  391. <div class="review-highlight-item">
  392. <span class="review-field-label">订单号:</span>
  393. <span class="review-highlight-value" id="review-ccydh"></span>
  394. </div>
  395. <div class="review-highlight-item">
  396. <span class="review-field-label">印件名称:</span>
  397. <span class="review-highlight-value" id="review-cyjmc"></span>
  398. </div>
  399. </div>
  400. <div class="review-order-meta">
  401. <div class="review-meta-item">
  402. <span class="review-field-label">工序名称:</span>
  403. <span class="review-meta-inline" id="review-CGYMC"></span>
  404. </div>
  405. <div class="review-meta-item">
  406. <span class="review-field-label">单位:</span>
  407. <span class="review-meta-inline" id="review-CDW"></span>
  408. </div>
  409. <div class="review-meta-item">
  410. <span class="review-field-label">工作量:</span>
  411. <span class="review-meta-inline" id="review-NGZL"></span>
  412. </div>
  413. <div class="review-meta-item">
  414. <span class="review-field-label">本次数量:</span>
  415. <span class="review-meta-inline" id="review-qty-display">—</span>
  416. </div>
  417. <div class="review-meta-item">
  418. <span class="review-field-label">最高限价:</span>
  419. <span class="review-meta-inline" id="review-price-display">—</span>
  420. </div>
  421. <div class="review-meta-item">
  422. <span class="review-field-label">订法:</span>
  423. <span class="review-meta-inline" id="review-CDF"></span>
  424. </div>
  425. <div class="review-meta-item">
  426. <span class="review-field-label">外厂单位:</span>
  427. <span class="review-meta-inline" id="review-cGzzxMc"></span>
  428. </div>
  429. </div>
  430. </div>
  431. <div class="review-selected-summary" id="review-selected-summary" aria-live="polite">
  432. <div class="review-selected-head">
  433. 已选单位(<span class="review-selected-count" id="review-selected-count">0</span>)
  434. </div>
  435. <p class="review-selected-empty" id="review-selected-empty">暂未选择;在下方表格中勾选后,公司名称会显示在此处。</p>
  436. <div class="review-selected-tags" id="review-selected-tags"></div>
  437. </div>
  438. <div class="review-split-right">
  439. <span class="review-notice" title="操作提示">
  440. <i class="fa fa-info-circle"></i>
  441. 提交将向<strong>已勾选</strong>单位发送<strong>邮件</strong>与<strong>手机短信</strong>通知。
  442. </span>
  443. <div class="review-company-panel">
  444. <aside class="review-category-sidebar" id="review-category-sidebar">
  445. <div class="review-cat-head">本次下发分组</div>
  446. <div id="review-category-list"></div>
  447. </aside>
  448. <div class="review-company-main">
  449. <div class="review-company-toolbar">
  450. <input type="text" class="form-control" id="review-company-search" placeholder="搜索公司名称、联系人、邮箱、手机号、业务分类…" autocomplete="off"/>
  451. </div>
  452. <div class="review-table-scroll">
  453. <div class="table-responsive">
  454. <table class="table table-bordered table-hover table-striped table-condensed review-company-table">
  455. <colgroup>
  456. <col style="width:6%"/>
  457. <col style="width:27%"/>
  458. <col style="width:7%"/>
  459. <col style="width:14%"/>
  460. <col style="width: 19%"/>
  461. <col style="width:27%"/>
  462. </colgroup>
  463. <thead>
  464. <tr>
  465. <th class="review-th-cb"><input type="checkbox" id="review-check-all"/></th>
  466. <th>公司名称</th>
  467. <th>姓名</th>
  468. <th>邮箱</th>
  469. <th>手机号</th>
  470. <th>业务分类</th>
  471. </tr>
  472. </thead>
  473. <tbody id="review-company-tbody">
  474. </tbody>
  475. </table>
  476. </div>
  477. </div>
  478. </div>
  479. </div>
  480. </div>
  481. </div>
  482. <div class="layer-footer clearfix">
  483. <div class="pull-right">
  484. <button type="reset" style="margin-right: 20px" class="btn btn-default btn-embossed btn-close" onclick="Layer.closeAll();">{:__('Close')}</button>
  485. <button type="button" style="margin-right: 20px" id="btn-review-submit" class="btn btn-success btn-embossed">提交</button>
  486. </div>
  487. </div>
  488. </form>