From ac85f1b3f6ca3b530cb75e26e77f5ac18924a2ec Mon Sep 17 00:00:00 2001
From: bklLiudl <673013083@qq.com>
Date: 星期五, 27 六月 2025 14:59:56 +0800
Subject: [PATCH] 编写车间出库-数量
---
HTML/views/StatisticalReport/BoxInfor.html | 71 ++++++++++++++++++++++++-----------
1 files changed, 49 insertions(+), 22 deletions(-)
diff --git a/HTML/views/StatisticalReport/BoxInfor.html b/HTML/views/StatisticalReport/BoxInfor.html
index 04858a6..4eb09eb 100644
--- a/HTML/views/StatisticalReport/BoxInfor.html
+++ b/HTML/views/StatisticalReport/BoxInfor.html
@@ -205,7 +205,14 @@
<!-- #region 鑷畾涔夎〃澶� -->
<script type="text/html" id="templetProductionTime">
{{# function GetBtn(d){
- return formatDate(d.ProductionTime);
+ return formatDate2(d.ProductionTime);
+ }
+ }}
+ {{ GetBtn(d) }}
+ </script>
+ <script type="text/html" id="templetExpirationTime">
+ {{# function GetBtn(d){
+ return formatDate2(d.ExpirationTime);
}
}}
{{ GetBtn(d) }}
@@ -225,7 +232,21 @@
</div>
</div>
-
+ <script type="text/html" id="buttonTpl">
+ {{# if(d.Status=='0'){ }}
+ <button class="layui-btn layui-btn-radius layui-btn-danger layui-btn-xs">寰呭垎閰�</button>
+ {{# } else if(d.Status == '1') { }}
+ <button class="layui-btn layui-btn-radius layui-btn-xs">閮ㄥ垎鍒嗛厤</button>
+ {{# } else if(d.Status == '2') { }}
+ <button class="layui-btn layui-btn-radius layui-btn-xs">宸插垎閰�</button>
+ {{# } else if(d.Status == '3') { }}
+ <button class="layui-btn layui-btn-radius layui-btn-xs">鐩樼偣閿佸畾</button>
+ {{# } else if(d.Status == '4') { }}
+ <button class="layui-btn layui-btn-radius layui-btn-xs">绉诲簱閿佸畾</button>
+ {{# } else if(d.Status == '5') { }}
+ <button class="layui-btn layui-btn-radius layui-btn-xs layui-btn-danger">寮傚父閿佸畾</button>
+ {{# } }}
+ </script>
<script type="text/html" id="BoxStatus">
{{# if(d.Status=='0'){ }}
<p>鏈粍鎵�</p>
@@ -349,27 +370,32 @@
//#region 鑷畾涔夎〃澶�
var TotalColsArr = [[
{ field: '', title: '搴忓彿', type: 'numbers', align: 'center', fixed: 'left', "disabled": true },
- { field: 'WareHouseName', title: '鎵�灞炰粨搴�', align: 'center' },
- { field: 'RoadwayName', title: '鎵�灞炲贩閬�', align: 'center' },
- { field: 'AreaName', title: '鎵�灞炲尯鍩�', align: 'center' },
- { field: 'LocatNo', title: '鍌ㄤ綅鍦板潃', align: 'center' },
- { field: 'PalletNo', title: '鎵樼洏鍙�', align: 'center' },
- { field: 'SkuNo', title: '鐗╂枡缂栫爜', align: 'center' },
- { field: 'SkuName', title: '鐗╂枡鍚嶇О', align: 'center' },
- { field: 'OwnerNo', title: '璐т富缂栫爜', align: 'center' },
- { field: 'OwnerName', title: '璐т富鍚嶇О', align: 'center' },
- { field: 'SupplierNo', title: '渚涘簲鍟嗙紪鐮�', align: 'center' },
- { field: 'SupplierName', title: '渚涘簲鍟嗗悕绉�', align: 'center' },
- { field: 'LotNo', title: '鎵规鍙�', align: 'center' },
- { field: 'LotText', title: '鎵规鎻忚堪', align: 'center' },
- { field: 'SupplierLot', title: '渚涜揣鎵规', align: 'center' },
- { field: 'Qty', title: '鏁伴噺', align: 'center' },
- { field: 'LockQty', title: '閿佸畾鏁伴噺', align: 'center', },
- { field: 'FrozenQty', title: '鍐荤粨鏁伴噺', align: 'center' },
- { field: 'InspectMark', title: '鎶芥鏍囪', align: 'center', templet: '#InspectMarkStatus' },
+ { field: 'WareHouseName', title: '鎵�灞炰粨搴�', align: 'center' , width: 120,},
+ { field: 'RoadwayName', title: '鎵�灞炲贩閬�', align: 'center', width: 120, },
+ { field: 'AreaName', title: '鎵�灞炲尯鍩�', align: 'center', width: 120, },
+ { field: 'LocatNo', title: '鍌ㄤ綅鍦板潃', align: 'center', width: 100, },
+ { field: 'PalletNo', title: '鎵樼洏鍙�', align: 'center' , width: 100,},
+ { field: 'SkuNo', title: '鐗╂枡缂栫爜', align: 'center' , width: 120,},
+ { field: 'SkuName', title: '鐗╂枡鍚嶇О', align: 'center', width: 120,},
+ { field: 'LotNo', title: '鎵规鍙�', align: 'center' , width: 100,},
+ //{ field: 'LotText', title: '鎵规鎻忚堪', align: 'center' },
+ { field: 'SupplierLot', title: '渚涜揣鎵规', align: 'center' , width: 120,},
+ { field: 'Qty', title: '鏁伴噺', align: 'center' ,width: 90,},
+ { field: 'LockQty', title: '閿佸畾鏁伴噺', align: 'center',width: 90, },
+ { field: 'FrozenQty', title: '鍐荤粨鏁伴噺', align: 'center',width: 90, },
+
+ { field: 'Status', title: '搴撳瓨鐘舵��', align: 'center', templet: '#buttonTpl', width: 90, },
+ { field: 'InspectStatus', templet: '#InspectStatus1', title: '璐ㄦ鐘舵��', align: 'center' ,width: 100,},
+ { field: 'InspectMark', title: '鎶芥鏍囪', align: 'center', templet: '#InspectMarkStatus' ,width: 100,},
+ { field: 'BitPalletMark', title: '闆舵墭鏍囪', align: 'center', templet: '#BitPalletMarkStatus',width: 100,},
+
{ field: 'ProductionTime', title: '鐢熶骇鏃ユ湡', align: 'center', templet: '#templetProductionTime' },
- { field: 'InspectStatus', templet: '#InspectStatus1', title: '璐ㄦ鐘舵��', align: 'center' },
- { field: 'BitPalletMark', title: '闆舵墭鏍囪', align: 'center', templet: '#BitPalletMarkStatus' },
+ { field: 'OwnerNo', title: '璐т富缂栫爜', align: 'center' , width: 100,},
+ { field: 'OwnerName', title: '璐т富鍚嶇О', align: 'center' , width: 100,},
+ { field: 'SupplierNo', title: '渚涘簲鍟嗙紪鐮�', align: 'center' , width: 100,},
+ { field: 'SupplierName', title: '渚涘簲鍟嗗悕绉�', align: 'center' , width: 100,},
+
+
]];
var TotalColsSysArr = encodeURIComponent(encodeURIComponent(JSON.stringify(TotalColsArr)))//灏嗚〃澶存暟鎹繘琛寀rl缂栫爜
//#endregion
@@ -463,6 +489,7 @@
{ field: 'Qty', title: '鏁伴噺', width: 90, align: 'center' },
{ field: 'FullQty', title: '鏁寸鏁伴噺', width: 100, align: 'center' },
{ field: 'ProductionTime', title: '鐢熶骇鏃ユ湡', align: 'center', templet: '#templetProductionTime' },
+ { field: 'ExpirationTime', title: '鏈夋晥鏈�', align: 'center', templet: '#templetExpirationTime' },
{ field: 'InspectMark', title: '鎶芥鏍囪', align: 'center', templet: '#InspectMarkStatus' },
{ field: 'BitBoxMark', templet: '#BitPalletMarkStatus1', title: '闆剁鏍囪', align: 'center' },
{ field: 'InspectStatus', templet: '#InspectStatus1', title: '璐ㄦ鐘舵��', align: 'center' },
--
Gitblit v1.8.0