From ae674442480bf1126dbfa430b246cd9a706666cc Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期五, 28 四月 2023 13:11:06 +0800
Subject: [PATCH] 商品档案数据导出和新商品编号同步
---
src/main/webapp/static/js/checkRecord/checkRecord.js | 33 ++++++++++++++++++++++++++++++---
1 files changed, 30 insertions(+), 3 deletions(-)
diff --git a/src/main/webapp/static/js/checkRecord/checkRecord.js b/src/main/webapp/static/js/checkRecord/checkRecord.js
index 9e16000..bd32afd 100644
--- a/src/main/webapp/static/js/checkRecord/checkRecord.js
+++ b/src/main/webapp/static/js/checkRecord/checkRecord.js
@@ -21,8 +21,8 @@
cellMinWidth: 50,
height: 'full-120',
cols: [[
- {type: 'checkbox'}
- ,{field: 'locNo', align: 'center',title: '搴撲綅鍙�'}
+ //{type: 'checkbox'}
+ {field: 'locNo', align: 'center',title: '搴撲綅鍙�'}
,{field: 'barcode', align: 'center',title: '鎵樼洏鐮�'}
,{field: 'matnr', align: 'center',title: '鐗╂枡浠g爜'}
,{field: 'maktx', align: 'center',title: '鐗╂枡鍚嶇О'}
@@ -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