details_fragment.html 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427
  1. <style>
  2. body.is-dialog .procuremen-details-wrap {
  3. margin: 0;
  4. padding: 12px 14px 16px;
  5. }
  6. .procuremen-details-wrap .section-title {
  7. font-size: 14px;
  8. font-weight: 600;
  9. margin: 18px 0 10px;
  10. color: #333;
  11. padding-bottom: 6px;
  12. border-bottom: 1px solid #eee;
  13. }
  14. .proc-steps-wrap {
  15. display: flex;
  16. flex-wrap: nowrap;
  17. justify-content: space-between;
  18. align-items: flex-start;
  19. padding: 8px 4px 4px;
  20. overflow-x: auto;
  21. -webkit-overflow-scrolling: touch;
  22. }
  23. .proc-step-item {
  24. flex: 1 1 0;
  25. min-width: 100px;
  26. text-align: center;
  27. position: relative;
  28. padding: 0 4px;
  29. }
  30. .proc-step-item:not(:last-child)::after {
  31. content: '';
  32. position: absolute;
  33. top: 14px;
  34. left: 50%;
  35. width: 100%;
  36. height: 2px;
  37. background: #e0e0e0;
  38. z-index: 0;
  39. }
  40. .proc-step-item.is-done:not(:last-child)::after {
  41. background: #1890ff;
  42. }
  43. .proc-step-circle {
  44. width: 28px;
  45. height: 28px;
  46. line-height: 28px;
  47. border-radius: 50%;
  48. margin: 0 auto 6px;
  49. font-size: 13px;
  50. font-weight: 600;
  51. position: relative;
  52. z-index: 1;
  53. background: #f5f5f5;
  54. color: #999;
  55. border: 2px solid #ddd;
  56. }
  57. .proc-step-item.is-done .proc-step-circle {
  58. background: #1890ff;
  59. border-color: #1890ff;
  60. color: #fff;
  61. }
  62. .proc-step-item.is-current .proc-step-circle {
  63. background: #1890ff;
  64. border-color: #1890ff;
  65. color: #fff;
  66. box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.25);
  67. }
  68. .proc-step-item.is-done .proc-step-circle .fa {
  69. line-height: 24px;
  70. }
  71. .proc-step-title {
  72. font-size: 12px;
  73. color: #333;
  74. line-height: 1.35;
  75. margin-bottom: 2px;
  76. }
  77. .proc-step-sub {
  78. font-size: 11px;
  79. color: #888;
  80. line-height: 1.3;
  81. min-height: 2.6em;
  82. }
  83. .proc-step-time {
  84. font-size: 11px;
  85. color: #aaa;
  86. margin-top: 4px;
  87. white-space: nowrap;
  88. }
  89. .procuremen-details-wrap .procuremen-order-info-block {
  90. border: 1px solid #ddd;
  91. margin-top: 18px;
  92. margin-bottom: 0;
  93. }
  94. .procuremen-details-wrap .procuremen-order-info-head {
  95. background: #f0f0f0;
  96. border-bottom: 1px solid #ddd;
  97. padding: 10px 12px;
  98. font-size: 14px;
  99. font-weight: 700;
  100. color: #222;
  101. margin: 0;
  102. }
  103. .procuremen-details-wrap .procuremen-order-grid {
  104. width: 100%;
  105. border-collapse: collapse;
  106. table-layout: fixed;
  107. font-size: 13px;
  108. margin: 0;
  109. background: #fff;
  110. border: none;
  111. }
  112. .procuremen-details-wrap .procuremen-order-grid td {
  113. border: 1px solid #ddd;
  114. padding: 10px 12px;
  115. vertical-align: middle;
  116. }
  117. .procuremen-details-wrap .procuremen-order-grid .og-label {
  118. width: 14%;
  119. background: #f5f5f5;
  120. color: #333;
  121. text-align: right;
  122. font-weight: normal;
  123. }
  124. .procuremen-details-wrap .procuremen-order-grid .og-value {
  125. width: 36%;
  126. background: #fff;
  127. color: #000;
  128. text-align: left;
  129. font-weight: 700;
  130. word-break: break-word;
  131. }
  132. .procuremen-details-wrap .details-process-table-wrap {
  133. overflow-x: auto;
  134. -webkit-overflow-scrolling: touch;
  135. }
  136. .procuremen-details-wrap .details-process-table {
  137. margin: 0;
  138. font-size: 12px;
  139. table-layout: fixed;
  140. width: 100%;
  141. min-width: 820px;
  142. border-collapse: collapse;
  143. }
  144. .procuremen-details-wrap .details-process-table th {
  145. background: #f5f5f5;
  146. white-space: nowrap;
  147. font-weight: 600;
  148. padding: 8px 10px;
  149. vertical-align: middle;
  150. border: 1px solid #ddd;
  151. }
  152. .procuremen-details-wrap .details-process-table td {
  153. padding: 8px 10px;
  154. vertical-align: middle;
  155. word-wrap: break-word;
  156. border: 1px solid #ddd;
  157. }
  158. .procuremen-details-wrap .details-process-table th.text-center,
  159. .procuremen-details-wrap .details-process-table td.text-center {
  160. text-align: center;
  161. }
  162. .procuremen-details-wrap .procuremen-oper-log {
  163. list-style: none;
  164. margin: 0 0 8px;
  165. padding: 0;
  166. font-size: 13px;
  167. line-height: 1.65;
  168. border: 1px solid #e8e8e8;
  169. border-radius: 4px;
  170. background: #fafafa;
  171. max-height: 280px;
  172. overflow-y: auto;
  173. }
  174. .procuremen-details-wrap .procuremen-oper-log li {
  175. padding: 8px 12px;
  176. border-bottom: 1px solid #eee;
  177. word-break: break-word;
  178. }
  179. .procuremen-details-wrap .procuremen-oper-log li:last-child {
  180. border-bottom: none;
  181. }
  182. .procuremen-details-wrap .procuremen-oper-log .op-user {
  183. font-weight: 700;
  184. color: #000;
  185. }
  186. .procuremen-details-wrap .procuremen-oper-log .op-time {
  187. color: #666;
  188. margin: 0 6px;
  189. }
  190. .procuremen-details-wrap .procuremen-oper-log .op-text {
  191. color: #333;
  192. }
  193. .procuremen-details-wrap .procuremen-oper-log-empty {
  194. font-size: 13px;
  195. color: #999;
  196. padding: 10px 12px;
  197. border: 1px dashed #ddd;
  198. border-radius: 4px;
  199. margin-bottom: 8px;
  200. }
  201. .procuremen-details-wrap .detail-mini {
  202. font-size: 12px;
  203. }
  204. .procuremen-details-wrap .detail-mini th,
  205. .procuremen-details-wrap .detail-mini td {
  206. padding: 6px 8px;
  207. vertical-align: middle;
  208. }
  209. </style>
  210. <div class="panel panel-default panel-intro procuremen-details-wrap{if !empty($pdf_export)} procuremen-pdf-inner{/if}" style="border:0;box-shadow:none;">
  211. {notempty name="pdf_export"}
  212. <div class="page-head">
  213. {notempty name="ccydh"}
  214. <table class="proc-pdf-order-no" cellpadding="0" cellspacing="0" style="border-collapse:collapse;margin:0;padding:0;">
  215. <tr>
  216. <td style="font-size:15px;font-weight:700;color:#000;padding:0 8px 0 0;vertical-align:baseline;white-space:nowrap;">订单号</td>
  217. <td style="font-size:15px;font-weight:700;color:#000;vertical-align:baseline;word-break:break-all;">{$ccydh|htmlentities}</td>
  218. </tr>
  219. </table>
  220. {/notempty}
  221. </div>
  222. {/notempty}
  223. <div class="section-title"{if !empty($pdf_export)} style="margin:16px 0 10px;font-size:14px;font-weight:600;color:#333;padding-bottom:6px;border-bottom:1px solid #eee;"{/if}>状态进度</div>
  224. {notempty name="pdf_export"}
  225. <div class="proc-pdf-steps-outer" style="overflow:hidden;margin:0;padding:0;">
  226. <table class="proc-steps-table-pdf" width="100%" cellpadding="0" cellspacing="0" style="border-collapse:collapse;table-layout:fixed;width:100%;margin:0 0 18px;">
  227. <tr>
  228. {volist name="steps" id="st"}
  229. <td style="vertical-align:top;text-align:center;padding:4px 1px 0;border:0 !important;width:16.666%;">
  230. <table width="100%" cellpadding="0" cellspacing="0" style="border-collapse:collapse;height:152px;margin:0 auto;">
  231. <tr>
  232. <td style="vertical-align:top;padding:0;border:0 !important;">
  233. <table width="100%" cellpadding="0" cellspacing="0" style="border-collapse:collapse;margin:0 auto 4px;">
  234. <tr style="height:28px;">
  235. <td style="width:50%;padding:0;border:0 !important;vertical-align:middle;height:28px;">
  236. {if $st.pdf_left_bg}
  237. <table width="100%" cellpadding="0" cellspacing="0" style="border-collapse:collapse;"><tr><td style="padding:0;border:0 !important;height:0;line-height:0;font-size:0;border-top:2px solid {$st.pdf_left_bg};">&#160;</td></tr></table>
  238. {/if}
  239. </td>
  240. <td style="width:28px;padding:0;border:0 !important;vertical-align:middle;text-align:center;height:28px;">
  241. {if $st.done}
  242. <span style="display:inline-block;width:28px;height:28px;line-height:26px;text-align:center;border-radius:14px;border:2px solid #1890ff;background-color:#1890ff;color:#ffffff;font-size:11px;font-weight:bold;">&#10003;</span>
  243. {elseif $st.current /}
  244. <span style="display:inline-block;width:28px;height:28px;line-height:26px;text-align:center;border-radius:14px;border:2px solid #1890ff;background-color:#1890ff;color:#ffffff;font-size:11px;font-weight:bold;">{$i}</span>
  245. {else /}
  246. <span style="display:inline-block;width:28px;height:28px;line-height:26px;text-align:center;border-radius:14px;border:2px solid #dddddd;background-color:#f5f5f5;color:#999999;font-size:11px;font-weight:bold;">{$i}</span>
  247. {/if}
  248. </td>
  249. <td style="width:50%;padding:0;border:0 !important;vertical-align:middle;height:28px;">
  250. {if $st.pdf_right_bg}
  251. <table width="100%" cellpadding="0" cellspacing="0" style="border-collapse:collapse;"><tr><td style="padding:0;border:0 !important;height:0;line-height:0;font-size:0;border-top:2px solid {$st.pdf_right_bg};">&#160;</td></tr></table>
  252. {/if}
  253. </td>
  254. </tr>
  255. </table>
  256. </td>
  257. </tr>
  258. <tr>
  259. <td style="vertical-align:top;padding:2px 2px 0;border:0 !important;font-size:12px;color:#333;line-height:1.35;font-weight:600;text-align:center;">{$st.title|htmlentities}</td>
  260. </tr>
  261. <tr>
  262. <td style="vertical-align:top;padding:2px 2px 0;height:44px;border:0 !important;font-size:11px;color:#888;line-height:1.3;text-align:center;overflow:hidden;">{$st.subtitle|default=''|htmlentities}</td>
  263. </tr>
  264. <tr>
  265. <td style="vertical-align:bottom;padding:2px 2px 0;border:0 !important;font-size:11px;color:#aaa;text-align:center;white-space:nowrap;">{$st.time|default=''|htmlentities}</td>
  266. </tr>
  267. </table>
  268. </td>
  269. {/volist}
  270. </tr>
  271. </table>
  272. </div>
  273. {else /}
  274. <div class="proc-steps-wrap">
  275. {volist name="steps" id="st"}
  276. <div class="proc-step-item{if $st.done} is-done{/if}{if $st.current} is-current{/if}">
  277. <div class="proc-step-circle">
  278. {if $st.done}
  279. <i class="fa fa-check"></i>
  280. {else /}
  281. <span>{$i}</span>
  282. {/if}
  283. </div>
  284. <div class="proc-step-title">{$st.title|htmlentities}</div>
  285. <div class="proc-step-sub">{$st.subtitle|default=''|htmlentities}</div>
  286. <div class="proc-step-time">{$st.time|default=''|htmlentities}</div>
  287. </div>
  288. {/volist}
  289. </div>
  290. {/notempty}
  291. <div class="section-title">操作记录</div>
  292. {notempty name="operLogs"}
  293. <ul class="procuremen-oper-log">
  294. {volist name="operLogs" id="lg"}
  295. <li>
  296. <span class="op-user">{$lg.admin_name|default=''|htmlentities}</span>
  297. <span class="op-time">{$lg.createtime_text|default=''|htmlentities}</span>
  298. <span class="op-text">{$lg.content|default=''|htmlentities}</span>
  299. </li>
  300. {/volist}
  301. </ul>
  302. {else /}
  303. <p class="procuremen-oper-log-empty text-muted">暂无操作记录</p>
  304. {/notempty}
  305. <div class="procuremen-order-info-block">
  306. <div class="procuremen-order-info-head">本单工序({$processCount|default='1'} 项)</div>
  307. <div class="details-process-table-wrap">
  308. <table class="table table-bordered table-condensed details-process-table">
  309. <thead>
  310. <tr>
  311. <th class="text-center" style="width:100px;">订单号</th>
  312. <th style="min-width:160px;">印件名称</th>
  313. <th>工序名称</th>
  314. <th class="text-center" style="width:88px;">本次数量</th>
  315. <th class="text-center" style="width:72px;">最高限价</th>
  316. <th class="text-center" style="width:80px;">订法</th>
  317. <th style="min-width:120px;">备注</th>
  318. </tr>
  319. </thead>
  320. <tbody>
  321. {notempty name="processDisplayRows"}
  322. {volist name="processDisplayRows" id="pr"}
  323. <tr>
  324. {if $pr.show_order_cells}
  325. <td class="text-center"{if condition="$pr.order_rowspan gt 1"} rowspan="{$pr.order_rowspan}"{/if}>{$pr.CCYDH|default=''|htmlentities}</td>
  326. <td{if condition="$pr.order_rowspan gt 1"} rowspan="{$pr.order_rowspan}"{/if}>{$pr.CYJMC|default=''|htmlentities}</td>
  327. {/if}
  328. <td>{$pr.CGYMC|default=''|htmlentities}</td>
  329. <td class="text-center">{$pr.This_quantity|default=''|htmlentities}</td>
  330. <td class="text-center">{$pr.ceilingPrice|default=''|htmlentities}</td>
  331. <td class="text-center">{$pr.CDF|default=''|htmlentities}</td>
  332. <td>{$pr.MBZ|default=''|htmlentities}</td>
  333. </tr>
  334. {/volist}
  335. {else /}
  336. <tr>
  337. <td colspan="7" class="text-center text-muted" style="padding:14px;">暂无工序数据</td>
  338. </tr>
  339. {/notempty}
  340. </tbody>
  341. </table>
  342. </div>
  343. </div>
  344. <div class="section-title">供应商</div>
  345. <div class="table-responsive">
  346. <table class="table table-bordered table-condensed detail-mini">
  347. <thead>
  348. <tr>
  349. <th>公司名称</th>
  350. <th>工序名称</th>
  351. <th class="text-center">单价</th>
  352. <th class="text-center">交货日期</th>
  353. <th class="text-center">小计</th>
  354. <th class="text-center">采购确认</th>
  355. <th>操作时间</th>
  356. </tr>
  357. </thead>
  358. <tbody>
  359. {notempty name="supplierQuoteGroups"}
  360. {volist name="supplierQuoteGroups" id="sg"}
  361. {volist name="sg.lines" id="ln" key="lk"}
  362. <tr{if !empty($sg.is_void)} class="text-muted"{/if}>
  363. {if $lk == 1}
  364. <td rowspan="{$sg.line_count|default='1'}" style="vertical-align:middle;">
  365. {$sg.company_name|default=''|htmlentities}
  366. </td>
  367. {/if}
  368. <td>{$ln.cgymc|default=''|htmlentities}</td>
  369. <td class="text-center">{$ln.unit_price_text|default=''|htmlentities}</td>
  370. <td class="text-center">{$ln.delivery_ymd|default=''|htmlentities}</td>
  371. <td class="text-center">{$ln.subtotal_text|default=''|htmlentities}</td>
  372. <td class="text-center">
  373. {if !empty($ln.is_void)}
  374. <span class="label label-default">历史</span>
  375. {elseif $ln.status == 1 /}
  376. <span class="label label-success">已选</span>
  377. {else /}
  378. <span class="text-muted"> </span>
  379. {/if}
  380. </td>
  381. <td>{$ln.createtime_text|default=''|htmlentities}</td>
  382. </tr>
  383. {/volist}
  384. {if !empty($sg.has_total)}
  385. <tr class="active">
  386. <td colspan="4" class="text-right"><strong>总计</strong></td>
  387. <td class="text-center"><strong>{$sg.total_text|default=''|htmlentities}</strong></td>
  388. <td colspan="2"></td>
  389. </tr>
  390. {/if}
  391. {/volist}
  392. {else /}
  393. {notempty name="detailRows"}
  394. {volist name="detailRows" id="dr"}
  395. <tr>
  396. <td>{$dr.company_name|default=''|htmlentities}</td>
  397. <td></td>
  398. <td class="text-center">{$dr.amount|default=''|htmlentities}</td>
  399. <td class="text-center">{$dr.delivery_ymd|default=''|htmlentities}</td>
  400. <td class="text-center"></td>
  401. <td class="text-center">
  402. {if isset($dr.is_void) && $dr.is_void}
  403. <span class="label label-default">历史下发</span>
  404. {elseif $dr.status == 1 /}
  405. <span class="label label-success">已选</span>
  406. {else /}
  407. <span class="text-muted"> </span>
  408. {/if}
  409. </td>
  410. <td>{$dr.createtime_text|default=''|htmlentities}</td>
  411. </tr>
  412. {/volist}
  413. {else /}
  414. <tr>
  415. <td colspan="7" class="text-center text-muted">暂无下发明细</td>
  416. </tr>
  417. {/notempty}
  418. {/notempty}
  419. </tbody>
  420. </table>
  421. </div>
  422. </div>