|
@@ -238,7 +238,7 @@
|
|
<!--审批退回-->
|
|
<!--审批退回-->
|
|
<div class="modal fade" id="sp-back" data-backdrop="static">
|
|
<div class="modal fade" id="sp-back" data-backdrop="static">
|
|
<div class="modal-dialog modal-lg" role="document">
|
|
<div class="modal-dialog modal-lg" role="document">
|
|
- <form class="modal-content modal-lg" action="<%- preUrl %>/audit/check" method="post" id="audit-check1">
|
|
|
|
|
|
+ <form class="modal-content modal-lg" action="<%- preUrl %>/audit/check" method="post" id="audit-check1" >
|
|
<div class="modal-header">
|
|
<div class="modal-header">
|
|
<h5 class="modal-title">审批退回</h5>
|
|
<h5 class="modal-title">审批退回</h5>
|
|
</div>
|
|
</div>
|
|
@@ -380,15 +380,17 @@
|
|
<label>审批意见<b class="text-danger">*</b></label>
|
|
<label>审批意见<b class="text-danger">*</b></label>
|
|
<textarea class="form-control form-control-sm" name="opinion">不同意</textarea>
|
|
<textarea class="form-control form-control-sm" name="opinion">不同意</textarea>
|
|
</div>
|
|
</div>
|
|
- <div class="alert alert-warning">
|
|
|
|
|
|
+ <div id="reject-process" class="alert alert-warning">
|
|
<div class="form-check form-check-inline">
|
|
<div class="form-check form-check-inline">
|
|
- <input class="form-check-input" type="radio" name="checkType" id="inlineRadio1" value="<%- auditConst.status.checkNo %>" <% if (auditors[iA].order === 1 || auditors[iA].aid === auditors[0].aid) { %>checked<% } %>>
|
|
|
|
|
|
+ <!-- <input class="form-check-input" type="radio" name="checkType" id="inlineRadio1" value="<%- auditConst.status.checkNo %>" <% if (auditors[iA].order === 1 || auditors[iA].aid === auditors[0].aid) { %>checked<% } %>> -->
|
|
|
|
+ <input class="form-check-input" type="radio" name="checkType" id="inlineRadio1" value="<%- auditConst.status.checkNo %>">
|
|
<label class="form-check-label" for="inlineRadio1">退回原报 <%- ctx.stage.user.name %></label>
|
|
<label class="form-check-label" for="inlineRadio1">退回原报 <%- ctx.stage.user.name %></label>
|
|
</div>
|
|
</div>
|
|
<% if (auditors[iA].order > 1 && auditors[iA].aid !== auditors[0].aid) { %>
|
|
<% if (auditors[iA].order > 1 && auditors[iA].aid !== auditors[0].aid) { %>
|
|
<% const auditorIndex = ctx.stage.auditors2.findIndex(function (item) { return item.aid === auditors[iA].aid }) %>
|
|
<% const auditorIndex = ctx.stage.auditors2.findIndex(function (item) { return item.aid === auditors[iA].aid }) %>
|
|
<div class="form-check form-check-inline">
|
|
<div class="form-check form-check-inline">
|
|
- <input class="form-check-input" type="radio" name="checkType" id="inlineRadio2" value="<%- auditConst.status.checkNoPre %>" checked>
|
|
|
|
|
|
+ <input class="form-check-input" type="radio" name="checkType" id="inlineRadio2" value="<%- auditConst.status.checkNoPre %>">
|
|
|
|
+ <!-- <input class="form-check-input" type="radio" name="checkType" id="inlineRadio2" value="<%- auditConst.status.checkNoPre %>" checked> -->
|
|
<label class="form-check-label" for="inlineRadio2">退回上一审批人 <%- ctx.stage.auditors2[auditorIndex-1].name %></label>
|
|
<label class="form-check-label" for="inlineRadio2">退回上一审批人 <%- ctx.stage.auditors2[auditorIndex-1].name %></label>
|
|
</div>
|
|
</div>
|
|
<% } %>
|
|
<% } %>
|
|
@@ -1530,16 +1532,24 @@
|
|
});
|
|
});
|
|
<% } %>
|
|
<% } %>
|
|
$('#audit-check1').submit(function (e) {
|
|
$('#audit-check1').submit(function (e) {
|
|
- $(this).parent().parent().modal('hide');
|
|
|
|
|
|
+ // $(this).parent().parent().modal('hide');
|
|
const data = {
|
|
const data = {
|
|
opinion: $('[name=opinion]', this).val().replace(/\r\n/g, '<br/>').replace(/\n/g, '<br/>').replace(/\s/g, ' '),
|
|
opinion: $('[name=opinion]', this).val().replace(/\r\n/g, '<br/>').replace(/\n/g, '<br/>').replace(/\s/g, ' '),
|
|
checkType: parseInt($('[name=checkType]:checked', this).val()),
|
|
checkType: parseInt($('[name=checkType]:checked', this).val()),
|
|
};
|
|
};
|
|
- postData(this.action, data, function () {
|
|
|
|
|
|
+ if (!parseInt($('[name=checkType]:checked', this).val())) {
|
|
|
|
+ if (!$('#warning-text').length) {
|
|
|
|
+ $('#reject-process').prepend('<p id="warning-text" style="color: red; margin: 0;">请选择退回流程</p>');
|
|
|
|
+ }
|
|
|
|
+ return false;
|
|
|
|
+ } else {
|
|
|
|
+ postData(this.action, data, function () {
|
|
window.location.reload();
|
|
window.location.reload();
|
|
});
|
|
});
|
|
- $('#hide-all').hide();
|
|
|
|
- return false;
|
|
|
|
|
|
+ }
|
|
|
|
+ return false
|
|
|
|
+ // if ($('#warning-text').length) $('#warning-text').remove()
|
|
|
|
+
|
|
});
|
|
});
|
|
$('#audit-check3').submit(function (e) {
|
|
$('#audit-check3').submit(function (e) {
|
|
$(this).parent().parent().modal('hide');
|
|
$(this).parent().parent().modal('hide');
|