From 87c32f45921678fd91b879fcc9a992096a0d2a01 Mon Sep 17 00:00:00 2001
From: Demo <Demo@DESKTOP-CPA90BF>
Date: 星期五, 02 二月 2024 16:44:41 +0800
Subject: [PATCH] 修改标签页
---
HTML/views/ASNSetting/LabelBox.html | 76 ++++++++++++++++++++++++++-----------
1 files changed, 53 insertions(+), 23 deletions(-)
diff --git a/HTML/views/ASNSetting/LabelBox.html b/HTML/views/ASNSetting/LabelBox.html
index 8f4ecf4..5800979 100644
--- a/HTML/views/ASNSetting/LabelBox.html
+++ b/HTML/views/ASNSetting/LabelBox.html
@@ -97,7 +97,7 @@
<label class="layui-form-label">鏄惁浣跨敤</label>
<div class="layui-input-inline" style="margin-right: 0;">
<div class="layui-input-inline" style="margin-right: 0;">
- <select name="IsUse" id="IsUse" lay-filter="IsUse" lay-search>
+ <select name="Status" id="Status" lay-filter="Status" lay-search>
<option value=""></option>
<option value="0">鍚�</option>
<option value="1">鏄�</option>
@@ -152,9 +152,9 @@
{{ GetBtn4(d) }}
</script>
- <script type="text/html" id="templetInspectTime">
+ <script type="text/html" id="templetStoreTimeTime">
{{# function GetBtn5(d){
- return formatDate2(d.InspectTime);
+ return formatDate2(d.StoreTimeTime);
}
}}
{{ GetBtn5(d) }}
@@ -168,18 +168,41 @@
{{ GetBtn6(d) }}
</script>
- <script type="text/html" id="templetIsUse">
+ <script type="text/html" id="templetStatus">
{{# function GetBtn7(d){
- switch (d.IsUse) {
- case "0": return '<button class="layui-btn layui-btn-radius layui-btn-xs">鍚�</button>';
- case "1": return '<button class="layui-btn layui-btn-radius layui-btn-xs layui-btn-danger ">鏄�</button>';
+ switch (d.Status) {
+ case "0": return '<button class="layui-btn layui-btn-radius layui-btn-xs">鏈粍鎵�</button>';
+ case "1": return '<button class="layui-btn layui-btn-radius layui-btn-xs layui-btn-danger ">宸茬粍鎵�</button>';
+ case "2": return '<button class="layui-btn layui-btn-radius layui-btn-xs layui-btn-normal ">宸插叆搴�</button>';
default: return "";
}
}
}}
{{ GetBtn7(d) }}
</script>
-
+ <script type="text/html" id="templetInspectMark">
+ {{# function GetBtn9(d){
+ switch (d.InspectMark) {
+ case "0": return '<button class="layui-btn layui-btn-radius layui-btn-xs">鍚�</button>';
+ case "1": return '<button class="layui-btn layui-btn-radius layui-btn-xs layui-btn-danger ">鏄�</button>';
+ default: return "";
+ }
+ }
+ }}
+ {{ GetBtn9(d) }}
+ </script>
+ <script type="text/html" id="templetBitBoxMark">
+ {{# function GetBtn10(d){
+ switch (d.BitBoxMark) {
+ case "0": return '<button class="layui-btn layui-btn-radius layui-btn-xs">鍚�</button>';
+ case "1": return '<button class="layui-btn layui-btn-radius layui-btn-xs layui-btn-danger ">鏄�</button>';
+ default: return "";
+ }
+ }
+ }}
+ {{ GetBtn10(d) }}
+ </script>
+
<script type="text/html" id="templetCreateTime">
@@ -204,7 +227,7 @@
<script type="text/html" id="toolbarDemoList">
{{# function GetBtn2(d){
var html = '';
- if(d.Origin == "褰曞叆" || d.Origin == "瀵煎叆"){
+ if(d.Origin == "WMS鐢熸垚" || d.Status == "0"){
html = `<a class="layui-btn layui-btn-danger layui-btn-xs delClass" lay-event="del">
<i class="layui-icon layui-icon-delete"></i>鍒犻櫎</a>`;
@@ -322,26 +345,34 @@
//#region 鑷畾涔夎〃澶�
var TotalColsArr = [[
- { field: 'AsnNo', title: '鍏ュ簱鍗曞彿', align: 'center', width: 155, "disabled": true },
+ { field: 'ASNNo', title: '鍏ュ簱鍗曞彿', align: 'center',fixed: 'left', width: 180, "disabled": true },
{ field: 'BoxNo', title: '绠卞彿', align: 'center', fixed: 'left', width: 220, "disabled": true },
- { field: 'ParentBoxNo', title: '鐖剁骇绠卞彿', align: 'center', fixed: 'left', width: 220, "disabled": true },
+ { field: 'BoxNo2', title: '鐩掑彿', align: 'center', fixed: 'left', width: 220, },
+ { field: 'BoxNo3', title: '鏀彿', align: 'center', fixed: 'left', width: 220, "disabled": true },
{ field: 'SkuNo', title: '鐗╂枡缂栫爜', align: 'center', fixed: 'left', width: 140, "disabled": true },
{ field: 'SkuName', title: '鐗╂枡鍚嶇О', align: 'center', width: 240, },
{ field: 'Qty', title: '鏁伴噺', align: 'center', width: 100, },
+ { field: 'FullQty', title: '鏁寸鏁伴噺', align: 'center', width: 100, },
{ field: 'LotNo', title: '鎵规鍙�', align: 'center', width: 155, },
{ field: 'LotText', title: '鎵规鎻忚堪', align: 'center', width: 165 },
- { field: 'IsUse', title: '鏄惁浣跨敤', align: 'center', templet: '#templetIsUse', width: 90 },
- { field: 'Level', title: '绾у埆', align: 'center', width: 90 },
+ { field: 'SupplierLot', title: '渚涜揣鎵规', align: 'center', width: 155 },
+ { field: 'Status', title: '鐘舵��', align: 'center', templet: '#templetStatus', width: 90 },
+
+ { field: 'Standard', title: '瑙勬牸/鍨嬪彿', align: 'center', width: 165 },
+ { field: 'PackageStandard', title: '鍖呰瑙勬牸', align: 'center', width: 165 },
+
{ field: 'ProductionTime', title: '鐢熶骇鏃ユ湡', align: 'center', width: 160, templet: '#templetProductionTime' },
{ field: 'ExpirationTime', title: '杩囨湡鏃ユ湡', align: 'center', width: 160, templet: '#templetExpirationTime' },
- { field: 'InspectTime', title: '澶嶉獙鏃ユ湡', align: 'center', width: 160, templet: '#templetInspectTime' },
- { field: 'CompleteTime', title: '瀹屾垚鏃ユ湡', align: 'center', width: 160, templet: '#templetCompleteTime' },
- { field: 'SupplierName', title: '渚涘簲鍟�', align: 'center', width: 155 },
- { field: 'SupplierLot', title: '渚涜揣鎵规', align: 'center', width: 155 },
+ { field: 'StoreTime', title: '鍌ㄥ瓨鏈熻嚦', align: 'center', width: 160, templet: '#templetStoreTime' },
+ { field: 'CompleteTime', title: '瀹屾垚鏃ユ湡', align: 'center', width: 160, templet: '#templetCompleteTime' },
+
+ {field: 'InspectMark',title: '鎶芥鏍囪',align: 'center',templet: '#templetInspectMark',width: 90},
+ {field: 'BitBoxMark',title: '闆剁鏍囪',align: 'center',templet: '#templetBitBoxMark',width: 90},
+ {field: 'Origin',title: '鏉ユ簮',align: 'center',width: 90},
{ field: 'CreateUserName', title: '鍒涘缓浜�', align: 'center', width: 100 },
{ field: 'CreateTime', title: '鍒涘缓鏃堕棿', align: 'center', width: 160, templet: '#templetCreateTime' },
- { field: 'caozuo', title: '鎿嶄綔', fixed: 'right', width: 100, align: 'center', toolbar: '#toolbarDemoList', "disabled": true }
+ //{ field: 'caozuo', title: '鎿嶄綔', fixed: 'right', width: 100, align: 'center', toolbar: '#toolbarDemoList', "disabled": true }
]];
//url缂栫爜
var TotalColsSysArr = encodeURIComponent(encodeURIComponent(JSON.stringify(TotalColsArr)))//灏嗚〃澶存暟鎹繘琛寀rl缂栫爜
@@ -365,14 +396,13 @@
colsJson = TotalColsArr
}
var param = {
+ AsnNo:$("#ASNNo").val(),
BoxNo: $("#BoxNo").val(),
- BoxNo3: $("#BoxNo3").val(),
+ Status: $("#Status").val(),
SkuNo: $("#SkuNo").val(),
- LotNo: $("#LotNo").val(),
- LotText: $("#LotText").val(),
+ LotNo: $("#LotNo").val(),
ProductionTime: $("#ProductionTime").val(),
- InspectMark: $("#InspectMark").val(),
- BitBoxMark: $("#BitBoxMark").val(),
+ SupplierLot: $("#SupplierLot").val(),
};
table.render({
elem: '#Box-list',
--
Gitblit v1.8.0