|
|
@ -40,6 +40,7 @@ using Aucma.Core.Scanner;
|
|
|
|
using LiveCharts.Defaults;
|
|
|
|
using LiveCharts.Defaults;
|
|
|
|
using Admin.Core.Socket;
|
|
|
|
using Admin.Core.Socket;
|
|
|
|
using System.Runtime.ConstrainedExecution;
|
|
|
|
using System.Runtime.ConstrainedExecution;
|
|
|
|
|
|
|
|
using Aucma.Core.BoxFoam.Config;
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
* 首页信息
|
|
|
|
* 首页信息
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -51,7 +52,7 @@ namespace Aucma.Core.CodeBinding.ViewModels
|
|
|
|
private readonly ICodeBindingRecordServices? _codeBindingRecordServices;
|
|
|
|
private readonly ICodeBindingRecordServices? _codeBindingRecordServices;
|
|
|
|
private readonly IBaseMaterialInfoServices? _baseMaterialInfoServices;
|
|
|
|
private readonly IBaseMaterialInfoServices? _baseMaterialInfoServices;
|
|
|
|
private readonly IBaseBomInfoServices? _baseBomInfoServices;
|
|
|
|
private readonly IBaseBomInfoServices? _baseBomInfoServices;
|
|
|
|
|
|
|
|
private AppConfig appConfig = AppConfig.Instance;
|
|
|
|
private readonly IPrintBarCodeServices? _printBarCodeServices;
|
|
|
|
private readonly IPrintBarCodeServices? _printBarCodeServices;
|
|
|
|
// 过点数据表,物料完成记录MaterialCompletion
|
|
|
|
// 过点数据表,物料完成记录MaterialCompletion
|
|
|
|
private readonly IMaterialCompletionServices? _iMaterialCompletionServices;
|
|
|
|
private readonly IMaterialCompletionServices? _iMaterialCompletionServices;
|
|
|
@ -618,6 +619,15 @@ namespace Aucma.Core.CodeBinding.ViewModels
|
|
|
|
/// <param name="flag">1为自动扫描,2为手动扫描</param>
|
|
|
|
/// <param name="flag">1为自动扫描,2为手动扫描</param>
|
|
|
|
public void BindingCode(string code1, string code2,int flag =1)
|
|
|
|
public void BindingCode(string code1, string code2,int flag =1)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
#region 未登录禁止入库
|
|
|
|
|
|
|
|
if (string.IsNullOrEmpty(appConfig.TeamName))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
log.Error($"条码{code1}未登录不做处理,禁止放行");
|
|
|
|
|
|
|
|
speechStr.SpeakAsync("请登录以后在使用,请登录");
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
try
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (code1.Substring(0, 1) != "B")
|
|
|
|
if (code1.Substring(0, 1) != "B")
|
|
|
|