|
@@ -263,7 +263,7 @@
|
|
|
<!--审批通过-->
|
|
|
<div class="modal fade sp-location-list" id="sp-done" data-backdrop="static">
|
|
|
<div class="modal-dialog modal-lg" role="document">
|
|
|
- <form class="modal-content" action="<%- preUrl %>/audit/check" method="post" onsubmit="return auditCheck(0);">
|
|
|
+ <form class="modal-content" action="<%- preUrl %>/audit/check" method="post" id="audit-check0">
|
|
|
<div class="modal-header">
|
|
|
<h5 class="modal-title">审批通过</h5>
|
|
|
</div>
|
|
@@ -988,6 +988,31 @@
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
+ $('#audit-check0').submit(function (e) {
|
|
|
+ if (auditCheck(0)) {
|
|
|
+ const data = {
|
|
|
+ opinion: $('[name=opinion]', this).val(),
|
|
|
+ checkType: parseInt($('[name=checkType]', this).val()),
|
|
|
+ };
|
|
|
+ postData(this.action, data, function () {
|
|
|
+ window.location.reload();
|
|
|
+ });
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ });
|
|
|
+ $('#audit-check1').submit(function (e) {
|
|
|
+ if (auditCheck(1)) {
|
|
|
+ const data = {
|
|
|
+ opinion: $('[name=opinion]', this).val(),
|
|
|
+ checkType: parseInt($('[name=checkType]:checked', this).val()),
|
|
|
+ };
|
|
|
+ postData(this.action, data, function () {
|
|
|
+ window.location.reload();
|
|
|
+ });
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ });
|
|
|
+
|
|
|
// 展开历史审核记录
|
|
|
$('.modal-body #fold-btn').click(function () {
|
|
|
const type = $(this).data('target')
|