details_fragment.html 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338
  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 .procuremen-oper-log {
  133. list-style: none;
  134. margin: 0 0 8px;
  135. padding: 0;
  136. font-size: 13px;
  137. line-height: 1.65;
  138. border: 1px solid #e8e8e8;
  139. border-radius: 4px;
  140. background: #fafafa;
  141. max-height: 280px;
  142. overflow-y: auto;
  143. }
  144. .procuremen-details-wrap .procuremen-oper-log li {
  145. padding: 8px 12px;
  146. border-bottom: 1px solid #eee;
  147. word-break: break-word;
  148. }
  149. .procuremen-details-wrap .procuremen-oper-log li:last-child {
  150. border-bottom: none;
  151. }
  152. .procuremen-details-wrap .procuremen-oper-log .op-user {
  153. font-weight: 700;
  154. color: #000;
  155. }
  156. .procuremen-details-wrap .procuremen-oper-log .op-time {
  157. color: #666;
  158. margin: 0 6px;
  159. }
  160. .procuremen-details-wrap .procuremen-oper-log .op-text {
  161. color: #333;
  162. }
  163. .procuremen-details-wrap .procuremen-oper-log-empty {
  164. font-size: 13px;
  165. color: #999;
  166. padding: 10px 12px;
  167. border: 1px dashed #ddd;
  168. border-radius: 4px;
  169. margin-bottom: 8px;
  170. }
  171. .procuremen-details-wrap .detail-mini {
  172. font-size: 12px;
  173. }
  174. .procuremen-details-wrap .detail-mini th,
  175. .procuremen-details-wrap .detail-mini td {
  176. padding: 6px 8px;
  177. vertical-align: middle;
  178. }
  179. </style>
  180. <div class="panel panel-default panel-intro procuremen-details-wrap{if !empty($pdf_export)} procuremen-pdf-inner{/if}" style="border:0;box-shadow:none;">
  181. {notempty name="pdf_export"}
  182. <div class="page-head">
  183. {notempty name="ccydh"}
  184. <table class="proc-pdf-order-no" cellpadding="0" cellspacing="0" style="border-collapse:collapse;margin:0;padding:0;">
  185. <tr>
  186. <td style="font-size:15px;font-weight:700;color:#000;padding:0 8px 0 0;vertical-align:baseline;white-space:nowrap;">订单号</td>
  187. <td style="font-size:15px;font-weight:700;color:#000;vertical-align:baseline;word-break:break-all;">{$ccydh|htmlentities}</td>
  188. </tr>
  189. </table>
  190. {/notempty}
  191. </div>
  192. {/notempty}
  193. <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>
  194. {notempty name="pdf_export"}
  195. <div class="proc-pdf-steps-outer" style="overflow:hidden;margin:0;padding:0;">
  196. <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;">
  197. <tr>
  198. {volist name="steps" id="st"}
  199. <td style="vertical-align:top;text-align:center;padding:4px 1px 0;border:0 !important;width:20%;">
  200. <table width="100%" cellpadding="0" cellspacing="0" style="border-collapse:collapse;height:152px;margin:0 auto;">
  201. <tr>
  202. <td style="vertical-align:top;padding:0;border:0 !important;">
  203. <table width="100%" cellpadding="0" cellspacing="0" style="border-collapse:collapse;margin:0 auto 4px;">
  204. <tr style="height:28px;">
  205. <td style="width:50%;padding:0;border:0 !important;vertical-align:middle;height:28px;">
  206. {if $st.pdf_left_bg}
  207. <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>
  208. {/if}
  209. </td>
  210. <td style="width:28px;padding:0;border:0 !important;vertical-align:middle;text-align:center;height:28px;">
  211. {if $st.done}
  212. <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>
  213. {elseif $st.current /}
  214. <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>
  215. {else /}
  216. <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>
  217. {/if}
  218. </td>
  219. <td style="width:50%;padding:0;border:0 !important;vertical-align:middle;height:28px;">
  220. {if $st.pdf_right_bg}
  221. <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>
  222. {/if}
  223. </td>
  224. </tr>
  225. </table>
  226. </td>
  227. </tr>
  228. <tr>
  229. <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>
  230. </tr>
  231. <tr>
  232. <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>
  233. </tr>
  234. <tr>
  235. <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>
  236. </tr>
  237. </table>
  238. </td>
  239. {/volist}
  240. </tr>
  241. </table>
  242. </div>
  243. {else /}
  244. <div class="proc-steps-wrap">
  245. {volist name="steps" id="st"}
  246. <div class="proc-step-item{if $st.done} is-done{/if}{if $st.current} is-current{/if}">
  247. <div class="proc-step-circle">
  248. {if $st.done}
  249. <i class="fa fa-check"></i>
  250. {else /}
  251. <span>{$i}</span>
  252. {/if}
  253. </div>
  254. <div class="proc-step-title">{$st.title|htmlentities}</div>
  255. <div class="proc-step-sub">{$st.subtitle|default=''|htmlentities}</div>
  256. <div class="proc-step-time">{$st.time|default=''|htmlentities}</div>
  257. </div>
  258. {/volist}
  259. </div>
  260. {/notempty}
  261. <div class="section-title">操作记录</div>
  262. {notempty name="operLogs"}
  263. <ul class="procuremen-oper-log">
  264. {volist name="operLogs" id="lg"}
  265. <li>
  266. <span class="op-user">{$lg.admin_name|default=''|htmlentities}</span>
  267. <span class="op-time">{$lg.createtime_text|default=''|htmlentities}</span>
  268. <span class="op-text">{$lg.content|default=''|htmlentities}</span>
  269. </li>
  270. {/volist}
  271. </ul>
  272. {else /}
  273. <p class="procuremen-oper-log-empty text-muted">暂无操作记录</p>
  274. {/notempty}
  275. <div class="procuremen-order-info-block">
  276. <div class="procuremen-order-info-head">订单信息</div>
  277. <table class="procuremen-order-grid table">
  278. <tbody>
  279. {notempty name="orderSummaryGrid"}
  280. {volist name="orderSummaryGrid" id="gr"}
  281. <tr>
  282. <td class="og-label">{$gr.l1|htmlentities}</td>
  283. <td class="og-value">{$gr.v1|htmlentities}</td>
  284. <td class="og-label">{if $gr.l2 != ''}{$gr.l2|htmlentities}{/if}</td>
  285. <td class="og-value">{if $gr.l2 != ''}{$gr.v2|htmlentities}{/if}</td>
  286. </tr>
  287. {/volist}
  288. {else /}
  289. <tr>
  290. <td colspan="4" class="text-muted" style="text-align:center;padding:14px;">暂无数据</td>
  291. </tr>
  292. {/notempty}
  293. </tbody>
  294. </table>
  295. </div>
  296. <div class="section-title">供应商</div>
  297. <div class="table-responsive">
  298. <table class="table table-bordered table-condensed detail-mini">
  299. <thead>
  300. <tr>
  301. <th>公司名称</th>
  302. <th>加工金额</th>
  303. <th>交货日期</th>
  304. <th>采购确认</th>
  305. <th>操作时间</th>
  306. </tr>
  307. </thead>
  308. <tbody>
  309. {notempty name="detailRows"}
  310. {volist name="detailRows" id="dr"}
  311. <tr>
  312. <td>{$dr.company_name|default=''|htmlentities}</td>
  313. <td>{$dr.amount|default=''|htmlentities}</td>
  314. <td>{$dr.delivery_ymd|default=''|htmlentities}</td>
  315. <td class="text-center">
  316. {if $dr.status == 1}
  317. <span class="label label-success">已选</span>
  318. {else /}
  319. <span class="text-muted"> </span>
  320. {/if}
  321. </td>
  322. <td>{$dr.createtime_text|default=''|htmlentities}</td>
  323. </tr>
  324. {/volist}
  325. {else /}
  326. <tr>
  327. <td colspan="6" class="text-center text-muted">暂无下发明细</td>
  328. </tr>
  329. {/notempty}
  330. </tbody>
  331. </table>
  332. </div>
  333. </div>