From 64dbf42de49ecc047f2fce08eba71e18401324d8 Mon Sep 17 00:00:00 2001
From: pang.jiabao <pang_jiabao@163.com>
Date: 星期三, 28 二月 2024 16:27:27 +0800
Subject: [PATCH] 新增库存明细重量统计,完善出入库日志记录
---
src/main/webapp/static/js/picking/picking.js | 40 ++++++++++++++++++++++++++++++++++++++--
1 files changed, 38 insertions(+), 2 deletions(-)
diff --git a/src/main/webapp/static/js/picking/picking.js b/src/main/webapp/static/js/picking/picking.js
index 2f1f451..353249b 100644
--- a/src/main/webapp/static/js/picking/picking.js
+++ b/src/main/webapp/static/js/picking/picking.js
@@ -31,7 +31,7 @@
,{align: 'center', title: '浜岀淮鐮�', toolbar: '#operate', width: 200 , hide:true}
,{align: 'center', title: '鏄庣粏', toolbar: '#tbLook', minWidth: 160, width: 160}
,{field: 'status$', align: 'center',title: '鐘舵��'}
- // ,{field: 'custName', align: 'center',title: '瀹㈡埛鍚嶇О', width: 160}
+ ,{field: 'custName', align: 'center',title: '瀹㈡埛鍚嶇О', width: 160}
,{field: 'createTime$', align: 'center',title: '鎿嶄綔鏃堕棿'}
,{align: 'center', title: '鎿嶄綔', toolbar: '#operate'}
@@ -127,7 +127,7 @@
cellMinWidth: 100,
cols: [[
{type: 'numbers'}
- ,{field: 'id', align: 'center',title: 'id', hide:true}
+ ,{field: 'wrkNo', align: 'center',title: 'id', hide:true}
,{field: 'docNum', align: 'center',title: '鎷h揣鍗曞彿'}
,{field: 'uuid', align: 'center',title: 'uuid'}
,{field: 'locNo', align: 'center',title: '搴撲綅'}
@@ -141,6 +141,7 @@
,{field: 'status$', align: 'center',title: '鐘舵��'}
,{field: 'memo', align: 'center',title: '澶囨敞'}
,{field: 'createBy', align: 'center',title: '', hide:true}
+ ,{align: 'center', title: '鎿嶄綔', toolbar: '#operateDetl'}
]],
request: {
pageName: 'curr',
@@ -177,6 +178,41 @@
}
});
+ table.on('tool(lookSSXMTable)', function(obj) {
+ var data = obj.data;
+ console.log(data);
+ switch (obj.event) {
+ case "delDetl":
+ layer.confirm('纭畾瑕佸垹闄ゅ悧锛�', {
+ shade: .1,
+ skin: 'layui-layer-admin'
+ }, function (i) {
+ layer.close(i);
+ layer.load(2);
+ $.ajax({
+ url: baseUrl+"/pakout/deleteDetl/auth",
+ headers: {'token': localStorage.getItem('token')},
+ data:{
+ wrkNo:data.wrkNo
+ },
+ method: 'GET',
+ success: function (res) {
+ layer.closeAll('loading');
+ if (res.code === 200){
+ tableIns.reload({page: {curr: 1}});
+ layer.msg(res.msg, {icon: 1});
+ } else if (res.code === 403){
+ top.location.href = baseUrl+"/";
+ }else {
+ layer.msg(res.msg, {icon: 2});
+ }
+ }
+ })
+ })
+ break;
+ }
+ })
+
// 鎼滅储
form.on('submit(search)', function (data) {
pageCurr = 1;
--
Gitblit v1.9.1