| | |
| | | </ul> |
| | | </div> |
| | | |
| | | <ul> |
| | | <!-- <ul> |
| | | <li id="option1">标签</li> |
| | | <li id="option2">数量</li> |
| | | </ul> |
| | | </ul> --> |
| | | |
| | | <br /> |
| | | <button id="option1" class="layout-btn" type="button">标签</button> |
| | | <button id="option2" class="layout-btn" type="button">数量</button> |
| | | <br /><br /> |
| | | |
| | | <!-- 有码 --> |
| | | <div id="content1"> |
| | |
| | | <div class="layui-form-item layout-input" style="margin-top: 6px;"> |
| | | <label class="layui-form-label lableWidth">拣货数量:</label> |
| | | <div class="layui-input-block"> |
| | | <input id="pickQty1" type="number" placeholder="请输入拣货数量"autocomplete="off" |
| | | class="layui-input" oninput="value=value.replace(/^(0+)|[^\d]+/g,'')"> |
| | | <input id="pickQty1" type="text" placeholder="请输入拣货数量"autocomplete="off" |
| | | class="layui-input" > |
| | | </div> |
| | | </div> |
| | | </td> |
| | |
| | | <label class="layui-form-label lableWidth" >拣货数量:</label> |
| | | <div id="" class="local-input"> |
| | | <div class="layui-input-block"> |
| | | <input id="pickQty2" type="number" placeholder="请输入拣货数量" |
| | | <input id="pickQty2" type="text" placeholder="请输入拣货数量" |
| | | autocomplete="off" class="layui-input" style="padding-left:0.1rem;" |
| | | oninput="value=value.replace(/^(0+)|[^\d]+/g,'')"> |
| | | > |
| | | </div> |
| | | </div> |
| | | <div id="" class="local-ok"> |
| | |
| | | |
| | | var xianshiyemian = 0; |
| | | |
| | | $('#option1').attr("style", "background-color: aqua;width: 45.77%;float: left;text-align: center;"); //选中后颜色 |
| | | $('#option2').attr("style", "background-color: #999;width: 45.77%;float: right;text-align: center;"); //默认颜色 |
| | | $('#option1').attr("style", "background-color: red;width: 50%;float: left;text-align: center;"); //选中后颜色 |
| | | $('#option2').attr("style", "background-color: #999;width: 50%;float: right;text-align: center;"); //默认颜色 |
| | | $('#content2').hide(); |
| | | $(document).ready(function () { |
| | | $('#option1').click(function () { |
| | | // qingkong(); |
| | | xianshiyemian = 0; |
| | | $('#content1').show(); |
| | | $('#option1').attr("style", "background-color: aqua;width: 45.77%;float: left;text-align: center;"); //选中后颜色 |
| | | $('#option1').attr("style", "background-color: red;width: 50%;float: left;text-align: center;"); //选中后颜色 |
| | | |
| | | $('#content2').hide(); |
| | | $('#option2').attr("style", "background-color: #999;width: 45.77%;float: right;text-align: center;"); //默认颜色 |
| | | $('#option2').attr("style", "background-color: #999;width: 50%;float: right;text-align: center;"); //默认颜色 |
| | | $("#palletNo").focus();//光标默认选中 |
| | | }); |
| | | |
| | |
| | | // qingkong(); |
| | | xianshiyemian = 1; |
| | | $('#content1').hide(); |
| | | $('#option1').attr("style", "background-color: #999;width: 45.77%;float: left;text-align: center;"); //默认颜色 |
| | | $('#option1').attr("style", "background-color: #999;width: 50%;float: left;text-align: center;"); //默认颜色 |
| | | |
| | | $('#content2').show(); |
| | | $('#option2').attr("style", "background-color: aqua;width: 45.77%;float: right;text-align: center;"); //选中后颜色 |
| | | $('#option2').attr("style", "background-color: red;width: 50%;float: right;text-align: center;"); //选中后颜色 |
| | | $("#palletNo2").focus();//光标默认选中 |
| | | }); |
| | | }); |
| | |
| | | |
| | | //检查托盘状态 |
| | | function checkPalletState() { |
| | | |
| | | |
| | | var param = { |
| | | "PalletNo": $("#palletNo").val() |
| | | } |
| | |
| | | $('#pickQty').val(res.data.PickQty); |
| | | $('#pickedQty').val(res.data.PickedQty); |
| | | } else { //不成功 |
| | | if($("#planQty").val() == $("#finishQty").val() || $('#pickQty').val() == $('#pickedQty').val()) |
| | | { |
| | | return; |
| | | } |
| | | layer.msg(res.msg, { |
| | | icon: 2, |
| | | time: 2000 //2秒关闭(如果不配置,默认是3秒) |
| | |
| | | |
| | | //获取托盘物料名细 |
| | | function GetBoxInfo() { |
| | | if ($('#pickQty').val() == $('#pickedQty').val()) |
| | | { |
| | | return; |
| | | } |
| | | let param2 = { |
| | | "SoDetailId": $("#skuLotNo").val(), |
| | | "PalletNo": $("#palletNo").val(), |
| | |
| | | |
| | | refreshTable(tableData) |
| | | } else { |
| | | // $("#planQty").val(); //计划数量 |
| | | // $("#finishQty").val();//完成数量 |
| | | // console.info($("#planQty").val(),$("#finishQty").val()) |
| | | |
| | | layer.msg(res.msg, { |
| | | icon: 2, |
| | | time: 2000 //2秒关闭(如果不配置,默认是3秒) |
| | |
| | | }); |
| | | return; |
| | | } |
| | | if($('#pickQty1').val() != "" && $('#pickQty1').val()>parseInt($('#pickQty').val())){ |
| | | if($('#pickQty1').val() != "" && $('#pickQty1').val()>parseFloat($('#pickQty').val())){ |
| | | layer.msg("拣货数量不能大于待拣数量!", { |
| | | icon: 2, |
| | | time: 2000 //2秒关闭(如果不配置,默认是3秒) |
| | |
| | | |
| | | //确认拣货 |
| | | function reqPickScatter() { |
| | | if($('#pickQty1').val()!= "" && $('#pickQty1').val()!= undefined){ |
| | | var reg = /^[1-9]\d*(\.\d{1,4})?$|^0\.\d{1,4}[1-9]\d*$/; |
| | | if (!reg.test($("#pickQty1").val())) { |
| | | layer.msg("数量必须大于0(可保留4位小数)", { |
| | | icon: 2, |
| | | time: 2000 //2秒关闭(如果不配置,默认是3秒) |
| | | }); |
| | | return -1; |
| | | } |
| | | } |
| | | var param = { |
| | | "SoNo": $("#bar").val(), |
| | | "SoDetailId": $("#skuLotNo").val(), |
| | |
| | | $('#pickQty2').val(res.data.PickQty - res.data.PickedQty); |
| | | $('#pickedQty2').val(res.data.PickedQty); |
| | | } else { //不成功 |
| | | if($("#planQty").val() == $("#finishQty").val() || $('#pickQty').val() == $('#pickedQty').val()) |
| | | { |
| | | return; |
| | | } |
| | | layer.msg(res.msg, { |
| | | icon: 2, |
| | | time: 2000 //2秒关闭(如果不配置,默认是3秒) |
| | |
| | | |
| | | //获取托盘物料名细 |
| | | function GetDataInfo() { |
| | | if ($("#planQty").val() == $("#finishQty").val()) |
| | | { |
| | | return; |
| | | } |
| | | let param2 = { |
| | | "SoDetailId": $("#skuLotNo2").val(), |
| | | "PalletNo": $("#palletNo2").val(), |
| | |
| | | time: 2000 //2秒关闭(如果不配置,默认是3秒) |
| | | }); return; |
| | | } |
| | | let pickedQty = parseInt($('#pickedQty2').val()) //已拣数量 |
| | | let pickQty = parseInt($('#pickQty2').val()) //拣货数量 |
| | | let pickedQty = parseFloat($('#pickedQty2').val()) //已拣数量 |
| | | let pickQty = parseFloat($('#pickQty2').val()) //拣货数量 |
| | | if (pickQty <= 0) { |
| | | layer.msg("拣货数量需大于0", { |
| | | icon: 2, |
| | |
| | | |
| | | //确认拣货 |
| | | function reqPickScatter2() { |
| | | if($('#pickQty2').val()!= "" && $('#pickQty2').val()!= undefined){ |
| | | var reg = /^[1-9]\d*(\.\d{1,4})?$|^0\.\d{1,4}[1-9]\d*$/; |
| | | if (!reg.test($("#pickQty2").val())) { |
| | | layer.msg("数量必须大于0(可保留4位小数)", { |
| | | icon: 2, |
| | | time: 2000 //2秒关闭(如果不配置,默认是3秒) |
| | | }); |
| | | return -1; |
| | | } |
| | | } |
| | | var param = { |
| | | "SoNo": $("#bar2").val(), |
| | | "SoDetailId": $("#skuLotNo2").val(), |