| | |
| | | <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> |
| | |
| | | {{ 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) }} |
| | |
| | | {{ 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"> |
| | |
| | | <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>`; |
| | | |
| | |
| | | //#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)))//将表头数据进行url编码 |
| | |
| | | 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', |