Wms/WMS.BLL/BllAsnServer/ArrivalNoticeServer.cs
@@ -410,18 +410,18 @@
                        }
                        string lot1 = detailModel.Lot1;
                        string lot2 = detailModel.Lot2;
                        if (sku.IsInspect == "0")//是否免检,0:否 1:是
                        if (sku.IsControlled == "0")//是否请验,0:是 1:否
                        {
                            //不免检物料 生产日期、有效期不能为空
                            //需要请验物料 生产日期、有效期不能为空
                            DateTime lot12;
                            DateTime lot22;
                            if (!DateTime.TryParse(detailModel.Lot1, out lot12))
                            {
                                throw new Exception("不免检物料生产日期转换失败");
                                throw new Exception("需要请验物料生产日期转换失败");
                            }
                            if (!DateTime.TryParse(detailModel.Lot2, out lot22))
                            {
                                throw new Exception("不免检物料过期日期转换失败");
                                throw new Exception("需要请验料过期日期转换失败");
                            }
                            lot1 = lot12.ToString("yyyy-MM-dd");
                            lot2 = lot22.ToString("yyyy-MM-dd");