| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline" style="margin-right: 0;"> |
| | | <label class="layui-form-label" style="width: 60px;">批次号</label> |
| | | <label class="layui-form-label" style="width: 60px;">进厂编号</label> |
| | | <div class="layui-input-inline" style="margin-right: 0;"> |
| | | <div class="layui-input-inline" style="margin-right: 0;"> |
| | | <input type="text" id="LotNo" name="LotNo" placeholder="批次号" autocomplete="off" |
| | | <input type="text" id="LotNo" name="LotNo" placeholder="进厂编号" autocomplete="off" |
| | | class="layui-input"> |
| | | </div> |
| | | </div> |
| | |
| | | { 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', fixed: 'left', width: 240, "disabled": true }, |
| | | { field: 'LotNo', title: '批次号', align: 'center', width: 155, }, |
| | | { field: 'LotNo', title: '进厂编号', align: 'center', width: 155, }, |
| | | { field: 'Qty', title: '数量', align: 'center', width: 100, }, |
| | | { field: 'LotText', title: '批次描述', align: 'center', width: 165 }, |
| | | { field: 'ProductionTime', title: '生产日期', align: 'center', width: 160, templet: '#templetProductionTime' }, |
| | | { field: 'ExpirationTime', title: '过期日期', align: 'center', width: 160, templet: '#templetExpirationTime' }, |
| | | { field: 'SupplierLot', title: '供货批次', align: 'center', width: 155 }, |
| | | { field: 'SupplierLot', title: '原厂批号', align: 'center', width: 155 }, |
| | | { field: 'InspectMark', title: '抽检标记', align: 'center', templet: '#templetInspectMark', width: 90 }, |
| | | { field: 'BitBoxMark', title: '零箱标记', align: 'center', templet: '#templetBitBoxMark', width: 90 }, |
| | | { field: 'Origin', title: '来源', align: 'center', }, |
| | |
| | | var TotalColsSysArr = encodeURIComponent(encodeURIComponent(JSON.stringify(TotalColsArr)))//将表头数据进行url编码 |
| | | //#endregion |
| | | function bindTable() { |
| | | //#region 原始非自定义列 |
| | | // var param = { |
| | | // BoxNo: $("#BoxNo").val(), |
| | | // // BoxNo2: $("#BoxNo2").val(), |
| | | // BoxNo3: $("#BoxNo3").val(), |
| | | // SkuNo: $("#SkuNo").val(), |
| | | // LotNo: $("#LotNo").val(), |
| | | // LotText: $("#LotText").val(), |
| | | // ProductionTime: $("#ProductionTime").val(), |
| | | // InspectMark: $("#InspectMark").val(), |
| | | // BitBoxMark: $("#BitBoxMark").val(), |
| | | // // Origin: "录入", |
| | | // }; |
| | | |
| | | // table.render({ |
| | | // elem: '#Box-list', |
| | | // url: IP + "/BllAsn/GetBllBoxInfoList", |
| | | // method: 'POST', |
| | | // height: 'full-136', |
| | | // id: 'Box-list', |
| | | // where: param, |
| | | // contentType: 'application/json', |
| | | // toolbar: '#toolbarDemo', |
| | | // defaultToolbar: [], //'filter','print', 'exports' |
| | | // headers: { ToKen: $.cookie('token') }, |
| | | // page: true, |
| | | // even: true, |
| | | // limit: pageCnt, |
| | | // limits: pageLimits, |
| | | // cellMinWidth: 60, //全局定义常规单元格的最小宽度,layui 2.2.1 新增 |
| | | // done: function (res) { |
| | | // setRight(); |
| | | // }, |
| | | // cols: [ |
| | | // [{ |
| | | // field: 'BoxNo', |
| | | // title: '箱号', |
| | | // align: 'center', |
| | | // fixed: 'left', |
| | | // width: 220 |
| | | // }, { |
| | | // field: 'BoxNo2', |
| | | // title: '盒号', |
| | | // align: 'center', |
| | | // fixed: 'left', |
| | | // hide:true |
| | | // }, { |
| | | // field: 'BoxNo3', |
| | | // title: '支号', |
| | | // align: 'center', |
| | | // fixed: 'left', |
| | | // width: 220 |
| | | // }, { |
| | | // field: 'SkuNo', |
| | | // title: '物料编码', |
| | | // align: 'center', |
| | | // fixed: 'left', |
| | | // width: 140 |
| | | // }, { |
| | | // field: 'SkuName', |
| | | // title: '物料名称', |
| | | // align: 'center', |
| | | // fixed: 'left', |
| | | // width: 240 |
| | | // }, { |
| | | // field: 'LotNo', |
| | | // title: '批次号', |
| | | // align: 'center', |
| | | // width: 155, |
| | | // }, { |
| | | // field: 'Qty', |
| | | // title: '数量', |
| | | // align: 'center', |
| | | // width: 100, |
| | | // }, { |
| | | // field: 'LotText', |
| | | // title: '批次描述', |
| | | // align: 'center', |
| | | // width: 165 |
| | | |
| | | // }, { |
| | | // field: 'ProductionTime', |
| | | // title: '生产日期', |
| | | // align: 'center', |
| | | // width: 160, |
| | | // templet: function (d) { |
| | | // return formatDate2(d.ProductionTime); |
| | | // } |
| | | // }, { |
| | | // field: 'ExpirationTime', |
| | | // title: '过期日期', |
| | | // align: 'center', |
| | | // width: 160, |
| | | // templet: function (d) { |
| | | // return formatDate2(d.ExpirationTime); |
| | | // } |
| | | // }, { |
| | | // field: 'SupplierLot', |
| | | // title: '供货批次', |
| | | // align: 'center', |
| | | // width: 155 |
| | | // }, { |
| | | // field: 'InspectMark', |
| | | // title: '抽检标记', |
| | | // align: 'center', |
| | | // templet: function (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 ""; |
| | | // } |
| | | // }, |
| | | // width: 90 |
| | | // }, { |
| | | // field: 'BitBoxMark', |
| | | // title: '零箱标记', |
| | | // align: 'center', |
| | | // templet: function (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 ""; |
| | | // } |
| | | // }, |
| | | // width: 90 |
| | | // }, { |
| | | // field: 'Origin', |
| | | // title: '来源', |
| | | // align: 'center', |
| | | // }, { |
| | | // field: 'CreateUserName', |
| | | // title: '创建人', |
| | | // align: 'center', |
| | | // width: 100 |
| | | // }, { |
| | | // field: 'CreateTime', |
| | | // title: '创建时间', |
| | | // align: 'center', |
| | | // width: 160, |
| | | // templet: function (d) { |
| | | // return formatDate(d.CreateTime); |
| | | // } |
| | | // }, { |
| | | // title: '操作', |
| | | // fixed: 'right', |
| | | // width: 100, |
| | | // align: 'center', |
| | | // toolbar: '#toolbarDemoList' |
| | | // }] |
| | | // ], |
| | | |
| | | // }); |
| | | //#endregion |
| | | |
| | | |
| | | //#region 自定义表头 |
| | | var colsJson |
| | | var param1 = { |
| | |
| | | return msg; |
| | | } |
| | | if ($("#LotNo").val() == "") { |
| | | layer.msg("请输入批次号!", { |
| | | layer.msg("请输入进厂编号!", { |
| | | icon: 2, |
| | | time: 2000 //2秒关闭(如果不配置,默认是3秒) |
| | | }); |
| | |
| | | 'BoxNo3': 'C', //支号 |
| | | 'Qty': 'D', //数量 |
| | | 'SkuNo': 'E', //物料号 |
| | | 'LotNo': 'F', //批次 |
| | | 'LotNo': 'F', //进厂编号 |
| | | 'LotText': 'G', //批次描述 |
| | | 'ProductionTime': 'H', //生产日期 |
| | | 'InspectMark': 'I', //检验标记 |