|
|
@ -453,13 +453,13 @@ namespace BBWY.Client.ViewModels |
|
|
|
} |
|
|
|
request.BarcodeId = BarCodeModel.Id; |
|
|
|
} |
|
|
|
if (IsNeedCertificateModel == Need.需要) |
|
|
|
if(PurchaseSkuList != null && PurchaseSkuList.Count > 0&&purchaseSkuList.Any(p=> p.IsNeedCer)) //(IsNeedCertificateModel == Need.需要)
|
|
|
|
{ |
|
|
|
if (PurchaseSkuList == null && PurchaseSkuList.Count <= 0) |
|
|
|
{ |
|
|
|
MessageBox.Show("无可用的合格证打印!"); |
|
|
|
return; |
|
|
|
} |
|
|
|
//if ()
|
|
|
|
//{
|
|
|
|
// MessageBox.Show("无可用的合格证打印!");
|
|
|
|
// return;
|
|
|
|
//}
|
|
|
|
if (PurchaseSkuList.Where(p => p.IsSetCertificate).Count() > 0) |
|
|
|
{ |
|
|
|
MessageBox.Show("存在未确认的合格证,请先完成确认!"); |
|
|
@ -575,7 +575,8 @@ namespace BBWY.Client.ViewModels |
|
|
|
|
|
|
|
if (ReflashWindow != null) ReflashWindow(); |
|
|
|
var window = obj as BWindow; |
|
|
|
App.Current.Dispatcher.Invoke(new Action(() => { |
|
|
|
App.Current.Dispatcher.Invoke(new Action(() => |
|
|
|
{ |
|
|
|
|
|
|
|
window.Close(); |
|
|
|
})); |
|
|
@ -717,6 +718,7 @@ namespace BBWY.Client.ViewModels |
|
|
|
BasicPack = model.BasicPack; |
|
|
|
CertificatePosition = model.CertificatePosition; |
|
|
|
|
|
|
|
|
|
|
|
ArrivalQuantity = 0; |
|
|
|
GoodProductQuantity = 0; |
|
|
|
|
|
|
@ -744,7 +746,20 @@ namespace BBWY.Client.ViewModels |
|
|
|
|
|
|
|
var packTaskRes = packPurchaseTaskService.GetQualityTask(model.TaskId); |
|
|
|
|
|
|
|
if (packTaskRes==null) |
|
|
|
{ |
|
|
|
MessageBox.Show("网络异常!"); |
|
|
|
return; |
|
|
|
} |
|
|
|
if (!packTaskRes.Success || packTaskRes.Data==null) |
|
|
|
{ |
|
|
|
MessageBox.Show(packTaskRes.Msg); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SkuPurchaseSchemeId = packTaskRes.Data.SkuPurchaseSchemeId; |
|
|
|
saveType = packTaskRes.Data.SaveType; |
|
|
|
if (saveType == null) |
|
|
|
{ |
|
|
|