|
@@ -65,7 +65,7 @@
|
|
|
<div class="card mt-3">
|
|
|
<ul class="list-group list-group-flush">
|
|
|
<li class="list-group-item">
|
|
|
- <i class="fa fa fa-play-circle fa-rotate-90"></i> <%- ctx.material.user.name %> <small class="text-muted"><%- ctx.material.user.role %></small><div class="pull-right">原报</div>
|
|
|
+ <i class="fa fa fa-play-circle fa-rotate-90"></i> <%- ctx.material.user.name %> <small class="text-muted"><%- ctx.material.user.role %></small><span class="pull-right">原报</span>
|
|
|
</li>
|
|
|
<% for (let i = 0; i < ctx.material.auditors2.length; i++) { %>
|
|
|
<li class="list-group-item">
|
|
@@ -84,7 +84,7 @@
|
|
|
<ul class="list-group list-group-flush">
|
|
|
<li class="list-group-item">
|
|
|
<h5 class="card-title">
|
|
|
- <i class="fa fa-play-circle fa-rotate-90 text-success"></i> <%- ctx.material.user.name %> <small class="text-muted"><%- ctx.material.user.role %></small>
|
|
|
+ <i class="fa fa-play-circle fa-rotate-90 text-success"></i> <%- ctx.material.user.name %> <small class="text-muted"><%- ctx.material.user.role %></small><span class="pull-right">原报</span>
|
|
|
</h5>
|
|
|
<div class="ml-3">
|
|
|
<span class="text-success"><small><%- ctx.material.auditors[0].begin_time.toLocaleDateString() %></small> 上报</span>
|
|
@@ -171,8 +171,12 @@
|
|
|
<div class="card mt-3">
|
|
|
<ul class="list-group list-group-flush">
|
|
|
<li class="list-group-item">
|
|
|
- <span class="text-success pull-right"><small><%- ctx.material.auditors[0].begin_time.toLocaleDateString() %></small> 上报</span>
|
|
|
- <h5 class="card-title"><i class="fa fa-play-circle fa-rotate-90 text-success"></i> <%- ctx.material.user.name %> <small class="text-muted"><%- ctx.material.user.role %></small></h5>
|
|
|
+ <h5 class="card-title">
|
|
|
+ <i class="fa fa-play-circle fa-rotate-90 text-success"></i> <%- ctx.material.user.name %> <small class="text-muted"><%- ctx.material.user.role %></small><span class="pull-right">原报</span>
|
|
|
+ </h5>
|
|
|
+ <div class="ml-3">
|
|
|
+ <span class="text-success"><small><%- ctx.material.auditors[0].begin_time.toLocaleDateString() %></small> 上报</span>
|
|
|
+ </div>
|
|
|
</li>
|
|
|
<% for (let iA = 0; iA < ctx.material.auditors.length; iA++) { %>
|
|
|
<% const auditors = ctx.material.auditors; %>
|
|
@@ -322,7 +326,7 @@
|
|
|
</li>
|
|
|
<li class="list-group-item">
|
|
|
<h5 class="card-title">
|
|
|
- <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><%- auditors[iA].sort === auditors[iA].max_sort ? '终' : ctx.helper.transFormToChinese(auditors[iA].sort) %>审</span>
|
|
|
+ <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>
|
|
|
</h5>
|
|
|
<div class="ml-3">
|
|
|
<% if (auditors[iA].status !== auditConst.status.uncheck) { %>
|
|
@@ -346,7 +350,7 @@
|
|
|
<% } else { %>
|
|
|
<li class="list-group-item">
|
|
|
<h5 class="card-title">
|
|
|
- <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><%- auditors[iA].sort === auditors[iA].max_sort ? '终' : ctx.helper.transFormToChinese(auditors[iA].sort) %>审</span>
|
|
|
+ <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>
|
|
|
</h5>
|
|
|
<div class="ml-3">
|
|
|
<% if (auditors[iA].status !== auditConst.status.uncheck) { %>
|
|
@@ -591,41 +595,45 @@
|
|
|
<% for (let iA = 0; iA < ah.length; iA++) { %>
|
|
|
<% if (iA === 0) { %>
|
|
|
<li class="list-group-item">
|
|
|
- <span class="text-success pull-right"><% if (ctx.material.auditHistory.indexOf(ah) > 0) { %>重新<% } %>上报</span>
|
|
|
- <h5 class="card-title"><i class="fa fa-play-circle fa-rotate-90 text-success"></i> <%- ctx.material.user.name %> <small class="text-muted"><%- ctx.material.user.role %></small></h5>
|
|
|
- <p class="card-text"><small class="text-muted"><%- ah[iA].begin_time.toLocaleDateString() %></small></p>
|
|
|
+ <h5 class="card-title"><i class="fa fa-play-circle fa-rotate-90 text-success"></i> <%- ctx.material.user.name %> <small class="text-muted"><%- ctx.material.user.role %></small><span class="pull-right">原报</span></h5>
|
|
|
+ <div class="ml-3">
|
|
|
+ <span class="text-success"><small><%- ah[iA].begin_time.toLocaleDateString() %></small> <% if (ctx.material.auditHistory.indexOf(ah) > 0) { %>重新<% } %>上报</span>
|
|
|
+ <p class="card-text"></p>
|
|
|
+ </div>
|
|
|
+
|
|
|
</li>
|
|
|
<li class="list-group-item">
|
|
|
- <% if (ah[iA].status !== auditConst.status.uncheck) { %>
|
|
|
- <span class="<%- auditConst.statusClass[ah[iA].status] %> pull-right"><%- auditConst.statusString[ah[iA].status]%><% if (ah[iA].status === auditConst.status.checkNo) { %> <%- ctx.material.user.name %><% } %></span>
|
|
|
- <% } %>
|
|
|
- <h5 class="card-title"><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></h5>
|
|
|
- <% if (ah[iA].status === auditConst.status.checked || ah[iA].status === auditConst.status.checkNo) { %>
|
|
|
- <p class="card-text mb-1"><%- ah[iA].opinion %></p>
|
|
|
- <p class="card-text"><small class="text-muted"><%- ah[iA].end_time.toLocaleDateString() %></small></p>
|
|
|
- <% } %>
|
|
|
+ <h5 class="card-title">
|
|
|
+ <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>
|
|
|
+ </h5>
|
|
|
+ <div class="ml-3">
|
|
|
+ <% if (ah[iA].status !== auditConst.status.uncheck) { %>
|
|
|
+ <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) { %> <%- ctx.material.user.name %><% } %></span>
|
|
|
+ <% } %>
|
|
|
+ <p class="card-text"><%- ah[iA].opinion %></p>
|
|
|
+ </div>
|
|
|
</li>
|
|
|
<% } else if (iA === ah.length - 1) { %>
|
|
|
<li class="list-group-item">
|
|
|
- <% if (ah[iA].status !== auditConst.status.uncheck) { %>
|
|
|
- <span class="<%- auditConst.statusClass[ah[iA].status] %> pull-right"><%- auditConst.statusString[ah[iA].status]%><% if (ah[iA].status === auditConst.status.checkNo) { %> <%- ctx.material.user.name %><% } %></span>
|
|
|
- <% } %>
|
|
|
- <h5 class="card-title"><i class="fa fa-stop-circle <%- auditConst.statusClass[ah[iA].status] %>"></i> <%- ah[iA].name %> <small class="text-muted"><%- ah[iA].role %></small></h5>
|
|
|
- <% if (ah[iA].status === auditConst.status.checked || ah[iA].status === auditConst.status.checkNo) { %>
|
|
|
- <p class="card-text mb-1"><%- ah[iA].opinion %></p>
|
|
|
- <p class="card-text"><small class="text-muted"><%- ah[iA].end_time.toLocaleDateString() %></small></p>
|
|
|
- <% } %>
|
|
|
+ <h5 class="card-title"><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></h5>
|
|
|
+ <div class="ml-3">
|
|
|
+ <% if (ah[iA].status !== auditConst.status.uncheck) { %>
|
|
|
+ <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) { %> <%- ctx.material.user.name %><% } %></span>
|
|
|
+ <% } %>
|
|
|
+ <p class="card-text"><%- ah[iA].opinion %></p>
|
|
|
+ </div>
|
|
|
</li>
|
|
|
<% } else { %>
|
|
|
<li class="list-group-item">
|
|
|
- <% if (ah[iA].status !== auditConst.status.uncheck) { %>
|
|
|
- <span class="<%- auditConst.statusClass[ah[iA].status] %> pull-right"><%- auditConst.statusString[ah[iA].status]%><% if (ah[iA].status === auditConst.status.checkNo) { %> <%- ctx.material.user.name %><% } %></span>
|
|
|
- <% } %>
|
|
|
- <h5 class="card-title"><i class="fa fa-chevron-circle-down <%- auditConst.statusClass[ah[iA].status] %>"></i> <%- ah[iA].name %> <small class="text-muted"><%- ah[iA].role %></small></h5>
|
|
|
- <% if (ah[iA].status === auditConst.status.checked || ah[iA].status === auditConst.status.checkNo) { %>
|
|
|
- <p class="card-text mb-1"><%- ah[iA].opinion %></p>
|
|
|
- <p class="card-text"><small class="text-muted"><%- ah[iA].end_time.toLocaleDateString() %></small></p>
|
|
|
- <% } %>
|
|
|
+ <h5 class="card-title">
|
|
|
+ <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>
|
|
|
+ </h5>
|
|
|
+ <div class="ml-3">
|
|
|
+ <% if (ah[iA].status !== auditConst.status.uncheck) { %>
|
|
|
+ <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) { %> <%- ctx.material.user.name %><% } %></span>
|
|
|
+ <% } %>
|
|
|
+ <p class="card-text"><%- ah[iA].opinion %></p>
|
|
|
+ </div>
|
|
|
</li>
|
|
|
<% } %>
|
|
|
<% } %>
|
|
@@ -636,9 +644,11 @@
|
|
|
<div class="card mt-3">
|
|
|
<ul class="list-group list-group-flush">
|
|
|
<li class="list-group-item">
|
|
|
- <span class="pull-right">重新上报中</span>
|
|
|
- <h5 class="card-title"><i class="fa fa-play-circle fa-rotate-90"></i> <%- ctx.material.user.name %> <small class="text-muted"><%- ctx.material.user.role %></small></h5>
|
|
|
- <p class="card-text"><small class="text-muted"></small></p>
|
|
|
+ <h5 class="card-title"><i class="fa fa-play-circle fa-rotate-90"></i> <%- ctx.material.user.name %> <small class="text-muted"><%- ctx.material.user.role %></small><span class="pull-right">原报</span></h5>
|
|
|
+ <div class="ml-3">
|
|
|
+ <span>重新上报中</span>
|
|
|
+ <p class="card-text"><small class="text-muted"></small></p>
|
|
|
+ </div>
|
|
|
</li>
|
|
|
</ul>
|
|
|
<ul class="list-group list-group-flush" id="auditors-list2">
|
|
@@ -646,11 +656,13 @@
|
|
|
<% for (let iA = 0; iA < auditorList.length; iA++) { %>
|
|
|
<% if (iA === auditorList.length - 1) { %>
|
|
|
<li class="list-group-item" data-auditid="<%- auditorList[iA].aid %>">
|
|
|
- <h5 class="card-title"><i class="fa fa-stop-circle"></i> <%- auditorList[iA].name %> <small class="text-muted"><%- auditorList[iA].role %></small></h5>
|
|
|
+ <h5 class="card-title"><i class="fa fa-stop-circle"></i> <%- auditorList[iA].name %> <small class="text-muted"><%- auditorList[iA].role %></small><span class="pull-right">终审</span></h5>
|
|
|
</li>
|
|
|
<% } else { %>
|
|
|
<li class="list-group-item" data-auditid="<%- auditorList[iA].aid %>">
|
|
|
- <h5 class="card-title"><i class="fa fa-chevron-circle-down"></i> <%- auditorList[iA].name %> <small class="text-muted"><%- auditorList[iA].role %></small></h5>
|
|
|
+ <h5 class="card-title">
|
|
|
+ <i class="fa fa-chevron-circle-down"></i> <%- auditorList[iA].name %> <small class="text-muted"><%- auditorList[iA].role %></small><span class="pull-right"><%= ctx.helper.transFormToChinese(iA+1) %>审</span>
|
|
|
+ </h5>
|
|
|
</li>
|
|
|
<% } %>
|
|
|
<% } %>
|