From 34acfaaef92fd79771ae5c9c3c2f1a9d8204525b Mon Sep 17 00:00:00 2001 From: zyx <zyx123456> Date: 星期四, 18 一月 2024 00:26:23 +0800 Subject: [PATCH] # 增加调拨、库存冻结、删除单个拣货信息功能 --- src/main/webapp/static/js/picking/picking.js | 38 +++++++++++++++++++++++++++++++++++++- 1 files changed, 37 insertions(+), 1 deletions(-) diff --git a/src/main/webapp/static/js/picking/picking.js b/src/main/webapp/static/js/picking/picking.js index 2f1f451..76a4937 100644 --- a/src/main/webapp/static/js/picking/picking.js +++ b/src/main/webapp/static/js/picking/picking.js @@ -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