| | |
| | | background-color: #eff2ff; |
| | | border: 1px solid #5298ff; |
| | | } |
| | | |
| | | /* 内容居中 */ |
| | | .tableyang-tab { |
| | | display: flex; |
| | |
| | | flex-direction: column; |
| | | height: 90vh; |
| | | } |
| | | |
| | | /* 必用样式 */ |
| | | .tableyang-2,.tableyang-3 { |
| | | .tableyang-2, |
| | | .tableyang-3 { |
| | | display: none; |
| | | } |
| | | |
| | |
| | | padding: 10px; |
| | | margin-bottom: 5px; |
| | | } |
| | | |
| | | |
| | | |
| | | </style> |
| | | <link rel="stylesheet" href="/css/adapter.css" /> |
| | | <script src="../../js/jquery.js"></script> |
| | |
| | | <div id="" class="layui-form-item layout-input"> |
| | | <label class="layui-form-label" lang>托盘条码:</label> |
| | | <div class="layui-input-block"> |
| | | <input id="STOCKCODE" type="text" lay-verify="stock" lang langholder placeholder="请扫描托盘条码" |
| | | autocomplete="off" class="layui-input"> |
| | | <input id="STOCKCODE" type="text" lay-verify="stock" lang langholder |
| | | placeholder="请扫描托盘条码" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div id="BOX" class="layui-form-item layout-input"> |
| | | <label class="layui-form-label" lang>外箱条码:</label> |
| | | <div class="layui-input-block"> |
| | | <input id="BOXCODE" type="text" lay-verify="required" lang langholder placeholder="请扫描外箱条码" |
| | | autocomplete="off" class="layui-input"> |
| | | <input id="BOXCODE" type="text" lay-verify="required" lang langholder |
| | | placeholder="请扫描外箱条码" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div id="" class="layui-form-item layout-input"> |
| | |
| | | <div id="BOX2" class="layui-form-item layout-input" style="display: none;"> |
| | | <label class="layui-form-label" lang>尾箱条码:</label> |
| | | <div class="layui-input-block"> |
| | | <input id="BOXCODE2" type="text" lang langholder placeholder="请扫描外箱条码" autocomplete="off" |
| | | class="layui-input"> |
| | | <input id="BOXCODE2" type="text" lang langholder placeholder="请扫描外箱条码" |
| | | autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | |
| | |
| | | <div id="" class="layui-form-item layout-input"> |
| | | <label class="layui-form-label" lang>托盘条码:</label> |
| | | <div class="layui-input-block"> |
| | | <input id="STOCKCODE1" type="text" lay-verify="stock" lang langholder placeholder="请扫描托盘条码" |
| | | autocomplete="off" class="layui-input"> |
| | | <input id="STOCKCODE1" type="text" lay-verify="stock" lang langholder |
| | | placeholder="请扫描托盘条码" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | |
| | |
| | | /* 入库单据下拉框 */ |
| | | //点击入库单据下拉框事件 |
| | | $("#selectDiv").click(function () { |
| | | if (xianshiyemian == 0) |
| | | { |
| | | if (xianshiyemian == 0) { |
| | | var input = $('select[id="bar"]').next().find('.layui-select-title input') |
| | | var val = input.val() |
| | | //先更新一下入库单 |
| | |
| | | }) |
| | | //点击入库单据下拉框事件 |
| | | $("#selectDiv1").click(function () { |
| | | if (xianshiyemian == 1) |
| | | { |
| | | if (xianshiyemian == 1) { |
| | | var input = $('select[id="bar1"]').next().find('.layui-select-title input') |
| | | var val = input.val() |
| | | //先更新一下入库单 |
| | |
| | | /* 绑定入库单信息 */ |
| | | |
| | | function updateBillList(callback) { |
| | | if (xianshiyemian == 0) |
| | | { |
| | | if (xianshiyemian == 0) { |
| | | var input = $('select[id="bar"]').next().find('.layui-select-title input') |
| | | var val = input.val() |
| | | $("#bar").empty() |
| | |
| | | } |
| | | }); |
| | | } |
| | | else if (xianshiyemian == 1) |
| | | { |
| | | else if (xianshiyemian == 1) { |
| | | var input = $('select[id="bar1"]').next().find('.layui-select-title input') |
| | | var val = input.val() |
| | | $("#bar1").empty() |
| | |
| | | |
| | | //绑定到托盘事件 |
| | | form.on('submit(formBind)', function (data) { |
| | | if(xianshiyemian == 0) |
| | | { |
| | | if (xianshiyemian == 0) { |
| | | console.log($("#goodSelect").val()); |
| | | if ($("#bar").val() == "") { |
| | | layer.msg('请选择入库单', { |
| | |
| | | } |
| | | }); |
| | | } |
| | | else if(xianshiyemian == 1) |
| | | { |
| | | else if (xianshiyemian == 1) { |
| | | if ($("#bar1").val() == "") { |
| | | layer.msg('请选择入库单', { |
| | | icon: 2, |
| | |
| | | var param = { |
| | | AsnNo: $("#bar1").val(), //出库单据 |
| | | PalletNo: $("#STOCKCODE1").val(), //托盘条码 |
| | | AsnDetailId: parseInt($("#goodSelect1").val()), //物料批次 |
| | | AsnDetailId: parseInt($("#goodSelect1").val()), //入库单明细ID |
| | | LotNo: $("#goodSelect1").find("option:selected").text(), //物料批次 |
| | | SkuQty: parseInt($("#SkuQty").val()), //物料数量 |
| | | Origin:"PDA" |
| | | } |
| | |
| | | |
| | | // 根据入库明细ID 获取详细信息 |
| | | function setOrderGoods() { |
| | | if (xianshiyemian == 0) |
| | | { |
| | | if (xianshiyemian == 0) { |
| | | $("#ImportQuantity").val(""); |
| | | $("#Standard").val(""); |
| | | $("#ImportFactQuantity").val(""); |
| | |
| | | } |
| | | }); |
| | | } |
| | | else if (xianshiyemian == 1) |
| | | { |
| | | else if (xianshiyemian == 1) { |
| | | $("#ImportQuantity1").val(""); |
| | | $("#Standard1").val(""); |
| | | $("#ImportFactQuantity1").val(""); |
| | |
| | | |
| | | /* 绑定入库单物料及批次 */ |
| | | function updateGoodList(skuNo) { |
| | | if (xianshiyemian == 0) |
| | | { |
| | | if (xianshiyemian == 0) { |
| | | console.log("aaaa"); |
| | | var input = $('select[id="goodSelect"]').next().find('.layui-select-title input') |
| | | var val = input.val() |
| | |
| | | } |
| | | }); |
| | | } |
| | | else if (xianshiyemian == 1) |
| | | { |
| | | else if (xianshiyemian == 1) { |
| | | console.log("bbbb"); |
| | | var input = $('select[id="goodSelect1"]').next().find('.layui-select-title input') |
| | | var val = input.val() |
| | |
| | | $("#goodSelect1").append('<option value =' + res.data[i].Id + '>' + res.data[i] |
| | | .SkuName); |
| | | } |
| | | if (res.data[i].LotNo != null) |
| | | { |
| | | if (res.data[i].LotNo != null) { |
| | | $("#goodSelect1").append("-" + res.data[i].LotNo + |
| | | '</option>'); |
| | | } |
| | |
| | | |
| | | // 渲染箱码信息 |
| | | function refreshTable() { |
| | | if (xianshiyemian == 0) |
| | | { |
| | | if (xianshiyemian == 0) { |
| | | //先清空一下箱子列表 |
| | | let trs = $("#tableBoxList tr") |
| | | let len = trs.length |
| | |
| | | } |
| | | }); |
| | | } |
| | | else if (xianshiyemian == 1) |
| | | { |
| | | else if (xianshiyemian == 1) { |
| | | //先清空一下箱子列表 |
| | | let trs = $("#tableBoxList1 tr") |
| | | let len = trs.length |
| | |
| | | |
| | | // 判断托盘码是否可用 |
| | | function checkPalletStat() { |
| | | if (xianshiyemian == 0) |
| | | { |
| | | if (xianshiyemian == 0) { |
| | | var param = { |
| | | "PalletNo": $("#STOCKCODE").val() |
| | | } |
| | |
| | | } |
| | | }); |
| | | } |
| | | else if (xianshiyemian == 1) |
| | | { |
| | | else if (xianshiyemian == 1) { |
| | | var param = { |
| | | "PalletNo": $("#STOCKCODE1").val() |
| | | } |
| | |
| | | //设置分页 |
| | | function setPages(pageIndex, boxNum){ |
| | | |
| | | if (xianshiyemian == 0) |
| | | { |
| | | if (xianshiyemian == 0) { |
| | | if(boxNum <= 0){ |
| | | //列表为空,隐藏分页页码 |
| | | $("#tableBoxPages").hide() |
| | |
| | | |
| | | setCurPage(1) |
| | | } |
| | | else if (xianshiyemian == 1) |
| | | { |
| | | else if (xianshiyemian == 1) { |
| | | if(boxNum <= 0){ |
| | | //列表为空,隐藏分页页码 |
| | | $("#tableBoxPages1").hide() |
| | |
| | | |
| | | //设置当前分页 |
| | | function setCurPage(pageIndex){ |
| | | if (xianshiyemian == 0) |
| | | { |
| | | if (xianshiyemian == 0) { |
| | | let totalTrNum = $("#tableBoxList tr").length |
| | | if(totalTrNum <= 2 ){ |
| | | //console.log("tableBoxList 为空 totalTrNum: " + totalTrNum) |
| | |
| | | } |
| | | } |
| | | } |
| | | else if (xianshiyemian == 1) |
| | | { |
| | | else if (xianshiyemian == 1) { |
| | | let totalTrNum = $("#tableBoxList1 tr").length |
| | | if(totalTrNum <= 2 ){ |
| | | return |
| | |
| | | |
| | | } |
| | | |
| | | function getBoxPageNum() |
| | | { |
| | | if (xianshiyemian == 0) |
| | | { |
| | | function getBoxPageNum() { |
| | | if (xianshiyemian == 0) { |
| | | let num = $("#tableBoxList tr").length |
| | | if(num <= 2 ){ |
| | | return 0 |
| | |
| | | |
| | | return pageNum |
| | | } |
| | | else if (xianshiyemian == 1) |
| | | { |
| | | else if (xianshiyemian == 1) { |
| | | let num = $("#tableBoxList1 tr").length |
| | | if(num <= 2 ){ |
| | | return 0 |