monthorders.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  1. <style>
  2. /* 弹层全屏:打通 FastAdmin #main/#content 高度链,表格区占满剩余高度 */
  3. html, body.is-dialog {
  4. height: 100% !important;
  5. overflow: hidden !important;
  6. margin: 0 !important;
  7. background: #fff;
  8. }
  9. body.is-dialog {
  10. display: flex !important;
  11. flex-direction: column !important;
  12. }
  13. body.is-dialog #main,
  14. body.is-dialog #main > .tab-content,
  15. body.is-dialog #main #content {
  16. height: 100% !important;
  17. min-height: 0;
  18. overflow: hidden;
  19. display: flex;
  20. flex-direction: column;
  21. }
  22. body.is-dialog #content > .row,
  23. body.is-dialog #content > .row > [class*="col-"],
  24. body.is-dialog .content {
  25. height: 100% !important;
  26. min-height: 0;
  27. display: flex;
  28. flex-direction: column;
  29. box-sizing: border-box;
  30. padding: 0 !important;
  31. overflow: hidden;
  32. margin: 0;
  33. }
  34. .ssc-month-orders-page {
  35. flex: 1 1 auto;
  36. min-height: 0;
  37. height: 100%;
  38. display: flex;
  39. flex-direction: column;
  40. overflow: hidden;
  41. background: #fff;
  42. }
  43. .ssc-month-orders-wrap {
  44. flex: 1 1 auto;
  45. min-height: 0;
  46. padding: 12px 16px 8px;
  47. display: flex;
  48. flex-direction: column;
  49. box-sizing: border-box;
  50. overflow: hidden;
  51. }
  52. .ssc-month-orders-head {
  53. flex: 0 0 auto;
  54. margin-bottom: 12px;
  55. line-height: 1.6;
  56. }
  57. .ssc-month-orders-head .ssc-meta {
  58. color: #666;
  59. margin-right: 16px;
  60. }
  61. .ssc-month-orders-head .ssc-company {
  62. font-weight: 600;
  63. color: #333;
  64. }
  65. .ssc-month-orders-wrap .table-responsive {
  66. flex: 1 1 0%;
  67. min-height: 0;
  68. width: 100%;
  69. overflow: auto;
  70. -webkit-overflow-scrolling: touch;
  71. border: 1px solid #eee;
  72. background: #fff;
  73. }
  74. .ssc-month-orders-table {
  75. margin-bottom: 0;
  76. min-width: 1920px;
  77. }
  78. .ssc-month-orders-table > thead > tr > th,
  79. .ssc-month-orders-table > tbody > tr > td {
  80. text-align: center;
  81. vertical-align: middle;
  82. white-space: nowrap;
  83. }
  84. .ssc-month-orders-table .ssc-name-cell {
  85. text-align: left;
  86. white-space: nowrap;
  87. word-break: break-all;
  88. max-width: 220px;
  89. }
  90. .ssc-month-orders-table .ssc-cyjmc-cell {
  91. text-align: left;
  92. white-space: normal;
  93. min-width: 320px;
  94. width: 360px;
  95. max-width: 360px;
  96. vertical-align: middle;
  97. }
  98. .ssc-month-orders-table .ssc-cyjmc-wrap {
  99. display: flex;
  100. align-items: flex-start;
  101. gap: 6px;
  102. max-width: 360px;
  103. text-align: left;
  104. }
  105. .ssc-month-orders-table .ssc-cyjmc-text {
  106. flex: 1 1 auto;
  107. min-width: 0;
  108. white-space: nowrap;
  109. overflow: hidden;
  110. text-overflow: ellipsis;
  111. word-break: break-all;
  112. line-height: 1.4;
  113. }
  114. .ssc-month-orders-table .ssc-cyjmc-wrap.is-expanded .ssc-cyjmc-text {
  115. white-space: normal;
  116. overflow: visible;
  117. text-overflow: clip;
  118. }
  119. .ssc-month-orders-table .ssc-cyjmc-toggle {
  120. flex: 0 0 auto;
  121. display: none;
  122. padding: 0 2px;
  123. color: #18bc9c;
  124. cursor: pointer;
  125. line-height: 1.4;
  126. text-decoration: none;
  127. }
  128. .ssc-month-orders-table .ssc-cyjmc-wrap.is-overflow .ssc-cyjmc-toggle {
  129. display: inline-block;
  130. }
  131. .ssc-month-orders-table .ssc-cyjmc-toggle:hover {
  132. color: #128f76;
  133. }
  134. .ssc-month-orders-table .ssc-text-cell {
  135. text-align: left;
  136. white-space: normal;
  137. word-break: break-word;
  138. max-width: 200px;
  139. min-width: 120px;
  140. }
  141. .ssc-month-orders-table > thead > tr > th {
  142. position: sticky;
  143. top: 0;
  144. z-index: 2;
  145. background: #f5f5f5;
  146. }
  147. /* 操作列固定右侧,左右滚动时始终可见 */
  148. .ssc-month-orders-table > thead > tr > th.ssc-operate-col,
  149. .ssc-month-orders-table > tbody > tr > td.ssc-operate-col {
  150. position: sticky;
  151. right: 0;
  152. z-index: 3;
  153. min-width: 88px;
  154. width: 88px;
  155. background: #fff;
  156. box-shadow: -4px 0 8px rgba(0, 0, 0, 0.06);
  157. border-left: 1px solid #e8e8e8 !important;
  158. }
  159. .ssc-month-orders-table > thead > tr > th.ssc-operate-col {
  160. top: 0;
  161. z-index: 5;
  162. background: #f5f5f5;
  163. }
  164. .ssc-month-orders-table.table-striped > tbody > tr:nth-of-type(odd) > td.ssc-operate-col {
  165. background: #f9f9f9;
  166. }
  167. .ssc-month-orders-table.table-hover > tbody > tr:hover > td.ssc-operate-col {
  168. background: #f5f5f5;
  169. }
  170. .ssc-month-orders-empty {
  171. flex: 1 1 auto;
  172. display: flex;
  173. align-items: center;
  174. justify-content: center;
  175. padding: 24px 16px;
  176. text-align: center;
  177. color: #999;
  178. }
  179. .ssc-progress-done {
  180. color: #3c763d;
  181. font-weight: 600;
  182. }
  183. .ssc-month-orders-page > .layer-footer {
  184. flex: 0 0 auto;
  185. padding: 10px 16px;
  186. border-top: 1px solid #eee;
  187. background: #fff;
  188. }
  189. </style>
  190. <div class="ssc-month-orders-page">
  191. <div class="ssc-month-orders-wrap">
  192. <div class="ssc-month-orders-head">
  193. <span class="ssc-meta">日期:{$ym|htmlentities}</span>
  194. <span class="ssc-meta">供应商:<span class="ssc-company">{$company_name|htmlentities}</span></span>
  195. <span class="ssc-meta">共 {$orderCount} 单</span>
  196. <span class="ssc-meta" style="color:#999;">含已审核中标;分项/入库结果空表示尚未到该阶段</span>
  197. </div>
  198. {if $orderRows}
  199. <div class="table-responsive">
  200. <table class="table table-bordered table-striped table-condensed ssc-month-orders-table">
  201. <thead>
  202. <tr>
  203. <th style="width:50px;">序号</th>
  204. <th>批次号</th>
  205. <th>订单号</th>
  206. <th>印件名称</th>
  207. <th>承揽部门</th>
  208. <th>工序名称</th>
  209. <th>本单排名</th>
  210. <th>质量得分</th>
  211. <th>价格得分</th>
  212. <th>交货得分</th>
  213. <th>状态</th>
  214. <th>是否合格</th>
  215. <th>不合格说明</th>
  216. <th>交货情况</th>
  217. <th>交货日期</th>
  218. <th>客户是否投诉</th>
  219. <th>投诉说明</th>
  220. <th>订单是否中断</th>
  221. <th>当前进度</th>
  222. <th>下发时间</th>
  223. <th class="ssc-operate-col">操作</th>
  224. </tr>
  225. </thead>
  226. <tbody>
  227. {volist name="orderRows" id="row"}
  228. <tr>
  229. <td>{$row.seq_no}</td>
  230. <td>{$row.order_batch_no|default=''|htmlentities}</td>
  231. <td>{$row.CCYDH|default=''|htmlentities}</td>
  232. <td class="ssc-cyjmc-cell">
  233. {if $row.CYJMC}
  234. <div class="ssc-cyjmc-wrap" title="{$row.CYJMC|htmlentities}">
  235. <span class="ssc-cyjmc-text">{$row.CYJMC|htmlentities}</span>
  236. <a href="javascript:;" class="ssc-cyjmc-toggle" title="展开/收起"><i class="fa fa-angle-down"></i></a>
  237. </div>
  238. {/if}
  239. </td>
  240. <td>{$row.CCLBMMC|default=''|htmlentities}</td>
  241. <td class="ssc-name-cell">{$row.CGYMC|default=''|htmlentities}</td>
  242. <td>{notempty name="row.rank_no"}{$row.rank_no}{/notempty}</td>
  243. <td>{notempty name="row.quality_score"}{$row.quality_score}{/notempty}</td>
  244. <td>{notempty name="row.price_score"}{$row.price_score}{/notempty}</td>
  245. <td>{notempty name="row.lead_score"}{$row.lead_score}{/notempty}</td>
  246. <td>
  247. {if $row.show_bid_result}
  248. {if $row.is_picked}
  249. <span class="label label-success">中标</span>
  250. {else/}
  251. <span class="label label-danger">未中标</span>
  252. {/if}
  253. {/if}
  254. </td>
  255. <td>
  256. {if condition="$row.has_inbound_score eq 1"}
  257. {$row.inbound_result|default=''}
  258. {/if}
  259. </td>
  260. <td class="ssc-text-cell">
  261. {if condition="$row.has_inbound_score eq 1"}
  262. {if $row.inbound_remark}{$row.inbound_remark|htmlentities}{/if}
  263. {/if}
  264. </td>
  265. <td>
  266. {if condition="$row.has_inbound_score eq 1"}
  267. {$row.delivery_status|default=''}
  268. {/if}
  269. </td>
  270. <td>
  271. {if condition="$row.has_inbound_score eq 1"}
  272. {$row.delivery_date|default=''}
  273. {/if}
  274. </td>
  275. <td>
  276. {if condition="$row.has_inbound_score eq 1"}
  277. {if condition="$row.customer_complaint eq 1"}是{else/}否{/if}
  278. {/if}
  279. </td>
  280. <td class="ssc-text-cell">
  281. {if condition="$row.has_inbound_score eq 1"}
  282. {if $row.complaint_remark}{$row.complaint_remark|htmlentities}{/if}
  283. {/if}
  284. </td>
  285. <td>
  286. {if condition="$row.has_inbound_score eq 1"}
  287. {if condition="$row.order_interrupt eq 1"}是{else/}否{/if}
  288. {/if}
  289. </td>
  290. <td>
  291. {if condition="$row.progress_text eq '已完结'"}
  292. <span class="ssc-progress-done">已完结</span>
  293. {else/}
  294. {$row.progress_text|default=''|htmlentities}
  295. {/if}
  296. </td>
  297. <td>{if $row.issue_time}{$row.issue_time|htmlentities}{/if}</td>
  298. <td class="ssc-operate-col">
  299. {if condition="$row.scydgy_id gt 0"}
  300. <a href="javascript:;" class="btn btn-xs btn-info btn-ssc-order-details"
  301. data-scydgy-id="{$row.scydgy_id}"
  302. title="详情">
  303. <i class="fa fa-file-text-o"></i> 详情
  304. </a>
  305. {/if}
  306. </td>
  307. </tr>
  308. {/volist}
  309. </tbody>
  310. </table>
  311. </div>
  312. {else/}
  313. <div class="ssc-month-orders-empty">该供应商本月暂无已审核中标订单</div>
  314. {/if}
  315. </div>
  316. <div class="layer-footer clearfix">
  317. <div class="pull-right">
  318. <button type="button" style="margin-right:20px" class="btn btn-default btn-embossed btn-ssc-month-orders-close">关闭</button>
  319. </div>
  320. </div>
  321. </div>