From d52b5d11199cc6b7cec42deb82c831a4ed15a3b4 Mon Sep 17 00:00:00 2001 From: zyx <zyx123456> Date: 星期五, 31 五月 2024 14:56:58 +0800 Subject: [PATCH] 仓库: 显示在库信息,入库完成后显示成功入库的包数 订单出库页面显示剩余待检包数 (PDA) 未查询到的提示改为显示物料实际状态 拣货单已完成,单据未完成 ✔ 单据数量字段显示变更 ✔ 拣货单按实际操作时间降序排序 ✔ 拣货单明细导出 ✔ 拣货单显示创建时间与操作时间 ✔ --- src/main/webapp/static/js/role/rolePower.js | 38 +++++++++++++++++++++----------------- 1 files changed, 21 insertions(+), 17 deletions(-) diff --git a/src/main/webapp/static/js/role/rolePower.js b/src/main/webapp/static/js/role/rolePower.js index 170ecb0..212e2ba 100644 --- a/src/main/webapp/static/js/role/rolePower.js +++ b/src/main/webapp/static/js/role/rolePower.js @@ -13,23 +13,27 @@ isJump: true }); - $.ajax({ - url: baseUrl+"/power/"+parent.roleId+"/auth", - headers: {'token': localStorage.getItem('token')}, - method: 'GET', - async: false, - beforeSend: function () { - }, - success: function (res) { - if (res.code === 200){ - tree.setChecked('powerTree', res.data); - } else if (res.code === 403){ - top.location.href = baseUrl+"/"; - } else { - layer.msg(res.msg) + loadPower(); + function loadPower(){ + $.ajax({ + url: baseUrl+"/power/"+parent.roleId+"/auth", + headers: {'token': localStorage.getItem('token')}, + method: 'GET', + beforeSend: function () { + layer.load(1, {shade: [0.1,'#fff']}); + }, + success: function (res) { + if (res.code === 200){ + tree.setChecked('powerTree', res.data); + } else if (res.code === 403){ + top.location.href = baseUrl+"/"; + } else { + layer.msg(res.msg) + } + layer.closeAll("loading"); } - } - }); + }); + } // 鏁版嵁淇敼鍔ㄤ綔 form.on('submit(save)', function () { @@ -49,7 +53,6 @@ param.push(one); }) }); - // console.log(JSON.stringify(param)); $.ajax({ url: baseUrl+"/power/auth", traditional: true, @@ -62,6 +65,7 @@ success: function (res) { if (res.code === 200){ parent.layer.closeAll(); + parent.layer.msg(res.msg); } else if (res.code === 403){ top.location.href = baseUrl+"/"; } else { -- Gitblit v1.9.1