zhaowc
2025-04-07 b9f7560cbe0e562a40e9515a0559a3e951f0fee6
Wms/WMS.BLL/BllQualityServer/QualityInspectServer.cs
@@ -107,6 +107,12 @@
            {
                throw new Exception("批次号不可为空,请核查!");
            }
            //验证批次号是否为当前库存中已有批次
            var lot = Db.Queryable<DataStock>().Where(w => w.LotNo == model.LotNo).ToList();
            if (lot.Count == 0)
            {
                throw new Exception("当前库存中无此批号,请核查!");
            }
            int isTui = 0;
            //验证入库单号是否为空
            if (!string.IsNullOrEmpty(model.ASNNo))
@@ -224,7 +230,7 @@
            }
            if (date.Id == model.CreateUser)
            {
                throw new Exception("复核失败,复核人员和关闭订单人员不能相同!");
                throw new Exception("复核失败,复核人员和创建质检单据人员不能相同!");
            }
            int isTui = 0;
            //验证入库单号是否为空