outward_detail.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303
  1. <style>
  2. body.is-dialog .outward-detail-wrap {
  3. margin: 0;
  4. padding: 10px 12px 12px;
  5. }
  6. .outward-detail-head {
  7. margin-bottom: 10px;
  8. font-size: 13px;
  9. color: #666;
  10. line-height: 1.6;
  11. }
  12. .outward-detail-head strong {
  13. color: #333;
  14. }
  15. .outward-detail-table-wrap,
  16. .outward-confirm-process-wrap,
  17. .outward-confirm-company-wrap {
  18. overflow-x: auto;
  19. overflow-y: auto;
  20. max-height: min(280px, 42vh);
  21. -webkit-overflow-scrolling: touch;
  22. margin-bottom: 12px;
  23. border: 1px solid #e5e5e5;
  24. }
  25. .outward-detail-table-wrap {
  26. max-height: min(520px, 68vh);
  27. border: 0;
  28. }
  29. .outward-detail-table {
  30. table-layout: fixed;
  31. width: 100%;
  32. min-width: 1180px;
  33. margin-bottom: 0;
  34. }
  35. .outward-confirm-process-table,
  36. .outward-confirm-company-table {
  37. margin: 0;
  38. font-size: 12px;
  39. table-layout: fixed;
  40. width: 100%;
  41. min-width: 1180px;
  42. }
  43. .outward-detail-table > thead > tr > th,
  44. .outward-detail-table > tbody > tr > td,
  45. .outward-confirm-process-table th,
  46. .outward-confirm-process-table td,
  47. .outward-confirm-company-table th,
  48. .outward-confirm-company-table td {
  49. vertical-align: middle;
  50. word-wrap: break-word;
  51. word-break: break-word;
  52. white-space: normal;
  53. line-height: 1.45;
  54. padding: 8px 10px;
  55. }
  56. .outward-confirm-process-table th,
  57. .outward-confirm-company-table th {
  58. background: #f5f5f5;
  59. font-weight: 600;
  60. white-space: nowrap;
  61. }
  62. .outward-detail-table > thead > tr > th {
  63. font-weight: 600;
  64. white-space: nowrap;
  65. }
  66. .outward-detail-table .col-title {
  67. white-space: normal;
  68. }
  69. .outward-detail-table .col-amount,
  70. .outward-detail-table .col-delivery {
  71. text-align: center;
  72. white-space: nowrap;
  73. }
  74. .outward-detail-table .col-sn,
  75. .outward-detail-table .col-time {
  76. white-space: nowrap;
  77. }
  78. .outward-confirm-block-title {
  79. margin: 0 0 6px;
  80. font-weight: 600;
  81. font-size: 13px;
  82. color: #333;
  83. }
  84. .outward-confirm-company-table td label {
  85. margin: 0;
  86. font-weight: normal;
  87. cursor: pointer;
  88. }
  89. .outward-confirm-company-table tbody tr {
  90. cursor: pointer;
  91. }
  92. .outward-confirm-company-table td.outward-quote-empty {
  93. color: #e67e22;
  94. }
  95. .outward-confirm-quote-cell {
  96. font-size: 12px;
  97. line-height: 1.55;
  98. }
  99. .outward-confirm-quote-item {
  100. padding: 4px 0;
  101. }
  102. .outward-confirm-quote-item + .outward-confirm-quote-item {
  103. margin-top: 6px;
  104. padding-top: 6px;
  105. border-top: 1px dashed #e8e8e8;
  106. }
  107. .outward-confirm-quote-item div {
  108. margin: 0;
  109. }
  110. .outward-detail-wrap .audit-notify-tip {
  111. margin: 0 0 10px;
  112. padding: 8px 12px;
  113. font-size: 12px;
  114. line-height: 1.65;
  115. color: #8a6d3b;
  116. background: #fcf8e3;
  117. border: 1px solid #faebcc;
  118. border-radius: 3px;
  119. }
  120. .btn.procuremen-btn-slate {
  121. color: #fff !important;
  122. background-color: #4b5573 !important;
  123. border-color: #3e4659 !important;
  124. }
  125. .btn.procuremen-btn-slate:hover,
  126. .btn.procuremen-btn-slate:focus,
  127. .btn.procuremen-btn-slate:active {
  128. color: #fff !important;
  129. background-color: #3f485f !important;
  130. border-color: #353c4c !important;
  131. }
  132. </style>
  133. <div class="panel panel-default panel-intro outward-detail-wrap" style="border:0;box-shadow:none;"
  134. data-scydgy-id="{$scydgyId|htmlentities}"
  135. data-purchase-order-id="{$purchaseOrderId|default=0}"
  136. data-confirm-process-count="{$confirmProcessCount|default=1}"
  137. data-required-sids="{$requiredSidListJson|htmlentities}"
  138. data-all-details-by-sid="{$allDetailsBySidJson|htmlentities}">
  139. <div style="display:none;">{:token()}</div>
  140. {if $showPurchaseConfirm}
  141. {if $processDisplayRows}
  142. <div class="outward-confirm-process-wrap">
  143. <table class="table table-bordered table-condensed outward-confirm-process-table">
  144. <thead>
  145. <tr>
  146. <th class="text-center" style="width:100px;">订单号</th>
  147. <th style="min-width:160px;">印件名称</th>
  148. <th>工序名称</th>
  149. <th class="text-center" style="width:56px;">单位</th>
  150. <th class="text-center" style="width:72px;">工作量</th>
  151. <th class="text-center" style="width:72px;">本次数量</th>
  152. <th class="text-center" style="width:72px;">最高限价</th>
  153. <th class="text-center" style="width:80px;">订法</th>
  154. <th style="min-width:120px;">备注</th>
  155. </tr>
  156. </thead>
  157. <tbody>
  158. {volist name="processDisplayRows" id="pr"}
  159. <tr>
  160. {if $pr.show_order_cells}
  161. <td class="text-center"{if condition="$pr.order_rowspan gt 1"} rowspan="{$pr.order_rowspan}"{/if}>{$pr.CCYDH|default=''}</td>
  162. <td{if condition="$pr.order_rowspan gt 1"} rowspan="{$pr.order_rowspan}"{/if}>{$pr.CYJMC|default=''}</td>
  163. {/if}
  164. <td>{$pr.CGYMC|default=''}</td>
  165. <td class="text-center">{$pr.CDW|default=''}</td>
  166. <td class="text-center">{$pr.NGZL|default=''}</td>
  167. <td class="text-center">{$pr.This_quantity|default=''}</td>
  168. <td class="text-center">{$pr.ceilingPrice|default=''}</td>
  169. <td class="text-center">{$pr.CDF|default=''}</td>
  170. <td>{$pr.MBZ|default=''}</td>
  171. </tr>
  172. {/volist}
  173. </tbody>
  174. </table>
  175. </div>
  176. {/if}
  177. <p class="audit-notify-tip">
  178. 审批通过:将向中标供应商发送「已通过」短信、向未中标供应商发送「未通过」短信。
  179. </p>
  180. <p class="outward-confirm-block-title">供应商({$confirmPickCount|default=0} 家)</p>
  181. <div class="outward-confirm-company-wrap">
  182. <table class="table table-bordered table-condensed outward-confirm-company-table">
  183. <thead>
  184. <tr>
  185. <th class="text-center" style="width:42px;">选择</th>
  186. <th style="min-width:140px;">供应商名称</th>
  187. <th style="width:88px;">姓名</th>
  188. <th style="min-width:160px;">邮箱</th>
  189. <th style="width:120px;">手机号</th>
  190. <th style="min-width:120px;">工序名称</th>
  191. <th class="text-center" style="width:88px;">单价</th>
  192. <th class="text-center" style="width:100px;">交货日期</th>
  193. <th class="text-center" style="width:88px;">小计</th>
  194. </tr>
  195. </thead>
  196. <tbody>
  197. {volist name="confirmPickGroups" id="co" key="k"}
  198. {volist name="co.pick_lines" id="ql" key="lk"}
  199. <tr class="outward-confirm-supplier-row" data-supplier-idx="{$k-1}">
  200. {if $lk == 1}
  201. <td class="text-center"{if condition="$co.display_rowspan gt 1"} rowspan="{$co.display_rowspan}"{/if} style="vertical-align:middle;">
  202. <label>
  203. <input type="checkbox" class="pod-company-pick-cb" name="pod_company_pick[]" value="{$k-1}"
  204. data-detail-picks="{$co.detail_picks_json|htmlentities}"
  205. {if condition="$pickedCompanyName neq '' && $pickedCompanyName eq $co.name"} checked="checked"{/if}/>
  206. </label>
  207. </td>
  208. <td{if condition="$co.display_rowspan gt 1"} rowspan="{$co.display_rowspan}"{/if} style="vertical-align:middle;">{$co.name|default=''|htmlentities}</td>
  209. <td{if condition="$co.display_rowspan gt 1"} rowspan="{$co.display_rowspan}"{/if} style="vertical-align:middle;">{$co.username|default=''|htmlentities}</td>
  210. <td{if condition="$co.display_rowspan gt 1"} rowspan="{$co.display_rowspan}"{/if} style="vertical-align:middle;">{$co.email|default=''|htmlentities}</td>
  211. <td{if condition="$co.display_rowspan gt 1"} rowspan="{$co.display_rowspan}"{/if} style="vertical-align:middle;">{$co.phone|default=''|htmlentities}</td>
  212. {/if}
  213. <td>{$ql.cgymc|default=''|htmlentities}</td>
  214. <td class="text-center{if condition="$ql.amount_filled neq 1"} outward-quote-empty{/if}">{$ql.unit_price_text|default='未填写'|htmlentities}</td>
  215. <td class="text-center{if condition="$ql.delivery_filled neq 1"} outward-quote-empty{/if}">{$ql.delivery_text|default='未填写'|htmlentities}</td>
  216. <td class="text-center">{$ql.subtotal_text|default=''|htmlentities}</td>
  217. </tr>
  218. {/volist}
  219. {if !empty($co.has_total)}
  220. <tr class="active outward-confirm-supplier-row" data-supplier-idx="{$k-1}">
  221. <td colspan="3" class="text-right"><strong>总计</strong></td>
  222. <td class="text-center"><strong>{$co.total_text|default=''|htmlentities}</strong></td>
  223. </tr>
  224. {/if}
  225. {/volist}
  226. {empty name="confirmPickGroups"}
  227. <tr>
  228. <td colspan="9" class="text-center text-muted">暂无供应商报价</td>
  229. </tr>
  230. {/empty}
  231. </tbody>
  232. </table>
  233. </div>
  234. <div class="form-group layer-footer">
  235. <div class="row procuremen-outward-confirm-footer-row">
  236. <div class="col-xs-12 procuremen-outward-confirm-footer-btns">
  237. {if $auth->check('procuremen/purchaseconfirmpick')}
  238. <button type="button" style="margin-right: 20px" class="btn procuremen-btn-slate btn-embossed" id="btn-pod-purchase-confirm"><i class="fa fa-check"></i> 审批通过</button>
  239. {/if}
  240. {if $auth->check('procuremen/purchaseapprovalreject')}
  241. <button type="button" style="margin-right: 20px" class="btn btn-warning btn-embossed" id="btn-pod-purchase-reject"><i class="fa fa-undo"></i> 审批驳回</button>
  242. {/if}
  243. <button type="button" style="margin-right: 20px" class="btn btn-default btn-embossed" id="btn-pod-purchase-close"><i class="fa fa-times"></i> 关闭</button>
  244. </div>
  245. </div>
  246. </div>
  247. {else /}
  248. <div class="table-responsive outward-detail-table-wrap">
  249. <table class="table table-striped table-bordered table-hover outward-detail-table">
  250. <colgroup>
  251. <col style="width:48px" />
  252. <col style="width:118px" />
  253. <col style="width:200px" />
  254. <col style="width:92px" />
  255. <col style="width:128px" />
  256. <col style="width:200px" />
  257. <col style="width:240px" />
  258. <col style="width:108px" />
  259. <col style="width:148px" />
  260. </colgroup>
  261. <thead>
  262. <tr>
  263. <th class="col-sn">序号</th>
  264. <th>订单号</th>
  265. <th class="col-title">印件名称</th>
  266. <th class="col-amount">加工金额</th>
  267. <th class="col-delivery">交货日期</th>
  268. <th>供应商名称</th>
  269. <th>邮箱</th>
  270. <th>手机号</th>
  271. <th class="col-time">审核时间</th>
  272. </tr>
  273. </thead>
  274. <tbody>
  275. {volist name="rows" id="r"}
  276. <tr>
  277. <td class="text-center col-sn">{$i}</td>
  278. <td>{$r.CCYDH|default=''}</td>
  279. <td class="col-title">{$r.CYJMC|default=''}</td>
  280. <td class="col-amount">{$r.amount|default=''}</td>
  281. <td class="col-delivery">{$r.delivery|default=''}</td>
  282. <td>{$r.company_name|default=''}</td>
  283. <td>{$r.email|default=''}</td>
  284. <td>{$r.phone|default=''}</td>
  285. <td class="col-time">{$r.createtime_text|default=''}</td>
  286. </tr>
  287. {/volist}
  288. {empty name="rows"}
  289. <tr>
  290. <td colspan="{$detailColspan|default=9}" class="text-center text-muted">暂无记录</td>
  291. </tr>
  292. {/empty}
  293. </tbody>
  294. </table>
  295. </div>
  296. {/if}
  297. </div>