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 ++++++++++++++++++++++++++++++++++++++++++++++---
src/main/webapp/views/pakStore/stockAdjust.html | 7 +++----
2 files changed, 49 insertions(+), 7 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){
+ }
+ });
+}
diff --git a/src/main/webapp/views/pakStore/stockAdjust.html b/src/main/webapp/views/pakStore/stockAdjust.html
index 852afe0..6edc9fb 100644
--- a/src/main/webapp/views/pakStore/stockAdjust.html
+++ b/src/main/webapp/views/pakStore/stockAdjust.html
@@ -45,7 +45,7 @@
/* add */
.function-area {
- padding: 15px 0px 20px 40px;
+ padding: 15px 0 20px 40px;
}
.function-btn {
font-size: 16px;
@@ -66,10 +66,9 @@
color: #fff;
}
-
</style>
</head>
-<body>
+<body style="padding-bottom: 30px">
<!-- 鎼滅储鏍� -->
<div id="search-box" class="layui-form layui-card-header">
@@ -80,7 +79,7 @@
</div>
<!-- 寰呮坊鍔� -->
<div id="data-search-btn" class="layui-btn-container layui-form-item" style="display: inline-block">
- <button id="search" class="layui-btn layui-btn-primary layui-btn-radius" lay-submit lay-filter="search">鎼滅储</button>
+ <button id="search" class="layui-btn layui-btn-primary layui-btn-radius" lay-submit lay-filter="search">妫�绱�</button>
<button id="reset" class="layui-btn layui-btn-primary layui-btn-radius" lay-submit lay-filter="reset">閲嶇疆</button>
</div>
</div>
--
Gitblit v1.9.1