|
@@ -8,25 +8,44 @@
|
|
|
<h5 class="modal-title">上报审批</h5>
|
|
|
</div>
|
|
|
<div class="modal-body">
|
|
|
+ <!--<div class="form-group">-->
|
|
|
+ <!--<label>搜索审批人</label>-->
|
|
|
+ <!--<div class="input-group">-->
|
|
|
+ <!--<input class="form-control" placeholder="请输入姓名进行检索" type="text" id="searchName">-->
|
|
|
+ <!--<div class="input-group-append">-->
|
|
|
+ <!--<button class="btn btn-outline-secondary" type="button" id="searchAccount"><i class="fa fa-search"></i></button>-->
|
|
|
+ <!--</div>-->
|
|
|
+ <!--</div>-->
|
|
|
+ <!--</div>-->
|
|
|
<div class="form-group">
|
|
|
- <label>搜索审批人</label>
|
|
|
+ <label>选择审批人</label>
|
|
|
<div class="input-group">
|
|
|
- <input class="form-control" placeholder="请输入姓名进行检索" type="text" id="searchName">
|
|
|
- <div class="input-group-append">
|
|
|
- <button class="btn btn-outline-secondary" type="button" id="searchAccount"><i class="fa fa-search"></i></button>
|
|
|
+ <div class="input-group-prepend">
|
|
|
+ <select class="form-control" id="account_group">
|
|
|
+ <option value="0">所有分组</option>
|
|
|
+ <% for (const dw in accountGroup) { %>
|
|
|
+ <option value="<%= dw %>"><%= accountGroup[dw] %></option>
|
|
|
+ <% } %>
|
|
|
+ </select>
|
|
|
</div>
|
|
|
+ <select class="form-control" id="account_list">
|
|
|
+ <option value="0">选择审批人</option>
|
|
|
+ <% for (const account of accountList) { %>
|
|
|
+ <option value="<%= account.id %>"><%= account.name %><% if (account.role !== '') { %>(<%= account.role %>)<% } %><% if (account.company !== '') { %> -<%= account.company %><% } %></option>
|
|
|
+ <% } %>
|
|
|
+ </select>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="card border-primary" id="searchResult" style="display: none">
|
|
|
- <div class="card-body">
|
|
|
- <h5 class="card-title">
|
|
|
- <a href="javascript: void(0)" class="btn btn-primary btn-sm pull-right" id="addAuditor">添加</a>
|
|
|
- <span>张三</span>
|
|
|
- </h5>
|
|
|
- <h6 class="card-subtitle mb-2 text-muted">监理</h6>
|
|
|
- <p class="card-text">XXXXX公司</p>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <!--<div class="card border-primary" id="searchResult" style="display: none">-->
|
|
|
+ <!--<div class="card-body">-->
|
|
|
+ <!--<h5 class="card-title">-->
|
|
|
+ <!--<a href="javascript: void(0)" class="btn btn-primary btn-sm pull-right" id="addAuditor">添加</a>-->
|
|
|
+ <!--<span>张三</span>-->
|
|
|
+ <!--</h5>-->
|
|
|
+ <!--<h6 class="card-subtitle mb-2 text-muted">监理</h6>-->
|
|
|
+ <!--<p class="card-text">XXXXX公司</p>-->
|
|
|
+ <!--</div>-->
|
|
|
+ <!--</div>-->
|
|
|
<div class="card mt-3">
|
|
|
<div class="card-header">
|
|
|
审批流程
|
|
@@ -55,7 +74,7 @@
|
|
|
<% if (ctx.stage.curAuditor && ctx.stage.curAuditor.aid === ctx.session.sessionUser.accountId) { %>
|
|
|
<!--审批通过-->
|
|
|
<div class="modal fade" id="sp-done" data-backdrop="static">
|
|
|
- <div class="modal-dialog" role="document">
|
|
|
+ <div class="modal-dialog modal-lg" role="document">
|
|
|
<form class="modal-content" action="<%- preUrl %>/audit/check" method="post">
|
|
|
<div class="modal-header">
|
|
|
<h5 class="modal-title">审批通过</h5>
|
|
@@ -94,6 +113,8 @@
|
|
|
<span class="text-success pull-right"><small><%- auditors[iA].end_time.toLocaleString() %></small> 审批通过</span>
|
|
|
<% } else if (auditors[iA].stauts == auditConst.status.checking) { %>
|
|
|
<span class="pull-right">审批中</span>
|
|
|
+ <% } else if (auditors[iA].status === auditConst.status.checkNoPre) { %>
|
|
|
+ <span class="text-warning pull-right"><small><%- auditors[iA].end_time.toLocaleString() %></small> 审批退回</span>
|
|
|
<% } %>
|
|
|
<h5 class="card-title">
|
|
|
<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>
|
|
@@ -103,7 +124,7 @@
|
|
|
<% } else if (auditors[iA].status === auditConst.status.checking) { %>
|
|
|
<div class="form-group">
|
|
|
<label>审批意见<b class="text-danger">*</b></label>
|
|
|
- <textarea class="form-control" name="opinion"></textarea>
|
|
|
+ <textarea class="form-control" name="opinion">同意</textarea>
|
|
|
</div>
|
|
|
<% } %>
|
|
|
</li>
|
|
@@ -124,8 +145,8 @@
|
|
|
</div>
|
|
|
<!--审批退回-->
|
|
|
<div class="modal fade" id="sp-back" data-backdrop="static">
|
|
|
- <div class="modal-dialog" role="document">
|
|
|
- <form class="modal-content" action="<%- preUrl %>/audit/check" method="post">
|
|
|
+ <div class="modal-dialog modal-lg" role="document">
|
|
|
+ <form class="modal-content modal-lg" action="<%- preUrl %>/audit/check" method="post">
|
|
|
<div class="modal-header">
|
|
|
<h5 class="modal-title">审批退回</h5>
|
|
|
</div>
|
|
@@ -163,6 +184,8 @@
|
|
|
<span class="text-success pull-right"><small><%- auditors[iA].end_time.toLocaleString() %></small> 审批通过</span>
|
|
|
<% } else if (auditors[iA].stauts == auditConst.status.checking) { %>
|
|
|
<span class="pull-right">审批中</span>
|
|
|
+ <% } else if (auditors[iA].status === auditConst.status.checkNoPre) { %>
|
|
|
+ <span class="text-warning pull-right"><small><%- auditors[iA].end_time.toLocaleString() %></small> 审批退回</span>
|
|
|
<% } %>
|
|
|
<h5 class="card-title">
|
|
|
<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>
|
|
@@ -172,7 +195,7 @@
|
|
|
<% } else if (auditors[iA].status === auditConst.status.checking) { %>
|
|
|
<div class="form-group">
|
|
|
<label>审批意见<b class="text-danger">*</b></label>
|
|
|
- <textarea class="form-control" name="opinion"></textarea>
|
|
|
+ <textarea class="form-control" name="opinion">不同意</textarea>
|
|
|
</div>
|
|
|
<div class="alert alert-warning">
|
|
|
<div class="form-check form-check-inline">
|
|
@@ -246,8 +269,8 @@
|
|
|
<span class="<%- auditConst.statusClass[ah[iA].status] %> pull-right"><%- auditConst.statusString[ah[iA].status]%><% if (ah[iA].status === auditConst.status.checkNo) { %> <%- ctx.stage.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"><%- auditConst.statusString[ah[iA].status]%>,<%- ah[iA].opinion %>。</p>
|
|
|
+ <% if (ah[iA].status === auditConst.status.checked || ah[iA].status === auditConst.status.checkNo || ah[iA].status === auditConst.status.checkNoPre) { %>
|
|
|
+ <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>
|
|
|
<% } %>
|
|
|
</li>
|
|
@@ -257,8 +280,8 @@
|
|
|
<span class="<%- auditConst.statusClass[ah[iA].status] %> pull-right"><%- auditConst.statusString[ah[iA].status]%><% if (ah[iA].status === auditConst.status.checkNo) { %> <%- ctx.stage.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"><%- auditConst.statusString[ah[iA].status]%>,<%- ah[iA].opinion %>。</p>
|
|
|
+ <% if (ah[iA].status === auditConst.status.checked || ah[iA].status === auditConst.status.checkNo || ah[iA].status === auditConst.status.checkNoPre) { %>
|
|
|
+ <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>
|
|
|
<% } %>
|
|
|
</li>
|
|
@@ -268,8 +291,8 @@
|
|
|
<span class="<%- auditConst.statusClass[ah[iA].status] %> pull-right"><%- auditConst.statusString[ah[iA].status]%><% if (ah[iA].status === auditConst.status.checkNo) { %> <%- ctx.stage.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"><%- auditConst.statusString[ah[iA].status]%>,<%- ah[iA].opinion %>。</p>
|
|
|
+ <% if (ah[iA].status === auditConst.status.checked || ah[iA].status === auditConst.status.checkNo || ah[iA].status === auditConst.status.checkNoPre) { %>
|
|
|
+ <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>
|
|
|
<% } %>
|
|
|
</li>
|
|
@@ -294,8 +317,8 @@
|
|
|
<span class="<%- auditConst.statusClass[auditors[iA].status] %> pull-right"><%- auditConst.statusString[auditors[iA].status]%><% if (auditors[iA].status === auditConst.status.checkNo) { %> <%- ctx.stage.user.name %><% } %></span>
|
|
|
<% } %>
|
|
|
<h5 class="card-title"><i class="fa fa-chevron-circle-down <%- auditConst.statusClass[auditors[iA].status] %>"></i> <%- auditors[iA].name %> <small class="text-muted"><%- auditors[iA].role %></small></h5>
|
|
|
- <% if (auditors[iA].status === auditConst.status.checked || auditors[iA].status === auditConst.status.checkNo) { %>
|
|
|
- <p class="card-text mb-1"><%- auditConst.statusString[auditors[iA].status]%>,<%- auditors[iA].opinion %>。</p>
|
|
|
+ <% if (auditors[iA].status === auditConst.status.checked || auditors[iA].status === auditConst.status.checkNo || auditors[iA].status === auditConst.status.checkNoPre) { %>
|
|
|
+ <p class="card-text mb-1"><%- auditors[iA].opinion %></p>
|
|
|
<p class="card-text"><small class="text-muted"><%- auditors[iA].end_time.toLocaleDateString() %></small></p>
|
|
|
<% } %>
|
|
|
</li>
|
|
@@ -305,8 +328,8 @@
|
|
|
<span class="<%- auditConst.statusClass[auditors[iA].status] %> pull-right"><%- auditConst.statusString[auditors[iA].status]%><% if (auditors[iA].status === auditConst.status.checkNo) { %> <%- ctx.stage.user.name %><% } %></span>
|
|
|
<% } %>
|
|
|
<h5 class="card-title"><i class="fa fa-stop-circle <%- auditConst.statusClass[auditors[iA].status] %>"></i> <%- auditors[iA].name %> <small class="text-muted"><%- auditors[iA].role %></small></h5>
|
|
|
- <% if (auditors[iA].status === auditConst.status.checked || auditors[iA].status === auditConst.status.checkNo) { %>
|
|
|
- <p class="card-text"><%- auditConst.statusString[auditors[iA].status]%>,<%- auditors[iA].opinion %>。</p>
|
|
|
+ <% if (auditors[iA].status === auditConst.status.checked || auditors[iA].status === auditConst.status.checkNo || auditors[iA].status === auditConst.status.checkNoPre) { %>
|
|
|
+ <p class="card-text"><%- auditors[iA].opinion %></p>
|
|
|
<p class="card-text"><small class="text-muted"><%- auditors[iA].end_time.toLocaleDateString() %></small></p>
|
|
|
<% } %>
|
|
|
</li>
|
|
@@ -316,8 +339,8 @@
|
|
|
<span class="<%- auditConst.statusClass[auditors[iA].status] %> pull-right"><%- auditConst.statusString[auditors[iA].status]%><% if (auditors[iA].status === auditConst.status.checkNo) { %> <%- ctx.stage.user.name %><% } %></span>
|
|
|
<% } %>
|
|
|
<h5 class="card-title"><i class="fa fa-chevron-circle-down <%- auditConst.statusClass[auditors[iA].status] %>"></i> <%- auditors[iA].name %> <small class="text-muted"><%- auditors[iA].role %></small></h5>
|
|
|
- <% if (auditors[iA].status === auditConst.status.checked || auditors[iA].status === auditConst.status.checkNo) { %>
|
|
|
- <p class="card-text"><%- auditConst.statusString[auditors[iA].status]%>,<%- auditors[iA].opinion %>。</p>
|
|
|
+ <% if (auditors[iA].status === auditConst.status.checked || auditors[iA].status === auditConst.status.checkNo || auditors[iA].status === auditConst.status.checkNoPre) { %>
|
|
|
+ <p class="card-text"><%- auditors[iA].opinion %></p>
|
|
|
<p class="card-text"><small class="text-muted"><%- auditors[iA].end_time.toLocaleDateString() %></small></p>
|
|
|
<% } %>
|
|
|
</li>
|
|
@@ -380,8 +403,8 @@
|
|
|
<span class="<%- auditConst.statusClass[ah[iA].status] %> pull-right"><%- auditConst.statusString[ah[iA].status]%><% if (ah[iA].status === auditConst.status.checkNo) { %> <%- ctx.stage.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"><%- auditConst.statusString[ah[iA].status]%>,<%- ah[iA].opinion %>。</p>
|
|
|
+ <% if (ah[iA].status === auditConst.status.checked || ah[iA].status === auditConst.status.checkNo || ah[iA].status === auditConst.status.checkNoPre) { %>
|
|
|
+ <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>
|
|
|
<% } %>
|
|
|
</li>
|
|
@@ -391,8 +414,8 @@
|
|
|
<span class="<%- auditConst.statusClass[ah[iA].status] %> pull-right"><%- auditConst.statusString[ah[iA].status]%><% if (ah[iA].status === auditConst.status.checkNo) { %> <%- ctx.stage.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"><%- auditConst.statusString[ah[iA].status]%>,<%- ah[iA].opinion %>。</p>
|
|
|
+ <% if (ah[iA].status === auditConst.status.checked || ah[iA].status === auditConst.status.checkNo || ah[iA].status === auditConst.status.checkNoPre) { %>
|
|
|
+ <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>
|
|
|
<% } %>
|
|
|
</li>
|
|
@@ -402,8 +425,8 @@
|
|
|
<span class="<%- auditConst.statusClass[ah[iA].status] %> pull-right"><%- auditConst.statusString[ah[iA].status]%><% if (ah[iA].status === auditConst.status.checkNo) { %> <%- ctx.stage.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"><%- auditConst.statusString[ah[iA].status]%>,<%- ah[iA].opinion %>。</p>
|
|
|
+ <% if (ah[iA].status === auditConst.status.checked || ah[iA].status === auditConst.status.checkNo || ah[iA].status === auditConst.status.checkNoPre) { %>
|
|
|
+ <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>
|
|
|
<% } %>
|
|
|
</li>
|
|
@@ -428,8 +451,8 @@
|
|
|
<span class="<%- auditConst.statusClass[auditors[iA].status] %> pull-right"><%- auditConst.statusString[auditors[iA].status]%><% if (auditors[iA].status === auditConst.status.checkNo) { %> <%- ctx.stage.user.name %><% } %></span>
|
|
|
<% } %>
|
|
|
<h5 class="card-title"><i class="fa fa-chevron-circle-down <%- auditConst.statusClass[auditors[iA].status] %>"></i> <%- auditors[iA].name %> <small class="text-muted"><%- auditors[iA].role %></small></h5>
|
|
|
- <% if (auditors[iA].status === auditConst.status.checked || auditors[iA].status === auditConst.status.checkNo) { %>
|
|
|
- <p class="card-text mb-1"><%- auditConst.statusString[auditors[iA].status]%>,<%- auditors[iA].opinion %>。</p>
|
|
|
+ <% if (auditors[iA].status === auditConst.status.checked || auditors[iA].status === auditConst.status.checkNo || auditors[iA].status === auditConst.status.checkNoPre) { %>
|
|
|
+ <p class="card-text mb-1"><%- auditors[iA].opinion %></p>
|
|
|
<p class="card-text"><small class="text-muted"><%- auditors[iA].end_time.toLocaleDateString() %></small></p>
|
|
|
<% } %>
|
|
|
</li>
|
|
@@ -439,8 +462,8 @@
|
|
|
<span class="<%- auditConst.statusClass[auditors[iA].status] %> pull-right"><%- auditConst.statusString[auditors[iA].status]%><% if (auditors[iA].status === auditConst.status.checkNo) { %> <%- ctx.stage.user.name %><% } %></span>
|
|
|
<% } %>
|
|
|
<h5 class="card-title"><i class="fa fa-stop-circle <%- auditConst.statusClass[auditors[iA].status] %>"></i> <%- auditors[iA].name %> <small class="text-muted"><%- auditors[iA].role %></small></h5>
|
|
|
- <% if (auditors[iA].status === auditConst.status.checked || auditors[iA].status === auditConst.status.checkNo) { %>
|
|
|
- <p class="card-text"><%- auditConst.statusString[auditors[iA].status]%>,<%- auditors[iA].opinion %>。</p>
|
|
|
+ <% if (auditors[iA].status === auditConst.status.checked || auditors[iA].status === auditConst.status.checkNo || auditors[iA].status === auditConst.status.checkNoPre) { %>
|
|
|
+ <p class="card-text"><%- auditors[iA].opinion %></p>
|
|
|
<p class="card-text"><small class="text-muted"><%- auditors[iA].end_time.toLocaleDateString() %></small></p>
|
|
|
<% } %>
|
|
|
</li>
|
|
@@ -450,8 +473,8 @@
|
|
|
<span class="<%- auditConst.statusClass[auditors[iA].status] %> pull-right"><%- auditConst.statusString[auditors[iA].status]%><% if (auditors[iA].status === auditConst.status.checkNo) { %> <%- ctx.stage.user.name %><% } %></span>
|
|
|
<% } %>
|
|
|
<h5 class="card-title"><i class="fa fa-chevron-circle-down <%- auditConst.statusClass[auditors[iA].status] %>"></i> <%- auditors[iA].name %> <small class="text-muted"><%- auditors[iA].role %></small></h5>
|
|
|
- <% if (auditors[iA].status === auditConst.status.checked || auditors[iA].status === auditConst.status.checkNo) { %>
|
|
|
- <p class="card-text"><%- auditConst.statusString[auditors[iA].status]%>,<%- auditors[iA].opinion %>。</p>
|
|
|
+ <% if (auditors[iA].status === auditConst.status.checked || auditors[iA].status === auditConst.status.checkNo || auditors[iA].status === auditConst.status.checkNoPre) { %>
|
|
|
+ <p class="card-text"><%- auditors[iA].opinion %></p>
|
|
|
<p class="card-text"><small class="text-muted"><%- auditors[iA].end_time.toLocaleDateString() %></small></p>
|
|
|
<% } %>
|
|
|
</li>
|
|
@@ -513,8 +536,8 @@
|
|
|
<span class="<%- auditConst.statusClass[ah[iA].status] %> pull-right"><%- auditConst.statusString[ah[iA].status]%><% if (ah[iA].status === auditConst.status.checkNo) { %> <%- ctx.stage.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"><%- auditConst.statusString[ah[iA].status]%>,<%- ah[iA].opinion %>。</p>
|
|
|
+ <% if (ah[iA].status === auditConst.status.checked || ah[iA].status === auditConst.status.checkNo || ah[iA].status === auditConst.status.checkNoPre) { %>
|
|
|
+ <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>
|
|
|
<% } %>
|
|
|
</li>
|
|
@@ -524,8 +547,8 @@
|
|
|
<span class="<%- auditConst.statusClass[ah[iA].status] %> pull-right"><%- auditConst.statusString[ah[iA].status]%><% if (ah[iA].status === auditConst.status.checkNo) { %> <%- ctx.stage.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"><%- auditConst.statusString[ah[iA].status]%>,<%- ah[iA].opinion %>。</p>
|
|
|
+ <% if (ah[iA].status === auditConst.status.checked || ah[iA].status === auditConst.status.checkNo || ah[iA].status === auditConst.status.checkNoPre) { %>
|
|
|
+ <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>
|
|
|
<% } %>
|
|
|
</li>
|
|
@@ -535,8 +558,8 @@
|
|
|
<span class="<%- auditConst.statusClass[ah[iA].status] %> pull-right"><%- auditConst.statusString[ah[iA].status]%><% if (ah[iA].status === auditConst.status.checkNo) { %> <%- ctx.stage.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"><%- auditConst.statusString[ah[iA].status]%>,<%- ah[iA].opinion %>。</p>
|
|
|
+ <% if (ah[iA].status === auditConst.status.checked || ah[iA].status === auditConst.status.checkNo || ah[iA].status === auditConst.status.checkNoPre) { %>
|
|
|
+ <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>
|
|
|
<% } %>
|
|
|
</li>
|
|
@@ -561,8 +584,8 @@
|
|
|
<span class="<%- auditConst.statusClass[auditors[iA].status] %> pull-right"><%- auditConst.statusString[auditors[iA].status]%><% if (auditors[iA].status === auditConst.status.checkNo) { %> <%- ctx.stage.user.name %><% } %></span>
|
|
|
<% } %>
|
|
|
<h5 class="card-title"><i class="fa fa-chevron-circle-down <%- auditConst.statusClass[auditors[iA].status] %>"></i> <%- auditors[iA].name %> <small class="text-muted"><%- auditors[iA].role %></small></h5>
|
|
|
- <% if (auditors[iA].status === auditConst.status.checked || auditors[iA].status === auditConst.status.checkNo) { %>
|
|
|
- <p class="card-text mb-1"><%- auditConst.statusString[auditors[iA].status]%>,<%- auditors[iA].opinion %>。</p>
|
|
|
+ <% if (auditors[iA].status === auditConst.status.checked || auditors[iA].status === auditConst.status.checkNo || auditors[iA].status === auditConst.status.checkNoPre) { %>
|
|
|
+ <p class="card-text mb-1"><%- auditors[iA].opinion %></p>
|
|
|
<p class="card-text"><small class="text-muted"><%- auditors[iA].end_time.toLocaleDateString() %></small></p>
|
|
|
<% } %>
|
|
|
</li>
|
|
@@ -572,8 +595,8 @@
|
|
|
<span class="<%- auditConst.statusClass[auditors[iA].status] %> pull-right"><%- auditConst.statusString[auditors[iA].status]%><% if (auditors[iA].status === auditConst.status.checkNo) { %> <%- ctx.stage.user.name %><% } %></span>
|
|
|
<% } %>
|
|
|
<h5 class="card-title"><i class="fa fa-stop-circle <%- auditConst.statusClass[auditors[iA].status] %>"></i> <%- auditors[iA].name %> <small class="text-muted"><%- auditors[iA].role %></small></h5>
|
|
|
- <% if (auditors[iA].status === auditConst.status.checked || auditors[iA].status === auditConst.status.checkNo) { %>
|
|
|
- <p class="card-text"><%- auditConst.statusString[auditors[iA].status]%>,<%- auditors[iA].opinion %>。</p>
|
|
|
+ <% if (auditors[iA].status === auditConst.status.checked || auditors[iA].status === auditConst.status.checkNo || auditors[iA].status === auditConst.status.checkNoPre) { %>
|
|
|
+ <p class="card-text"><%- auditors[iA].opinion %></p>
|
|
|
<p class="card-text"><small class="text-muted"><%- auditors[iA].end_time.toLocaleDateString() %></small></p>
|
|
|
<% } %>
|
|
|
</li>
|
|
@@ -583,8 +606,8 @@
|
|
|
<span class="<%- auditConst.statusClass[auditors[iA].status] %> pull-right"><%- auditConst.statusString[auditors[iA].status]%><% if (auditors[iA].status === auditConst.status.checkNo) { %> <%- ctx.stage.user.name %><% } %></span>
|
|
|
<% } %>
|
|
|
<h5 class="card-title"><i class="fa fa-chevron-circle-down <%- auditConst.statusClass[auditors[iA].status] %>"></i> <%- auditors[iA].name %> <small class="text-muted"><%- auditors[iA].role %></small></h5>
|
|
|
- <% if (auditors[iA].status === auditConst.status.checked || auditors[iA].status === auditConst.status.checkNo) { %>
|
|
|
- <p class="card-text"><%- auditConst.statusString[auditors[iA].status]%>,<%- auditors[iA].opinion %>。</p>
|
|
|
+ <% if (auditors[iA].status === auditConst.status.checked || auditors[iA].status === auditConst.status.checkNo || auditors[iA].status === auditConst.status.checkNoPre) { %>
|
|
|
+ <p class="card-text"><%- auditors[iA].opinion %></p>
|
|
|
<p class="card-text"><small class="text-muted"><%- auditors[iA].end_time.toLocaleDateString() %></small></p>
|
|
|
<% } %>
|
|
|
</li>
|
|
@@ -689,8 +712,8 @@
|
|
|
<span class="<%- auditConst.statusClass[ah[iA].status] %> pull-right"><%- auditConst.statusString[ah[iA].status]%><% if (ah[iA].status === auditConst.status.checkNo) { %> <%- ctx.stage.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"><%- auditConst.statusString[ah[iA].status]%>,<%- ah[iA].opinion %>。</p>
|
|
|
+ <% if (ah[iA].status === auditConst.status.checked || ah[iA].status === auditConst.status.checkNo || ah[iA].status === auditConst.status.checkNoPre) { %>
|
|
|
+ <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>
|
|
|
<% } %>
|
|
|
</li>
|
|
@@ -700,8 +723,8 @@
|
|
|
<span class="<%- auditConst.statusClass[ah[iA].status] %> pull-right"><%- auditConst.statusString[ah[iA].status]%><% if (ah[iA].status === auditConst.status.checkNo) { %> <%- ctx.stage.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"><%- auditConst.statusString[ah[iA].status]%>,<%- ah[iA].opinion %>。</p>
|
|
|
+ <% if (ah[iA].status === auditConst.status.checked || ah[iA].status === auditConst.status.checkNo || ah[iA].status === auditConst.status.checkNoPre) { %>
|
|
|
+ <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>
|
|
|
<% } %>
|
|
|
</li>
|
|
@@ -711,8 +734,8 @@
|
|
|
<span class="<%- auditConst.statusClass[ah[iA].status] %> pull-right"><%- auditConst.statusString[ah[iA].status]%><% if (ah[iA].status === auditConst.status.checkNo) { %> <%- ctx.stage.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"><%- auditConst.statusString[ah[iA].status]%>,<%- ah[iA].opinion %>。</p>
|
|
|
+ <% if (ah[iA].status === auditConst.status.checked || ah[iA].status === auditConst.status.checkNo || ah[iA].status === auditConst.status.checkNoPre) { %>
|
|
|
+ <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>
|
|
|
<% } %>
|
|
|
</li>
|
|
@@ -737,8 +760,8 @@
|
|
|
<span class="<%- auditConst.statusClass[auditors[iA].status] %> pull-right"><%- auditConst.statusString[auditors[iA].status]%><% if (auditors[iA].status === auditConst.status.checkNo) { %> <%- ctx.stage.user.name %><% } %></span>
|
|
|
<% } %>
|
|
|
<h5 class="card-title"><i class="fa fa-chevron-circle-down <%- auditConst.statusClass[auditors[iA].status] %>"></i> <%- auditors[iA].name %> <small class="text-muted"><%- auditors[iA].role %></small></h5>
|
|
|
- <% if (auditors[iA].status === auditConst.status.checked || auditors[iA].status === auditConst.status.checkNo) { %>
|
|
|
- <p class="card-text mb-1"><%- auditConst.statusString[auditors[iA].status]%>,<%- auditors[iA].opinion %>。</p>
|
|
|
+ <% if (auditors[iA].status === auditConst.status.checked || auditors[iA].status === auditConst.status.checkNo || auditors[iA].status === auditConst.status.checkNoPre) { %>
|
|
|
+ <p class="card-text mb-1"><%- auditors[iA].opinion %></p>
|
|
|
<p class="card-text"><small class="text-muted"><%- auditors[iA].end_time.toLocaleDateString() %></small></p>
|
|
|
<% } %>
|
|
|
</li>
|
|
@@ -748,8 +771,8 @@
|
|
|
<span class="<%- auditConst.statusClass[auditors[iA].status] %> pull-right"><%- auditConst.statusString[auditors[iA].status]%><% if (auditors[iA].status === auditConst.status.checkNo) { %> <%- ctx.stage.user.name %><% } %></span>
|
|
|
<% } %>
|
|
|
<h5 class="card-title"><i class="fa fa-stop-circle <%- auditConst.statusClass[auditors[iA].status] %>"></i> <%- auditors[iA].name %> <small class="text-muted"><%- auditors[iA].role %></small></h5>
|
|
|
- <% if (auditors[iA].status === auditConst.status.checked || auditors[iA].status === auditConst.status.checkNo) { %>
|
|
|
- <p class="card-text"><%- auditConst.statusString[auditors[iA].status]%>,<%- auditors[iA].opinion %>。</p>
|
|
|
+ <% if (auditors[iA].status === auditConst.status.checked || auditors[iA].status === auditConst.status.checkNo || auditors[iA].status === auditConst.status.checkNoPre) { %>
|
|
|
+ <p class="card-text"><%- auditors[iA].opinion %></p>
|
|
|
<p class="card-text"><small class="text-muted"><%- auditors[iA].end_time.toLocaleDateString() %></small></p>
|
|
|
<% } %>
|
|
|
</li>
|
|
@@ -759,8 +782,8 @@
|
|
|
<span class="<%- auditConst.statusClass[auditors[iA].status] %> pull-right"><%- auditConst.statusString[auditors[iA].status]%><% if (auditors[iA].status === auditConst.status.checkNo) { %> <%- ctx.stage.user.name %><% } %></span>
|
|
|
<% } %>
|
|
|
<h5 class="card-title"><i class="fa fa-chevron-circle-down <%- auditConst.statusClass[auditors[iA].status] %>"></i> <%- auditors[iA].name %> <small class="text-muted"><%- auditors[iA].role %></small></h5>
|
|
|
- <% if (auditors[iA].status === auditConst.status.checked || auditors[iA].status === auditConst.status.checkNo) { %>
|
|
|
- <p class="card-text"><%- auditConst.statusString[auditors[iA].status]%>,<%- auditors[iA].opinion %>。</p>
|
|
|
+ <% if (auditors[iA].status === auditConst.status.checked || auditors[iA].status === auditConst.status.checkNo || auditors[iA].status === auditConst.status.checkNoPre) { %>
|
|
|
+ <p class="card-text"><%- auditors[iA].opinion %></p>
|
|
|
<p class="card-text"><small class="text-muted"><%- auditors[iA].end_time.toLocaleDateString() %></small></p>
|
|
|
<% } %>
|
|
|
</li>
|
|
@@ -781,7 +804,7 @@
|
|
|
<% if (ctx.session.sessionUser.accountId === ctx.stage.curAuditor.aid) { %>
|
|
|
<!--审批通过-->
|
|
|
<div class="modal fade" id="sp-done" data-backdrop="static">
|
|
|
- <div class="modal-dialog" role="document">
|
|
|
+ <div class="modal-dialog modal-lg" role="document">
|
|
|
<form class="modal-content" action="<%- preUrl %>/audit/check" method="post">
|
|
|
<div class="modal-header">
|
|
|
<h5 class="modal-title">审批通过</h5>
|
|
@@ -820,6 +843,8 @@
|
|
|
<span class="text-success pull-right"><small><%- auditors[iA].end_time.toLocaleString() %></small> 审批通过</span>
|
|
|
<% } else if (auditors[iA].stauts == auditConst.status.checking) { %>
|
|
|
<span class="pull-right">审批中</span>
|
|
|
+ <% } else if (auditors[iA].status === auditConst.status.checkNoPre) { %>
|
|
|
+ <span class="text-warning pull-right"><small><%- auditors[iA].end_time.toLocaleString() %></small> 审批退回</span>
|
|
|
<% } %>
|
|
|
<h5 class="card-title">
|
|
|
<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>
|
|
@@ -829,7 +854,7 @@
|
|
|
<% } else if (auditors[iA].status === auditConst.status.checking) { %>
|
|
|
<div class="form-group">
|
|
|
<label>审批意见<b class="text-danger">*</b></label>
|
|
|
- <textarea class="form-control" name="opinion"></textarea>
|
|
|
+ <textarea class="form-control" name="opinion">同意</textarea>
|
|
|
</div>
|
|
|
<% } %>
|
|
|
</li>
|
|
@@ -850,7 +875,7 @@
|
|
|
</div>
|
|
|
<!--审批退回-->
|
|
|
<div class="modal fade" id="sp-back" data-backdrop="static">
|
|
|
- <div class="modal-dialog" role="document">
|
|
|
+ <div class="modal-dialog modal-lg" role="document">
|
|
|
<form class="modal-content" action="<%- preUrl %>/audit/check" method="post">
|
|
|
<div class="modal-header">
|
|
|
<h5 class="modal-title">审批退回</h5>
|
|
@@ -889,6 +914,8 @@
|
|
|
<span class="text-success pull-right"><small><%- auditors[iA].end_time.toLocaleString() %></small> 审批通过</span>
|
|
|
<% } else if (auditors[iA].stauts == auditConst.status.checking) { %>
|
|
|
<span class="pull-right">审批中</span>
|
|
|
+ <% } else if (auditors[iA].status === auditConst.status.checkNoPre) { %>
|
|
|
+ <span class="text-warning pull-right"><small><%- auditors[iA].end_time.toLocaleString() %></small> 审批退回</span>
|
|
|
<% } %>
|
|
|
<h5 class="card-title">
|
|
|
<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>
|
|
@@ -898,7 +925,7 @@
|
|
|
<% } else if (auditors[iA].status === auditConst.status.checking) { %>
|
|
|
<div class="form-group">
|
|
|
<label>审批意见<b class="text-danger">*</b></label>
|
|
|
- <textarea class="form-control" name="opinion"></textarea>
|
|
|
+ <textarea class="form-control" name="opinion">不同意</textarea>
|
|
|
</div>
|
|
|
<div class="alert alert-warning">
|
|
|
<div class="form-check form-check-inline">
|
|
@@ -929,4 +956,4 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<% } %>
|
|
|
-<% } %>
|
|
|
+<% } %>
|