bklLiudl
2024-08-26 fe5c4eeb45ec03380259b2e3c9b411be128ae6c8
功能测试,问题修改。
10个文件已修改
170 ■■■■ 已修改文件
HTML/views/ASNSetting/ArrivalNotice.html 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HTML/views/ASNSetting/ArrivalNoticeDetail.html 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HTML/views/ASNSetting/ProcurePlanNotice.html 27 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Wms/Model/ModelDto/BllAsnDto/ArrivalNoticeDetailDto.cs 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Wms/Model/ModelDto/BllAsnDto/ArrivalNoticeDto.cs 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Wms/Model/ModelVm/BllAsnVm/ArrivalNoticeDetailVm.cs 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Wms/WMS.BLL/BllAsnServer/ArrivalNoticeServer.cs 28 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Wms/WMS.BLL/BllAsnServer/ProcurePlanServer.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Wms/WMS.BLL/SysServer/UserInforServer.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Wms/WMS.Entity/BllAsnEntity/BllArrivalNoticeDetail.cs 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HTML/views/ASNSetting/ArrivalNotice.html
@@ -401,7 +401,7 @@
            base: '../../layuiadmin/' //静态资源所在路径
        }).extend({
            index: 'lib/index' //主入口模块
        }).use(['index', 'form','table', 'laypage', 'layer', 'laydate'], function () {
        }).use(['index', 'form', 'table', 'laypage', 'layer', 'laydate'], function () {
            var doing = true;
@@ -530,13 +530,15 @@
                // {field: 'Money',title: '金额',align: 'center',width: 65},
                { field: 'LotText', title: '批次描述', align: 'center', width: 120 },
                { field: 'PackagName', title: '包装名称', align: 'center', width: 110, },
                { field: 'IsBale', title: '是否裹包', align: 'center', width: 150 },
                { field: 'IsBelt', title: '是否打带', align: 'center', width: 150 },
                { field: 'UDF1', title: '自定义列1', align: 'center', width: 140 },
                { field: 'UDF2', title: '自定义列2', align: 'center', width: 140 },
                { field: 'UDF3', title: '自定义列3', align: 'center', width: 140 },
                { field: 'UDF4', title: '自定义列4', align: 'center', width: 140 },
                { field: 'UDF5', title: '自定义列5', align: 'center', width: 140, templet: '#templetUDF5' },
                { field: 'Lot1', title: '生产日期', align: 'center', width: 140 },
                { field: 'Lot2', title: '过期日期', align: 'center', width: 140 },
                // { field: 'IsBale', title: '是否裹包', align: 'center', width: 150 },
                // { field: 'IsBelt', title: '是否打带', align: 'center', width: 150 },
                // { field: 'UDF1', title: '自定义列1', align: 'center', width: 140 },
                // { field: 'UDF2', title: '自定义列2', align: 'center', width: 140 },
                // { field: 'UDF3', title: '自定义列3', align: 'center', width: 140 },
                // { field: 'UDF4', title: '自定义列4', align: 'center', width: 140 },
                // { field: 'UDF5', title: '自定义列5', align: 'center', width: 140, templet: '#templetUDF5' },
                { field: 'CreateUserName', title: '创建人', align: 'center', width: 100 },
                { field: 'CreateTime', title: '创建时间', align: 'center', width: 160, templet: '#templetCreateTime2' },
                { field: 'UpdateUserName', title: '修改人', align: 'center', width: 150, },
HTML/views/ASNSetting/ArrivalNoticeDetail.html
@@ -209,13 +209,16 @@
                { field: 'Standard', title: '规格', width: 160, align: 'center' },
                { field: 'LotText', title: '批次描述', align: 'center', edit: 'text', width: 160 },
                { field: 'PackagNo', title: '包装名称', width: 160, templet: "#table-content-Packlist" },
                { field: 'Lot1', title: '生产日期', align: 'center', edit: 'text', width: 140 },
                { field: 'Lot2', title: '过期日期', align: 'center', edit: 'text', width: 140 },
                // { field: 'Price', title: '单价', align: 'center', width: 80 },
                // { field: 'Money', title: '金额', align: 'center', width: 100 },
                { field: 'UDF1', title: '自定义列1', align: 'center', edit: 'text', width: 140 },
                { field: 'UDF2', title: '自定义列2', align: 'center', edit: 'text', width: 140 },
                { field: 'UDF3', title: '自定义列3', align: 'center', edit: 'text', width: 140 },
                { field: 'UDF4', title: '自定义列4', align: 'center', edit: 'text', width: 140 },
                { field: 'UDF5', title: '自定义列5', align: 'center', width: 140, templet: '#templetUDF5' },
                // { field: 'UDF1', title: '自定义列1', align: 'center', edit: 'text', width: 140 },
                // { field: 'UDF2', title: '自定义列2', align: 'center', edit: 'text', width: 140 },
                // { field: 'UDF3', title: '自定义列3', align: 'center', edit: 'text', width: 140 },
                // { field: 'UDF4', title: '自定义列4', align: 'center', edit: 'text', width: 140 },
                // { field: 'UDF5', title: '自定义列5', align: 'center', width: 140, templet: '#templetUDF5' },
                { field: 'caozuo', title: '操作', fixed: 'right', width: 100, align: 'center', templet: '#table-content-list', "disabled": true }
            ]];
            var TotalColsSysArr = encodeURIComponent(encodeURIComponent(JSON.stringify(TotalColsArr)))//将表头数据进行url编码
@@ -703,6 +706,8 @@
                        IsBale: arr[i].IsBale,
                        IsBelt: arr[i].IsBelt,
                        SupplierLot: arr[i].SupplierLot,
                        Lot1: arr[i].Lot1,
                        Lot2: arr[i].Lot2,
                        UDF1: arr[i].UDF1,
                        UDF2: arr[i].UDF2,
                        UDF3: arr[i].UDF3,
HTML/views/ASNSetting/ProcurePlanNotice.html
@@ -65,9 +65,9 @@
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">客户名称</label>
                        <label class="layui-form-label">供应商</label>
                        <div class="layui-input-inline">
                            <input type="text" id="CustomerName" name="CustomerName" placeholder="客户名称"
                            <input type="text" id="CustomerName" name="CustomerName" placeholder="供应商"
                                autocomplete="off" class="layui-input">
                        </div>
                    </div>
@@ -288,10 +288,10 @@
                { field: 'Status', title: '执行状态', align: 'center', templet: '#buttonTpl' },
                { field: 'CompleteTime', title: '完成时间', align: 'center', templet: '#templetCompleteTime' },
                { field: 'UserName', title: '制单人', align: 'center', width: 110 },
                { field: 'CreateUserName', title: '创建人', align: 'center', width: 110 },
                // { field: 'CreateUserName', title: '创建人', align: 'center', width: 110 },
                { field: 'CreateTime', title: '下发时间', align: 'center', templet: '#templetCreateTime' },
                { field: 'UpdateUserName', title: '修改人', align: 'center', width: 110 },
                { field: 'UpdateTime', title: '修改时间', align: 'center', templet: '#templetUpdateTime' },
                // { field: 'UpdateUserName', title: '修改人', align: 'center', width: 110 },
                // { field: 'UpdateTime', title: '修改时间', align: 'center', templet: '#templetUpdateTime' },
                //{ field: 'caozuo', title: '操作', fixed: 'right', width: 280, align: 'center', toolbar: '#toolbarDemo1', "disabled": true }
            ]];
            var TotalColsSysArr = encodeURIComponent(encodeURIComponent(JSON.stringify(TotalColsArr)))//将表头数据进行url编码
@@ -331,7 +331,7 @@
                        height: h1,
                        id: 'LAY-app-content-list',
                        where: param,
                        contentType: 'application/json',
                        headers: { ToKen: $.cookie('token') },
                        page: true,
@@ -362,19 +362,19 @@
                { field: 'OrderDetailCode', title: '采购单行号', align: 'center', width: 100 },
                { field: 'CustomerName', title: '供应商名称', align: 'center' },
                { field: 'SkuNo', title: '物料编码', align: 'center', width: 100 },
                { field: 'SkuName', title: '物料名称', align: 'center', width: 200 },
                { field: 'Standard', title: '物料规格', align: 'center', width: 130 },
                { field: 'SkuName', title: '物料名称', align: 'center' },
                { field: 'Standard', title: '物料规格', align: 'center' },
                { field: 'Qty', title: '数量', align: 'center', width: 70 },
                { field: 'CompleteQty', title: '完成数量', align: 'center', width: 90 },
                { field: 'CompleteTime', title: '完成时间', align: 'center', width: 160, templet: '#templetCompleteTime2' },
                //{ field: 'UnitName', title: '计量单位', align: 'center', width: 90 },
                //{ field: 'Price', title: '单价', align: 'center', width: 65 },
                //{ field: 'Money', title: '金额', align: 'center', width: 65 },
                { field: 'PackagName', title: '包装名称', align: 'center', width: 110, },
                { field: 'CreateUserName', title: '创建人', align: 'center', width: 100 },
                { field: 'CreateTime', title: '创建时间', align: 'center', width: 160, templet: '#templetCreateTime2' },
                { field: 'UpdateUserName', title: '修改人', align: 'center', width: 150, },
                { field: 'UpdateTime', title: '修改时间', align: 'center', width: 150, templet: '#templetUpdateTime3' },
                { field: 'PackagName', title: '包装名称', align: 'center' },
                // { field: 'CreateUserName', title: '创建人', align: 'center', width: 100 },
                // { field: 'CreateTime', title: '创建时间', align: 'center', width: 160, templet: '#templetCreateTime2' },
                // { field: 'UpdateUserName', title: '修改人', align: 'center', width: 150, },
                // { field: 'UpdateTime', title: '修改时间', align: 'center', width: 150, templet: '#templetUpdateTime3' },
                //{ field: 'caozuo', title: '操作', fixed: 'right', align: 'center', toolbar: '#toolbarDemoList', "disabled": true }
            ]];
            var DetailColsSysArr = encodeURIComponent(encodeURIComponent(JSON.stringify(DetailColsArr)))//将表头数据进行url编码
@@ -411,6 +411,7 @@
                        defaultToolbar: [], //'filter','print', 'exports'
                        headers: { ToKen: $.cookie('token') },
                        page: true,
                        even: true,
                        limit: pageCnt,
                        limits: pageLimits,
                        cellMinWidth: 60, //全局定义常规单元格的最小宽度,layui 2.2.1 新增
Wms/Model/ModelDto/BllAsnDto/ArrivalNoticeDetailDto.cs
@@ -157,6 +157,31 @@
        public string AsnStatus { get; set; }
        /// <summary>
        /// 批次属性1-生产日期
        /// </summary>
        public string Lot1 { get; set; }
        /// <summary>
        /// 批次属性2-过期日期
        /// </summary>
        public string Lot2 { get; set; }
        /// <summary>
        /// 批次属性3
        /// </summary>
        public string Lot3 { get; set; }
        /// <summary>
        /// 批次属性4
        /// </summary>
        public string Lot4 { get; set; }
        /// <summary>
        /// 批次属性5
        /// </summary>
        public string Lot5 { get; set; }
        /// <summary>
        /// 批次属性6
        /// </summary>
        public string Lot6 { get; set; }
        /// <summary>
        /// 自定义列1
        /// </summary>
        public string UDF1 { get; set; }
Wms/Model/ModelDto/BllAsnDto/ArrivalNoticeDto.cs
@@ -43,7 +43,7 @@
        public string CustomerNo { get; set; }
        /// <summary>
        /// Desc:客户名称
        /// Desc:供应商名称
        /// Default:
        /// Nullable:True
        /// </summary>           
@@ -89,6 +89,7 @@
        public DateTime CreateTime { get; set; }
        public string CreateUserName { get; set; }
        public string UserName { get; set; }
        public string UpdateTime { get; set; }
Wms/Model/ModelVm/BllAsnVm/ArrivalNoticeDetailVm.cs
@@ -122,6 +122,31 @@
        public int? CreateUser { get; set; }
        /// <summary>
        /// 批次属性1-生产日期
        /// </summary>
        public string Lot1 { get; set; }
        /// <summary>
        /// 批次属性2-过期日期
        /// </summary>
        public string Lot2 { get; set; }
        /// <summary>
        /// 批次属性3
        /// </summary>
        public string Lot3 { get; set; }
        /// <summary>
        /// 批次属性4
        /// </summary>
        public string Lot4 { get; set; }
        /// <summary>
        /// 批次属性5
        /// </summary>
        public string Lot5 { get; set; }
        /// <summary>
        /// 批次属性6
        /// </summary>
        public string Lot6 { get; set; }
        /// <summary>
        /// 自定义列1
        /// </summary>
        public string UDF1 { get; set; }
Wms/WMS.BLL/BllAsnServer/ArrivalNoticeServer.cs
@@ -73,6 +73,7 @@
                    CompleteTime = tb1.CompleteTime,
                    CreateTime = tb1.CreateTime,
                    CreateUserName = tb3.RealName,
                    UserName=tb1.UserName,
                    UpdateTime = ((DateTime)tb1.UpdateTime).ToString("yyyy-MM-dd HH:mm:ss"),
                    UpdateUserName = tb4.RealName
@@ -118,6 +119,8 @@
                     Status = tb1.Status,
                     AsnType = tb2.Type,
                     AsnStatus = tb2.Status,
                     Lot1 = tb1.Lot1,
                     Lot2 = tb1.Lot2,
                     UDF1 = tb1.UDF1,
                     UDF2 = tb1.UDF2,
                     UDF3 = tb1.UDF3,
@@ -519,8 +522,21 @@
                            }
                        }
                        if (TypeLot.Contains(model.Type))
                        {
                            if (string.IsNullOrWhiteSpace(detailModel.Lot1))
                            {
                                throw new Exception("生产日期不可为空!");
                            }
                            if (string.IsNullOrWhiteSpace(detailModel.Lot2))
                            {
                                throw new Exception("过期日期不可为空!");
                            }
                        }
                        // 判断是否已存在当前明细
                        var com =  dbDetailModels.Where(m => m.SkuNo == detailModel.SkuNo && m.LotNo == detailModel.LotNo && m.Id != detailModel.Id && m.IsDel == "0").Count();
                        var com =  dbDetailModels.Where(m => m.SkuNo == detailModel.SkuNo
                        && m.LotNo == detailModel.LotNo && m.Id != detailModel.Id && m.IsDel == "0").Count();
                        if (com > 0)
                        {
                            strMessage = "-1:物料和批次号重复;";
@@ -587,6 +603,8 @@
                                IsBelt = detailModel.IsBelt,
                                SupplierLot = detailModel.SupplierLot,
                                Status = "0",
                                Lot1 = detailModel.Lot1,
                                Lot2 = detailModel.Lot2,
                                UDF1 = detailModel.UDF1,
                                UDF2 = detailModel.UDF2,
                                UDF3 = detailModel.UDF3,
@@ -607,6 +625,8 @@
                                             && it.SupplierLot == detailModel.SupplierLot
                                             && it.IsBale == detailModel.IsBale
                                             && it.IsBelt == detailModel.IsBelt
                                             && it.Lot1 == detailModel.Lot1                                 // 生产日期
                                             && it.Lot2 == detailModel.Lot2                                 // 过期日期
                                             && it.UDF1 == detailModel.UDF1
                                             && it.UDF2 == detailModel.UDF2
                                             && it.UDF3 == detailModel.UDF3
@@ -624,7 +644,7 @@
                                {
                                    if (dbDetail.LotNo != detailModel.LotNo)
                                    {
                                        strMessage = "-1:当前单据类型不可更改批次,只可编辑数量;";
                                        strMessage = "-1:当前单据类型不可更改批次;";
                                        continue;
                                    }
                                }
@@ -639,6 +659,8 @@
                            dbDetail.LotText = detailModel.LotText;
                            dbDetail.SupplierLot = detailModel.SupplierLot;
                            dbDetail.IsBale = detailModel.IsBale;
                            dbDetail.Lot1 = detailModel.Lot1;
                            dbDetail.Lot2 = detailModel.Lot2;
                            dbDetail.UDF1 = detailModel.UDF1;
                            dbDetail.UDF2 = detailModel.UDF2;
                            dbDetail.UDF3 = detailModel.UDF3;
@@ -792,7 +814,7 @@
                    asnModel.UpdateUser = model.CreateUser;
                }
                asnDetail.IsDel = "0";
                asnDetail.IsDel = "1";
                asnDetail.UpdateTime = editDateTime;
                asnDetail.UpdateUser = model.CreateUser;
Wms/WMS.BLL/BllAsnServer/ProcurePlanServer.cs
@@ -42,6 +42,7 @@
                .WhereIF(!string.IsNullOrWhiteSpace(model.EndTime), tb1 => tb1.CreateTime <= Convert.ToDateTime(model.EndTime).AddDays(1))
                .WhereIF(!string.IsNullOrWhiteSpace(model.SkuName), (tb1,tb2) => tb2.SkuName.Contains(model.SkuName))
                .WhereIF(!string.IsNullOrWhiteSpace(model.SkuNo), (tb1,tb2) => tb2.SkuNo.Contains(model.SkuNo))
                .WhereIF(!string.IsNullOrWhiteSpace(model.CustomerName), (tb1,tb2) => tb2.CustomerName.Contains(model.CustomerName))
                .Where(tb1 => tb1.IsDel == "0")
                .OrderBy(tb1=>tb1.Status)
                .OrderByDescending(tb1 => tb1.CreateTime)
Wms/WMS.BLL/SysServer/UserInforServer.cs
@@ -65,6 +65,7 @@
                                        .LeftJoin<SysUserInfor>((a, b) => a.CreateUser == b.Id)
                                        .LeftJoin<SysDepartment>((a, b, c) => a.DepartmentNo == c.DepartmentNo)
                                        .LeftJoin<SysRoles>((a, b, c, d) => a.RoleNo == d.RoleNo)
                                        .Where((a,b,c,d)=>d.IsDel == "0")
                                        .WhereIF(!string.IsNullOrEmpty(UserName), a => a.UserName.Contains(UserName))
                                        .WhereIF(!string.IsNullOrEmpty(DepartmentNo), a => a.DepartmentNo == DepartmentNo)
                                        .WhereIF(!string.IsNullOrEmpty(RoleNo), a => a.RoleNo == RoleNo)
@@ -187,9 +188,7 @@
        /// <summary>
        /// 修改用户密码
        /// </summary>
        /// <param name="pwdOld">原密码</param>
        /// <param name="pwdNew">新密码</param>
        /// <param name="pwdNewTwo">确认密码</param>
        /// <param name="userId">用户id</param>
        /// <returns></returns>
        /// <exception cref="Exception">捕获异常</exception>
@@ -199,6 +198,7 @@
                            .Where(s => s.Id == userId)
                            .SetColumns(s => s.UpdateTime == DateTime.Now)
                            .SetColumns(s => s.UpdateUser == _userManager.UserId)
                            .SetColumns(s=>s.PassWord == pwdNew)
                            .SetColumns(s => s.SetPasswordTime == DateTime.Now)
                            .ExecuteCommandAsync();
        }
Wms/WMS.Entity/BllAsnEntity/BllArrivalNoticeDetail.cs
@@ -145,6 +145,30 @@
        /// Nullable:True
        /// </summary>   
        public string InspectStatus { get; set; }
        /// <summary>
        /// 批次属性1-生产日期
        /// </summary>
        public string Lot1 { get; set; }
        /// <summary>
        /// 批次属性2-过期日期
        /// </summary>
        public string Lot2 { get; set; }
        /// <summary>
        /// 批次属性3
        /// </summary>
        public string Lot3 { get; set; }
        /// <summary>
        /// 批次属性4
        /// </summary>
        public string Lot4 { get; set; }
        /// <summary>
        /// 批次属性5
        /// </summary>
        public string Lot5 { get; set; }
        /// <summary>
        /// 批次属性6
        /// </summary>
        public string Lot6 { get; set; }
        /// <summary>
        /// 自定义列1