zhaowc
2025-04-01 af73aff35be4607dd22232d5695e30ca3059c436
PDA的2个拣货页面修改
7个文件已修改
225 ■■■■■ 已修改文件
HTML/views/index.html 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Pda/View/SoSetting/pinTuoOut.html 53 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Pda/View/SoSetting/productOut.html 94 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Wms/WMS.BLL/BllPdaServer/PdaSoServer.cs 42 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Wms/WMS.IBLL/IPdaServer/IPdaSoServer.cs 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Wms/Wms/Controllers/PdaSoController.cs 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Wms/Wms/appsettings.json 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HTML/views/index.html
@@ -66,7 +66,7 @@
                <div class="layui-side layui-side-menu" id="leftmenu">
                    <div class="layui-side-scroll">
                        <div class="layui-logo" lay-href="home/console.html" style="background-color: #FFFFFF;">
                            <span>博柯莱·仓储管理系统</span>
                            <span>沂南力诺·仓储管理系统</span>
                        </div>
                        <ul class="layui-nav layui-nav-tree" lay-shrink="all" id="LAY-system-side-menu" lay-filter="layadmin-system-side-menu">
                            
Pda/View/SoSetting/pinTuoOut.html
@@ -343,6 +343,8 @@
                                                        </div>
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                 <td>
                                                    <div class="layui-form-item ">
                                                        <label class="layui-form-label lableWidth">托盘上数量:</label>
@@ -631,7 +633,20 @@
            var tableData = null
            var tableData2 = null
            var canPickBox = true
            $("#palletNo").focus();//光标默认选中
            $("#palletNo").focus();//光标默认选中
            function clear5()
            {
                $('#outModel').val("");//出库口
                $('#standard').val("");//规格
                $('#pickQty').val("");//待拣数量
                $('#pickedQty').val("");//已拣数量
                $('#palletNoqty').val("");//已拣数量
                $('#boxNo').val("");//箱码
                $('#boxQty').val("");//托盘上数量
            }
            function clear1() {
                $('#outModel').val("");//出库口
@@ -792,6 +807,17 @@
                            icon: 2,
                            time: 2000 //2秒关闭(如果不配置,默认是3秒)
                        });
                        clear5;
                        $("#palletNo").val("");//托盘号
                        $("#pickQty1").val("");//托盘号
                        $("#planQty").val("");  //计划数量
                        $("#finishQty").val("");//完成数量
                        //物料批次
                        $("#skuLotNo").empty();
                        $("#skuLotNo").append('<option value =>' + '</option>');
                        form.render('select');
                    }
                });
            }
@@ -886,6 +912,7 @@
                if(list.length == 1){
                    $("#pickQty1").val(list[0].Qty) 
                }
                let pallnono = 0;
                console.log(list != null);
                console.log(list);
                if (list != null && list.length > 0) { //成功
@@ -905,6 +932,8 @@
                        tr.find("td[name='qty']").html(list[i].Qty);
                        tr.find("td[name='pickedQty']").html(list[i].PickedQty);
                        pallnono = pallnono + list[i].Qty;
                        tr.show();
                        arrTrs[i] = tr
                    }
@@ -919,6 +948,7 @@
                    // $("#boxNum").val(0)
                    setPages(1, 0)
                }
                $("#palletNoqty").val(pallnono)
            }
            //获取托盘物料名细
@@ -946,6 +976,27 @@
                    }
                });
            }
            //获取托盘物料名细
            function getpallnono() {
                let param2 = {
                    "PalletNo": $("#palletNo").val(),
                }
                synData(IP + "/PdaSo/GetDataPallnoInfo", param2, 'post', function (res) {
                    if (res.code == 0) {
                        console.log("111111111111111:"+res.data.Qty);
                        //tableData = deepCopy(res.data)
                        console.log("111111111111111:"+res.data.Qty);
                        $("#palletNoqty").val(res.data.Qty)
                    } else {
                        layer.msg(res.msg, {
                            icon: 2,
                            time: 2000 //2秒关闭(如果不配置,默认是3秒)
                        }, function () { });
                    }
                });
            }
            //单拣货(确认按钮)
            form.on('submit(formPickScatter)', function (data) {
Pda/View/SoSetting/productOut.html
@@ -262,6 +262,11 @@
                                <input type="checkbox" name="IsZhengTuo" id="IsZhengTuo" lay-skin="switch" lay-text="是|否"
                                    lay-filter="IsZhengTuo">
                            </div>
                            <label class="layui-form-label" lang>是否连续拣货:</label>
                            <div class="layui-input-block">
                                <input type="checkbox" name="IsCheckCon" id="IsCheckCon" lay-skin="switch" lay-text="是|否"
                                    lay-filter="IsCheckCon">
                            </div>
                        </div>
                        <div id="BoxDIv" class="layout-tab-page">
                            <table class="layout-tab-content" border="" cellspacing="" cellpadding="">
@@ -345,6 +350,17 @@
                                                    </div>
                                                </td> -->
                                            </tr>
                                            <tr>
                                                <td>
                                                   <div class="layui-form-item ">
                                                       <label class="layui-form-label lableWidth">托盘上数量:</label>
                                                       <div class="layui-input-block">
                                                           <input id="palletNoqty" class="layui-input" style="border: 0;"
                                                               type="text" lay-verify="" disabled placeholder="">
                                                       </div>
                                                   </div>
                                               </td>
                                           </tr>
                                        </table>
                                    </td>
                                </tr>
@@ -612,11 +628,25 @@
            var curPageIndex = 1
            //是否整托拣货
            var isContinue = "0";
            var isConCheck = "0";
            var tableData = null
            var tableData2 = null
            var canPickBox = true
            $("#palletNo").focus();//光标默认选中        
            function clear5()
            {
                $('#outModel').val("");//出库口
                $('#standard').val("");//规格
                $('#pickQty').val("");//待拣数量
                $('#pickedQty').val("");//已拣数量
                $('#palletNoqty').val("");//已拣数量
                $('#boxNo').val("");//箱码
                $('#boxQty').val("");//托盘上数量
            }
            function clear1() {
                $('#outModel').val("");//出库口
                $('#standard').val("");//规格
@@ -657,6 +687,16 @@
                } else {                    
                    $('#BoxDIv').attr("style", "display:block")
                    isContinue="0";
                }
                $('#boxNo').val("");
                $('#boxNo3').val("");
            });
            form.on('switch(IsCheckCon)', function (obj) {
                if (obj.elem.checked) {
                    isConCheck="1";
                } else {
                    isConCheck="0";
                }
                $('#boxNo').val("");
                $('#boxNo3').val("");
@@ -774,9 +814,22 @@
                            icon: 2,
                            time: 2000 //2秒关闭(如果不配置,默认是3秒)
                        });
                        clear5;
                        $("#palletNo").val("");//托盘号
                        $("#pickQty1").val("");//托盘号
                        $("#planQty").val("");  //计划数量
                        $("#finishQty").val("");//完成数量
                        //物料批次
                        $("#skuLotNo").empty();
                        $("#skuLotNo").append('<option value =>' + '</option>');
                        form.render('select');
                    }
                });
            }
            //初始化渲染 物料-批次
            function updateSkuLotNoList() {
@@ -870,6 +923,7 @@
                console.log(list != null);
                console.log(list);
                let pallnono = 0;
                if (list != null && list.length > 0) { //成功
                    var arrTrs = new Array()
@@ -886,6 +940,7 @@
                        tr.find("td[name='boxNo']").html(list[i].BoxNo); 
                        tr.find("td[name='qty']").html(list[i].Qty);
                        tr.find("td[name='pickedQty']").html(list[i].PickedQty);
                        pallnono = pallnono + list[i].Qty;
                        tr.show();
                        arrTrs[i] = tr
@@ -901,6 +956,7 @@
                    // $("#boxNum").val(0)
                    setPages(1, 0)
                }
                $("#palletNoqty").val(pallnono)
            }
            //获取托盘物料名细
@@ -982,7 +1038,36 @@
                        });
                        return;
                    }
                }
                }
                if(isConCheck=="0"){
                    if ($('#boxNo').val() == "") {
                        layer.msg("请输入箱码", {
                            icon: 2,
                            time: 2000 //2秒关闭(如果不配置,默认是3秒)
                        }); return;
                    }
                    if ($('#boxQty').val() == "") {
                        layer.msg("箱内数量为空,不能拣货", {
                            icon: 2,
                            time: 2000 //2秒关闭(如果不配置,默认是3秒)
                        });
                        return;
                    }
                    if(($('#boxNo3').val() != "" && ($('#pickQty1').val() != "" || $('#pickQty1').val() != 0))){
                        layer.msg("追溯条码和拣货数量不能同时输入!", {
                            icon: 2,
                            time: 2000 //2秒关闭(如果不配置,默认是3秒)
                        });
                        return;
                    }
                    if($('#pickQty1').val() != "" && $('#pickQty1').val()>parseFloat($('#pickQty').val())){
                        layer.msg("拣货数量不能大于待拣数量!", {
                            icon: 2,
                            time: 2000 //2秒关闭(如果不配置,默认是3秒)
                        });
                        return;
                    }
                }
                // let boxQty = parseInt($('#boxQty').val())
                // let qty = parseInt($('#qty').val()) 
                // if (qty <= 0 || qty > boxQty) {
@@ -1279,6 +1364,7 @@
                var param = {
                    PalletNo: $("#palletNo2").val(),
                };
                synData(IP + "/PdaSo/GetRunSoNoticeList", param, 'post', function (res) {
                    if (res.code == 0) { //成功
                        console.log(res.data);
@@ -1291,11 +1377,15 @@
                        }
                        form.render('select');
                    } else { //不成功
                    }
                    else
                     { //不成功
                        layer.msg(res.msg, {
                            icon: 2,
                            time: 2000 //2秒关闭(如果不配置,默认是3秒)
                        });
                    }
                });
            }
Wms/WMS.BLL/BllPdaServer/PdaSoServer.cs
@@ -2870,26 +2870,44 @@
                    throw new Exception("当前托盘未在库存中");
                }
                //怎么判断当前托盘是库外要取样的托盘,正常出库剩余托盘目前这种情况也能拣货啊,也没有分配信息
                var allot = Db.Queryable<BllExportAllot>().First(m =>
                    m.IsDel == "0" && m.PalletNo == palletNo && m.Status != "5" && m.Status != "6");
                if (allot != null)
                //先获取单据分配信息,再获取托盘分配信息
                var allotnotice = Db.Queryable<BllExportNotice>().Where(m =>
                    m.IsDel == "0" && m.Type == "3").ToList();
                if (allotnotice.Count  == 0)
                {
                    var soNo = Db.Queryable<BllExportNotice>()
                        .First(m => m.IsDel == "0" && m.SONo == allot.SONo);
                    if (soNo == null)
                    throw new Exception("未找到取样单据信息");
                }
                int pano = 0;
                var sono = "";
                foreach (var item in allotnotice)
                {
                    var allot = Db.Queryable<BllExportAllot>().First(m =>
                    m.IsDel == "0" && m.PalletNo == palletNo && m.Status != "5" && m.Status != "6" && m.SONo == item.SONo);
                    if (allot != null)
                    {
                        throw new Exception("未找到托盘上出库单据信息");
                        pano++;
                        sono = item.SONo;
                    }
                    if (soNo.Type != "3")
                }
                if (pano > 0)
                {
                    var locate = Db.Queryable<DataStockDetail>().First(w => w.PalletNo == palletNo);
                    if (locate != null)
                    {
                        throw new Exception("该托盘不是取样托盘");
                        if (locate.WareHouseNo == "w01")
                        {
                            type = "0";//库内取样
                        }
                        else
                        {
                            type = "1";
                        }
                    }
                    type = "0";//库内取样
                }
                else
                {
                    //判断当前托盘是否是在平库或库外
                    type = "1";//库前取样
                    throw new Exception("未找到取样托盘信息");
                }
                return type;
            }
Wms/WMS.IBLL/IPdaServer/IPdaSoServer.cs
@@ -55,7 +55,15 @@
        /// <param name="boxNo">箱码</param>
        /// <param name="boxNo3">支/袋码</param>
        /// <returns></returns>
        List<BoxInfo> GetDataComBoxInfo(string soDetailId,string palletNo, string boxNo, string boxNo3);
        List<BoxInfo> GetDataComBoxInfo(string soDetailId,string palletNo, string boxNo, string boxNo3);
        ///// <summary>
        ///// 获取托盘上数量
        ///// </summary>
        ///// <param name="palletNo">托盘号</param>
        ///// <returns></returns>
        //List<BoxInfo> GetDataPallnoInfo(string palletNo);
        /// <summary>
        /// 获取库内无箱码的托盘分配信息
Wms/Wms/Controllers/PdaSoController.cs
@@ -160,6 +160,26 @@
            }
        }
        ///// <summary>
        ///// 获取托盘上物料数量
        ///// </summary>
        ///// <param name="model">Pallno:托盘号</param>
        ///// <returns></returns>
        //[HttpPost]
        //public IActionResult GetDataPallnoInfo(PdaSoVm model)
        //{
        //    try
        //    {
        //        var models = _pdaSoSvc.GetDataPallnoInfo(model.SoDetailId, model.PalletNo, model.BoxNo, model.BoxNo3);
        //        return Ok(new { code = 0, msg = "箱码信息", data = models });
        //    }
        //    catch (Exception e)
        //    {
        //        return Ok(new { code = 1, msg = e.Message });
        //    }
        //}
        /// <summary>
        /// 获取箱码信息(获取库内无箱码的托盘分配信息)
        /// </summary>
Wms/Wms/appsettings.json
@@ -11,8 +11,8 @@
    //"ConnectionString": "Server=47.95.120.93;Database=WMS_JC09;User ID=sa;password=boxline!@#; Integrated Security=True;",
    //"ConnectionString": "Server=47.95.120.53;Database=WMS_JC09;User ID=sa;Password=boxline!@#;Integrated Security=False;",
    //"ConnectionString": "Server=192.168.62.106;Database=WMS_JC24;User ID=sa;Password=sql2019;Integrated Security=False;",
    //"ConnectionString": "Server=192.168.62.200;Database=WMS_JC24;User ID=sa;Password=sql2019;Integrated Security=False;"
    "ConnectionString": "Server=10.18.99.10;Database=WMS_JC24;User ID=sa;Password=sql2024;Integrated Security=False;"
    "ConnectionString": "Server=192.168.62.200;Database=WMS_JC24;User ID=sa;Password=sql2019;Integrated Security=False;"
    //"ConnectionString": "Server=10.18.99.10;Database=WMS_JC24;User ID=sa;Password=sql2024;Integrated Security=False;"
    //"ConnectionString": "Server=.;Database=WMS_JC24;User ID=sa;Password=sql2022;Integrated Security=False;"
    //"ConnectionString": "Data Source=DESKTOP-0EJDG95\\MSSQLSERVER1;Initial Catalog=WMS_V01;Integrated Security=True;"
  },