From 2e82ef6fd6dfbcb1eb88a8d4b705eae7fb99065b Mon Sep 17 00:00:00 2001 From: zhang <zc857179121@qq.com> Date: 星期五, 06 六月 2025 17:04:11 +0800 Subject: [PATCH] 123 --- src/main/webapp/static/js/pakStore/locCheckOut.js | 27 +++++++++++++++++++++++++++ 1 files changed, 27 insertions(+), 0 deletions(-) diff --git a/src/main/webapp/static/js/pakStore/locCheckOut.js b/src/main/webapp/static/js/pakStore/locCheckOut.js index d2e5b58..061aca1 100644 --- a/src/main/webapp/static/js/pakStore/locCheckOut.js +++ b/src/main/webapp/static/js/pakStore/locCheckOut.js @@ -32,6 +32,7 @@ tableMerge.render(this); limit(); getOutBound(); + getCheckOrder(); } }); @@ -43,12 +44,14 @@ layer.msg('璇峰厛娣诲姞鐩樼偣搴撳瓨', {icon: 2}); } else { var staNo = $("#staNoSelect").val(); + var checkId = $("#checkIdSelect").val(); if (staNo === "" || staNo === null){ layer.msg("璇烽�夋嫨鐩樼偣绔�", {icon: 2}); return; } let param = { outSite: staNo, + checkId: checkId, locDetls: locDetlData } $.ajax({ @@ -97,6 +100,30 @@ }) } + + // 鑾峰彇鐩樼偣鍗� + function getCheckOrder(){ + $.ajax({ + url: baseUrl+"/inventoryCheckOrder/nav/auth", + headers: {'token': localStorage.getItem('token')}, + method: 'POST', + async: false, + success: function (res) { + if (res.code === 200){ + var tpl = $("#takeCheckSelectTemplate").html(); + var template = Handlebars.compile(tpl); + var html = template(res); + $('#checkIdSelect').append(html); + form.render('select'); + } else if (res.code === 403){ + top.location.href = baseUrl+"/"; + }else { + layer.msg(res.msg) + } + } + }) + } + $(document).on('click','#mat-query', function () { let loadIndex = layer.msg('璇锋眰涓�...', {icon: 16, shade: 0.01, time: false}); locDetlLayerIdx = layer.open({ -- Gitblit v1.9.1