|
@@ -20,7 +20,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
-<% if ((ctx.change.status === auditConst.status.uncheck || ctx.change.status === auditConst.status.back) && (ctx.session.sessionUser.accountId === ctx.change.uid || ctx.tender.isTourist)) { %>
|
|
|
+<% if ((ctx.change.status === auditConst.status.uncheck || ctx.change.status === auditConst.status.back || ctx.change.status === auditConst.status.revise) && (ctx.session.sessionUser.accountId === ctx.change.uid || ctx.tender.isTourist)) { %>
|
|
|
<!--上报审批-->
|
|
|
<div class="modal fade" id="sub-sp" data-backdrop="static">
|
|
|
<div class="modal-dialog" role="document">
|
|
@@ -86,6 +86,31 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <% if (ctx.change.status === auditConst.status.revise && (ctx.session.sessionUser.accountId === ctx.change.uid || ctx.session.sessionUser.is_admin)) { %>
|
|
|
+ <!--撤销修订-->
|
|
|
+ <div class="modal fade" id="sub-revoke" role="dialog" aria-labelledby="myModalLabel">
|
|
|
+ <div class="modal-dialog" role="document">
|
|
|
+ <form id="reviseForm" class="modal-content" method="post" action="/tender/<%- tender.id %>/change/project/cancel/revise" onsubmit="return false;">
|
|
|
+ <div class="modal-header">
|
|
|
+ <h5 class="modal-title" id="myModalLabel">撤销修订</h5>
|
|
|
+ <button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
|
+ <span aria-hidden="true">×</span>
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
+ <div class="modal-body">
|
|
|
+ <h5>撤销修订,所有修改的数据将全部会被还原。</h5>
|
|
|
+ <h5>确认撤销修订?</h5>
|
|
|
+ </div>
|
|
|
+ <div class="modal-footer">
|
|
|
+ <input type="hidden" name="cpid" value="<%= ctx.change.id %>">
|
|
|
+ <input type="hidden" name="_csrf_j" value="<%= ctx.csrf %>" />
|
|
|
+ <button type="button" class="btn btn-secondary btn-sm" data-dismiss="modal">关闭</button>
|
|
|
+ <button type="button" id="cancel-revise-btn" class="btn btn-primary btn-sm">确认</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <% } %>
|
|
|
<% } %>
|
|
|
|
|
|
<!--审批流程/结果-->
|
|
@@ -93,12 +118,12 @@
|
|
|
<div class="modal-dialog modal-lg" role="document">
|
|
|
<div class="modal-content">
|
|
|
<div class="modal-header">
|
|
|
- <h5 class="modal-title"><%- ctx.change.status !== auditConst.status.back ? '审批流程' : '重新上报' %></h5>
|
|
|
+ <h5 class="modal-title"><%- ctx.change.status === auditConst.status.back || ctx.change.status === auditConst.status.revise ? '重新上报' : '审批流程' %></h5>
|
|
|
</div>
|
|
|
<div class="modal-body">
|
|
|
<div class="row">
|
|
|
<div class="col-4">
|
|
|
- <% if(ctx.change.status === auditConst.status.back) { %>
|
|
|
+ <% if(ctx.change.status === auditConst.status.back || ctx.change.status === auditConst.status.revise) { %>
|
|
|
<a class="sp-list-item" href="#sub-sp" data-toggle="modal" data-target="#sub-sp" id="hideSp">修改审批流程</a>
|
|
|
<% } %>
|
|
|
<div class="card mt-3">
|
|
@@ -169,11 +194,11 @@
|
|
|
<% if(index < auditors.length - 1) { %>
|
|
|
<div class="timeline-item-tail"></div>
|
|
|
<% } %>
|
|
|
- <% if(auditor.status === auditConst.status.checked) { %>
|
|
|
+ <% if(auditor.status === auditConst.status.checked || auditor.status === auditConst.status.cancelRevise) { %>
|
|
|
<div class="timeline-item-icon bg-success text-light">
|
|
|
<i class="fa fa-check"></i>
|
|
|
</div>
|
|
|
- <% } else if(auditor.status === auditConst.status.back) {%>
|
|
|
+ <% } else if(auditor.status === auditConst.status.back || auditor.status === auditConst.status.revise || auditor.status === auditConst.status.checkCancel) {%>
|
|
|
<div class="timeline-item-icon bg-warning text-light">
|
|
|
<i class="fa fa-level-up"></i>
|
|
|
</div>
|
|
@@ -183,7 +208,7 @@
|
|
|
</div>
|
|
|
<% } else if(auditor.status === auditConst.status.checkNo) { %>
|
|
|
<div class="timeline-item-icon bg-danger text-light">
|
|
|
- <i class="fa fa-ellipsis-h"></i>
|
|
|
+ <i class="fa fa-stop"></i>
|
|
|
</div>
|
|
|
<% } else {%>
|
|
|
<div class="timeline-item-icon bg-secondary text-light">
|
|
@@ -194,7 +219,7 @@
|
|
|
<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.statusClass[auditor.status] %>"><%- auditConst.statusString[auditor.status] %></span>
|
|
|
+ class="pull-right <%- auditConst.auditStringClass[auditor.status] %>"><%- auditConst.auditString[auditor.status] %></span>
|
|
|
</p>
|
|
|
<p class="text-muted mb-0"><%- auditor.role %></p>
|
|
|
</div>
|
|
@@ -217,11 +242,11 @@
|
|
|
<% if(index < auditors.length - 1) { %>
|
|
|
<div class="timeline-item-tail"></div>
|
|
|
<% } %>
|
|
|
- <% if(auditor.status === auditConst.status.checked) { %>
|
|
|
+ <% if(auditor.status === auditConst.status.checked || auditor.status === auditConst.status.cancelRevise) { %>
|
|
|
<div class="timeline-item-icon bg-success text-light">
|
|
|
<i class="fa fa-check"></i>
|
|
|
</div>
|
|
|
- <% } else if(auditor.status === auditConst.status.back) {%>
|
|
|
+ <% } else if(auditor.status === auditConst.status.back || auditor.status === auditConst.status.revise || auditor.status === auditConst.status.checkCancel) {%>
|
|
|
<div class="timeline-item-icon bg-warning text-light">
|
|
|
<i class="fa fa-level-up"></i>
|
|
|
</div>
|
|
@@ -231,7 +256,7 @@
|
|
|
</div>
|
|
|
<% } else if(auditor.status === auditConst.status.checkNo) { %>
|
|
|
<div class="timeline-item-icon bg-danger text-light">
|
|
|
- <i class="fa fa-ellipsis-h"></i>
|
|
|
+ <i class="fa fa-stop"></i>
|
|
|
</div>
|
|
|
<% } else { %>
|
|
|
<div class="timeline-item-icon bg-secondary text-light">
|
|
@@ -244,7 +269,7 @@
|
|
|
<p class="mb-1"><span class="h5"><%- auditor.name %></span>
|
|
|
<span
|
|
|
class="pull-right
|
|
|
- <%- auditConst.statusClass[auditor.status] %>"><%- auditor.status !== auditConst.status.uncheck ? auditConst.statusString[auditor.status] : ''%>
|
|
|
+ <%- auditConst.auditStringClass[auditor.status] %>"><%- auditor.status !== auditConst.status.uncheck ? auditConst.auditString[auditor.status] : ''%>
|
|
|
<%- auditor.status === auditConst.status.back ? ctx.change.user.name : '' %>
|
|
|
</span>
|
|
|
</p>
|
|
@@ -272,7 +297,7 @@
|
|
|
<form class="modal-footer" method="post" action="<%- preUrl %>/audit/start" onsubmit="return checkAuditorFrom()">
|
|
|
<input type="hidden" name="_csrf_j" value="<%= ctx.csrf %>">
|
|
|
<button type="button" class="btn btn-secondary btn-sm" data-dismiss="modal">关闭</button>
|
|
|
- <% if(ctx.change.status === auditConst.status.back && ctx.session.sessionUser.accountId === ctx.change.uid) { %>
|
|
|
+ <% if((ctx.change.status === auditConst.status.back || ctx.change.status === auditConst.status.revise) && ctx.session.sessionUser.accountId === ctx.change.uid) { %>
|
|
|
<button class="btn btn-primary btn-sm sp-list-item" type="submit">确认上报</button>
|
|
|
<% } %>
|
|
|
</form>
|
|
@@ -359,11 +384,11 @@
|
|
|
<% if(index < auditors.length - 1) { %>
|
|
|
<div class="timeline-item-tail"></div>
|
|
|
<% } %>
|
|
|
- <% if(auditor.status === auditConst.status.checked) { %>
|
|
|
+ <% if(auditor.status === auditConst.status.checked || auditor.status === auditConst.status.cancelRevise) { %>
|
|
|
<div class="timeline-item-icon bg-success text-light">
|
|
|
<i class="fa fa-check"></i>
|
|
|
</div>
|
|
|
- <% } else if(auditor.status === auditConst.status.back) {%>
|
|
|
+ <% } else if(auditor.status === auditConst.status.back || auditor.status === auditConst.status.revise || auditor.status === auditConst.status.checkCancel) {%>
|
|
|
<div class="timeline-item-icon bg-warning text-light">
|
|
|
<i class="fa fa-level-up"></i>
|
|
|
</div>
|
|
@@ -371,6 +396,10 @@
|
|
|
<div class="timeline-item-icon bg-warning text-light">
|
|
|
<i class="fa fa-ellipsis-h"></i>
|
|
|
</div>
|
|
|
+ <% } else if(auditor.status === auditConst.status.checkNo) { %>
|
|
|
+ <div class="timeline-item-icon bg-danger text-light">
|
|
|
+ <i class="fa fa-stop"></i>
|
|
|
+ </div>
|
|
|
<% } else {%>
|
|
|
<div class="timeline-item-icon bg-secondary text-light">
|
|
|
</div>
|
|
@@ -380,22 +409,26 @@
|
|
|
<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.statusClass[auditor.status] %>"><%- auditConst.statusString[auditor.status] %></span>
|
|
|
+ class="pull-right <%- auditConst.auditString[auditor.status] %>"><%- auditConst.auditString[auditor.status] %></span>
|
|
|
</p>
|
|
|
<p class="text-muted mb-0"><%- auditor.role %></p>
|
|
|
</div>
|
|
|
</div>
|
|
|
<!--审批意见-->
|
|
|
<% if(auditor.status !== auditConst.status.uncheck) { %>
|
|
|
+ <% if (ctx.change.times === idx + 1 && auditor.status === auditConst.status.checking) { %>
|
|
|
<div class="card-body p-3 border-top">
|
|
|
<% if (ctx.change.times === idx + 1 && auditor.status === auditConst.status.checking) { %>
|
|
|
<label>审批意见<b class="text-danger">*</b></label>
|
|
|
<textarea class="form-control form-control-sm"
|
|
|
name="opinion">同意</textarea>
|
|
|
- <% } else { %>
|
|
|
- <p style="margin: 0;"><%- auditor.opinion %></p>
|
|
|
<% } %>
|
|
|
</div>
|
|
|
+ <% } else if (auditor.opinion) { %>
|
|
|
+ <div class="card-body p-3 border-top">
|
|
|
+ <p style="margin: 0;"><%- auditor.opinion %></p>
|
|
|
+ </div>
|
|
|
+ <% } %>
|
|
|
<% } %>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -408,11 +441,11 @@
|
|
|
<% if(index < auditors.length - 1) { %>
|
|
|
<div class="timeline-item-tail"></div>
|
|
|
<% } %>
|
|
|
- <% if(auditor.status === auditConst.status.checked) { %>
|
|
|
+ <% if(auditor.status === auditConst.status.checked || auditor.status === auditConst.status.cancelRevise) { %>
|
|
|
<div class="timeline-item-icon bg-success text-light">
|
|
|
<i class="fa fa-check"></i>
|
|
|
</div>
|
|
|
- <% } else if(auditor.status === auditConst.status.back) {%>
|
|
|
+ <% } else if(auditor.status === auditConst.status.back || auditor.status === auditConst.status.revise || auditor.status === auditConst.status.checkCancel) {%>
|
|
|
<div class="timeline-item-icon bg-warning text-light">
|
|
|
<i class="fa fa-level-up"></i>
|
|
|
</div>
|
|
@@ -420,6 +453,10 @@
|
|
|
<div class="timeline-item-icon bg-warning text-light">
|
|
|
<i class="fa fa-ellipsis-h"></i>
|
|
|
</div>
|
|
|
+ <% } else if(auditor.status === auditConst.status.checkNo) { %>
|
|
|
+ <div class="timeline-item-icon bg-danger text-light">
|
|
|
+ <i class="fa fa-stop"></i>
|
|
|
+ </div>
|
|
|
<% } else { %>
|
|
|
<div class="timeline-item-icon bg-secondary text-light">
|
|
|
</div>
|
|
@@ -431,7 +468,7 @@
|
|
|
<p class="mb-1"><span class="h5"><%- auditor.name %></span>
|
|
|
<span
|
|
|
class="pull-right
|
|
|
- <%- auditConst.statusClass[auditor.status] %>"><%- auditor.status !== auditConst.status.uncheck ? auditConst.statusString[auditor.status] : ''%>
|
|
|
+ <%- auditConst.auditStringClass[auditor.status] %>"><%- auditor.status !== auditConst.status.uncheck ? auditConst.auditString[auditor.status] : ''%>
|
|
|
<%- auditor.status === auditConst.status.back ? ctx.change.user.name : '' %>
|
|
|
</span>
|
|
|
</p>
|
|
@@ -440,15 +477,19 @@
|
|
|
</div>
|
|
|
<!--审批意见-->
|
|
|
<% if(auditor.status !== auditConst.status.uncheck) { %>
|
|
|
- <div class="card-body p-3 border-top">
|
|
|
- <% if (ctx.change.times === idx + 1 && auditor.status === auditConst.status.checking) { %>
|
|
|
- <label>审批意见<b class="text-danger">*</b></label>
|
|
|
- <textarea class="form-control form-control-sm"
|
|
|
- name="opinion">同意</textarea>
|
|
|
- <% } else { %>
|
|
|
+ <% if (ctx.change.times === idx + 1 && auditor.status === auditConst.status.checking) { %>
|
|
|
+ <div class="card-body p-3 border-top">
|
|
|
+ <% if (ctx.change.times === idx + 1 && auditor.status === auditConst.status.checking) { %>
|
|
|
+ <label>审批意见<b class="text-danger">*</b></label>
|
|
|
+ <textarea class="form-control form-control-sm"
|
|
|
+ name="opinion">同意</textarea>
|
|
|
+ <% } %>
|
|
|
+ </div>
|
|
|
+ <% } else if (auditor.opinion) { %>
|
|
|
+ <div class="card-body p-3 border-top">
|
|
|
<p style="margin: 0;"><%- auditor.opinion %></p>
|
|
|
- <% } %>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
+ <% } %>
|
|
|
<% } %>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -549,11 +590,11 @@
|
|
|
<% if(index < auditors.length - 1) { %>
|
|
|
<div class="timeline-item-tail"></div>
|
|
|
<% } %>
|
|
|
- <% if(auditor.status === auditConst.status.checked) { %>
|
|
|
+ <% if(auditor.status === auditConst.status.checked || auditor.status === auditConst.status.cancelRevise) { %>
|
|
|
<div class="timeline-item-icon bg-success text-light">
|
|
|
<i class="fa fa-check"></i>
|
|
|
</div>
|
|
|
- <% } else if(auditor.status === auditConst.status.back) {%>
|
|
|
+ <% } else if(auditor.status === auditConst.status.back || auditor.status === auditConst.status.revise || auditor.status === auditConst.status.checkCancel) {%>
|
|
|
<div class="timeline-item-icon bg-warning text-light">
|
|
|
<i class="fa fa-level-up"></i>
|
|
|
</div>
|
|
@@ -561,6 +602,10 @@
|
|
|
<div class="timeline-item-icon bg-warning text-light">
|
|
|
<i class="fa fa-ellipsis-h"></i>
|
|
|
</div>
|
|
|
+ <% } else if(auditor.status === auditConst.status.checkNo) { %>
|
|
|
+ <div class="timeline-item-icon bg-danger text-light">
|
|
|
+ <i class="fa fa-stop"></i>
|
|
|
+ </div>
|
|
|
<% } else {%>
|
|
|
<div class="timeline-item-icon bg-secondary text-light">
|
|
|
</div>
|
|
@@ -570,7 +615,7 @@
|
|
|
<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.statusClass[auditor.status] %>"><%- auditConst.statusString[auditor.status] %></span>
|
|
|
+ class="pull-right <%- auditConst.auditStringClass[auditor.status] %>"><%- auditConst.auditString[auditor.status] %></span>
|
|
|
</p>
|
|
|
<p class="text-muted mb-0"><%- auditor.role %></p>
|
|
|
</div>
|
|
@@ -578,8 +623,8 @@
|
|
|
|
|
|
<!--审批意见-->
|
|
|
<% if(auditor.times === ctx.change.times && auditor.status !== auditConst.status.uncheck) { %>
|
|
|
+ <% if (ctx.change.times === idx + 1 && auditor.status === auditConst.status.checking) { %>
|
|
|
<div class="card-body p-3 border-top">
|
|
|
- <% if (ctx.change.times === idx + 1 && auditor.status === auditConst.status.checking) { %>
|
|
|
<label>审批意见<b class="text-danger">*</b></label>
|
|
|
<textarea class="form-control form-control-sm"
|
|
|
name="opinion">不同意</textarea>
|
|
@@ -594,10 +639,12 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<% } %>
|
|
|
- <% } else if(auditor.status === auditConst.status.checked){ %>
|
|
|
- <p style="margin: 0;"><%- auditor.opinion %></p>
|
|
|
- <% } %>
|
|
|
</div>
|
|
|
+ <% } else if(auditor.opinion) { %>
|
|
|
+ <div class="card-body p-3 border-top">
|
|
|
+ <p style="margin: 0;"><%- auditor.opinion %></p>
|
|
|
+ </div>
|
|
|
+ <% } %>
|
|
|
<% } %>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -610,11 +657,11 @@
|
|
|
<% if(index < auditors.length - 1) { %>
|
|
|
<div class="timeline-item-tail"></div>
|
|
|
<% } %>
|
|
|
- <% if(auditor.status === auditConst.status.checked) { %>
|
|
|
+ <% if(auditor.status === auditConst.status.checked || auditor.status === auditConst.status.cancelRevise) { %>
|
|
|
<div class="timeline-item-icon bg-success text-light">
|
|
|
<i class="fa fa-check"></i>
|
|
|
</div>
|
|
|
- <% } else if(auditor.status === auditConst.status.back) {%>
|
|
|
+ <% } else if(auditor.status === auditConst.status.back || auditor.status === auditConst.status.revise || auditor.status === auditConst.status.checkCancel) {%>
|
|
|
<div class="timeline-item-icon bg-warning text-light">
|
|
|
<i class="fa fa-level-up"></i>
|
|
|
</div>
|
|
@@ -622,6 +669,10 @@
|
|
|
<div class="timeline-item-icon bg-warning text-light">
|
|
|
<i class="fa fa-ellipsis-h"></i>
|
|
|
</div>
|
|
|
+ <% } else if(auditor.status === auditConst.status.checkNo) { %>
|
|
|
+ <div class="timeline-item-icon bg-danger text-light">
|
|
|
+ <i class="fa fa-stop"></i>
|
|
|
+ </div>
|
|
|
<% } else { %>
|
|
|
<div class="timeline-item-icon bg-secondary text-light">
|
|
|
</div>
|
|
@@ -633,7 +684,7 @@
|
|
|
<p class="mb-1"><span class="h5"><%- auditor.name %></span>
|
|
|
<span
|
|
|
class="pull-right
|
|
|
- <%- auditConst.statusClass[auditor.status] %>"><%- auditor.status !== auditConst.status.uncheck ? auditConst.statusString[auditor.status] : ''%>
|
|
|
+ <%- auditConst.auditStringClass[auditor.status] %>"><%- auditor.status !== auditConst.status.uncheck ? auditConst.auditString[auditor.status] : ''%>
|
|
|
<%- auditor.status === auditConst.status.back ? ctx.change.user.name : '' %>
|
|
|
</span>
|
|
|
</p>
|
|
@@ -642,12 +693,12 @@
|
|
|
</div>
|
|
|
<!--审批意见-->
|
|
|
<% if(auditor.times === ctx.change.times && auditor.status !== auditConst.status.uncheck) { %>
|
|
|
- <div class="card-body p-3 border-top">
|
|
|
- <% if (ctx.change.times === idx + 1 && auditor.status === auditConst.status.checking) { %>
|
|
|
+ <% if (ctx.change.times === idx + 1 && auditor.status === auditConst.status.checking) { %>
|
|
|
+ <div class="card-body p-3 border-top">
|
|
|
<label>审批意见<b class="text-danger">*</b></label>
|
|
|
<textarea class="form-control form-control-sm"
|
|
|
name="opinion">不同意</textarea>
|
|
|
- <% if (ctx.change.curAuditor.aid === auditor.aid ) { %>
|
|
|
+ <% if (ctx.change.curAuditor.aid === auditor.aid) { %>
|
|
|
<div id="reject-process" class="alert alert-warning"
|
|
|
style="margin-top: 15px;">
|
|
|
<div class="form-check form-check-inline">
|
|
@@ -658,12 +709,12 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<% } %>
|
|
|
- <% } else { %>
|
|
|
+ </div>
|
|
|
+ <% } else if(auditor.opinion) { %>
|
|
|
+ <div class="card-body p-3 border-top">
|
|
|
<p style="margin: 0;"><%- auditor.opinion %></p>
|
|
|
- <% } %>
|
|
|
-
|
|
|
- </div>
|
|
|
-
|
|
|
+ </div>
|
|
|
+ <% } %>
|
|
|
<% } %>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -776,10 +827,82 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+<% if (ctx.change.status === auditConst.status.checked && ctx.session.sessionUser.accountId === ctx.change.uid) { %>
|
|
|
+ <% if (!authMobile && ctx.session.sessionUser.loginStatus === 0) { %>
|
|
|
+ <!--原报修订变更-->
|
|
|
+ <div class="modal fade" id="sp-down-revise" data-backdrop="static">
|
|
|
+ <div class="modal-dialog" role="document">
|
|
|
+ <div class="modal-content">
|
|
|
+ <div class="modal-header">
|
|
|
+ <h5 class="modal-title">修订变更</h5>
|
|
|
+ </div>
|
|
|
+ <div class="modal-body">
|
|
|
+ <h5>修订变更需要您的手机短信验证</h5>
|
|
|
+ <h5>您目前还没设置认证手机,请先设置。</h5>
|
|
|
+ </div>
|
|
|
+ <div class="modal-footer">
|
|
|
+ <button type="button" class="btn btn-sm btn-secondary" data-dismiss="modal">取消</button>
|
|
|
+ <a href="/profile/sms" class="btn btn-sm btn-primary">去设置</a>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <% } else { %>
|
|
|
+ <!--修订变更-->
|
|
|
+ <div class="modal fade" id="sp-down-revise" data-backdrop="static">
|
|
|
+ <div class="modal-dialog" role="document">
|
|
|
+ <form id="reviseForm" class="modal-content" method="post" action="/tender/<%- tender.id %>/change/project/check/revise" onsubmit="return false;">
|
|
|
+ <div class="modal-header">
|
|
|
+ <h5 class="modal-title">修订变更</h5>
|
|
|
+ </div>
|
|
|
+ <div class="modal-body">
|
|
|
+ <h5>确认需要修订变更「<%= change.code %>」?</h5>
|
|
|
+ <% if (ctx.session.sessionUser.loginStatus === 0) { %>
|
|
|
+ <div class="form-group">
|
|
|
+ <label>修订需要验证码确认,验证码将发送至尾号<%- authMobile.slice(-4) %>的手机</label>
|
|
|
+ <div class="input-group input-group-sm mb-3">
|
|
|
+ <input class="form-control" type="text" readonly="readonly" name="code" placeholder="输入短信中的6位验证码" />
|
|
|
+ <div class="input-group-append">
|
|
|
+ <button class="btn btn-outline-secondary" type="button" id="get-code">获取验证码</button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <% } %>
|
|
|
+ </div>
|
|
|
+ <div class="modal-footer">
|
|
|
+ <input type="hidden" name="cpid" value="<%= ctx.change.id %>">
|
|
|
+ <input type="hidden" name="_csrf_j" value="<%= ctx.csrf %>" />
|
|
|
+ <button type="button" class="btn btn-secondary btn-sm" data-dismiss="modal">关闭</button>
|
|
|
+ <button type="button" id="re-shenpi-btn2" class="btn btn-warning btn-sm" <% if (ctx.session.sessionUser.loginStatus === 0) { %>disabled<% } %>>确定修订</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <% } %>
|
|
|
+<% } %>
|
|
|
+<% if (ctx.change.cancancel) { %>
|
|
|
+ <div class="modal fade" id="sp-down-cancel" data-backdrop="static">
|
|
|
+ <div class="modal-dialog" role="document">
|
|
|
+ <div class="modal-content">
|
|
|
+ <div class="modal-header">
|
|
|
+ <h5 class="modal-title">撤回</h5>
|
|
|
+ </div>
|
|
|
+ <div class="modal-body">
|
|
|
+ <h5>撤回后将回退到你的操作状态,确定撤回?</h5>
|
|
|
+ </div>
|
|
|
+ <div class="modal-footer">
|
|
|
+ <button type="button" class="btn btn-secondary btn-sm" data-dismiss="modal">取消</button>
|
|
|
+ <button type="submit" class="btn btn-danger btn-sm" id="cancel-shenpi-btn">确定撤回</button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+<% } %>
|
|
|
<script>
|
|
|
const accountGroup = JSON.parse(unescape('<%- escape(JSON.stringify(accountGroup)) %>'));
|
|
|
const accountList = JSON.parse(unescape('<%- escape(JSON.stringify(accountList)) %>'));
|
|
|
const cur_uid = parseInt('<%- ctx.session.sessionUser.accountId %>');
|
|
|
+ const csrf = '<%= ctx.csrf %>';
|
|
|
$('.sp-location-list').on('shown.bs.modal', function () {
|
|
|
const scrollBox = $(this).find('div[class="col-8 modal-height-500"]');
|
|
|
const bdiv = (scrollBox.offset() && scrollBox.offset().top) || 0;
|
|
@@ -824,4 +947,75 @@
|
|
|
$('.modal-title').text('重新上报')
|
|
|
}
|
|
|
});
|
|
|
+
|
|
|
+ $('#re-shenpi-btn2').click(function () {
|
|
|
+ const data = {
|
|
|
+ cpid: parseInt('<%- ctx.change.id %>'),
|
|
|
+ };
|
|
|
+ <% if (ctx.session.sessionUser.loginStatus === 0) { %>
|
|
|
+ const code = $("#reviseForm input[name='code']").val();
|
|
|
+ if ($(this).hasClass('disabled')) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ if (code.length < 6) {
|
|
|
+ // alert('请填写正确的验证码');
|
|
|
+ toast('请填写正确的验证码', 'error');
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ data.code = code;
|
|
|
+ <% } %>
|
|
|
+ $.ajax({
|
|
|
+ url: '/tender/<%- tender.id %>/change/project/check/revise?_csrf_j=' + csrf,
|
|
|
+ type: 'post',
|
|
|
+ data: data,
|
|
|
+ dataTye: 'json',
|
|
|
+ success: function(response) {
|
|
|
+ if (response.err === 0) {
|
|
|
+ window.location.href = response.url;
|
|
|
+ } else {
|
|
|
+ toastr.error(response.msg);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ })
|
|
|
+
|
|
|
+ $('#cancel-revise-btn').click(function () {
|
|
|
+ const data = {
|
|
|
+ cpid: parseInt('<%- ctx.change.id %>'),
|
|
|
+ };
|
|
|
+ $.ajax({
|
|
|
+ url: '/tender/<%- tender.id %>/change/project/cancel/revise?_csrf_j=' + csrf,
|
|
|
+ type: 'post',
|
|
|
+ data: data,
|
|
|
+ dataTye: 'json',
|
|
|
+ success: function(response) {
|
|
|
+ if (response.err === 0) {
|
|
|
+ window.location.href = response.url;
|
|
|
+ } else {
|
|
|
+ toastr.error(response.msg);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ })
|
|
|
+
|
|
|
+ <% if (ctx.change && ctx.change.cancancel) { %>
|
|
|
+ $("#cancel-shenpi-btn").click(function () {
|
|
|
+ const data = {
|
|
|
+ cpid: parseInt('<%- ctx.change.id %>'),
|
|
|
+ };
|
|
|
+ $.ajax({
|
|
|
+ url: '/tender/<%- tender.id %>/change/project/cancel/audit?_csrf_j=' + csrf,
|
|
|
+ type: 'post',
|
|
|
+ data: data,
|
|
|
+ dataTye: 'json',
|
|
|
+ success: function (response) {
|
|
|
+ if (response.err === 0) {
|
|
|
+ window.location.href = response.url;
|
|
|
+ } else {
|
|
|
+ toastr.error(response.msg);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+ <% } %>
|
|
|
</script>
|