From 778d43af844492ef0496b0981ee95e0a1da17a6e Mon Sep 17 00:00:00 2001
From: Administrator <Administrator@DESKTOP-5BIMHQ3>
Date: 星期一, 04 三月 2024 17:02:12 +0800
Subject: [PATCH] Merge branch 'master' of https://gitee.com/liudongl/jc24-wms
---
HTML/views/SOSetting/ExportHandOutList.html | 203 +++++++++++++++++++++++++++++++++++---------------
1 files changed, 142 insertions(+), 61 deletions(-)
diff --git a/HTML/views/SOSetting/ExportHandOutList.html b/HTML/views/SOSetting/ExportHandOutList.html
index b1bad3d..73ace4e 100644
--- a/HTML/views/SOSetting/ExportHandOutList.html
+++ b/HTML/views/SOSetting/ExportHandOutList.html
@@ -95,6 +95,134 @@
var repeatClick = true;
var tableIns;
refreshTable();
+ //姝e父鏄剧ず
+ var colsa =
+ [[
+ {
+ field: 'LocatNo',
+ title: '鍌ㄤ綅缂栫爜',
+ align: 'center',
+ width: 110,
+ fixed: 'left',
+ },{
+ field: 'PalletNo',
+ title: '鎵樼洏鏉$爜',
+ align: 'center',
+ width: 100,
+ fixed: 'left',
+ }, {
+ field: 'SkuNo',
+ title: '鐗╁搧缂栫爜',
+ width: 100,
+ align: 'center',
+ fixed: 'left',
+ }, {
+ field: 'SkuName',
+ title: '鐗╁搧鍚嶇О',
+ minWidth: 200,
+ align: 'center',
+ fixed: 'left',
+ }, {
+ field: 'LotNo',
+ title: '鎵规',
+ align: 'center'
+ }, {
+ field: 'LotText',
+ title: '鎵规鎻忚堪',
+ align: 'center',
+ }, {
+ field: 'Standard',
+ title: '鐗╁搧瑙勬牸',
+ align: 'center',
+ minWidth: 100
+ }, {
+ field: 'RoadwayNo',
+ title: '鎵�灞炲贩閬�',
+ align: 'center',
+ width: 100
+ }, {
+ field: 'Qty',
+ title: '搴撳瓨鏁伴噺',
+ width: 100,
+ fixed: 'right',
+ align: 'center',
+ }, {
+ field: 'ExportQty',
+ title: '鍑哄簱鏁伴噺',
+ align: 'center',
+ width: 100,
+ fixed: 'right',
+ edit: 'number',
+ event: 'dataNumber',
+ }
+ ]];
+ //瀵勫瓨鏄剧ず
+ var colsb =
+ [[
+ {
+ field: 'LocatNo',
+ title: '鍌ㄤ綅缂栫爜',
+ align: 'center',
+ width: 110,
+ fixed: 'left',
+ },{
+ field: 'PalletNo',
+ title: '鎵樼洏鏉$爜',
+ align: 'center',
+ width: 100,
+ fixed: 'left',
+ }, {
+ field: 'SkuNo',
+ title: '鐗╁搧缂栫爜',
+ width: 100,
+ align: 'center',
+ fixed: 'left',
+ }, {
+ field: 'SkuName',
+ title: '鐗╁搧鍚嶇О',
+ minWidth: 200,
+ align: 'center',
+ fixed: 'left',
+ }, {
+ field: 'LotNo',
+ title: '鎵规',
+ align: 'center'
+ }, {
+ field: 'LotText',
+ title: '鎵规鎻忚堪',
+ align: 'center',
+ }, {
+ field: 'Standard',
+ title: '鐗╁搧瑙勬牸',
+ align: 'center',
+ minWidth: 100
+ }, {
+ field: 'Demo',
+ title: '澶囨敞',
+ align: 'center',
+ width: 100
+ }, {
+ field: 'RoadwayNo',
+ title: '鎵�灞炲贩閬�',
+ align: 'center',
+ width: 100
+ },{
+ field: 'Qty',
+ title: '搴撳瓨鏁伴噺',
+ width: 100,
+ fixed: 'right',
+ align: 'center',
+ }, {
+ field: 'ExportQty',
+ title: '鍑哄簱鏁伴噺',
+ align: 'center',
+ width: 100,
+ fixed: 'right',
+ edit: 'number',
+ event: 'dataNumber',
+ }
+ ]];
+
function refreshTable() {
detailId = getQueryString('Id');
var param = {
@@ -107,12 +235,21 @@
};
sendData(IP + "/BllSo/GetHandOutList", param, 'post', function(res) {
if (res.code == 0) { //鎴愬姛
+
var list = res.data;
$.extend(infoOptions, {
data: list
});
infoOptions.page = {
curr: 1
+ }
+ infoOptions.cols = colsa;
+ //鍒ゆ柇鍗曟嵁鏄庣粏淇℃伅鏄惁涓哄瘎瀛樻槑缁�
+ if(res.data[0].SkuNo == "100088")
+ {
+ infoOptions.cols = colsb;
+ // colsa = colsb;
+ console.log(colsa)
}
tableIns = table.render(infoOptions);
} else { //涓嶆垚鍔�
@@ -131,6 +268,7 @@
}
});
}
+
var infoOptions = {
elem: '#LAY-app-content-list',
height: 'full-160',
@@ -139,67 +277,10 @@
limit: pageCnt,
limits: pageLimits,
cellMinWidth: 60, //鍏ㄥ眬瀹氫箟甯歌鍗曞厓鏍肩殑鏈�灏忓搴︼紝layui 2.2.1 鏂板
- cols: [
- [ //鏍囬鏍�
- {
- field: 'LocatNo',
- title: '鍌ㄤ綅缂栫爜',
- align: 'center',
- width: 110,
- fixed: 'left',
- },{
- field: 'PalletNo',
- title: '鎵樼洏鏉$爜',
- align: 'center',
- width: 100,
- fixed: 'left',
- }, {
- field: 'SkuNo',
- title: '鐗╁搧缂栫爜',
- width: 100,
- align: 'center',
- fixed: 'left',
- }, {
- field: 'SkuName',
- title: '鐗╁搧鍚嶇О',
- minWidth: 200,
- align: 'center',
- fixed: 'left',
- }, {
- field: 'LotNo',
- title: '鎵规',
- align: 'center'
- }, {
- field: 'LotText',
- title: '鎵规鎻忚堪',
- align: 'center',
- }, {
- field: 'Standard',
- title: '鐗╁搧瑙勬牸',
- align: 'center',
- minWidth: 100
- }, {
- field: 'RoadwayNo',
- title: '鎵�灞炲贩閬�',
- align: 'center',
- width: 100
- }, {
- field: 'Qty',
- title: '搴撳瓨鏁伴噺',
- width: 100,
- fixed: 'right',
- align: 'center',
- }, {
- field: 'ExportQty',
- title: '鍑哄簱鏁伴噺',
- align: 'center',
- width: 100,
- fixed: 'right',
- edit: 'number',
- event: 'dataNumber',
- }
- ]
- ],
+ cols: null,
+ //鏍囬鏍�
+
+
};
//鑾峰彇浠撳簱涓嬫媺妗嗘暟鎹�
--
Gitblit v1.8.0