From 6f01b51fc0770fda7787076caf0314be7a7f6656 Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期五, 27 六月 2025 10:58:21 +0800
Subject: [PATCH] #

---
 src/main/webapp/static/js/pakStore/locCheckOut.js |   28 ++++++++++++++++++++++++++++
 1 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/src/main/webapp/static/js/pakStore/locCheckOut.js b/src/main/webapp/static/js/pakStore/locCheckOut.js
index 0649af5..061aca1 100644
--- a/src/main/webapp/static/js/pakStore/locCheckOut.js
+++ b/src/main/webapp/static/js/pakStore/locCheckOut.js
@@ -1,5 +1,6 @@
 var locDetlLayerIdx;
 var tableIns;
+var locDetlData = [];
 function getCol() {
     var cols = [
         {field: 'locNo', align: 'center',title: '搴撲綅鍙�', merge: true, style: 'font-weight: bold'}
@@ -31,6 +32,7 @@
             tableMerge.render(this);
             limit();
             getOutBound();
+            getCheckOrder();
         }
     });
 
@@ -42,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({
@@ -96,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