|
|
|
@ -121,6 +121,11 @@
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<button class="layui-btn layui-bg-orange layui-btn-sm" lay-submit lay-filter="shenhe" id="shenhe"
|
|
|
|
|
style="position: absolute;top: 15px;right: 17px;z-index: 999;" hidden><i
|
|
|
|
|
class="layui-icon layui-icon-ok">
|
|
|
|
|
</i>一键审核</button>
|
|
|
|
|
|
|
|
|
|
<table class="layui-table" id="myTable"></table>
|
|
|
|
|
|
|
|
|
|
<script type="text/html" id="table-bar">
|
|
|
|
@ -154,6 +159,12 @@
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
if ($("#statusId").val() == 0) {
|
|
|
|
|
$("#shenhe").show();
|
|
|
|
|
} else {
|
|
|
|
|
$("#shenhe").hide();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
tableRender();
|
|
|
|
|
|
|
|
|
|
function tableRender() {
|
|
|
|
@ -208,7 +219,48 @@
|
|
|
|
|
return false;
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
form.on('select(status)', function () {
|
|
|
|
|
form.on('submit(shenhe)', function () {
|
|
|
|
|
|
|
|
|
|
layer.confirm('确定一键审核吗?', {
|
|
|
|
|
icon: 3,
|
|
|
|
|
title: '提示'
|
|
|
|
|
}, function (index) {
|
|
|
|
|
layer.close(index);
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: "POST",
|
|
|
|
|
dataType: "json",
|
|
|
|
|
url: "/QingLong/zbdc/saveReport",
|
|
|
|
|
async: false,
|
|
|
|
|
success: function (result) {
|
|
|
|
|
if (data.success) {
|
|
|
|
|
layer.msg('提交审核成功!', {
|
|
|
|
|
icon: 1,
|
|
|
|
|
time: 1500
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
layer.msg(result.message, {
|
|
|
|
|
icon: 2,
|
|
|
|
|
time: 2000
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 阻止表单的默认提交行为
|
|
|
|
|
return false;
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
form.on('select(status)', function (data) {
|
|
|
|
|
|
|
|
|
|
if (data.value == 0) {
|
|
|
|
|
$("#shenhe").show();
|
|
|
|
|
} else {
|
|
|
|
|
$("#shenhe").hide();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
tableRender();
|
|
|
|
|
// 阻止表单的默认提交行为
|
|
|
|
|
return false;
|
|
|
|
@ -226,7 +278,7 @@
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|