From 4f4559efbe2d2f20f2c37d8582b74f0a558a54c7 Mon Sep 17 00:00:00 2001 From: whycq <you@example.com> Date: 星期一, 30 一月 2023 22:10:51 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/bfasrs' into bfasrs --- src/main/webapp/static/js/checkRecord/checkRecord.js | 29 ++++++++++++++++++++++++++++- 1 files changed, 28 insertions(+), 1 deletions(-) diff --git a/src/main/webapp/static/js/checkRecord/checkRecord.js b/src/main/webapp/static/js/checkRecord/checkRecord.js index 6eecd85..bd32afd 100644 --- a/src/main/webapp/static/js/checkRecord/checkRecord.js +++ b/src/main/webapp/static/js/checkRecord/checkRecord.js @@ -31,7 +31,8 @@ ,{field: 'anfme', align: 'center',title: '鐩樼偣鍓嶆暟閲�'} ,{field: 'confirmQty', align: 'center',title: '鐩樼偣纭閲�'} ,{field: 'adjQty$', align: 'center',title: '鐩樼偣宸紓閲�'} - ,{field: 'createTime$', align: 'center',title: '璁板綍鏃堕棿'} + ,{field: 'createTime$', align: 'center',title: '璁板綍鏃堕棿', width: 180} + ,{field: 'type', align: 'center',title: '璐㈠姟瀹℃牳', templet: '#statusTpl', width: 100} ,{fixed: 'right', title:'鎿嶄綔', align: 'center', toolbar: '#operate', width:120} ]], request: { @@ -139,6 +140,32 @@ case "del": del([data.locNo]); break; + case "auditing": + layer.confirm('纭畾瀹℃牳閫氳繃锛�', { + skin: 'layui-layer-admin', + shade: .1 + }, function (i) { + layer.close(i); + var loadIndex = layer.load(2); + $.ajax({ + url: baseUrl+"/checkRecord/auditing/auth", + headers: {'token': localStorage.getItem('token')}, + data: {id: data.id}, + method: 'POST', + success: function (res) { + layer.close(loadIndex); + if (res.code === 200){ + layer.msg(res.msg, {icon: 1}); + tableReload(); + } else if (res.code === 403){ + top.location.href = baseUrl+"/"; + } else { + layer.msg(res.msg, {icon: 2}); + } + } + }) + }); + break } }); -- Gitblit v1.9.1