|
@@ -194,56 +194,93 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="col-8 modal-height-500" style="overflow: auto">
|
|
|
- <% for (const time in auditList3) { %>
|
|
|
- <% if (auditList3[time].length > 0) { %>
|
|
|
- <div class="card mt-3">
|
|
|
- <ul class="list-group list-group-flush">
|
|
|
- <% for (const [aindex,al] of auditList3[time].entries()) { %>
|
|
|
- <li class="list-group-item">
|
|
|
- <h5 class="card-title">
|
|
|
- <% if (al.usite === 0 && al.status === 2 ) { %>
|
|
|
- <i class="fa fa-play-circle fa-rotate-90"></i>
|
|
|
- <% } else if (al.usite === 0 && al.status === 3 ) { %>
|
|
|
- <i class="fa fa-play-circle fa-rotate-90 text-success"></i>
|
|
|
- <% } else if (al.status === 1 || al.status === 2) { %>
|
|
|
- <i class="fa <% if (aindex+1 === auditList3[time].length) { %>fa-stop-circle<% } else { %>fa-chevron-circle-down<% } %> "></i>
|
|
|
- <% } else if (al.status === 3) { %>
|
|
|
- <i class="fa <% if (aindex+1 === auditList3[time].length) { %>fa-stop-circle<% } else { %>fa-chevron-circle-down<% } %> text-success"></i>
|
|
|
- <% } else if (al.status === 4) { %>
|
|
|
- <i class="fa <% if (aindex+1 === auditList3[time].length) { %>fa-stop-circle<% } else { %>fa-chevron-circle-down<% } %> text-danger"></i>
|
|
|
- <% } else if (al.status === 5 || al.status === 6) { %>
|
|
|
- <i class="fa <% if (aindex+1 === auditList3[time].length) { %>fa-stop-circle<% } else { %>fa-chevron-circle-down<% } %> text-warning"></i>
|
|
|
- <% } else if (al.status === 7) { %>
|
|
|
- <i class="fa fa-chevron-circle-down text-warning"></i>
|
|
|
- <% } %>
|
|
|
- <%= al.name %> <small class="text-muted"><%= al.jobs %></small><span class="pull-right"><%= al.usite === 0 ? '原报' : (al.max_sort === al.usite ? '终审' : ctx.helper.transFormToChinese(al.usite) + '审') %></span>
|
|
|
- </h5>
|
|
|
- <div class="ml-3">
|
|
|
- <% if (al.usite === 0 && al.status === 2) { %>
|
|
|
- <span>重新上报中</span>
|
|
|
- <% } else if (al.usite === 0 && al.status === 3) { %>
|
|
|
- <span class="text-success"><% if (al.sin_time !== null) { %><small><%= moment(al.sin_time).format('YYYY-MM-DD HH:mm:ss') %></small> <% } %>上报</span>
|
|
|
- <% } else if (al.usite !== 0 && al.status === 2) { %>
|
|
|
- <span>审批中</span>
|
|
|
- <% } else if (al.usite !== 0 && al.status === 3) { %>
|
|
|
- <span class="text-success"><% if (al.sin_time !== null) { %><small><%= moment(al.sin_time).format('YYYY-MM-DD HH:mm:ss') %></small> <% } %>审批通过</span>
|
|
|
- <% } else if (al.usite !== 0 && al.status === 4) { %>
|
|
|
- <span class="text-danger"><% if (al.sin_time !== null) { %><small><%= moment(al.sin_time).format('YYYY-MM-DD HH:mm:ss') %></small> <% } %>审批终止</span>
|
|
|
- <% } else if (al.usite !== 0 && (al.status === 5 || al.status === 6)) { %>
|
|
|
- <span class="text-warning"><% if (al.sin_time !== null) { %><small><%= moment(al.sin_time).format('YYYY-MM-DD HH:mm:ss') %></small> <% } %>审批退回 <% if (al.status === 5) {%><%= auditList3[time][0].name %><% } %></span>
|
|
|
- <% } else if (al.usite !== 0 && al.status === 7) { %>
|
|
|
- <span class="text-warning"><% if (al.sin_time !== null) { %><small><%= moment(al.sin_time).format('YYYY-MM-DD HH:mm:ss') %></small> <% } %>重新审批 </span>
|
|
|
+ <% auditList3.forEach((auditors, idx) => { %>
|
|
|
+ <!-- 展开/收起历史流程 -->
|
|
|
+ <% if(idx === auditList3.length - 1 && auditList3.length !== 1) { %>
|
|
|
+ <div class="text-right">
|
|
|
+ <a href="javascript: void(0);" id="fold-btn" data-target="show">展开历史审批流程</a>
|
|
|
+ </div>
|
|
|
+ <% } %>
|
|
|
+ <div class="<%- idx < auditList3.length - 1 ? 'fold-card' : '' %>">
|
|
|
+ <div class="text-center text-muted"><%- idx+1 %>#</div>
|
|
|
+ <ul class="timeline-list list-unstyled mt-2">
|
|
|
+ <% auditors.forEach((auditor, index) => { %>
|
|
|
+ <% if (index === 0) { %>
|
|
|
+ <li class="timeline-list-item pb-2">
|
|
|
+ <div class="timeline-item-date">
|
|
|
+ <%- ctx.helper.formatDate(auditor.sin_time) %>
|
|
|
+ </div>
|
|
|
+ <div class="timeline-item-tail"></div>
|
|
|
+ <div class="timeline-item-icon bg-success text-light">
|
|
|
+ <i class="fa fa-caret-down"></i>
|
|
|
+ </div>
|
|
|
+ <div class="timeline-item-content">
|
|
|
+ <div class="card">
|
|
|
+ <div class="card-body p-3">
|
|
|
+ <div class="card-text">
|
|
|
+ <p class="mb-1"><span
|
|
|
+ class="h5"><%- auditor.name %></span><span
|
|
|
+ class="pull-right text-success"><%- idx !== 0 ? '重新' : '' %>上报审批</span>
|
|
|
+ </p>
|
|
|
+ <p class="text-muted mb-0"><%- auditor.jobs %></p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </li>
|
|
|
+ <% } else {%>
|
|
|
+ <li class="timeline-list-item pb-2">
|
|
|
+ <div class="timeline-item-date">
|
|
|
+ <%- ctx.helper.formatDate(auditor.sin_time) %>
|
|
|
+ </div>
|
|
|
+ <% if(index < auditors.length - 1) { %>
|
|
|
+ <div class="timeline-item-tail"></div>
|
|
|
<% } %>
|
|
|
- <% if (al.sdesc !== '' && al.sdesc !== null) { %>
|
|
|
- <p class="card-text"><%- al.sdesc %></p>
|
|
|
+ <% if(auditor.status === auditConst.auditStatus.checked) { %>
|
|
|
+ <div class="timeline-item-icon bg-success text-light">
|
|
|
+ <i class="fa fa-check"></i>
|
|
|
+ </div>
|
|
|
+ <% } else if(auditor.status === auditConst.auditStatus.back || auditor.status === auditConst.auditStatus.backnew) {%>
|
|
|
+ <div class="timeline-item-icon bg-warning text-light">
|
|
|
+ <i class="fa fa-level-up"></i>
|
|
|
+ </div>
|
|
|
+ <% } else if(auditor.status === auditConst.auditStatus.checking) { %>
|
|
|
+ <div class="timeline-item-icon bg-warning text-light">
|
|
|
+ <i class="fa fa-ellipsis-h"></i>
|
|
|
+ </div>
|
|
|
+ <% } else { %>
|
|
|
+ <div class="timeline-item-icon bg-secondary text-light">
|
|
|
+ </div>
|
|
|
<% } %>
|
|
|
- </div>
|
|
|
- </li>
|
|
|
- <% } %>
|
|
|
+ <div class="timeline-item-content">
|
|
|
+ <div class="card">
|
|
|
+ <div class="card-body p-3">
|
|
|
+ <div class="card-text">
|
|
|
+ <p class="mb-1"><span class="h5"><%- auditor.name %></span>
|
|
|
+ <span
|
|
|
+ class="pull-right
|
|
|
+ <%- auditConst.auditStatusClass[auditor.status] %>"><%- auditor.status !== auditConst.auditStatus.uncheck ? auditConst.auditStatusString[auditor.status] : ''%>
|
|
|
+ <%- auditor.status === auditConst.auditStatus.back ? auditors[0].name : '' %>
|
|
|
+ <%- auditor.status === auditConst.auditStatus.backNew ? auditors[index-1].name : '' %>
|
|
|
+ </span>
|
|
|
+ </p>
|
|
|
+ <p class="text-muted mb-0"><%- auditor.jobs %></p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!--审批意见-->
|
|
|
+ <% if (auditor.sdesc) { %>
|
|
|
+ <div class="card-body p-3 border-top">
|
|
|
+ <p style="margin: 0;"><%- auditor.sdesc %></p>
|
|
|
+ </div>
|
|
|
+ <% } %>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </li>
|
|
|
+ <% } %>
|
|
|
+ <% }) %>
|
|
|
</ul>
|
|
|
</div>
|
|
|
- <% } %>
|
|
|
- <% } %>
|
|
|
+ <% }) %>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -287,56 +324,97 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="col-8 modal-height-500" style="overflow: auto">
|
|
|
- <% for (const time in auditList3) { %>
|
|
|
- <div class="card mt-3">
|
|
|
- <ul class="list-group list-group-flush">
|
|
|
- <% for (const [aindex,al] of auditList3[time].entries()) { %>
|
|
|
- <li class="list-group-item">
|
|
|
- <h5 class="card-title">
|
|
|
- <% if (al.usite === 0 && al.status === 2 ) { %>
|
|
|
- <i class="fa fa-play-circle fa-rotate-90"></i>
|
|
|
- <% } else if (al.usite === 0 && al.status === 3 ) { %>
|
|
|
- <i class="fa fa-play-circle fa-rotate-90 text-success"></i>
|
|
|
- <% } else if (al.status === 1 || al.status === 2) { %>
|
|
|
- <i class="fa <% if (aindex+1 === auditList3[time].length) { %>fa-stop-circle<% } else { %>fa-chevron-circle-down<% } %> "></i>
|
|
|
- <% } else if (al.status === 3) { %>
|
|
|
- <i class="fa <% if (aindex+1 === auditList3[time].length) { %>fa-stop-circle<% } else { %>fa-chevron-circle-down<% } %> text-success"></i>
|
|
|
- <% } else if (al.status === 4) { %>
|
|
|
- <i class="fa <% if (aindex+1 === auditList3[time].length) { %>fa-stop-circle<% } else { %>fa-chevron-circle-down<% } %> text-danger"></i>
|
|
|
- <% } else if (al.status === 5 || al.status === 6) { %>
|
|
|
- <i class="fa <% if (aindex+1 === auditList3[time].length) { %>fa-stop-circle<% } else { %>fa-chevron-circle-down<% } %> text-warning"></i>
|
|
|
- <% } else if (al.status === 7) { %>
|
|
|
- <i class="fa fa-chevron-circle-down text-warning"></i>
|
|
|
- <% } %>
|
|
|
- <%= al.name %> <small class="text-muted"><%= al.jobs %></small><span class="pull-right"><%= al.usite === 0 ? '原报' : (al.max_sort === al.usite ? '终审' : ctx.helper.transFormToChinese(al.usite) + '审') %></span>
|
|
|
- </h5>
|
|
|
- <div class="ml-3">
|
|
|
- <% if (al.usite === 0 && al.status === 2) { %>
|
|
|
- <span>重新上报中</span>
|
|
|
- <% } else if (al.usite === 0 && al.status === 3 && al.times === 1) { %>
|
|
|
- <span class="text-success"><% if (al.sin_time !== null) { %><small><%= moment(al.sin_time).format('YYYY-MM-DD HH:mm:ss') %></small> <% } %>上报</span>
|
|
|
- <% } else if (al.usite === 0 && al.status === 3 && al.times !== 1) { %>
|
|
|
- <span class="text-success"><% if (al.sin_time !== null) { %><small><%= moment(al.sin_time).format('YYYY-MM-DD HH:mm:ss') %></small> <% } %>重新上报</span>
|
|
|
- <% } else if (al.usite !== 0 && al.status === 2) { %>
|
|
|
- <span>审批中</span>
|
|
|
- <% } else if (al.usite !== 0 && al.status === 3) { %>
|
|
|
- <span class="text-success"><% if (al.sin_time !== null) { %><small><%= moment(al.sin_time).format('YYYY-MM-DD HH:mm:ss') %></small> <% } %>审批通过</span>
|
|
|
- <% } else if (al.usite !== 0 && al.status === 4) { %>
|
|
|
- <span class="text-danger"><% if (al.sin_time !== null) { %><small><%= moment(al.sin_time).format('YYYY-MM-DD HH:mm:ss') %></small> <% } %>审批终止</span>
|
|
|
- <% } else if (al.usite !== 0 && (al.status === 5 || al.status === 6)) { %>
|
|
|
- <span class="text-warning"><% if (al.sin_time !== null) { %><small><%= moment(al.sin_time).format('YYYY-MM-DD HH:mm:ss') %></small> <% } %>审批退回 <% if (al.status === 5) {%><%= auditList3[time][0].name %><% } %></span>
|
|
|
- <% } else if (al.usite !== 0 && al.status === 7) { %>
|
|
|
- <span class="text-warning"><% if (al.sin_time !== null) { %><small><%= moment(al.sin_time).format('YYYY-MM-DD HH:mm:ss') %></small> <% } %>重新审批</span>
|
|
|
- <% } %>
|
|
|
- <% if (al.sdesc !== '' && al.sdesc !== null) { %>
|
|
|
- <p class="card-text"><%- al.sdesc %></p>
|
|
|
+ <% auditList3.forEach((auditors, idx) => { %>
|
|
|
+ <!-- 展开/收起历史流程 -->
|
|
|
+ <% if(idx === auditList3.length - 1 && auditList3.length !== 1) { %>
|
|
|
+ <div class="text-right">
|
|
|
+ <a href="javascript: void(0);" id="fold-btn" data-target="show">展开历史审批流程</a>
|
|
|
+ </div>
|
|
|
+ <% } %>
|
|
|
+ <div class="<%- idx < auditList3.length - 1 ? 'fold-card' : '' %>">
|
|
|
+ <div class="text-center text-muted"><%- idx+1 %>#</div>
|
|
|
+ <ul class="timeline-list list-unstyled mt-2">
|
|
|
+ <% auditors.forEach((auditor, index) => { %>
|
|
|
+ <% if (index === 0) { %>
|
|
|
+ <li class="timeline-list-item pb-2">
|
|
|
+ <div class="timeline-item-date">
|
|
|
+ <%- ctx.helper.formatDate(auditor.sin_time) %>
|
|
|
+ </div>
|
|
|
+ <div class="timeline-item-tail"></div>
|
|
|
+ <div class="timeline-item-icon bg-success text-light">
|
|
|
+ <i class="fa fa-caret-down"></i>
|
|
|
+ </div>
|
|
|
+ <div class="timeline-item-content">
|
|
|
+ <div class="card">
|
|
|
+ <div class="card-body p-3">
|
|
|
+ <div class="card-text">
|
|
|
+ <p class="mb-1"><span
|
|
|
+ class="h5"><%- auditor.name %></span><span
|
|
|
+ class="pull-right text-success"><%- idx !== 0 ? '重新' : '' %>上报审批</span>
|
|
|
+ </p>
|
|
|
+ <p class="text-muted mb-0"><%- auditor.jobs %></p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </li>
|
|
|
+ <% } else {%>
|
|
|
+ <li class="timeline-list-item pb-2">
|
|
|
+ <div class="timeline-item-date">
|
|
|
+ <%- ctx.helper.formatDate(auditor.sin_time) %>
|
|
|
+ </div>
|
|
|
+ <% if(index < auditors.length - 1) { %>
|
|
|
+ <div class="timeline-item-tail"></div>
|
|
|
+ <% } %>
|
|
|
+ <% if(auditor.status === auditConst.auditStatus.checked) { %>
|
|
|
+ <div class="timeline-item-icon bg-success text-light">
|
|
|
+ <i class="fa fa-check"></i>
|
|
|
+ </div>
|
|
|
+ <% } else if(auditor.status === auditConst.auditStatus.back || auditor.status === auditConst.auditStatus.backnew) {%>
|
|
|
+ <div class="timeline-item-icon bg-warning text-light">
|
|
|
+ <i class="fa fa-level-up"></i>
|
|
|
+ </div>
|
|
|
+ <% } else if(auditor.status === auditConst.auditStatus.checking) { %>
|
|
|
+ <div class="timeline-item-icon bg-warning text-light">
|
|
|
+ <i class="fa fa-ellipsis-h"></i>
|
|
|
+ </div>
|
|
|
+ <% } else if(auditor.status === auditConst.auditStatus.checkAgain) {%>
|
|
|
+ <div class="timeline-item-icon bg-warning text-light">
|
|
|
+ <i class="fa fa-check"></i>
|
|
|
+ </div>
|
|
|
+ <% } else { %>
|
|
|
+ <div class="timeline-item-icon bg-secondary text-light">
|
|
|
+ </div>
|
|
|
+ <% } %>
|
|
|
+ <div class="timeline-item-content">
|
|
|
+ <div class="card">
|
|
|
+ <div class="card-body p-3">
|
|
|
+ <div class="card-text">
|
|
|
+ <p class="mb-1"><span class="h5"><%- auditor.name %></span>
|
|
|
+ <span
|
|
|
+ class="pull-right
|
|
|
+ <%- auditConst.auditStatusClass[auditor.status] %>"><%- auditor.status !== auditConst.auditStatus.uncheck ? auditConst.auditStatusString[auditor.status] : ''%>
|
|
|
+ <%- auditor.status === auditConst.auditStatus.back ? auditors[0].name : '' %>
|
|
|
+ <%- auditor.status === auditConst.auditStatus.backNew ? auditors[index-1].name : '' %>
|
|
|
+ </span>
|
|
|
+ </p>
|
|
|
+ <p class="text-muted mb-0"><%- auditor.jobs %></p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!--审批意见-->
|
|
|
+ <% if (auditor.sdesc) { %>
|
|
|
+ <div class="card-body p-3 border-top">
|
|
|
+ <p style="margin: 0;"><%- auditor.sdesc %></p>
|
|
|
+ </div>
|
|
|
+ <% } %>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </li>
|
|
|
<% } %>
|
|
|
- </div>
|
|
|
- </li>
|
|
|
- <% } %>
|
|
|
- </ul>
|
|
|
- </div>
|
|
|
- <% } %>
|
|
|
+ <% }) %>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ <% }) %>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -382,106 +460,195 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="col-8 modal-height-500" style="overflow: auto">
|
|
|
- <% for (const time in auditList4) { %>
|
|
|
- <div class="card mt-3">
|
|
|
- <ul class="list-group list-group-flush">
|
|
|
- <% for (const [aindex,al] of auditList4[time].entries()) { %>
|
|
|
- <li class="list-group-item">
|
|
|
- <h5 class="card-title">
|
|
|
- <% if (al.usite === 0 && al.status === 2 ) { %>
|
|
|
- <i class="fa fa-play-circle fa-rotate-90"></i>
|
|
|
- <% } else if (al.usite === 0 && al.status === 3 ) { %>
|
|
|
- <i class="fa fa-play-circle fa-rotate-90 text-success"></i>
|
|
|
- <% } else if (al.status === 1 || al.status === 2) { %>
|
|
|
- <i class="fa <% if (aindex+1 === auditList4[time].length) { %>fa-stop-circle<% } else { %>fa-chevron-circle-down<% } %> "></i>
|
|
|
- <% } else if (al.status === 3) { %>
|
|
|
- <i class="fa <% if (aindex+1 === auditList4[time].length) { %>fa-stop-circle<% } else { %>fa-chevron-circle-down<% } %> text-success"></i>
|
|
|
- <% } else if (al.status === 4) { %>
|
|
|
- <i class="fa <% if (aindex+1 === auditList4[time].length) { %>fa-stop-circle<% } else { %>fa-chevron-circle-down<% } %> text-danger"></i>
|
|
|
- <% } else if (al.status === 5 || al.status === 6) { %>
|
|
|
- <i class="fa <% if (aindex+1 === auditList4[time].length) { %>fa-stop-circle<% } else { %>fa-chevron-circle-down<% } %> text-warning"></i>
|
|
|
- <% } else if (al.status === 7) { %>
|
|
|
- <i class="fa fa-chevron-circle-down text-warning"></i>
|
|
|
- <% } %>
|
|
|
- <%= al.name %> <small class="text-muted"><%= al.jobs %></small><span class="pull-right"><%= al.usite === 0 ? '原报' : (al.max_sort === al.usite ? '终审' : ctx.helper.transFormToChinese(al.usite) + '审') %></span>
|
|
|
- </h5>
|
|
|
- <div class="ml-3">
|
|
|
- <% if (al.usite === 0 && al.status === 2) { %>
|
|
|
- <span>重新上报中</span>
|
|
|
- <% } else if (al.usite === 0 && al.status === 3 && al.times === 1) { %>
|
|
|
- <span class="text-success"><% if (al.sin_time !== null) { %><small><%= moment(al.sin_time).format('YYYY-MM-DD HH:mm:ss') %></small> <% } %>上报</span>
|
|
|
- <% } else if (al.usite === 0 && al.status === 3 && al.times !== 1) { %>
|
|
|
- <span class="text-success"><% if (al.sin_time !== null) { %><small><%= moment(al.sin_time).format('YYYY-MM-DD HH:mm:ss') %></small> <% } %>重新上报</span>
|
|
|
- <% } else if (al.usite !== 0 && al.status === 2) { %>
|
|
|
- <span>审批中</span>
|
|
|
- <% } else if (al.usite !== 0 && al.status === 3) { %>
|
|
|
- <span class="text-success"><% if (al.sin_time !== null) { %><small><%= moment(al.sin_time).format('YYYY-MM-DD HH:mm:ss') %></small> <% } %>审批通过</span>
|
|
|
- <% } else if (al.usite !== 0 && al.status === 4) { %>
|
|
|
- <span class="text-danger"><% if (al.sin_time !== null) { %><small><%= moment(al.sin_time).format('YYYY-MM-DD HH:mm:ss') %></small> <% } %>审批终止</span>
|
|
|
- <% } else if (al.usite !== 0 && (al.status === 5 || al.status === 6)) { %>
|
|
|
- <span class="text-warning"><% if (al.sin_time !== null) { %><small><%= moment(al.sin_time).format('YYYY-MM-DD HH:mm:ss') %></small> <% } %>审批退回 <% if (al.status === 5) {%><%= auditList4[time][0].name %><% } %></span>
|
|
|
- <% } else if (al.usite !== 0 && al.status === 7) { %>
|
|
|
- <span class="text-warning"><% if (al.sin_time !== null) { %><small><%= moment(al.sin_time).format('YYYY-MM-DD HH:mm:ss') %></small> <% } %>重新审批</span>
|
|
|
+ <% auditList4.forEach((auditors, idx) => { %>
|
|
|
+ <div class="fold-card">
|
|
|
+ <div class="text-center text-muted"><%- idx+1 %>#</div>
|
|
|
+ <ul class="timeline-list list-unstyled mt-2">
|
|
|
+ <% auditors.forEach((auditor, index) => { %>
|
|
|
+ <% if (index === 0) { %>
|
|
|
+ <li class="timeline-list-item pb-2">
|
|
|
+ <div class="timeline-item-date">
|
|
|
+ <%- ctx.helper.formatDate(auditor.sin_time) %>
|
|
|
+ </div>
|
|
|
+ <div class="timeline-item-tail"></div>
|
|
|
+ <div class="timeline-item-icon bg-success text-light">
|
|
|
+ <i class="fa fa-caret-down"></i>
|
|
|
+ </div>
|
|
|
+ <div class="timeline-item-content">
|
|
|
+ <div class="card">
|
|
|
+ <div class="card-body p-3">
|
|
|
+ <div class="card-text">
|
|
|
+ <p class="mb-1"><span
|
|
|
+ class="h5"><%- auditor.name %></span><span
|
|
|
+ class="pull-right text-success"><%- idx !== 0 ? '重新' : '' %>上报审批</span>
|
|
|
+ </p>
|
|
|
+ <p class="text-muted mb-0"><%- auditor.jobs %></p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </li>
|
|
|
+ <% } else {%>
|
|
|
+ <li class="timeline-list-item pb-2">
|
|
|
+ <div class="timeline-item-date">
|
|
|
+ <%- ctx.helper.formatDate(auditor.sin_time) %>
|
|
|
+ </div>
|
|
|
+ <% if(index < auditors.length - 1) { %>
|
|
|
+ <div class="timeline-item-tail"></div>
|
|
|
<% } %>
|
|
|
- <% if (al.sdesc !== '' && al.sdesc !== null) { %>
|
|
|
- <p class="card-text"><%- al.sdesc %></p>
|
|
|
+ <% if(auditor.status === auditConst.auditStatus.checked) { %>
|
|
|
+ <div class="timeline-item-icon bg-success text-light">
|
|
|
+ <i class="fa fa-check"></i>
|
|
|
+ </div>
|
|
|
+ <% } else if(auditor.status === auditConst.auditStatus.back || auditor.status === auditConst.auditStatus.backnew) {%>
|
|
|
+ <div class="timeline-item-icon bg-warning text-light">
|
|
|
+ <i class="fa fa-level-up"></i>
|
|
|
+ </div>
|
|
|
+ <% } else if(auditor.status === auditConst.auditStatus.checking) { %>
|
|
|
+ <div class="timeline-item-icon bg-warning text-light">
|
|
|
+ <i class="fa fa-ellipsis-h"></i>
|
|
|
+ </div>
|
|
|
+ <% } else if(auditor.status === auditConst.auditStatus.checkAgain) {%>
|
|
|
+ <div class="timeline-item-icon bg-warning text-light">
|
|
|
+ <i class="fa fa-check"></i>
|
|
|
+ </div>
|
|
|
+ <% } else { %>
|
|
|
+ <div class="timeline-item-icon bg-secondary text-light">
|
|
|
+ </div>
|
|
|
<% } %>
|
|
|
- </div>
|
|
|
- </li>
|
|
|
- <% } %>
|
|
|
+ <div class="timeline-item-content">
|
|
|
+ <div class="card">
|
|
|
+ <div class="card-body p-3">
|
|
|
+ <div class="card-text">
|
|
|
+ <p class="mb-1"><span class="h5"><%- auditor.name %></span>
|
|
|
+ <span
|
|
|
+ class="pull-right
|
|
|
+ <%- auditConst.auditStatusClass[auditor.status] %>"><%- auditor.status !== auditConst.auditStatus.uncheck ? auditConst.auditStatusString[auditor.status] : ''%>
|
|
|
+ <%- auditor.status === auditConst.auditStatus.back ? auditors[0].name : '' %>
|
|
|
+ <%- auditor.status === auditConst.auditStatus.backNew ? auditors[index-1].name : '' %>
|
|
|
+ </span>
|
|
|
+ </p>
|
|
|
+ <p class="text-muted mb-0"><%- auditor.jobs %></p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!--审批意见-->
|
|
|
+ <% if (auditor.sdesc) { %>
|
|
|
+ <div class="card-body p-3 border-top">
|
|
|
+ <p style="margin: 0;"><%- auditor.sdesc %></p>
|
|
|
+ </div>
|
|
|
+ <% } %>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </li>
|
|
|
+ <% } %>
|
|
|
+ <% }) %>
|
|
|
</ul>
|
|
|
</div>
|
|
|
+ <% }) %>
|
|
|
+ <% if(auditList4.length > 0) { %>
|
|
|
+ <div class="text-right">
|
|
|
+ <a href="javascript: void(0);" id="fold-btn" data-target="show">展开历史审批流程</a>
|
|
|
+ </div>
|
|
|
<% } %>
|
|
|
- <div class="card mt-3">
|
|
|
- <ul class="list-group list-group-flush">
|
|
|
- <% for (const [index,a] of auditList3.entries()) { %>
|
|
|
- <li class="list-group-item">
|
|
|
- <% if (a.usite === 0 ) { %>
|
|
|
- <h5 class="card-title">
|
|
|
- <i class="fa fa-play-circle fa-rotate-90 text-success"></i>
|
|
|
- <%= a.name %> <small class="text-muted"><%= a.jobs%></small><span class="pull-right">原报</span>
|
|
|
- </h5>
|
|
|
- <div class="ml-3">
|
|
|
- <span class="text-success"><small><%= moment(a.sin_time).format('YYYY-MM-DD HH:mm:ss') %> </small><span class="text-success"><% if (a.status === 3 && a.usite === 0 && a.times !== 1) { %>重新<% } %>上报</span></span>
|
|
|
- </div>
|
|
|
- <% } else { %>
|
|
|
- <h5 class="card-title">
|
|
|
- <i class="fa <% if (index+1 !== auditList3.length) { %>fa-chevron-circle-down <% } else { %>fa-stop-circle <% } %><% if (a.status === 3) { %>text-success<% } else if (a.status === 4) { %>text-danger<% } else if (a.status === 6 || a.status === 7) { %>text-warning<% } %>"></i>
|
|
|
- <%= a.name %> <small class="text-muted"><%= a.jobs%></small><span class="pull-right"><%= a.max_sort === a.usite ? '终' : ctx.helper.transFormToChinese(a.usite) %>审</span>
|
|
|
- </h5>
|
|
|
- <div class="ml-3">
|
|
|
- <% if (a.status === 3) { %>
|
|
|
- <span class="text-success"><% if (a.sin_time !== null) { %><small><%= moment(a.sin_time).format('YYYY-MM-DD HH:mm:ss') %></small> <% } %>审批通过</span>
|
|
|
- <% } else if (a.status === 4) { %>
|
|
|
- <span class="text-danger"><% if (a.sin_time !== null) { %><small><%= moment(a.sin_time).format('YYYY-MM-DD HH:mm:ss') %></small> <% } %>审批终止</span>
|
|
|
- <% } else if (a.status === 6) { %>
|
|
|
- <span class="text-warning"><% if (a.sin_time !== null) { %><small><%= moment(a.sin_time).format('YYYY-MM-DD HH:mm:ss') %></small> <% } %>审批退回</span>
|
|
|
- <% } else if (a.status === 7) { %>
|
|
|
- <span class="text-warning"><% if (a.sin_time !== null) { %><small><%= moment(a.sin_time).format('YYYY-MM-DD HH:mm:ss') %></small> <% } %>重新审批</span>
|
|
|
- <% } %>
|
|
|
- <p class="card-text"><%- a.sdesc %></p>
|
|
|
- </div>
|
|
|
- <% if (a.status === 2) { %>
|
|
|
- <div class="form-group">
|
|
|
- <label>审批意见<b class="text-danger">*</b></label>
|
|
|
- <textarea class="form-control form-control-sm" name="sdesc">同意</textarea>
|
|
|
- <input type="hidden" name="audit_id" value="<%= a.id %>">
|
|
|
- <% if (a.usort !== 0 && index+1 === auditList3.length) { %>
|
|
|
- <!--终审填写批复编号-->
|
|
|
- <div class="form-group mt-3">
|
|
|
- <label><b class="text-danger">* </b>变更令号(批复编号)</label>
|
|
|
- <input class="form-control form-control-sm" value="<%= change.code %>" name="p_code" type="text">
|
|
|
+ <div class="">
|
|
|
+ <div class="text-center text-muted"><%- auditList4.length+1 %>#</div>
|
|
|
+ <ul class="timeline-list list-unstyled mt-2">
|
|
|
+ <% auditList3.forEach((auditor, index) => { %>
|
|
|
+ <% if (index === 0) { %>
|
|
|
+ <li class="timeline-list-item pb-2">
|
|
|
+ <div class="timeline-item-date">
|
|
|
+ <%- ctx.helper.formatDate(auditor.sin_time) %>
|
|
|
+ </div>
|
|
|
+ <div class="timeline-item-tail"></div>
|
|
|
+ <div class="timeline-item-icon bg-success text-light">
|
|
|
+ <i class="fa fa-caret-down"></i>
|
|
|
+ </div>
|
|
|
+ <div class="timeline-item-content">
|
|
|
+ <div class="card">
|
|
|
+ <div class="card-body p-3">
|
|
|
+ <div class="card-text">
|
|
|
+ <p class="mb-1"><span
|
|
|
+ class="h5"><%- auditor.name %></span><span
|
|
|
+ class="pull-right text-success"><%- auditor.status === 3 && auditor.usite === 0 && auditor.times !== 1 ? '重新' : '' %>上报审批</span>
|
|
|
+ </p>
|
|
|
+ <p class="text-muted mb-0"><%- auditor.jobs %></p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </li>
|
|
|
+ <% } else {%>
|
|
|
+ <li class="timeline-list-item pb-2">
|
|
|
+ <div class="timeline-item-date">
|
|
|
+ <%- ctx.helper.formatDate(auditor.sin_time) %>
|
|
|
+ </div>
|
|
|
+ <% if(index < auditList3.length - 1) { %>
|
|
|
+ <div class="timeline-item-tail"></div>
|
|
|
+ <% } %>
|
|
|
+ <% if(auditor.status === auditConst.auditStatus.checked) { %>
|
|
|
+ <div class="timeline-item-icon bg-success text-light">
|
|
|
+ <i class="fa fa-check"></i>
|
|
|
+ </div>
|
|
|
+ <% } else if(auditor.status === auditConst.auditStatus.back || auditor.status === auditConst.auditStatus.backnew) {%>
|
|
|
+ <div class="timeline-item-icon bg-warning text-light">
|
|
|
+ <i class="fa fa-level-up"></i>
|
|
|
+ </div>
|
|
|
+ <% } else if(auditor.status === auditConst.auditStatus.checking) { %>
|
|
|
+ <div class="timeline-item-icon bg-warning text-light">
|
|
|
+ <i class="fa fa-ellipsis-h"></i>
|
|
|
+ </div>
|
|
|
+ <% } else if(auditor.status === auditConst.auditStatus.checkAgain) {%>
|
|
|
+ <div class="timeline-item-icon bg-warning text-light">
|
|
|
+ <i class="fa fa-check"></i>
|
|
|
</div>
|
|
|
<% } else { %>
|
|
|
- <input type="hidden" name="audit_next_id" value="<%= auditList3[index+1].id %>">
|
|
|
+ <div class="timeline-item-icon bg-secondary text-light">
|
|
|
+ </div>
|
|
|
<% } %>
|
|
|
- </div>
|
|
|
+ <div class="timeline-item-content">
|
|
|
+ <div class="card">
|
|
|
+ <div class="card-body p-3">
|
|
|
+ <div class="card-text">
|
|
|
+ <p class="mb-1"><span class="h5"><%- auditor.name %></span>
|
|
|
+ <span
|
|
|
+ class="pull-right
|
|
|
+ <%- auditConst.auditStatusClass[auditor.status] %>"><%- auditor.status !== auditConst.auditStatus.uncheck ? auditConst.auditStatusString[auditor.status] : ''%>
|
|
|
+ <%- auditor.status === auditConst.auditStatus.back ? auditList3[0].name : '' %>
|
|
|
+ <%- auditor.status === auditConst.auditStatus.backNew ? auditList3[index-1].name : '' %>
|
|
|
+ </span>
|
|
|
+ </p>
|
|
|
+ <p class="text-muted mb-0"><%- auditor.jobs %></p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!--审批意见-->
|
|
|
+ <% if(auditor.status !== auditConst.auditStatus.uncheck) { %>
|
|
|
+ <div class="card-body p-3 border-top">
|
|
|
+ <% if (auditor.status === auditConst.auditStatus.checking) { %>
|
|
|
+ <label>审批意见<b class="text-danger">*</b></label>
|
|
|
+ <textarea class="form-control form-control-sm"
|
|
|
+ name="opinion">同意</textarea>
|
|
|
+ <input type="hidden" name="audit_id" value="<%= auditor.id %>">
|
|
|
+ <% if (auditor.usort !== 0 && index+1 === auditList3.length) { %>
|
|
|
+ <!--终审填写批复编号-->
|
|
|
+ <div class="form-group mt-3">
|
|
|
+ <label><b class="text-danger">* </b>变更令号(批复编号)</label>
|
|
|
+ <input class="form-control form-control-sm" value="<%= change.code %>" name="p_code" type="text">
|
|
|
+ </div>
|
|
|
+ <% } else { %>
|
|
|
+ <input type="hidden" name="audit_next_id" value="<%= auditList3[index+1].id %>">
|
|
|
+ <% } %>
|
|
|
+ <% } else { %>
|
|
|
+ <p style="margin: 0;"><%- auditor.opinion %></p>
|
|
|
+ <% } %>
|
|
|
+ </div>
|
|
|
+ <% } %>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </li>
|
|
|
<% } %>
|
|
|
- <% } %>
|
|
|
- </li>
|
|
|
- <% } %>
|
|
|
- </ul>
|
|
|
- </div>
|
|
|
+ <% }) %>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -529,119 +696,204 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="col-8 modal-height-500" style="overflow: auto">
|
|
|
- <% for (const time in auditList4) { %>
|
|
|
- <div class="card mt-3">
|
|
|
- <ul class="list-group list-group-flush">
|
|
|
- <% for (const [aindex,al] of auditList4[time].entries()) { %>
|
|
|
- <li class="list-group-item">
|
|
|
- <h5 class="card-title">
|
|
|
- <% if (al.usite === 0 && al.status === 2 ) { %>
|
|
|
- <i class="fa fa-play-circle fa-rotate-90"></i>
|
|
|
- <% } else if (al.usite === 0 && al.status === 3 ) { %>
|
|
|
- <i class="fa fa-play-circle fa-rotate-90 text-success"></i>
|
|
|
- <% } else if (al.status === 1 || al.status === 2) { %>
|
|
|
- <i class="fa <% if (aindex+1 === auditList4[time].length) { %>fa-stop-circle<% } else { %>fa-chevron-circle-down<% } %> "></i>
|
|
|
- <% } else if (al.status === 3) { %>
|
|
|
- <i class="fa <% if (aindex+1 === auditList4[time].length) { %>fa-stop-circle<% } else { %>fa-chevron-circle-down<% } %> text-success"></i>
|
|
|
- <% } else if (al.status === 4) { %>
|
|
|
- <i class="fa <% if (aindex+1 === auditList4[time].length) { %>fa-stop-circle<% } else { %>fa-chevron-circle-down<% } %> text-danger"></i>
|
|
|
- <% } else if (al.status === 5 || al.status === 6) { %>
|
|
|
- <i class="fa <% if (aindex+1 === auditList4[time].length) { %>fa-stop-circle<% } else { %>fa-chevron-circle-down<% } %> text-warning"></i>
|
|
|
- <% } else if (al.status === 7) { %>
|
|
|
- <i class="fa fa-chevron-circle-down text-warning"></i>
|
|
|
- <% } %>
|
|
|
- <%= al.name %> <small class="text-muted"><%= al.jobs %></small><span class="pull-right"><%= al.usite === 0 ? '原报' : (al.max_sort === al.usite ? '终审' : ctx.helper.transFormToChinese(al.usite) + '审') %></span>
|
|
|
- </h5>
|
|
|
- <div class="ml-3">
|
|
|
- <% if (al.usite === 0 && al.status === 2) { %>
|
|
|
- <span>重新上报中</span>
|
|
|
- <% } else if (al.usite === 0 && al.status === 3 && al.times === 1) { %>
|
|
|
- <span class="text-success"><% if (al.sin_time !== null) { %><small><%= moment(al.sin_time).format('YYYY-MM-DD HH:mm:ss') %></small> <% } %>上报</span>
|
|
|
- <% } else if (al.usite === 0 && al.status === 3 && al.times !== 1) { %>
|
|
|
- <span class="text-success"><% if (al.sin_time !== null) { %><small><%= moment(al.sin_time).format('YYYY-MM-DD HH:mm:ss') %></small> <% } %>重新上报</span>
|
|
|
- <% } else if (al.usite !== 0 && al.status === 2) { %>
|
|
|
- <span>审批中</span>
|
|
|
- <% } else if (al.usite !== 0 && al.status === 3) { %>
|
|
|
- <span class="text-success"><% if (al.sin_time !== null) { %><small><%= moment(al.sin_time).format('YYYY-MM-DD HH:mm:ss') %></small> <% } %>审批通过</span>
|
|
|
- <% } else if (al.usite !== 0 && al.status === 4) { %>
|
|
|
- <span class="text-danger"><% if (al.sin_time !== null) { %><small><%= moment(al.sin_time).format('YYYY-MM-DD HH:mm:ss') %></small> <% } %>审批终止</span>
|
|
|
- <% } else if (al.usite !== 0 && (al.status === 5 || al.status === 6)) { %>
|
|
|
- <span class="text-warning"><% if (al.sin_time !== null) { %><small><%= moment(al.sin_time).format('YYYY-MM-DD HH:mm:ss') %></small> <% } %>审批退回 <% if (al.status === 5) {%><%= auditList4[time][0].name %><% } %></span>
|
|
|
- <% } else if (al.usite !== 0 && al.status === 7) { %>
|
|
|
- <span class="text-warning"><% if (al.sin_time !== null) { %><small><%= moment(al.sin_time).format('YYYY-MM-DD HH:mm:ss') %></small> <% } %>重新审批</span>
|
|
|
+ <% auditList4.forEach((auditors, idx) => { %>
|
|
|
+ <!-- 展开/收起历史流程 -->
|
|
|
+ <div class="fold-card">
|
|
|
+ <div class="text-center text-muted"><%- idx+1 %>#</div>
|
|
|
+ <ul class="timeline-list list-unstyled mt-2">
|
|
|
+ <% auditors.forEach((auditor, index) => { %>
|
|
|
+ <% if (index === 0) { %>
|
|
|
+ <li class="timeline-list-item pb-2">
|
|
|
+ <div class="timeline-item-date">
|
|
|
+ <%- ctx.helper.formatDate(auditor.sin_time) %>
|
|
|
+ </div>
|
|
|
+ <div class="timeline-item-tail"></div>
|
|
|
+ <div class="timeline-item-icon bg-success text-light">
|
|
|
+ <i class="fa fa-caret-down"></i>
|
|
|
+ </div>
|
|
|
+ <div class="timeline-item-content">
|
|
|
+ <div class="card">
|
|
|
+ <div class="card-body p-3">
|
|
|
+ <div class="card-text">
|
|
|
+ <p class="mb-1"><span
|
|
|
+ class="h5"><%- auditor.name %></span><span
|
|
|
+ class="pull-right text-success"><%- idx !== 0 ? '重新' : '' %>上报审批</span>
|
|
|
+ </p>
|
|
|
+ <p class="text-muted mb-0"><%- auditor.jobs %></p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </li>
|
|
|
+ <% } else {%>
|
|
|
+ <li class="timeline-list-item pb-2">
|
|
|
+ <div class="timeline-item-date">
|
|
|
+ <%- ctx.helper.formatDate(auditor.sin_time) %>
|
|
|
+ </div>
|
|
|
+ <% if(index < auditors.length - 1) { %>
|
|
|
+ <div class="timeline-item-tail"></div>
|
|
|
<% } %>
|
|
|
- <% if (al.sdesc !== '' && al.sdesc !== null) { %>
|
|
|
- <p class="card-text"><%- al.sdesc %></p>
|
|
|
+ <% if(auditor.status === auditConst.auditStatus.checked) { %>
|
|
|
+ <div class="timeline-item-icon bg-success text-light">
|
|
|
+ <i class="fa fa-check"></i>
|
|
|
+ </div>
|
|
|
+ <% } else if(auditor.status === auditConst.auditStatus.back || auditor.status === auditConst.auditStatus.backnew) {%>
|
|
|
+ <div class="timeline-item-icon bg-warning text-light">
|
|
|
+ <i class="fa fa-level-up"></i>
|
|
|
+ </div>
|
|
|
+ <% } else if(auditor.status === auditConst.auditStatus.checking) { %>
|
|
|
+ <div class="timeline-item-icon bg-warning text-light">
|
|
|
+ <i class="fa fa-ellipsis-h"></i>
|
|
|
+ </div>
|
|
|
+ <% } else if(auditor.status === auditConst.auditStatus.checkAgain) {%>
|
|
|
+ <div class="timeline-item-icon bg-warning text-light">
|
|
|
+ <i class="fa fa-check"></i>
|
|
|
+ </div>
|
|
|
+ <% } else { %>
|
|
|
+ <div class="timeline-item-icon bg-secondary text-light">
|
|
|
+ </div>
|
|
|
<% } %>
|
|
|
- </div>
|
|
|
- </li>
|
|
|
- <% } %>
|
|
|
+ <div class="timeline-item-content">
|
|
|
+ <div class="card">
|
|
|
+ <div class="card-body p-3">
|
|
|
+ <div class="card-text">
|
|
|
+ <p class="mb-1"><span class="h5"><%- auditor.name %></span>
|
|
|
+ <span
|
|
|
+ class="pull-right
|
|
|
+ <%- auditConst.auditStatusClass[auditor.status] %>"><%- auditor.status !== auditConst.auditStatus.uncheck ? auditConst.auditStatusString[auditor.status] : ''%>
|
|
|
+ <%- auditor.status === auditConst.auditStatus.back ? auditors[0].name : '' %>
|
|
|
+ <%- auditor.status === auditConst.auditStatus.backNew ? auditors[index-1].name : '' %>
|
|
|
+ </span>
|
|
|
+ </p>
|
|
|
+ <p class="text-muted mb-0"><%- auditor.jobs %></p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!--审批意见-->
|
|
|
+ <% if (auditor.sdesc) { %>
|
|
|
+ <div class="card-body p-3 border-top">
|
|
|
+ <p style="margin: 0;"><%- auditor.sdesc %></p>
|
|
|
+ </div>
|
|
|
+ <% } %>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </li>
|
|
|
+ <% } %>
|
|
|
+ <% }) %>
|
|
|
</ul>
|
|
|
</div>
|
|
|
+ <% }) %>
|
|
|
+ <% if(auditList4.length > 0) { %>
|
|
|
+ <div class="text-right">
|
|
|
+ <a href="javascript: void(0);" id="fold-btn" data-target="show">展开历史审批流程</a>
|
|
|
+ </div>
|
|
|
<% } %>
|
|
|
- <div class="card mt-3">
|
|
|
- <ul class="list-group list-group-flush">
|
|
|
- <% for (const [index,a] of auditList3.entries()) { %>
|
|
|
- <li class="list-group-item">
|
|
|
- <% if (a.usite === 0 ) { %>
|
|
|
- <h5 class="card-title">
|
|
|
- <i class="fa fa-play-circle fa-rotate-90 text-success"></i>
|
|
|
- <%= a.name %> <small class="text-muted"><%= a.jobs%></small><span class="pull-right">原报</span>
|
|
|
- </h5>
|
|
|
- <div class="ml-3">
|
|
|
- <span class="text-success"><small><%= moment(a.sin_time).format('YYYY-MM-DD HH:mm:ss') %> </small><span class="text-success"><% if (a.status === 3 && a.usite === 0 && a.times !== 1) { %>重新<% } %>上报</span></span>
|
|
|
- </div>
|
|
|
- <% } else { %>
|
|
|
- <h5 class="card-title">
|
|
|
- <i class="fa <% if (index+1 !== auditList3.length) { %>fa-chevron-circle-down <% } else { %>fa-stop-circle <% } %><% if (a.status === 3) { %>text-success<% } else if (a.status === 4) { %>text-danger<% } else if (a.status === 6 || a.status === 7) { %>text-warning<% } %>"></i>
|
|
|
- <%= a.name %> <small class="text-muted"><%= a.jobs%></small><span class="pull-right"><%= a.max_sort === a.usite ? '终' : ctx.helper.transFormToChinese(a.usite) %>审</span>
|
|
|
- </h5>
|
|
|
- <div class="ml-3">
|
|
|
- <% if (a.status === 3) { %>
|
|
|
- <span class="text-success"><% if (a.sin_time !== null) { %><small><%= moment(a.sin_time).format('YYYY-MM-DD HH:mm:ss') %></small> <% } %>审批通过</span>
|
|
|
- <% } else if (a.status === 4) { %>
|
|
|
- <span class="text-danger"><% if (a.sin_time !== null) { %><small><%= moment(a.sin_time).format('YYYY-MM-DD HH:mm:ss') %></small> <% } %>审批终止</span>
|
|
|
- <% } else if (a.status === 6) { %>
|
|
|
- <span class="text-warning"><% if (a.sin_time !== null) { %><small><%= moment(a.sin_time).format('YYYY-MM-DD HH:mm:ss') %></small> <% } %>审批退回</span>
|
|
|
- <% } else if (a.status === 7) { %>
|
|
|
- <span class="text-warning"><% if (a.sin_time !== null) { %><small><%= moment(a.sin_time).format('YYYY-MM-DD HH:mm:ss') %></small> <% } %>重新审批</span>
|
|
|
- <% } %>
|
|
|
- <p class="card-text"><%- a.sdesc %></p>
|
|
|
- </div>
|
|
|
- <% if (a.status === 2) { %>
|
|
|
- <div class="form-group">
|
|
|
- <label>审批意见<b class="text-danger">*</b></label>
|
|
|
- <textarea class="form-control form-control-sm" name="sdesc">不同意</textarea>
|
|
|
- <input type="hidden" name="audit_id" value="<%= a.id %>">
|
|
|
- </div>
|
|
|
- <div id="change-back-content"class="alert alert-warning">
|
|
|
- <div class="form-check form-check-inline">
|
|
|
- <input class="form-check-input" type="radio" name="status" id="change-back" value="5">
|
|
|
- <!-- <input class="form-check-input" type="radio" name="status" id="change-back" value="5" <% if (a.usite === 1) { %>checked<% } %>> -->
|
|
|
- <label class="form-check-label" for="change-back">退回原报 <%= auditList3[0].name %></label>
|
|
|
- </div>
|
|
|
- <% if (a.usite !== 1) { %>
|
|
|
- <div class="form-check form-check-inline">
|
|
|
- <input class="form-check-input" type="radio" name="status" id="chagne-backnew" value="6">
|
|
|
- <!-- <input class="form-check-input" type="radio" name="status" id="chagne-backnew" value="6" <% if (a.usite !== 1) { %>checked<% } %>> -->
|
|
|
- <label class="form-check-label" for="chagne-backnew">退回上一审批人 <%= auditList2[a.usite-1].name %></label>
|
|
|
- <input type="hidden" name="audit_last_id" value="<%= auditList2[a.usite-1].id %>">
|
|
|
+ <div class="">
|
|
|
+ <div class="text-center text-muted"><%- auditList4.length+1 %>#</div>
|
|
|
+ <ul class="timeline-list list-unstyled mt-2">
|
|
|
+ <% auditList3.forEach((auditor, index) => { %>
|
|
|
+ <% if (index === 0) { %>
|
|
|
+ <li class="timeline-list-item pb-2">
|
|
|
+ <div class="timeline-item-date">
|
|
|
+ <%- ctx.helper.formatDate(auditor.sin_time) %>
|
|
|
+ </div>
|
|
|
+ <div class="timeline-item-tail"></div>
|
|
|
+ <div class="timeline-item-icon bg-success text-light">
|
|
|
+ <i class="fa fa-caret-down"></i>
|
|
|
+ </div>
|
|
|
+ <div class="timeline-item-content">
|
|
|
+ <div class="card">
|
|
|
+ <div class="card-body p-3">
|
|
|
+ <div class="card-text">
|
|
|
+ <p class="mb-1"><span
|
|
|
+ class="h5"><%- auditor.name %></span><span
|
|
|
+ class="pull-right text-success"><%- auditor.status === 3 && auditor.usite === 0 && auditor.times !== 1 ? '重新' : '' %>上报审批</span>
|
|
|
+ </p>
|
|
|
+ <p class="text-muted mb-0"><%- auditor.jobs %></p>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <% } %>
|
|
|
- <!--<div class="form-check form-check-inline">-->
|
|
|
- <!--<input class="form-check-input" type="radio" name="status" id="change-stop" value="4">-->
|
|
|
- <!--<label class="form-check-label" for="change-stop">终止</label>-->
|
|
|
- <!--</div>-->
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <div class="alert alert-danger change-approval-stop" style="display: none">
|
|
|
- 审批终止,将结束本次审批,本条变更令作废。
|
|
|
+ </li>
|
|
|
+ <% } else {%>
|
|
|
+ <li class="timeline-list-item pb-2">
|
|
|
+ <div class="timeline-item-date">
|
|
|
+ <%- ctx.helper.formatDate(auditor.sin_time) %>
|
|
|
</div>
|
|
|
- <% } %>
|
|
|
+ <% if(index < auditList3.length - 1) { %>
|
|
|
+ <div class="timeline-item-tail"></div>
|
|
|
+ <% } %>
|
|
|
+ <% if(auditor.status === auditConst.auditStatus.checked) { %>
|
|
|
+ <div class="timeline-item-icon bg-success text-light">
|
|
|
+ <i class="fa fa-check"></i>
|
|
|
+ </div>
|
|
|
+ <% } else if(auditor.status === auditConst.auditStatus.back || auditor.status === auditConst.auditStatus.backnew) {%>
|
|
|
+ <div class="timeline-item-icon bg-warning text-light">
|
|
|
+ <i class="fa fa-level-up"></i>
|
|
|
+ </div>
|
|
|
+ <% } else if(auditor.status === auditConst.auditStatus.checking) { %>
|
|
|
+ <div class="timeline-item-icon bg-warning text-light">
|
|
|
+ <i class="fa fa-ellipsis-h"></i>
|
|
|
+ </div>
|
|
|
+ <% } else if(auditor.status === auditConst.auditStatus.checkAgain) {%>
|
|
|
+ <div class="timeline-item-icon bg-warning text-light">
|
|
|
+ <i class="fa fa-check"></i>
|
|
|
+ </div>
|
|
|
+ <% } else { %>
|
|
|
+ <div class="timeline-item-icon bg-secondary text-light">
|
|
|
+ </div>
|
|
|
+ <% } %>
|
|
|
+ <div class="timeline-item-content">
|
|
|
+ <div class="card">
|
|
|
+ <div class="card-body p-3">
|
|
|
+ <div class="card-text">
|
|
|
+ <p class="mb-1"><span class="h5"><%- auditor.name %></span>
|
|
|
+ <span
|
|
|
+ class="pull-right
|
|
|
+ <%- auditConst.auditStatusClass[auditor.status] %>"><%- auditor.status !== auditConst.auditStatus.uncheck ? auditConst.auditStatusString[auditor.status] : ''%>
|
|
|
+ <%- auditor.status === auditConst.auditStatus.back ? auditList3[0].name : '' %>
|
|
|
+ <%- auditor.status === auditConst.auditStatus.backNew ? auditList3[index-1].name : '' %>
|
|
|
+ </span>
|
|
|
+ </p>
|
|
|
+ <p class="text-muted mb-0"><%- auditor.jobs %></p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!--审批意见-->
|
|
|
+ <% if(auditor.status !== auditConst.auditStatus.uncheck) { %>
|
|
|
+ <div class="card-body p-3 border-top">
|
|
|
+ <% if (auditor.status === auditConst.auditStatus.checking) { %>
|
|
|
+ <label>审批意见<b class="text-danger">*</b></label>
|
|
|
+ <textarea class="form-control form-control-sm"
|
|
|
+ name="opinion">不同意</textarea>
|
|
|
+ <input type="hidden" name="audit_id" value="<%= auditor.id %>">
|
|
|
+ <div id="change-back-content" class="alert alert-warning"
|
|
|
+ style="margin-top: 15px;">
|
|
|
+ <div class="form-check form-check-inline">
|
|
|
+ <input class="form-check-input" type="radio" name="status"
|
|
|
+ id="change-back" value="<%- auditConst.auditStatus.back %>">
|
|
|
+ <label class="form-check-label" for="change-back">退回原报 <%= auditList3[0].name %></label>
|
|
|
+ </div>
|
|
|
+ <% if (auditor.usite !== 1) { %>
|
|
|
+ <div class="form-check form-check-inline">
|
|
|
+ <input class="form-check-input" type="radio" name="status"
|
|
|
+ id="chagne-backnew"
|
|
|
+ value="<%- auditConst.auditStatus.backnew %>">
|
|
|
+ <label class="form-check-label" for="chagne-backnew">退回上一审批人 <%= auditList2[auditor.usite-1].name %></label>
|
|
|
+ <input type="hidden" name="audit_last_id" value="<%= auditList2[auditor.usite-1].id %>">
|
|
|
+ </div>
|
|
|
+ <% } %>
|
|
|
+ </div>
|
|
|
+ <% } else if(auditor.status === auditConst.auditStatus.checked){ %>
|
|
|
+ <p style="margin: 0;"><%- auditor.opinion %></p>
|
|
|
+ <% } %>
|
|
|
+ </div>
|
|
|
+ <% } %>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </li>
|
|
|
<% } %>
|
|
|
- </li>
|
|
|
- <% } %>
|
|
|
- </ul>
|
|
|
- </div>
|
|
|
+ <% }) %>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -753,17 +1005,12 @@
|
|
|
</script>
|
|
|
<script>
|
|
|
$('.sp-location-list').on('shown.bs.modal', function () {
|
|
|
- const height = $(this)[0].scrollHeight;
|
|
|
const scrollBox = $(this).find('div[class="col-8 modal-height-500"]');
|
|
|
const bdiv = (scrollBox.offset() && scrollBox.offset().top) || 0;
|
|
|
- // 450是modal没有滚动条时的最大高度,超过则出现滚动条,需要自动下拉到底部
|
|
|
- // if (scrollBox.length && scrollBox[0].scrollHeight > 450) {
|
|
|
- // scrollBox.scrollTop(height);
|
|
|
- // }
|
|
|
scrollBox.scrollTop(0);
|
|
|
const hdiv = divSearch($(this).find('textarea')) ? $(this).find('textarea') : null;
|
|
|
- const hdheight = hdiv ? hdiv.parents('.list-group-item').offset().top : null;
|
|
|
- if (hdiv && scrollBox.length && scrollBox[0].scrollHeight > 200 && hdheight - bdiv > 200) {
|
|
|
+ const hdheight = hdiv ? hdiv.parents('.timeline-item-content').offset().top : null;
|
|
|
+ if (hdiv && scrollBox.length && scrollBox[0].scrollHeight > 200 && hdheight - bdiv > 200) {
|
|
|
scrollBox.scrollTop(hdheight - bdiv);
|
|
|
}
|
|
|
});
|
|
@@ -773,6 +1020,24 @@
|
|
|
}
|
|
|
return false;
|
|
|
}
|
|
|
+
|
|
|
+ // 展开历史审核记录
|
|
|
+ $('.modal-body #fold-btn').click(function () {
|
|
|
+ const type = $(this).data('target')
|
|
|
+ const auditCard = $(this).parent().parent()
|
|
|
+ if (type === 'show') {
|
|
|
+ $(this).data('target', 'hide')
|
|
|
+ auditCard.find('.fold-card').slideDown('swing', () => {
|
|
|
+ auditCard.find('#fold-btn').text('收起历史审核记录')
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ $(this).data('target', 'show')
|
|
|
+ auditCard.find('.fold-card').slideUp('swing', () => {
|
|
|
+ auditCard.find('#fold-btn').text('展开历史审核记录')
|
|
|
+ })
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
$('#led-warning').click(function () {
|
|
|
$('#warning-ledger').modal('hide');
|
|
|
});
|