Browse Source

10121

AddValidOverTime
506583276@qq.com 2 years ago
parent
commit
a2b539607f
  1. 2
      BBWY.Client/GlobalContext.cs
  2. 15
      BBWY.Client/ViewModels/QualityTask/QualityViewModel.cs

2
BBWY.Client/GlobalContext.cs

@ -9,7 +9,7 @@ namespace BBWY.Client
{ {
ShopServiceGroupList = new List<string>(); ShopServiceGroupList = new List<string>();
ShopServiceGroupLowerList = new List<string>(); ShopServiceGroupLowerList = new List<string>();
ClientVersion = "10120"; ClientVersion = "10121";
} }
private User user; private User user;

15
BBWY.Client/ViewModels/QualityTask/QualityViewModel.cs

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

Loading…
Cancel
Save