|
@@ -2905,8 +2905,59 @@ $(document).ready(() => {
|
|
|
$('[name=stage-start]').submit(function (e) {
|
|
|
if (checkAuditorFrom()) {
|
|
|
$(this).parent().parent().parent().modal('hide');
|
|
|
- const formData = new FormData();
|
|
|
- dataChecker.checkAndPost(this.action, formData);
|
|
|
+ dataChecker.checkAndPost(this.action, {});
|
|
|
+ $('#hide-all').hide();
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ });
|
|
|
+ $('#audit-check0').submit(function (e) {
|
|
|
+ if (auditCheck(0)) {
|
|
|
+ $(this).parent().parent().modal('hide');
|
|
|
+ const data = {
|
|
|
+ opinion: $('[name=opinion]', this).val(),
|
|
|
+ checkType: parseInt($('[name=checkType]', this).val()),
|
|
|
+ };
|
|
|
+ dataChecker.checkAndPost(this.action, data);
|
|
|
+ $('#hide-all').hide();
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ });
|
|
|
+ $('#audit-check1').submit(function (e) {
|
|
|
+ if (auditCheck(1)) {
|
|
|
+ $(this).parent().parent().modal('hide');
|
|
|
+ const data = {
|
|
|
+ opinion: $('[name=opinion]', this).val(),
|
|
|
+ checkType: parseInt($('[name=checkType]:checked', this).val()),
|
|
|
+ };
|
|
|
+ postData(this.action, data, function () {
|
|
|
+ window.location.reload();
|
|
|
+ });
|
|
|
+ $('#hide-all').hide();
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ });
|
|
|
+ $('#audit-check2').submit(function (e) {
|
|
|
+ if (auditCheck(2)) {
|
|
|
+ $(this).parent().parent().modal('hide');
|
|
|
+ const data = {
|
|
|
+ opinion: $('[name=opinion]', this).val(),
|
|
|
+ checkType: parseInt($('[name=checkType]', this).val()),
|
|
|
+ };
|
|
|
+ dataChecker.checkAndPost(this.action, data);
|
|
|
+ $('#hide-all').hide();
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ });
|
|
|
+ $('#audit-check3').submit(function (e) {
|
|
|
+ if (auditCheck(3)) {
|
|
|
+ $(this).parent().parent().modal('hide');
|
|
|
+ const data = {
|
|
|
+ opinion: $('[name=opinion]', this).val(),
|
|
|
+ checkType: parseInt($('[name=checkType]:checked', this).val()),
|
|
|
+ };
|
|
|
+ postData(this.action, data, function () {
|
|
|
+ window.location.reload();
|
|
|
+ });
|
|
|
$('#hide-all').hide();
|
|
|
}
|
|
|
return false;
|