|
|
@ -115,7 +115,7 @@ namespace BBWY.Client.ViewModels |
|
|
|
|
|
|
|
|
|
|
|
private ObservableCollection<string> preCompeteTimeHourList = new ObservableCollection<string> { |
|
|
|
"12点前","18点前","21点前" |
|
|
|
"12点前","18点前","22点前" |
|
|
|
}; |
|
|
|
public ObservableCollection<string> PreCompeteTimeHourList { get => preCompeteTimeHourList; set { Set(ref preCompeteTimeHourList, value); } } |
|
|
|
|
|
|
@ -445,7 +445,7 @@ namespace BBWY.Client.ViewModels |
|
|
|
}; |
|
|
|
if (IsNeedBarCode == Need.需要) |
|
|
|
{ |
|
|
|
if (BarCodeModel.Id <= 0) |
|
|
|
if (BarCodeModel==null|| BarCodeModel.Id <= 0) |
|
|
|
{ |
|
|
|
MessageBox.Show("条形码不能为空"); |
|
|
|
return; |
|
|
@ -464,6 +464,12 @@ namespace BBWY.Client.ViewModels |
|
|
|
MessageBox.Show("存在未确认的合格证,请先完成确认!"); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
if (purchaseSkuList.Any(p => p.IsNeedCer && p.CerDTO == null)) |
|
|
|
{ |
|
|
|
MessageBox.Show("有未设置的合格证,请设置完所有的合格证再保存"); |
|
|
|
return; |
|
|
|
} |
|
|
|
if (PurchaseSkuList.Where(p => p.IsNeedCer && p.CerDTO.Id > 0).Count() <= 0) |
|
|
|
{ |
|
|
|
MessageBox.Show("无可选的合格证打印!"); |
|
|
@ -543,10 +549,6 @@ namespace BBWY.Client.ViewModels |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
request.PreCompeteTime = competeTime; |
|
|
|
|
|
|
|
|
|
|
@ -824,6 +826,7 @@ namespace BBWY.Client.ViewModels |
|
|
|
{ |
|
|
|
PreCompeteTimeDayList.Add("今天"); |
|
|
|
PreCompeteTimeDayList.Add("明天"); |
|
|
|
PreCompeteTimeDay = "今天"; |
|
|
|
PreCompeteTimeHour = "22点前"; |
|
|
|
} |
|
|
|
else |
|
|
|