From b7e08df5a07b3fa832a46ecc31983e16f2bccc8c Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期一, 24 七月 2023 14:56:01 +0800
Subject: [PATCH] # 出库作业,和库存明细管理 排序
---
src/main/webapp/views/report/locDetl.html | 46 +++++++++++++++++++++++++++++-----------------
1 files changed, 29 insertions(+), 17 deletions(-)
diff --git a/src/main/webapp/views/report/locDetl.html b/src/main/webapp/views/report/locDetl.html
index 01019b3..e2cf157 100644
--- a/src/main/webapp/views/report/locDetl.html
+++ b/src/main/webapp/views/report/locDetl.html
@@ -31,6 +31,32 @@
<script type="text/javascript" src="../../static/js/locMast/locMast.js" charset="utf-8"></script>
<script type="text/javascript">
var pageCur;
+ function getCol() {
+ var cols = [
+ {field: 'locNo$', align: 'center',title: '搴撲綅鍙�'},
+ {field: 'matNo', align: 'center',title: '浜у搧缂栫爜'}
+ ,{field: 'matName', align: 'center',title: '浜у搧鍚嶇О'}
+ ,{field: 'specs', align: 'center',title: '瑙勬牸'}
+ ,{field: 'qty', align: 'center',title: '鍏ュ簱鏁伴噺'}
+ ,{field: 'qtyBox', align: 'center',title: '姣忕鏁伴噺(PCS)'}
+ ,{field: 'allQty', align: 'center',title: '鎬绘暟閲�(PCS)'}
+ ,{field: 'weight', align: 'center',title: '姣忕閲嶉噺(KG)'}
+ ,{field: 'allWeight', align: 'center',title: '鎬婚噸閲�(KG)'}
+ ,{field: 'source', align: 'center',title: '鏉ユ簮'}
+ ,{field: 'vendor', align: 'center',title: '渚涘簲鍟�'}
+ ,{field: 'unit', align: 'center',title: '鍗曚綅', width:80, hide: true}
+ ,{field: 'supplier', align: 'center',title: '鎵瑰彿'}
+ ,{field: 'color', align: 'center',title: '棰滆壊'}
+ ,{field: 'zpallet', align: 'center',title: '鎵樼洏鏉$爜'}
+ // ,{field: 'bname', align: 'center',title: '搴撲綅鍚嶇О'}
+ ,{field: 'memo', align: 'center',title: '鐢熶骇鏃ユ湡'}
+ ,{field: 'str3', align: 'center',title: '瀹㈡埛鍚嶇О'}
+ ,{field: 'str4', align: 'center',title: '椤圭洰淇℃伅'}
+ ,{field: 'str5$', align: 'center',title: '绫诲埆'}
+ ];
+ // cols.push.apply(cols, detlCols);
+ return cols;
+ }
layui.use(['table','laydate', 'form'], function() {
table = layui.table;
var $ = layui.jquery;
@@ -44,26 +70,12 @@
headers: {token: localStorage.getItem('token')},
url: baseUrl+'/locDetl/list/auth',
page: true,
- limit: 5,
+ limit: 10,
skin: 'line',
where: {loc_no: parent.locNo},
even: true,
cellMinWidth: 50,
- cols: [[
- // {type: 'checkbox'}
- {field: 'locNo$', 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: 'anfme', align: 'center',title: '鏁伴噺'}
- ,{field: 'altme', align: 'center',title: '鍗曚綅'}
- ,{field: 'zpallet', align: 'center',title: '鎵樼洏鏉$爜'}
- ,{field: 'bname', align: 'center',title: '鐢ㄦ埛ID'}
- ]],
+ cols: [getCol()],
request: {
pageName: 'curr',
pageSize: 'limit'
@@ -81,7 +93,7 @@
},
done: function(res, curr, count) {
if (res.code === 403) {
- top.location.href = "/";
+ top.location.href = baseUrl+"/";
}
pageCur=curr;
form.on('checkbox(tableCheckbox)', function (data) {
--
Gitblit v1.9.1