audit_modal.ejs 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425
  1. <% if (tender.ledger_status === auditConst.status.checking && curAuditor.audit_id === ctx.session.sessionUser.accountId) { %>
  2. <!--审批通过-->
  3. <div class="modal fade" id="sp-done" data-backdrop="static">
  4. <div class="modal-dialog modal-lg" role="document">
  5. <form class="modal-content" action="/tender/<%- tender.id %>/ledger/audit/check" method="post" onsubmit="return auditCheck(0);">
  6. <div class="modal-header">
  7. <h5 class="modal-title">审批通过</h5>
  8. </div>
  9. <div class="modal-body">
  10. <div class="row">
  11. <div class="col-4">
  12. <div class="card mt-3">
  13. <ul class="list-group list-group-flush">
  14. <li class="list-group-item">
  15. <i class="fa fa fa-play-circle fa-rotate-90"></i> <%- user.name %> <small class="text-muted"><%- user.role %></small><span class="pull-right">原报</span>
  16. </li>
  17. <% for (let i = 0; i < auditors.length; i++) { %>
  18. <li class="list-group-item">
  19. <% if (i < auditors.length - 1) { %>
  20. <i class="fa fa-chevron-circle-down"></i> <%- auditors[i].name %> <small class="text-muted"><%- auditors[i].role %></small><span class="pull-right"><%= ctx.helper.transFormToChinese(i+1)%>审</span>
  21. <% } else {%>
  22. <i class="fa fa fa-stop-circle"></i> <%- auditors[i].name %> <small class="text-muted"><%- auditors[i].role %></small><span class="pull-right">终审</span>
  23. <% } %>
  24. </li>
  25. <% } %>
  26. </ul>
  27. </div>
  28. </div>
  29. <div class="col-8 modal-height-500" style="overflow: auto">
  30. <% for (const ah of auditHistory) { %>
  31. <div class="card mt-3">
  32. <ul class="list-group list-group-flush">
  33. <% for (let iA = 0; iA < ah.length; iA++) { %>
  34. <% if (iA === 0) { %>
  35. <li class="list-group-item">
  36. <h5 class="card-title">
  37. <i class="fa fa-play-circle fa-rotate-90 text-success"></i> <%- user.name %> <small class="text-muted"><%- user.role %></small><span class="pull-right">原报</span>
  38. </h5>
  39. <div class="ml-3">
  40. <span class="text-success"><small><%- ah[iA].begin_time.toLocaleDateString() %></small> <% if (auditHistory.indexOf(ah) > 0) { %>重新<% } %>上报</span>
  41. </div>
  42. </li>
  43. <li class="list-group-item">
  44. <h5 class="card-title">
  45. <i class="fa <%if (iA === ah.length - 1) { %>fa-stop-circle<% } else { %>fa-chevron-circle-down<% } %> <%- auditConst.statusClass[ah[iA].status] %>"></i> <%- ah[iA].name %> <small class="text-muted"><%- ah[iA].role %></small><span class="pull-right"><%= ah[iA].sort === ah[iA].max_sort ? '终' : ctx.helper.transFormToChinese(ah[iA].sort) %>审</span>
  46. </h5>
  47. <div class="ml-3">
  48. <% if (ah[iA].status !== auditConst.status.uncheck) { %>
  49. <span class="<%- auditConst.statusClass[ah[iA].status] %>"><% if (ah[iA].status === auditConst.status.checked || ah[iA].status === auditConst.status.checkNo) { %><small><%- ah[iA].end_time.toLocaleDateString() %></small> <% } %><%- auditConst.statusString[ah[iA].status]%><% if (ah[iA].status === auditConst.status.checkNo) { %> <%- user.name %><% } %></span>
  50. <% } %>
  51. <p class="card-text"><%- ah[iA].opinion %></p>
  52. </div>
  53. </li>
  54. <% } else if (iA === ah.length - 1) { %>
  55. <li class="list-group-item">
  56. <h5 class="card-title">
  57. <i class="fa fa-stop-circle <%- auditConst.statusClass[ah[iA].status] %>"></i> <%- ah[iA].name %> <small class="text-muted"><%- ah[iA].role %></small><span class="pull-right">终审</span>
  58. </h5>
  59. <div class="ml-3">
  60. <% if (ah[iA].status !== auditConst.status.uncheck) { %>
  61. <span class="<%- auditConst.statusClass[ah[iA].status] %>"><% if (ah[iA].status === auditConst.status.checked || ah[iA].status === auditConst.status.checkNo) { %><small><%- ah[iA].end_time.toLocaleDateString() %></small> <% } %><%- auditConst.statusString[ah[iA].status]%><% if (ah[iA].status === auditConst.status.checkNo) { %> <%- user.name %><% } %></span>
  62. <% } %>
  63. <p class="card-text"><%- ah[iA].opinion %></p>
  64. </div>
  65. </li>
  66. <% } else { %>
  67. <li class="list-group-item">
  68. <h5 class="card-title">
  69. <i class="fa fa-chevron-circle-down <%- auditConst.statusClass[ah[iA].status] %>"></i> <%- ah[iA].name %> <small class="text-muted"><%- ah[iA].role %></small><span class="pull-right"><%= ah[iA].sort === ah[iA].max_sort ? '终' : ctx.helper.transFormToChinese(ah[iA].sort) %>审</span>
  70. </h5>
  71. <div class="ml-3">
  72. <% if (ah[iA].status !== auditConst.status.uncheck) { %>
  73. <span class="<%- auditConst.statusClass[ah[iA].status] %>"><% if (ah[iA].status === auditConst.status.checked || ah[iA].status === auditConst.status.checkNo) { %><small><%- ah[iA].end_time.toLocaleDateString() %></small> <% } %><%- auditConst.statusString[ah[iA].status]%><% if (ah[iA].status === auditConst.status.checkNo) { %> <%- user.name %><% } %></span>
  74. <% } %>
  75. <p class="card-text"><%- ah[iA].opinion %></p>
  76. </div>
  77. </li>
  78. <% } %>
  79. <% } %>
  80. </ul>
  81. </div>
  82. <% } %>
  83. <% if (tender.ledger_status === auditConst.status.checking || tender.ledger_status === auditConst.status.checked) {%>
  84. <div class="card mt-3">
  85. <ul class="list-group list-group-flush">
  86. <li class="list-group-item">
  87. <h5 class="card-title"><i class="fa fa-play-circle fa-rotate-90 text-success"></i> <%- user.name %> <small class="text-muted"><%- user.role %></small><span class="pull-right">原报</span></h5>
  88. <div class="ml-3">
  89. <span class="text-success"><small><%- auditors[0].begin_time.toLocaleDateString() %></small> <% if (tender.ledger_times > 1) { %>重新<% } %>上报</span>
  90. </div>
  91. </li>
  92. <% for (let iA = 0; iA < auditors.length; iA++) { %>
  93. <li class="list-group-item">
  94. <% if (auditors[iA].status === auditConst.status.checked) { %>
  95. <h5 class="card-title">
  96. <i class="<%- (iA < auditors.length - 1 ? 'fa fa-chevron-circle-down text-success' : 'fa fa-stop-circle text-success') %>"></i> <%- auditors[iA].name %> <small class="text-muted"><%- auditors[iA].role %></small><span class="pull-right"><%= auditors[iA].sort === auditors[iA].max_sort ? '终' : ctx.helper.transFormToChinese(auditors[iA].sort) %>审</span>
  97. </h5>
  98. <div class="ml-3">
  99. <span class="text-success"><small><%- auditors[iA].end_time.toLocaleDateString() %></small> 审批通过</span>
  100. <p class="card-text"><%- auditors[iA].opinion %></p>
  101. </div>
  102. <% } else if (auditors[iA].stauts == auditConst.status.checking) { %>
  103. <h5 class="card-title">
  104. <i class="<%- (iA < auditors.length - 1 ? 'fa fa-chevron-circle-down' : 'fa fa-stop-circle') %>"></i> <%- auditors[iA].name %> <small class="text-muted"><%- auditors[iA].role %></small><span class="pull-right"><%= auditors[iA].sort === auditors[iA].max_sort ? '终' : ctx.helper.transFormToChinese(auditors[iA].sort) %>审</span>
  105. </h5>
  106. <div class="ml-3">
  107. <span>审批中</span>
  108. <p class="card-text"><%- auditors[iA].opinion %></p>
  109. </div>
  110. <% } else { %>
  111. <h5 class="card-title">
  112. <i class="<%- (iA < auditors.length - 1 ? 'fa fa-chevron-circle-down' : 'fa fa-stop-circle') %>"></i> <%- auditors[iA].name %> <small class="text-muted"><%- auditors[iA].role %></small><span class="pull-right"><%= auditors[iA].sort === auditors[iA].max_sort ? '终' : ctx.helper.transFormToChinese(auditors[iA].sort) %>审</span>
  113. </h5>
  114. <div class="ml-3">
  115. <p class="card-text"><%- auditors[iA].opinion %></p>
  116. </div>
  117. <% } %>
  118. <% if (auditors[iA].status === auditConst.status.checked) { %>
  119. <% } else if (auditors[iA].status === auditConst.status.checking) { %>
  120. <div class="form-group">
  121. <label>审批意见<b class="text-danger">*</b></label>
  122. <textarea class="form-control form-control-sm" name="opinion">同意</textarea>
  123. </div>
  124. <% } %>
  125. </li>
  126. <% } %>
  127. </ul>
  128. </div>
  129. <% } %>
  130. </div>
  131. </div>
  132. </div>
  133. <div class="modal-footer">
  134. <button type="button" class="btn btn-secondary btn-sm" data-dismiss="modal">关闭</button>
  135. <input type="hidden" name="_csrf" value="<%= ctx.csrf %>" />
  136. <input type="hidden" name="checkType" value="<%= auditConst.status.checked %>" />
  137. <button type="submit" class="btn btn-success btn-sm" >确认通过</button>
  138. </div>
  139. </form>
  140. </div>
  141. </div>
  142. <!--审批退回-->
  143. <div class="modal fade" id="sp-back" data-backdrop="static">
  144. <div class="modal-dialog modal-lg" role="document">
  145. <form class="modal-content" action="/tender/<%- tender.id %>/ledger/audit/check" method="post" onsubmit="return auditCheck(1);">
  146. <div class="modal-header">
  147. <h5 class="modal-title">审批退回</h5>
  148. </div>
  149. <div class="modal-body">
  150. <div class="row">
  151. <div class="col-4">
  152. <div class="card mt-3">
  153. <ul class="list-group list-group-flush">
  154. <li class="list-group-item">
  155. <i class="fa fa fa-play-circle fa-rotate-90"></i> <%- user.name %> <small class="text-muted"><%- user.role %></small><span class="pull-right">原报</span>
  156. </li>
  157. <% for (let i = 0; i < auditors.length; i++) { %>
  158. <li class="list-group-item">
  159. <% if (i < auditors.length - 1) { %>
  160. <i class="fa fa-chevron-circle-down"></i> <%- auditors[i].name %> <small class="text-muted"><%- auditors[i].role %></small><span class="pull-right"><%= ctx.helper.transFormToChinese(i+1)%>审</span>
  161. <% } else {%>
  162. <i class="fa fa fa-stop-circle"></i> <%- auditors[i].name %> <small class="text-muted"><%- auditors[i].role %></small><span class="pull-right">终审</span>
  163. <% } %>
  164. </li>
  165. <% } %>
  166. </ul>
  167. </div>
  168. </div>
  169. <div class="col-8 modal-height-500" style="overflow: auto">
  170. <% for (const ah of auditHistory) { %>
  171. <div class="card mt-3">
  172. <ul class="list-group list-group-flush">
  173. <% for (let iA = 0; iA < ah.length; iA++) { %>
  174. <% if (iA === 0) { %>
  175. <li class="list-group-item">
  176. <h5 class="card-title">
  177. <i class="fa fa-play-circle fa-rotate-90 text-success"></i> <%- user.name %> <small class="text-muted"><%- user.role %></small><span class="pull-right">原报</span>
  178. </h5>
  179. <div class="ml-3">
  180. <span class="text-success"><small><%- ah[iA].begin_time.toLocaleDateString() %></small> <% if (auditHistory.indexOf(ah) > 0) { %>重新<% } %>上报</span>
  181. </div>
  182. </li>
  183. <li class="list-group-item">
  184. <h5 class="card-title">
  185. <i class="fa <%if (iA === ah.length - 1) { %>fa-stop-circle<% } else { %>fa-chevron-circle-down<% } %> <%- auditConst.statusClass[ah[iA].status] %>"></i> <%- ah[iA].name %> <small class="text-muted"><%- ah[iA].role %></small><span class="pull-right"><%= ah[iA].sort === ah[iA].max_sort ? '终' : ctx.helper.transFormToChinese(ah[iA].sort) %>审</span>
  186. </h5>
  187. <div class="ml-3">
  188. <% if (ah[iA].status !== auditConst.status.uncheck) { %>
  189. <span class="<%- auditConst.statusClass[ah[iA].status] %>"><% if (ah[iA].status === auditConst.status.checked || ah[iA].status === auditConst.status.checkNo) { %><small><%- ah[iA].end_time.toLocaleDateString() %></small> <% } %><%- auditConst.statusString[ah[iA].status]%><% if (ah[iA].status === auditConst.status.checkNo) { %> <%- user.name %><% } %></span>
  190. <% } %>
  191. <p class="card-text"><%- ah[iA].opinion %></p>
  192. </div>
  193. </li>
  194. <% } else if (iA === ah.length - 1) { %>
  195. <li class="list-group-item">
  196. <h5 class="card-title">
  197. <i class="fa fa-stop-circle <%- auditConst.statusClass[ah[iA].status] %>"></i> <%- ah[iA].name %> <small class="text-muted"><%- ah[iA].role %></small><span class="pull-right">终审</span>
  198. </h5>
  199. <div class="ml-3">
  200. <% if (ah[iA].status !== auditConst.status.uncheck) { %>
  201. <span class="<%- auditConst.statusClass[ah[iA].status] %>"><% if (ah[iA].status === auditConst.status.checked || ah[iA].status === auditConst.status.checkNo) { %><small><%- ah[iA].end_time.toLocaleDateString() %></small> <% } %><%- auditConst.statusString[ah[iA].status]%><% if (ah[iA].status === auditConst.status.checkNo) { %> <%- user.name %><% } %></span>
  202. <% } %>
  203. <p class="card-text"><%- ah[iA].opinion %></p>
  204. </div>
  205. </li>
  206. <% } else { %>
  207. <li class="list-group-item">
  208. <h5 class="card-title">
  209. <i class="fa fa-chevron-circle-down <%- auditConst.statusClass[ah[iA].status] %>"></i> <%- ah[iA].name %> <small class="text-muted"><%- ah[iA].role %></small><span class="pull-right"><%= ah[iA].sort === ah[iA].max_sort ? '终' : ctx.helper.transFormToChinese(ah[iA].sort) %>审</span>
  210. </h5>
  211. <div class="ml-3">
  212. <% if (ah[iA].status !== auditConst.status.uncheck) { %>
  213. <span class="<%- auditConst.statusClass[ah[iA].status] %>"><% if (ah[iA].status === auditConst.status.checked || ah[iA].status === auditConst.status.checkNo) { %><small><%- ah[iA].end_time.toLocaleDateString() %></small> <% } %><%- auditConst.statusString[ah[iA].status]%><% if (ah[iA].status === auditConst.status.checkNo) { %> <%- user.name %><% } %></span>
  214. <% } %>
  215. <p class="card-text"><%- ah[iA].opinion %></p>
  216. </div>
  217. </li>
  218. <% } %>
  219. <% } %>
  220. </ul>
  221. </div>
  222. <% } %>
  223. <% if (tender.ledger_status === auditConst.status.checking || tender.ledger_status === auditConst.status.checked) {%>
  224. <div class="card mt-3">
  225. <ul class="list-group list-group-flush">
  226. <li class="list-group-item">
  227. <h5 class="card-title"><i class="fa fa-play-circle fa-rotate-90 text-success"></i> <%- user.name %> <small class="text-muted"><%- user.role %></small><span class="pull-right">原报</span></h5>
  228. <div class="ml-3">
  229. <span class="text-success"><small><%- auditors[0].begin_time.toLocaleDateString() %></small> <% if (tender.ledger_times > 1) { %>重新<% } %>上报</span>
  230. </div>
  231. </li>
  232. <% for (let iA = 0; iA < auditors.length; iA++) { %>
  233. <li class="list-group-item">
  234. <% if (auditors[iA].status === auditConst.status.checked) { %>
  235. <h5 class="card-title">
  236. <i class="<%- (iA < auditors.length - 1 ? 'fa fa-chevron-circle-down text-success' : 'fa fa-stop-circle text-success') %>"></i> <%- auditors[iA].name %> <small class="text-muted"><%- auditors[iA].role %></small><span class="pull-right"><%= auditors[iA].sort === auditors[iA].max_sort ? '终' : ctx.helper.transFormToChinese(auditors[iA].sort) %>审</span>
  237. </h5>
  238. <div class="ml-3">
  239. <span class="text-success"><small><%- auditors[iA].end_time.toLocaleDateString() %></small> 审批通过</span>
  240. <p class="card-text"><%- auditors[iA].opinion %></p>
  241. </div>
  242. <% } else if (auditors[iA].stauts == auditConst.status.checking) { %>
  243. <h5 class="card-title">
  244. <i class="<%- (iA < auditors.length - 1 ? 'fa fa-chevron-circle-down' : 'fa fa-stop-circle') %>"></i> <%- auditors[iA].name %> <small class="text-muted"><%- auditors[iA].role %></small><span class="pull-right"><%= auditors[iA].sort === auditors[iA].max_sort ? '终' : ctx.helper.transFormToChinese(auditors[iA].sort) %>审</span>
  245. </h5>
  246. <div class="ml-3">
  247. <span>审批中</span>
  248. <p class="card-text"><%- auditors[iA].opinion %></p>
  249. </div>
  250. <% } else { %>
  251. <h5 class="card-title">
  252. <i class="<%- (iA < auditors.length - 1 ? 'fa fa-chevron-circle-down' : 'fa fa-stop-circle') %>"></i> <%- auditors[iA].name %> <small class="text-muted"><%- auditors[iA].role %></small><span class="pull-right"><%= auditors[iA].sort === auditors[iA].max_sort ? '终' : ctx.helper.transFormToChinese(auditors[iA].sort) %>审</span>
  253. </h5>
  254. <div class="ml-3">
  255. <p class="card-text"><%- auditors[iA].opinion %></p>
  256. </div>
  257. <% } %>
  258. <% if (auditors[iA].status === auditConst.status.checked) { %>
  259. <% } else if (auditors[iA].status === auditConst.status.checking) { %>
  260. <div class="form-group">
  261. <label>审批意见<b class="text-danger">*</b></label>
  262. <textarea class="form-control form-control-sm" name="opinion">不同意</textarea>
  263. </div>
  264. <div class="alert alert-warning">审批退回,将直接退回给上报人。</div>
  265. <% } %>
  266. </li>
  267. <% } %>
  268. </ul>
  269. </div>
  270. <% } %>
  271. </div>
  272. </div>
  273. </div>
  274. <div class="modal-footer">
  275. <button type="button" class="btn btn-secondary btn-sm" data-dismiss="modal">关闭</button>
  276. <input type="hidden" name="_csrf" value="<%= ctx.csrf %>" />
  277. <input type="hidden" name="checkType" value="<%= auditConst.status.checkNo %>" />
  278. <button type="submit" class="btn btn-warning btn-sm" >确认退回</button>
  279. </div>
  280. </form>
  281. </div>
  282. </div>
  283. <% } else { %>
  284. <!--审批流程/结果-->
  285. <div class="modal fade" id="sp-list" data-backdrop="static">
  286. <div class="modal-dialog modal-lg" role="document">
  287. <div class="modal-content">
  288. <div class="modal-header">
  289. <h5 class="modal-title">审批流程</h5>
  290. </div>
  291. <div class="modal-body">
  292. <div class="row">
  293. <div class="col-4">
  294. <div class="card mt-3">
  295. <ul class="list-group list-group-flush">
  296. <li class="list-group-item">
  297. <i class="fa fa fa-play-circle fa-rotate-90"></i> <%- user.name %> <small class="text-muted"><%- user.role %></small><span class="pull-right">原报</span>
  298. </li>
  299. <% for (let i = 0; i < auditors.length; i++) { %>
  300. <li class="list-group-item">
  301. <% if (i < auditors.length - 1) { %>
  302. <i class="fa fa-chevron-circle-down"></i> <%- auditors[i].name %> <small class="text-muted"><%- auditors[i].role %></small><span class="pull-right"><%= ctx.helper.transFormToChinese(i+1)%>审</span>
  303. <% } else {%>
  304. <i class="fa fa fa-stop-circle"></i> <%- auditors[i].name %> <small class="text-muted"><%- auditors[i].role %></small><span class="pull-right">终审</span>
  305. <% } %>
  306. </li>
  307. <% } %>
  308. </ul>
  309. </div>
  310. </div>
  311. <div class="col-8 modal-height-500" style="overflow: auto">
  312. <% for (const ah of auditHistory) { %>
  313. <div class="card mt-3">
  314. <ul class="list-group list-group-flush">
  315. <% for (let iA = 0; iA < ah.length; iA++) { %>
  316. <% if (iA === 0) { %>
  317. <li class="list-group-item">
  318. <h5 class="card-title">
  319. <i class="fa fa-play-circle fa-rotate-90 text-success"></i> <%- user.name %> <small class="text-muted"><%- user.role %></small><span class="pull-right">原报</span>
  320. </h5>
  321. <div class="ml-3">
  322. <span class="text-success"><small><%- ah[iA].begin_time.toLocaleDateString() %></small> <% if (auditHistory.indexOf(ah) > 0) { %>重新<% } %>上报</span>
  323. </div>
  324. </li>
  325. <li class="list-group-item">
  326. <h5 class="card-title">
  327. <i class="fa <%if (iA === ah.length - 1) { %>fa-stop-circle<% } else { %>fa-chevron-circle-down<% } %> <%- auditConst.statusClass[ah[iA].status] %>"></i> <%- ah[iA].name %> <small class="text-muted"><%- ah[iA].role %></small><span class="pull-right"><%= ah[iA].sort === ah[iA].max_sort ? '终' : ctx.helper.transFormToChinese(ah[iA].sort) %>审</span>
  328. </h5>
  329. <div class="ml-3">
  330. <% if (ah[iA].status !== auditConst.status.uncheck) { %>
  331. <span class="<%- auditConst.statusClass[ah[iA].status] %>"><% if (ah[iA].status === auditConst.status.checked || ah[iA].status === auditConst.status.checkNo) { %><small><%- ah[iA].end_time.toLocaleDateString() %></small> <% } %><%- auditConst.statusString[ah[iA].status]%><% if (ah[iA].status === auditConst.status.checkNo) { %> <%- user.name %><% } %></span>
  332. <% } %>
  333. <p class="card-text"><%- ah[iA].opinion %></p>
  334. </div>
  335. </li>
  336. <% } else if (iA === ah.length - 1) { %>
  337. <li class="list-group-item">
  338. <h5 class="card-title">
  339. <i class="fa fa-stop-circle <%- auditConst.statusClass[ah[iA].status] %>"></i> <%- ah[iA].name %> <small class="text-muted"><%- ah[iA].role %></small><span class="pull-right">终审</span>
  340. </h5>
  341. <div class="ml-3">
  342. <% if (ah[iA].status !== auditConst.status.uncheck) { %>
  343. <span class="<%- auditConst.statusClass[ah[iA].status] %>"><% if (ah[iA].status === auditConst.status.checked || ah[iA].status === auditConst.status.checkNo) { %><small><%- ah[iA].end_time.toLocaleDateString() %></small> <% } %><%- auditConst.statusString[ah[iA].status]%><% if (ah[iA].status === auditConst.status.checkNo) { %> <%- user.name %><% } %></span>
  344. <% } %>
  345. <p class="card-text"><%- ah[iA].opinion %></p>
  346. </div>
  347. </li>
  348. <% } else { %>
  349. <li class="list-group-item">
  350. <h5 class="card-title">
  351. <i class="fa fa-chevron-circle-down <%- auditConst.statusClass[ah[iA].status] %>"></i> <%- ah[iA].name %> <small class="text-muted"><%- ah[iA].role %></small><span class="pull-right"><%= ah[iA].sort === ah[iA].max_sort ? '终' : ctx.helper.transFormToChinese(ah[iA].sort) %>审</span>
  352. </h5>
  353. <div class="ml-3">
  354. <% if (ah[iA].status !== auditConst.status.uncheck) { %>
  355. <span class="<%- auditConst.statusClass[ah[iA].status] %>"><% if (ah[iA].status === auditConst.status.checked || ah[iA].status === auditConst.status.checkNo) { %><small><%- ah[iA].end_time.toLocaleDateString() %></small> <% } %><%- auditConst.statusString[ah[iA].status]%><% if (ah[iA].status === auditConst.status.checkNo) { %> <%- user.name %><% } %></span>
  356. <% } %>
  357. <p class="card-text"><%- ah[iA].opinion %></p>
  358. </div>
  359. </li>
  360. <% } %>
  361. <% } %>
  362. </ul>
  363. </div>
  364. <% } %>
  365. <% if (tender.ledger_status === auditConst.status.checking || tender.ledger_status === auditConst.status.checked) {%>
  366. <div class="card mt-3">
  367. <ul class="list-group list-group-flush">
  368. <% for (let iA = 0; iA < auditors.length; iA++) { %>
  369. <% if (iA === 0) { %>
  370. <li class="list-group-item">
  371. <h5 class="card-title"><i class="fa fa-play-circle fa-rotate-90 text-success"></i> <%- user.name %> <small class="text-muted"><%- user.role %></small><span class="pull-right">原报</span></h5>
  372. <div class="ml-3">
  373. <span class="text-success"><small><%- auditors[iA].begin_time.toLocaleDateString() %></small> <% if (tender.ledger_times > 1) { %>重新<% } %>上报</span>
  374. </div>
  375. </li>
  376. <li class="list-group-item">
  377. <h5 class="card-title">
  378. <i class="fa <%if (iA === auditors.length - 1) { %>fa-stop-circle<% } else { %>fa-chevron-circle-down<% } %> <%- auditConst.statusClass[auditors[iA].status] %>"></i> <%- auditors[iA].name %> <small class="text-muted"><%- auditors[iA].role %></small><span class="pull-right"><%- auditors[iA].sort === auditors[iA].max_sort ? '终' : ctx.helper.transFormToChinese(auditors[iA].sort) %>审</span>
  379. </h5>
  380. <div class="ml-3">
  381. <% if (auditors[iA].status !== auditConst.status.uncheck) { %>
  382. <span class="<%- auditConst.statusClass[auditors[iA].status] %>"> <% if (auditors[iA].status === auditConst.status.checked || auditors[iA].status === auditConst.status.checkNo) { %><small><%- auditors[iA].end_time.toLocaleDateString() %></small> <% } %><%- auditConst.statusString[auditors[iA].status]%><% if (auditors[iA].status === auditConst.status.checkNo) { %> <%- user.name %><% } %></span>
  383. <% } %>
  384. <p class="card-text"><%- auditors[iA].opinion %></p>
  385. </div>
  386. </li>
  387. <% } else if (iA === auditors.length - 1) { %>
  388. <li class="list-group-item">
  389. <h5 class="card-title">
  390. <i class="fa fa-stop-circle <%- auditConst.statusClass[auditors[iA].status] %>"></i> <%- auditors[iA].name %> <small class="text-muted"><%- auditors[iA].role %></small><span class="pull-right">终审</span>
  391. </h5>
  392. <div class="ml-3">
  393. <% if (auditors[iA].status !== auditConst.status.uncheck) { %>
  394. <span class="<%- auditConst.statusClass[auditors[iA].status] %>"> <% if (auditors[iA].status === auditConst.status.checked || auditors[iA].status === auditConst.status.checkNo) { %><small><%- auditors[iA].end_time.toLocaleDateString() %></small> <% } %><%- auditConst.statusString[auditors[iA].status]%><% if (auditors[iA].status === auditConst.status.checkNo) { %> <%- user.name %><% } %></span>
  395. <% } %>
  396. <p class="card-text"><%- auditors[iA].opinion %></p>
  397. </div>
  398. </li>
  399. <% } else { %>
  400. <li class="list-group-item">
  401. <h5 class="card-title">
  402. <i class="fa fa-chevron-circle-down <%- auditConst.statusClass[auditors[iA].status] %>"></i> <%- auditors[iA].name %> <small class="text-muted"><%- auditors[iA].role %></small><span class="pull-right"><%- auditors[iA].sort === auditors[iA].max_sort ? '终' : ctx.helper.transFormToChinese(auditors[iA].sort) %>审</span>
  403. </h5>
  404. <div class="ml-3">
  405. <% if (auditors[iA].status !== auditConst.status.uncheck) { %>
  406. <span class="<%- auditConst.statusClass[auditors[iA].status] %>"> <% if (auditors[iA].status === auditConst.status.checked || auditors[iA].status === auditConst.status.checkNo) { %><small><%- auditors[iA].end_time.toLocaleDateString() %></small> <% } %><%- auditConst.statusString[auditors[iA].status]%><% if (auditors[iA].status === auditConst.status.checkNo) { %> <%- user.name %><% } %></span>
  407. <% } %>
  408. <p class="card-text"><%- auditors[iA].opinion %></p>
  409. </div>
  410. </li>
  411. <% } %>
  412. <% } %>
  413. </ul>
  414. </div>
  415. <% } %>
  416. </div>
  417. </div>
  418. </div>
  419. <div class="modal-footer">
  420. <button type="button" class="btn btn-secondary btn-sm" data-dismiss="modal">关闭</button>
  421. </div>
  422. </div>
  423. </div>
  424. </div>
  425. <% } %>