From 43dedc49e7eeac425ccfe508f51cc1f1b05f4141 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期四, 18 六月 2020 11:13:33 +0800
Subject: [PATCH] #

---
 src/main/webapp/static/js/pakStore/stockAdjust.js |   49 ++++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 46 insertions(+), 3 deletions(-)

diff --git a/src/main/webapp/static/js/pakStore/stockAdjust.js b/src/main/webapp/static/js/pakStore/stockAdjust.js
index 86ed038..dfdb21d 100644
--- a/src/main/webapp/static/js/pakStore/stockAdjust.js
+++ b/src/main/webapp/static/js/pakStore/stockAdjust.js
@@ -1,4 +1,5 @@
-var pageCurr;
+var initCountVal = 0;
+var matCodeData = [];
 layui.use(['table','laydate', 'form'], function() {
     var table = layui.table;
     var $ = layui.jquery;
@@ -14,7 +15,7 @@
         cellMinWidth: 50,
         toolbar: '#toolbar',
         cols: [[
-            {fixed: 'left', field: 'count', title: '鏁伴噺(蹇呭~)', align: 'center', edit:'text', width: 120,  style:'color: blue;font-weight: bold'},
+            {fixed: 'left', field: 'count', title: '瀹為檯鏁伴噺', align: 'center', edit:'text', width: 120,  style:'color: blue;font-weight: bold'},
             {field: 'matNo', align: 'center', title: '鐗╂枡缂栫爜'},
             {field: 'barcode', align: 'center', title: '鏉$爜'},
             {field: 'matName', align: 'center', title: '鐗╂枡鍚嶇О'},
@@ -27,4 +28,46 @@
         }
     });
 
-})
\ No newline at end of file
+    // 妫�绱簨浠�
+    form.on('submit(search)', function (data) {
+        http.post(baseUrl + "/locDetl/list/auth", {loc_no: data.field.loc_no,limit: 1000}, function (res) {
+            matCodeData = [];
+            let data = res.data.records;
+            for (var i = 0; i<data.length; i++) {
+                matCodeData.push({
+                    matNo: data[i].matnr,
+                    matName: data[i].maktx,
+                    count: 0,
+                })
+            }
+            tableReload();
+            console.log(matCodeData);
+        })
+    });
+
+    // 閲嶇疆浜嬩欢
+    form.on('submit(reset)', function (data) {
+
+    });
+
+    function tableReload() {
+        tableIns.reload({data: matCodeData,done:function (res) {
+                limit();
+            }});
+    }
+})
+
+// 鎻愬彇鐗╂枡
+var matCodeLayerIdx;
+function getMat() {
+    matCodeLayerIdx = layer.open({
+        type: 2,
+        title: '鎻愬彇鐗╂枡',
+        maxmin: true,
+        area: [top.detailWidth, top.detailHeight],
+        shadeClose: true,
+        content: 'matQuery.html',
+        success: function(layero, index){
+        }
+    });
+}

--
Gitblit v1.9.1