|
@@ -692,26 +692,56 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<% if (auditStatus === 4 && ctx.session.sessionUser.accountId === auditList[auditList.length-1].uid && stageChangeNum === 0) { %>
|
|
<% if (auditStatus === 4 && ctx.session.sessionUser.accountId === auditList[auditList.length-1].uid && stageChangeNum === 0) { %>
|
|
-<!--重新审批-->
|
|
|
|
|
|
+<% if (!authMobile) { %>
|
|
|
|
+ <!--终审重新审批-->
|
|
|
|
+ <div class="modal fade" id="sp-down-back" 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-back" data-backdrop="static">
|
|
<div class="modal fade" id="sp-down-back" data-backdrop="static">
|
|
<div class="modal-dialog" role="document">
|
|
<div class="modal-dialog" role="document">
|
|
- <form class="modal-content" method="post" action="/tender/<%- tender.id %>/change/check/again">
|
|
|
|
|
|
+ <form id="againForm" class="modal-content" method="post" action="/tender/<%- tender.id %>/change/check/again" onsubmit="return false;">
|
|
<div class="modal-header">
|
|
<div class="modal-header">
|
|
<h5 class="modal-title">重新审批</h5>
|
|
<h5 class="modal-title">重新审批</h5>
|
|
</div>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="modal-body">
|
|
<h5>确认由「终审-<%= auditList[auditList.length-1].name %>」重新审批「<%= change.code %>」?</h5>
|
|
<h5>确认由「终审-<%= auditList[auditList.length-1].name %>」重新审批「<%= change.code %>」?</h5>
|
|
|
|
+ <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>
|
|
<div class="modal-footer">
|
|
<div class="modal-footer">
|
|
<input type="hidden" name="cid" value="<%= change.cid %>">
|
|
<input type="hidden" name="cid" value="<%= change.cid %>">
|
|
<input type="hidden" name="_csrf" value="<%= ctx.csrf %>" />
|
|
<input type="hidden" name="_csrf" value="<%= ctx.csrf %>" />
|
|
<button type="button" class="btn btn-secondary btn-sm" data-dismiss="modal">关闭</button>
|
|
<button type="button" class="btn btn-secondary btn-sm" data-dismiss="modal">关闭</button>
|
|
- <button type="submit" class="btn btn-warning btn-sm">确定重审</button>
|
|
|
|
|
|
+ <button type="button" id="re-shenpi-btn" class="btn btn-warning btn-sm" disabled>确定重审</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<% } %>
|
|
<% } %>
|
|
|
|
+<% } %>
|
|
|
|
|
|
<div class="modal fade" id="warning-ledger" data-backdrop="static">
|
|
<div class="modal fade" id="warning-ledger" data-backdrop="static">
|
|
<div class="modal-dialog" role="document">
|
|
<div class="modal-dialog" role="document">
|
|
@@ -728,7 +758,10 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
|
|
+<script type="text/javascript">
|
|
|
|
+ const csrf = '<%= ctx.csrf %>';
|
|
|
|
+ const authMobile = '<%= authMobile %>';
|
|
|
|
+</script>
|
|
<script>
|
|
<script>
|
|
$('.sp-location-list').on('shown.bs.modal', function () {
|
|
$('.sp-location-list').on('shown.bs.modal', function () {
|
|
const height = $(this)[0].scrollHeight;
|
|
const height = $(this)[0].scrollHeight;
|
|
@@ -754,4 +787,29 @@
|
|
$('#led-warning').click(function () {
|
|
$('#led-warning').click(function () {
|
|
$('#warning-ledger').modal('hide');
|
|
$('#warning-ledger').modal('hide');
|
|
});
|
|
});
|
|
|
|
+
|
|
|
|
+ $('#re-shenpi-btn').click(function () {
|
|
|
|
+ const code = $("#againForm input[name='code']").val();
|
|
|
|
+ if ($(this).hasClass('disabled')) {
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ if (code.length < 6) {
|
|
|
|
+ // alert('请填写正确的验证码');
|
|
|
|
+ toast('请填写正确的验证码', 'error');
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ $.ajax({
|
|
|
|
+ url: '/tender/<%- tender.id %>/change/check/again?_csrf=' + csrf,
|
|
|
|
+ type: 'post',
|
|
|
|
+ data: { code: code, cid: '<%- change.cid %>' },
|
|
|
|
+ dataTye: 'json',
|
|
|
|
+ success: function(response) {
|
|
|
|
+ if (response.err === 0) {
|
|
|
|
+ window.location.href = response.url;
|
|
|
|
+ } else {
|
|
|
|
+ toast(response.msg, 'error');
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ })
|
|
</script>
|
|
</script>
|