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/static/js/pakStore/locCheckOut.js | 44 +++++++++++++++++++++-----------------------
1 files changed, 21 insertions(+), 23 deletions(-)
diff --git a/src/main/webapp/static/js/pakStore/locCheckOut.js b/src/main/webapp/static/js/pakStore/locCheckOut.js
index 9c7a8a2..456139c 100644
--- a/src/main/webapp/static/js/pakStore/locCheckOut.js
+++ b/src/main/webapp/static/js/pakStore/locCheckOut.js
@@ -1,4 +1,13 @@
var pageCurr;
+var tableIns;
+function getCol() {
+ var cols = [
+ {field: 'locNo$', align: 'center',title: '搴撲綅鍙�'}
+ ];
+ cols.push.apply(cols, detlCols);
+ return cols;
+}
+
layui.use(['table','laydate', 'form'], function() {
var table = layui.table;
var $ = layui.jquery;
@@ -13,22 +22,7 @@
even: true,
toolbar: '#toolbar',
cellMinWidth: 50,
- cols: [[
- // {field: 'count', align: 'center',title: '鍑哄簱鏁伴噺', edit:'text', width: 130, style:'color: blue;font-weight: bold'} // todo
- ,{field: 'anfme', align: 'center',title: '鍘熸暟閲�'}
- ,{field: 'locNo$', align: 'center',title: '搴撲綅鍙�'}
- ,{field: 'matnr', align: 'center',title: '鐗╂枡'}
- // ,{field: 'lgnum', align: 'center',title: '浠撳簱鍙�', width:80}
- // ,{field: 'tbnum', align: 'center',title: '杞偍璇锋眰缂栧彿'}
- // ,{field: 'tbpos', align: 'center',title: '琛岄」鐩�'}
- // ,{field: 'zmatid', align: 'center',title: '鐗╂枡鏍囩ID', width:200}
- ,{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} // todo
- ]],
+ cols: [getCol()],
done: function(res, curr, count) {
limit();
getOutBound();
@@ -37,7 +31,8 @@
// 椤甸潰淇敼
table.on('edit(chooseData)', function (obj) {
- updateLocDetlData(obj.data.locNo, obj.data.matnr, Number(obj.value));
+
+ updateLocDetlData(obj.data.locNo, obj.data.billNo,obj.data.matNo, obj.data.qty, Number(obj.value));
});
// 鐩戝惉澶村伐鍏锋爮浜嬩欢
@@ -46,7 +41,8 @@
switch (obj.event) {
case 'outbound':
if (data.length === 0){
- layer.msg('璇峰厛娣诲姞搴撲綅鐗╂枡');
+
+ // layer.msg('璇峰厛娣诲姞搴撲綅浜у搧');
} else {
var staNo = $("#staNoSelect").val();
if (staNo === "" || staNo === null){
@@ -55,12 +51,14 @@
}
var locDetls = [];
data.forEach(function(elem) {
+ console.log(elem)
// locDetls.push({locNo: elem.locNo, matnr: elem.matnr, count: elem.count}); // todo
- locDetls.push({locNo: elem.locNo, matnr: elem.matnr});
+ locDetls.push({locNo: elem.locNo, matNo: elem.matNo, supplier:elem.supplier});
});
let param = {
outSite: staNo,
locDetls: locDetls
+
}
$.ajax({
url: baseUrl+"/locCheck/out/start",
@@ -125,7 +123,7 @@
// 鑾峰彇鍑哄簱鍙�
function getOutBound(){
$.ajax({
- url: baseUrl+"/available/take/site",
+ url: baseUrl+"/available/take/check/site",
headers: {'token': localStorage.getItem('token')},
method: 'POST',
async: false,
@@ -146,16 +144,16 @@
}
})
-// 鎻愬彇鐗╂枡
+// 鎻愬彇浜у搧
var locDetlLayerIdx;
function getLocDetl() {
locDetlLayerIdx = layer.open({
type: 2,
- title: '鎻愬彇鐗╂枡',
+ title: '鎻愬彇鍑鸿揣鍐呭',
maxmin: true,
area: [top.detailWidth, top.detailHeight],
shadeClose: true,
- content: 'locDetlQuery.html',
+ content: 'locDetlCheckQuery.html',
success: function(layero, index){
}
});
--
Gitblit v1.9.1