|  |  |  | 
|---|
|  |  |  | lay-filter="LAY-app-contlist-search"> | 
|---|
|  |  |  | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>搜索 | 
|---|
|  |  |  | </button> | 
|---|
|  |  |  | <button class="layui-btn layui-btn-sm layuiadmin-btn-list layui-btn-normal buDaLabelClass" style="margin-left: 5px;" lay-event="BuDaLabel" id="BuDaLabel"> | 
|---|
|  |  |  | <button class="layui-btn layui-btn-sm layuiadmin-btn-list layui-btn-normal buDaLabelClass" | 
|---|
|  |  |  | style="margin-left: 5px;" lay-event="BuDaLabel" id="BuDaLabel"> | 
|---|
|  |  |  | <i class="layui-icon layui-icon-print layuiadmin-button-btn"></i>补打标签 | 
|---|
|  |  |  | </button> | 
|---|
|  |  |  | <button class="layui-btn layui-btn-sm layuiadmin-btn-list layui-btn-danger delLabelClass" style="margin-left: 5px;" lay-event="delLabel" id="delLabel"> | 
|---|
|  |  |  | <button class="layui-btn layui-btn-sm layuiadmin-btn-list layui-btn-danger delLabelClass" | 
|---|
|  |  |  | style="margin-left: 5px;" lay-event="delLabel" id="delLabel"> | 
|---|
|  |  |  | <i class="layui-icon layui-icon-delete layuiadmin-button-btn"></i>删除标签 | 
|---|
|  |  |  | </button> | 
|---|
|  |  |  | <!-- <button class="layui-btn layui-btn-sm layuiadmin-btn-list layui-btn-normal " style="margin-left: 5px;" lay-event="ceshiLabel" id="ceshiLabel"> | 
|---|
|  |  |  | 
|---|
|  |  |  | <div class="layui-inline"> | 
|---|
|  |  |  | <label class="layui-form-label">入库单据</label> | 
|---|
|  |  |  | <div class="layui-input-inline" style="width: 220px;"> | 
|---|
|  |  |  | <input type="text" id="AsnNoSelect" name="AsnNoSelect" placeholder="入库单据" autocomplete="off" class="layui-input"> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <input type="text" id="AsnNoSelect" name="AsnNoSelect" placeholder="入库单据" | 
|---|
|  |  |  | autocomplete="off" class="layui-input"> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <div class="layui-inline DivLoadingArea" style="margin-top: 10px;"> | 
|---|
|  |  |  | <label class="layui-form-label">批次号</label> | 
|---|
|  |  |  | <div class="layui-input-inline" style="width: 220px;"> | 
|---|
|  |  |  | <select name="LotNoSelect" id="LotNoSelect" lay-search> | 
|---|
|  |  |  | <option value=""></option> | 
|---|
|  |  |  | <option value=""></option> | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <div class="layui-card-body"> | 
|---|
|  |  |  | <div class="layui-card-body"> | 
|---|
|  |  |  | <div class="position-relative"> | 
|---|
|  |  |  | <table id="Box-list" lay-filter="Box-list"></table> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | }} | 
|---|
|  |  |  | {{ GetBtn10(d) }} | 
|---|
|  |  |  | </script> | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <script type="text/html" id="templetCreateTime"> | 
|---|
|  |  |  | 
|---|
|  |  |  | content: 'LabelBoxCeShiPrint.html', | 
|---|
|  |  |  | maxmin: true, | 
|---|
|  |  |  | area: ['430px', '390px'], | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //生成 | 
|---|
|  |  |  | $('#BuDaLabel').on('click', function () { | 
|---|
|  |  |  | layer.open({ | 
|---|
|  |  |  | layer.open({ | 
|---|
|  |  |  | type: 2, | 
|---|
|  |  |  | title: '打印', | 
|---|
|  |  |  | content: 'LabelBoxBuDa.html', | 
|---|
|  |  |  | 
|---|
|  |  |  | area: ['430px', '390px'], | 
|---|
|  |  |  | // btn: ['取消'] | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | $("#AsnNoSelect").on('input', function () { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if ($("#AsnNoSelect").val() == "" || $("#AsnNoSelect").val().length < 16) { | 
|---|
|  |  |  | 
|---|
|  |  |  | function GetLotNoByAsnNo() { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | $("#LotNoSelect").empty() | 
|---|
|  |  |  | $("#LotNoSelect").append('<option value =>' + '</option>'); | 
|---|
|  |  |  | $("#LotNoSelect").append('<option value =>' + '</option>'); | 
|---|
|  |  |  | form.render('select'); | 
|---|
|  |  |  | var param = { | 
|---|
|  |  |  | asnNo: $("#AsnNoSelect").val(), | 
|---|
|  |  |  | }; | 
|---|
|  |  |  | sendData(IP + "/BllAsn/GetLotNoListByAsn", param, 'get', function(res) { | 
|---|
|  |  |  | sendData(IP + "/BllAsn/GetLotNoListByAsn", param, 'get', function (res) { | 
|---|
|  |  |  | if (res.code == 0) { //成功 | 
|---|
|  |  |  | for (var i = 0; i < res.data.length; i++) { | 
|---|
|  |  |  | $("#LotNoSelect").append('<option value =' + res.data[i] + '>' + res.data[i] + '</option>'); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | form.render('select'); | 
|---|
|  |  |  | } else { //不成功 | 
|---|
|  |  |  | layer.msg(res.msg, { | 
|---|
|  |  |  | icon: 2, | 
|---|
|  |  |  | time: 3000 //2秒关闭(如果不配置,默认是3秒) | 
|---|
|  |  |  | }, function() { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | }, function () { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //删除标签 | 
|---|
|  |  |  | //删除标签 | 
|---|
|  |  |  | $('#delLabel').on('click', function () { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | layer.open({ | 
|---|
|  |  |  | 
|---|
|  |  |  | title: '删除标签', | 
|---|
|  |  |  | content: $('#divDelLotNo'), | 
|---|
|  |  |  | maxmin: false, | 
|---|
|  |  |  | area: ['350px','340px'], | 
|---|
|  |  |  | area: ['350px', '340px'], | 
|---|
|  |  |  | btn: ['确定', '取消'], | 
|---|
|  |  |  | yes: function(index, layero) { | 
|---|
|  |  |  | yes: function (index, layero) { | 
|---|
|  |  |  | var param = { | 
|---|
|  |  |  | AsnNo: $('#AsnNoSelect').val(), | 
|---|
|  |  |  | LotNo: $('#LotNoSelect').val(), | 
|---|
|  |  |  | }; | 
|---|
|  |  |  | sendData(IP + "/BllAsn/DelLabelByAsnNo", param, 'post', function(res) { | 
|---|
|  |  |  | sendData(IP + "/BllAsn/DelLabelByAsnNo", param, 'post', function (res) { | 
|---|
|  |  |  | if (res.code == 0) { //成功 | 
|---|
|  |  |  | bindTable(); | 
|---|
|  |  |  | layer.msg(res.msg, { | 
|---|
|  |  |  | icon: 1, | 
|---|
|  |  |  | time: 1500 //1秒关闭(如果不配置,默认是3秒) | 
|---|
|  |  |  | }, function() { | 
|---|
|  |  |  | }, function () { | 
|---|
|  |  |  | $('#AsnNoSelect').val(""); | 
|---|
|  |  |  | $("#LotNoSelect").empty() | 
|---|
|  |  |  | $("#LotNoSelect").append('<option value =>' + '</option>'); | 
|---|
|  |  |  | 
|---|
|  |  |  | layer.msg(res.msg, { | 
|---|
|  |  |  | icon: 2, | 
|---|
|  |  |  | time: 3000 //2秒关闭(如果不配置,默认是3秒) | 
|---|
|  |  |  | }, function() { | 
|---|
|  |  |  | }, function () { | 
|---|
|  |  |  | bindTable(); | 
|---|
|  |  |  | $('#AsnNoSelect').val(""); | 
|---|
|  |  |  | $("#LotNoSelect").empty() | 
|---|
|  |  |  | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // // 删除箱支信息 | 
|---|
|  |  |  | 
|---|
|  |  |  | //#region 自定义表头 | 
|---|
|  |  |  | var TotalColsArr = [[ | 
|---|
|  |  |  |  | 
|---|
|  |  |  | { field: 'ASNNo', title: '入库单号', align: 'center',fixed: 'left', width: 180, "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: 'BoxNo2', title: '盒号', align: 'center', fixed: 'left', width: 220,  }, | 
|---|
|  |  |  | { field: 'BoxNo3', 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, }, | 
|---|
|  |  |  | { 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: 'LotText', title: '批次描述', align: 'center', width: 165 }, | 
|---|
|  |  |  | { 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: 'StoreTime', title: '储存期至', align: 'center', width: 160, templet: '#templetStoreTime' }, | 
|---|
|  |  |  | { field: 'CompleteTime', title: '完成日期', align: 'center', width: 160, templet: '#templetCompleteTime' }, | 
|---|
|  |  |  | { 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: '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' }, | 
|---|
|  |  |  | 
|---|
|  |  |  | colsJson = TotalColsArr | 
|---|
|  |  |  | } | 
|---|
|  |  |  | var param = { | 
|---|
|  |  |  | AsnNo:$("#ASNNo").val(), | 
|---|
|  |  |  | AsnNo: $("#ASNNo").val(), | 
|---|
|  |  |  | BoxNo: $("#BoxNo").val(), | 
|---|
|  |  |  | Status: $("#Status").val(), | 
|---|
|  |  |  | SkuNo: $("#SkuNo").val(), | 
|---|
|  |  |  | LotNo: $("#LotNo").val(), | 
|---|
|  |  |  | LotNo: $("#LotNo").val(), | 
|---|
|  |  |  | ProductionTime: $("#ProductionTime").val(), | 
|---|
|  |  |  | SupplierLot: $("#SupplierLot").val(), | 
|---|
|  |  |  | SupplierLot: $("#SupplierLot").val(), | 
|---|
|  |  |  | }; | 
|---|
|  |  |  | table.render({ | 
|---|
|  |  |  | elem: '#Box-list', | 
|---|
|  |  |  | 
|---|
|  |  |  | // 权限设置 | 
|---|
|  |  |  | function setRight() { | 
|---|
|  |  |  | $(function () { | 
|---|
|  |  |  | $(".buDaLabelClass").hide(); | 
|---|
|  |  |  | $(".delLabelClass").hide(); | 
|---|
|  |  |  | $(".buDaLabelClass").hide(); | 
|---|
|  |  |  | $(".delLabelClass").hide(); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | sendData(IP + "/Basis/GetRoleRightList", {}, 'get', function (res) { | 
|---|
|  |  |  | if (res.code == 0) { //成功 | 
|---|
|  |  |  | 
|---|
|  |  |  | $(function () { | 
|---|
|  |  |  | $(".buDaLabelClass").show(); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (res.data[k].MenuName == "删除标签") { | 
|---|
|  |  |  | $(function () { | 
|---|
|  |  |  | $(".delLabelClass").show(); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } else { //不成功 | 
|---|
|  |  |  | layer.msg('获取权限信息失败', { | 
|---|
|  |  |  | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //#region 自定义表头 | 
|---|
|  |  |  | //自定义表头 | 
|---|
|  |  |  | active = { | 
|---|