From b4a8d50e3d97fc9e893b554a60134e4eceb012eb Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期一, 05 一月 2026 08:58:08 +0800
Subject: [PATCH] #

---
 src/main/webapp/static/js/locNormal/locNormal.js |   67 +++++++++++++++++++++++++++++++++
 1 files changed, 67 insertions(+), 0 deletions(-)

diff --git a/src/main/webapp/static/js/locNormal/locNormal.js b/src/main/webapp/static/js/locNormal/locNormal.js
index 4aba517..6746562 100644
--- a/src/main/webapp/static/js/locNormal/locNormal.js
+++ b/src/main/webapp/static/js/locNormal/locNormal.js
@@ -5,12 +5,14 @@
 function getCol() {
     var cols = [];
     cols.push(
+        {type: 'checkbox', fixed: 'left'},
         {field: 'anfme', align: 'center', title: '鏁伴噺', sort: true, edit: 'text'}
     )
     cols.push.apply(cols, locNormalCols);
     cols.push(
         {field: 'warehouse$', align: 'center', title: '搴撳尯'}
         , {field: 'state$', align: 'center', title: '鍑哄叆搴撶姸鎬�', templet: '#locNormalState'}
+        ,{field: 'matStatus', align: 'center',title: '鐗╂枡鐘舵��', width: 100, templet: '#matStatus'}
         , {field: 'modiUser$', align: 'center', title: '淇敼浜哄憳', hide: true}
         , {field: 'modiTime$', align: 'center', title: '淇敼鏃堕棿', hide: true}
         , {field: 'appeTime$', align: 'center', title: '鍒涘缓鏃堕棿', hide: true}
@@ -178,6 +180,7 @@
             statusCode: 200
         },
         done: function (res, curr, count) {
+            console.log(res);
             if (res.code === 403) {
                 top.location.href = baseUrl + "/";
             }
@@ -288,6 +291,12 @@
         }
         switch (obj.event) {
             case 'outLocNormal':
+                var warehourse = data.warehouse;
+                if(warehourse !== 'cs'){
+                    layer.msg("鍙兘鍑烘潗鏂欏钩浠�");
+                    return;
+                }
+
                 layer.confirm('纭畾瑕佸嚭搴揫' + data.matnr + ']鍚楋紵', {
                     btn: ['纭畾', '鍙栨秷'] //鍙互鏃犻檺涓寜閽�
                 }, function (index, layero) {
@@ -389,4 +398,62 @@
     });
 }
 
+var matStatusConfirm;
+function showMatStatus1() {
+    var layer = layui.layer;
+    var table = layui.table;
+    // 鑾峰彇閫変腑琛�
+    var checkStatus = table.checkStatus('locNormal');
+    // 閫夋嫨琛屾暟鎹�
+    var checkData = checkStatus.data;
+    if (checkData.length == 0) {
+        layer.msg("璇烽�夋嫨鏁版嵁");
+        return;
+    }
+    matStatusConfirm = layer.open({
+        type: 2,
+        title: '閫夋嫨鐗╂枡鐘舵��',
+        area: ['300px', '175px'],
+        content: '../pakStore/matStatus.html',
+        btn: ['纭畾'],
+        success: function (layero, index) {
+            // 鎴愬姛鎵撳紑寮圭獥
+            // tableReload(false);
+        },
+        yes: function (index, layero) {
+            // 瀛愰〉闈�
+            var matStatus = layero.find('iframe')[0].contentDocument;
+            // 瀛愰〉闈㈤�夋嫨鏁版嵁鐩戞帶
+            var forms = matStatus.forms;
+            var cho = forms[0][0].value;
+            // 鍏ュ弬鎷兼帴
+            if (checkData && checkData.length > 0) {
+                checkData.map(function (item) {
+                    item.matStatus = cho;
+                });
+            }
+            param = {
+                list: checkData,
+            };
+            // 鏇存柊鐗╂枡鐘舵��
+            console.log('閫夋嫨鏁版嵁', checkData);
+            $.ajax({
+                url: baseUrl+"/locNormal/getAllLocDetlData",
+                headers: {'token': localStorage.getItem('token')},
+                data: JSON.stringify(param),
+                dataType:'json',
+                contentType:'application/json;charset=UTF-8',
+                method: 'POST',
+                success: function (res) {
+                    console.log('杩斿洖鍊�', res);
+                    // 鍏抽棴寮圭獥
+                    layer.close(index);
+                    // 琛ㄦ牸鏁版嵁閲嶇疆
+                    tableReload(false);
+                }
+            });
+        }
+    });
+}
+
 

--
Gitblit v1.9.1