Administrator
2024-02-04 415c17f207966603c4c60c408f0e0bfdc3763ca7
Merge branch 'master' into wxw
8个文件已修改
110 ■■■■■ 已修改文件
HTML/views/ASNSetting/ArrivalNotice.html 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
HTML/views/ASNSetting/LabelBoxBuDa.html 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HTML/views/ASNSetting/LabelPrint.html 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
HTML/views/ASNSetting/LabelPrintSelect.html 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Wms/WMS.BLL/BllAsnServer/ArrivalNoticeServer.cs 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Wms/WMS.BLL/BllAsnServer/BllBoxInfoServer.cs 24 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Wms/WMS.IBLL/IBllAsnServer/IArrivalNoticeServer.cs 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Wms/Wms/Controllers/BllAsnController.cs 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HTML/views/ASNSetting/ArrivalNotice.html
@@ -1184,7 +1184,7 @@
                        layer.open({
                            type: 2,
                            title: '生成标签',
                            content: 'LabelPrintSelect.html',
                            content: 'LabelPrintSelect.html?Id='+id,
                            maxmin: true,
                            area: ['480px', '615px'],
                            btn: ['确定','取消'],
HTML/views/ASNSetting/LabelBoxBuDa.html
@@ -52,7 +52,7 @@
<body>
    <div style="width:100%;">
        <div class="layui-form hideCls" lay-filter="layuiadmin-app-form-list" id="print" style="width: 100%;height:100%;">
            <div style="display: flex;align-items: center;height: 260px;margin-left: 10px;">
            <div style="display: flex;align-items: center;justify-content: center; height: 260px;">
                <table border="1" id="table" style="width: 90%; height:240px; text-align: center;border-collapse: collapse;table-layout: fixed;">
                    <tr> 
                        <td colspan="2">
@@ -312,10 +312,10 @@
                        //$("#button").show();
                        $("#print2").addClass("hideCls");
                        $("#LabelStream").val("");
                        $("#EndBoxCode").val("");
                        $("#LabelStream2").val("");
                        $("#EndBoxCode2").val("");
                        // $("#LabelStream").val("");
                        // $("#EndBoxCode").val("");
                        // $("#LabelStream2").val("");
                        // $("#EndBoxCode2").val("");
                    } else { //不成功
                        layer.msg(res.msg, {
HTML/views/ASNSetting/LabelPrint.html
@@ -137,7 +137,7 @@
                synData(IP + "/BllAsn/AddLabelBox", param , 'post', function (res) {
                    if (res.code == 0) { //成功  
                        layer.msg(res.msg, {
                            icon: 2,
                            icon: 1,
                            time: 2000 //2秒关闭(如果不配置,默认是3秒)
                        }, function () {
                            parent.location.reload();
HTML/views/ASNSetting/LabelPrintSelect.html
@@ -115,6 +115,22 @@
                        , format: 'yyyy-MM-dd' //可任意组合
                    });
                    var id = getQueryString('Id');
                    var param = {
                        id: parseInt(id),
                    };
                    synData(IP + "/BllAsn/GetAsnDetailQtyList", param , 'get', function (res) {
                        if (res.code == 0) { //成功
                            $("#arriveQty").val(res.data);
                        } else { //不成功
                            layer.msg(res.msg, {
                                icon: 2,
                                time: 2000 //2秒关闭(如果不配置,默认是3秒)
                            }, function () { });
                        }
                    });
                    // form.on('select(levelFil)', function(data){  
                    //     console.log($("#type").val());  
                    //     var type = $("#type").val();
@@ -170,6 +186,13 @@
                    //     }
                    // });
                    // 获取传递参数
                    function getQueryString(name) {
                        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
                        var r = window.location.search.substr(1).match(reg);
                        if (r != null) return unescape(r[2]);
                        return null;
                    }
                })
            </script>
Wms/WMS.BLL/BllAsnServer/ArrivalNoticeServer.cs
@@ -124,6 +124,29 @@
                throw ex;
            }
        }
        //获取入库单明细剩余打印数量
        public string GetAsnDetailQtyList(int id)
        {
            try
            {
                var detail = Db.Queryable<BllArrivalNoticeDetail>().First(m => m.IsDel == "0" && m.Id == id);
                if (detail == null)
                {
                    throw new Exception("未查询到入库单明细");
                }
                var labelQty = Db.Queryable<BllBoxInfo>().Where(m => m.IsDel == "0" && m.ASNDetailNo == id).Sum(m=>m.Qty);
                var qty = detail.Qty-labelQty;
                return qty.ToString();
            }
            catch (Exception e)
            {
                throw new Exception(e.Message);
            }
        }
        //获取物料信息(添加入库单明细使用)
        public List<MaterialsDto> GetMaterialsList(GetMaterialsVm model)
        {
Wms/WMS.BLL/BllAsnServer/BllBoxInfoServer.cs
@@ -612,6 +612,9 @@
                #endregion
                var modelList = new List<BllBoxInfo>();
                var addLotNo = "";
                if (packLevel == 1)
                {
                    #region 一级包装
@@ -690,9 +693,10 @@
                        }
                    }
                    addLotNo = maxLotNoStr;
                    #endregion
                    for (int i = 1; i <= labelNum; i++)
                    {
@@ -836,9 +840,10 @@
                        }
                    }
                    addLotNo = maxCodestr2;
                    #endregion
                    for (int i = 1; i <= labelNum2; i++)//箱码标签
                    {
@@ -954,7 +959,20 @@
                    #endregion
                }
                if (string.IsNullOrWhiteSpace(asnList.LotNo))
                {
                    asnList.LotNo = addLotNo;
                    Db.Updateable(asnList).ExecuteCommand();
                }
                else
                {
                    if (!asnList.LotNo.Contains(addLotNo))
                    {
                        asnList.LotNo += ";" + addLotNo;
                        Db.Updateable(asnList).ExecuteCommand();
                    }
                }
                return modelList;
Wms/WMS.IBLL/IBllAsnServer/IArrivalNoticeServer.cs
@@ -28,6 +28,13 @@
        List<ArrivalNoticeDetailDto> GetArrivalNoticeDetailList(ArrivalNoticeDetailVm model, out int count);
        /// <summary>
        /// 获取入库单明细剩余打印数量
        /// </summary>
        /// <param name="id">id</param>
        /// <returns></returns>
        string GetAsnDetailQtyList(int id);
        /// <summary>
        /// 获取物料信息(添加入库单明细使用)
        /// </summary>
        /// <param name="model"></param>
Wms/Wms/Controllers/BllAsnController.cs
@@ -78,6 +78,25 @@
            }
        }
        /// <summary>
        /// 获取入库单明细剩余打印数量
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        [HttpGet]
        public IActionResult GetAsnDetailQtyList(int id)
        {
            try
            {
                var models = _arrivalNoticeSvc.GetAsnDetailQtyList(id);
                return Ok(new { code = 0, msg = "入库单明细信息", data = models });
            }
            catch (Exception e)
            {
                return Ok(new { code = 1, msg = e.Message });
            }
        }
        [HttpPost]
        public IActionResult GetMaterialsList(GetMaterialsVm model)
        {