outward_detail.html 14 KB

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