From 1b13c69e4e2bb00bea4e90232a78715d49f1e24f Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@63.com> Date: 星期五, 01 四月 2022 13:38:14 +0800 Subject: [PATCH] # --- src/main/webapp/static/js/pakStore/stockAdjust.js | 36 ++++++++++++++++++++---------------- 1 files changed, 20 insertions(+), 16 deletions(-) diff --git a/src/main/webapp/static/js/pakStore/stockAdjust.js b/src/main/webapp/static/js/pakStore/stockAdjust.js index 2275614..27412cd 100644 --- a/src/main/webapp/static/js/pakStore/stockAdjust.js +++ b/src/main/webapp/static/js/pakStore/stockAdjust.js @@ -2,6 +2,17 @@ var initAnfmeVal = "-"; var matCodeData = []; var currLocNo; +function getCol() { + var cols = [ + {fixed: 'left', field: 'count', title: '瀹為檯鏁伴噺', align: 'center', edit:'text', width: 120, style:'color: blue;font-weight: bold'} + ,{field: 'anfme', align: 'center',title: '鏁伴噺'} + ]; + arrRemove(detlCols, "field", "anfme") + cols.push.apply(cols, detlCols); + cols.push({fixed: 'right', title:'鎿嶄綔', align: 'center', toolbar: '#operate', width:80}) + return cols; +} + layui.use(['table','laydate', 'form'], function() { var table = layui.table; var $ = layui.jquery; @@ -16,21 +27,7 @@ limit: 500, cellMinWidth: 50, toolbar: '#toolbar', - cols: [[ - {fixed: 'left', field: 'count', title: '瀹為檯鏁伴噺', align: 'center', edit:'text', width: 120, style:'color: blue;font-weight: bold'} - ,{field: 'anfme', align: 'center',title: '鏁伴噺'} - ,{field: 'matnr', align: 'center',title: '鐗╂枡'} - ,{field: 'lgnum', align: 'center',title: '浠撳簱鍙�'} - ,{field: 'tbnum', align: 'center',title: '杞偍璇锋眰缂栧彿'} - // ,{field: 'tbpos', align: 'center',title: '琛岄」鐩�'} - ,{field: 'zmatid', align: 'center',title: '鐗╂枡鏍囩ID'} - ,{field: 'maktx', align: 'center',title: '鐗╂枡鎻忚堪'} - ,{field: 'werks', align: 'center',title: '宸ュ巶'} - ,{field: 'altme', align: 'center',title: '鍗曚綅'} - ,{field: 'zpallet', align: 'center',title: '鎵樼洏鏉$爜'} - ,{field: 'bname', align: 'center',title: '鐢ㄦ埛ID'} - ,{fixed: 'right', title:'鎿嶄綔', align: 'center', toolbar: '#operate', width:80} - ]], + cols: [getCol()], done: function (res, curr, count) { limit(); } @@ -157,7 +154,7 @@ let data = res.data; if (data != null) { $(".retrieve").show(); - $("#locMsg").html(locNo + " ,搴撲綅鐘舵�侊細" + data.locType$); + $("#locMsg").html(locNo + " ,搴撲綅鐘舵�侊細" + data.locSts$); $('.not-retrieve').hide(); currLocNo = locNo; } else { @@ -243,7 +240,14 @@ removeBtn: true, matnr: data[i].matNo, maktx: data[i].matName, + lgnum: data[i].str2, + type: data[i].str5, + color: data[i].barcode, + supplier: data[i].str6, + warehouse: data[i].str7, + brand: data[i].str3, altme: data[i].str1, + bname: data[i].str4, }) } } -- Gitblit v1.9.1