chengsc
2024-09-05 514076cd4779972d3532fbc9fd0989c2a5d30816
修改问题
9个文件已修改
45 ■■■■ 已修改文件
HTML/views/ASNSetting/ArrivalNotice.html 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HTML/views/StatisticalReport/BoxInfor.html 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Pda/View/AsnSetting/productEnterQuantity.html 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Wms/WMS.BLL/BllAsnServer/BllBoxInfoServer.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Wms/WMS.BLL/BllQualityServer/QualityInspectServer.cs 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Wms/WMS.BLL/BllSoServer/CompleteDetailServer.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Wms/WMS.BLL/BllSoServer/ExportNoticeServer.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Wms/Wms/CreateBoxInfo.json 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HTML/views/ASNSetting/ArrivalNotice.html
@@ -320,6 +320,10 @@
                                    html += `<a class="layui-btn layui-btn-normal layui-btn-xs addLabelClass" lay-event="Addlabel2"> 
                                        <i class="layui-icon layui-icon-edit"></i>生成标签</a>`;
                                }
                                if(d.AsnType == "5"&& (d.Status == "0" || d.Status == "1") && (d.PackagNo != ""|| d.PackagNo!=null)){
                                    html += `<a class="layui-btn layui-btn-normal layui-btn-xs addLabelClass" lay-event="Addlabel">
                                        <i class="layui-icon layui-icon-edit"></i>生成标签</a>`;
                                }
                                return html;
                            } 
                        }}
HTML/views/StatisticalReport/BoxInfor.html
@@ -412,6 +412,7 @@
                    {field: 'FrozenQty', title: '冻结数量', align: 'center'},
                    {field: 'InspectMark', title: '抽检标记', align: 'center', templet: '#InspectMarkStatus'},
                    {field: 'BitPalletMark', title: '零托标记', align: 'center', templet: '#BitPalletMarkStatus'},
                    {field: 'Demo', title: '寄存备注', align: 'center'},
                ]];
                var TotalColsSysArr=encodeURIComponent(encodeURIComponent(JSON.stringify(TotalColsArr)))//将表头数据进行url编码
                //#endregion
Pda/View/AsnSetting/productEnterQuantity.html
@@ -1247,6 +1247,7 @@
            function checkBoxInfo() {
                var param = {
                    "BoxNo": $("#BOXCODE").val(),
                    "AsnNo":$("#bar").val(),
                }
                sendData(IP + "/PdaAsn/GetBindBoxInfos", param, 'post', function (res) {
                    if (res.code == 0) { //成功
Wms/WMS.BLL/BllAsnServer/BllBoxInfoServer.cs
@@ -980,7 +980,7 @@
                                LotNo = maxCodestr2,
                                Standard = asnList.Standard,
                                PackageStandard = packStr,
                                SupplierLot = asnList.SupplierLot,
                                SupplierLot = supplierLot,
                                InspectMark = "0",
                                BitBoxMark = bNum > boxQty ? "1" : "0",
                                InspectStatus = "0",
Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs
@@ -1817,12 +1817,19 @@
                {
                    throw new Exception("请扫描外箱条码!");
                }
                if (!string.IsNullOrWhiteSpace(model.ASNNo))
                {
                    var asnData = Db.Queryable<BllArrivalNotice>().First(m => m.IsDel == "0" && m.ASNNo == model.ASNNo);
                    if (asnData != null && (asnData.Type == "0" || asnData.Type == "3"))
                    {
                var count = Db.Queryable<BllBoxInfo>().Count(m => m.IsDel == "0" && m.Status == "0" && m.BoxNo == model.BoxNo);
                if (count == 0)
                {
                    GetBoxInfoByFuMa(model.BoxNo, ""); //从赋码系统获取箱码信息
                }
                    }
                }
                string sqlString = $@"SELECT 
                                        ASNNo,
                                        BoxNo, 
@@ -1836,7 +1843,7 @@
                                        AND BoxNo = '{model.BoxNo}'
                                      GROUP BY ASNNo,BoxNo,SkuNo,SkuName,LotNo; ";
                var models = Db.Ado.SqlQuery<BoxInfoDto>(sqlString);
                if (models == null)
                if (models.Count == 0)
                {
                    throw new Exception("箱码信息不存在!");
                }
Wms/WMS.BLL/BllQualityServer/QualityInspectServer.cs
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using Model.ModelDto.BllQualityDto;
using Model.ModelVm;
@@ -105,7 +106,7 @@
            {
                throw new Exception("批次号不可为空,请核查!");
            }
            //int isTui = 0;
            int isTui = 0;
            //验证入库单号是否为空
            if (!string.IsNullOrEmpty(model.ASNNo))
            {
@@ -122,7 +123,7 @@
                {
                    throw new Exception("输入的批次或物料信息与入库单据不符,请核查!");
                }
                //isTui = 1;
                isTui = 1;
            }
            //查找质检信息中是否存在同批次质检录入记录
@@ -155,9 +156,13 @@
            //查找库存明细信息
            List<DataStockDetail> detail = Db.Queryable<DataStockDetail>().Where(m => m.IsDel == "0" && m.SkuNo == model.SkuNo && m.LotNo == model.LotNo).ToList();
            if (isTui == 1)
            {
                detail = detail.Where(m=> m.ASNNo == model.ASNNo).ToList();
            }
            foreach (var item in detail)
            {
                List<BllBoxInfo> box = Db.Queryable<BllBoxInfo>().Where(a => a.IsDel == "0" && a.SkuNo == model.SkuNo && a.LotNo == model.LotNo).ToList();
                List<DataBoxInfo> box = Db.Queryable<DataBoxInfo>().Where(a => a.IsDel == "0" && a.StockDetailId == item.Id && a.SkuNo == model.SkuNo && a.LotNo == model.LotNo).ToList();
                //判断合格状态是否合格
                if (model.IsQualified == "1")
                {
@@ -167,7 +172,7 @@
                    item.InspectStatus = "1"; //1合格
                    foreach (var b1 in box)
                    {
                        b1.InspectMark = "1"; //1合格
                        b1.InspectStatus = "1"; //1合格
                    }
                }
                else //不合格
@@ -177,7 +182,7 @@
                    item.InspectStatus = "2"; //2不合格
                    foreach (var b1 in box)
                    {
                        b1.InspectMark = "2"; //2不合格
                        b1.InspectStatus = "2"; //2不合格
                    }
                }
                Db.Updateable(box).ExecuteCommand();
Wms/WMS.BLL/BllSoServer/CompleteDetailServer.cs
@@ -27,7 +27,7 @@
            {
                var total = 0;
                var detailInfo = Db.Queryable<BllCompleteDetail>().Where(w => w.ExportAllotId == id).ToList();
                var num = detailInfo.Count(w=> string.IsNullOrEmpty(w.BoxNo) && !string.IsNullOrEmpty(w.BoxNo3));
                var num = detailInfo.Count(w=> string.IsNullOrEmpty(w.BoxNo) && string.IsNullOrEmpty(w.BoxNo3));
                if (detailInfo.Count>0 && num == 0) //箱码和支码都为空的数量等与0 证明是箱码拣货
                {
                    Expression<Func<BllCompleteDetail, bool>> item = Expressionable.Create<BllCompleteDetail>()
Wms/WMS.BLL/BllSoServer/ExportNoticeServer.cs
@@ -475,6 +475,7 @@
                    .AndIF(!string.IsNullOrWhiteSpace(inspectStatus), it => inspectStatus.Contains(it.InspectStatus))
                    .And(m => skuList.Contains(m.SkuNo))
                    .AndIF(type == "6", m => m.OwnerNo == ownerNo)//代储出库需要关联货主
                    .AndIF(type == "2", m=> string.IsNullOrWhiteSpace(m.OwnerNo))
                    .AndIF(!string.IsNullOrWhiteSpace(msg), it => (it.SkuNo.Contains(msg) || it.SkuName.Contains(msg) || it.LotNo.Contains(msg)))
                    .And(it => (it.Qty - it.LockQty - it.FrozenQty) > 0)
                    .And(it => (it.Status == "0" || it.Status == "1"))
Wms/Wms/CreateBoxInfo.json
@@ -1,15 +1,16 @@
[
  {
    "OrderCode": "", //明细生产单据号
    "BoxNo": "B2408190001000005", //箱号
    "BoxNo": "B2408190001000001", //箱号
    "BoxNo2": "", //盒号
    "BoxNo3": "Z24081900010009", //支号
    "BoxNo3": "Z24081900010001", //支号
    "Qty": 1, //数量
    "FullQty": 2, //满箱数量
    "SkuNo": "00001", //物料编码
    "SkuName": "测试物料1", //物料名称
    "LotNo": "CPPC240818001", //批次
    "LotText": "", //批次描述
    "SupplierLot":"GH240818001",
    "ProductionTime": "2024-08-19T02:16:45.301Z", //生产日期
    "ExpirationTime": "2025-08-19T02:16:45.301Z", //过期日期
    "InspectMark": "0", //检验/抽检 标记 0否 1是
@@ -23,15 +24,16 @@
  },
  {
    "OrderCode": "", //明细生产单据号
    "BoxNo": "B2408190001000005", //箱号
    "BoxNo": "B2408190001000001", //箱号
    "BoxNo2": "", //盒号
    "BoxNo3": "Z24081900010010", //支号
    "BoxNo3": "Z24081900010002", //支号
    "Qty": 1, //数量
    "FullQty": 2, //满箱数量
    "SkuNo": "00001", //物料编码
    "SkuName": "测试物料1", //物料名称
    "LotNo": "CPPC240818001", //批次
    "LotText": "", //批次描述
    "SupplierLot":"GH240818001",
    "ProductionTime": "2024-08-19T02:16:45.301Z", //生产日期
    "ExpirationTime": "2025-08-19T02:16:45.301Z", //过期日期
    "InspectMark": "0", //检验/抽检 标记 0否 1是