diff --git a/Admin.Core.Model/Model_New/BaseMaterialInfo.cs b/Admin.Core.Model/Model_New/BaseMaterialInfo.cs
index 133873ee..db5eefd4 100644
--- a/Admin.Core.Model/Model_New/BaseMaterialInfo.cs
+++ b/Admin.Core.Model/Model_New/BaseMaterialInfo.cs
@@ -31,6 +31,12 @@ namespace Admin.Core.Model
[SugarColumn(ColumnName = "MATERIAL_NAME")]
public string MaterialName { get; set; }
+ ///
+ /// 物料小类
+ ///
+ [SugarColumn(ColumnName = "MATERIAL_SUBCLASS")]
+ public string MaterialSubclass { get; set; }
+
///
/// 入库方向-A/B
///
diff --git a/Aucma.Core.BoxFoam/Aucma.Core.BoxFoam.csproj.user b/Aucma.Core.BoxFoam/Aucma.Core.BoxFoam.csproj.user
index 3c3d823c..e3ec02f0 100644
--- a/Aucma.Core.BoxFoam/Aucma.Core.BoxFoam.csproj.user
+++ b/Aucma.Core.BoxFoam/Aucma.Core.BoxFoam.csproj.user
@@ -37,6 +37,9 @@
Code
+
+ Code
+
Code
@@ -93,6 +96,9 @@
Designer
+
+ Designer
+
Designer
diff --git a/Aucma.Core.BoxFoam/Models/SpaceInfoModel.cs b/Aucma.Core.BoxFoam/Models/SpaceInfoModel.cs
index b8ad5c14..c959cffc 100644
--- a/Aucma.Core.BoxFoam/Models/SpaceInfoModel.cs
+++ b/Aucma.Core.BoxFoam/Models/SpaceInfoModel.cs
@@ -37,7 +37,10 @@ namespace Aucma.Core.BoxFoam.Models
/// 物料型号
///
public string materialType { get; set; }
-
+ ///
+ /// 物料型号B
+ ///
+ public string typeCodeB { get; set; }
///
/// 入库状态
///
@@ -66,5 +69,7 @@ namespace Aucma.Core.BoxFoam.Models
/// 禁用
///
public string? setEnable { get; set; }
+
+
}
}
diff --git a/Aucma.Core.BoxFoam/ViewModels/BeforeFoamingPageModelView.cs b/Aucma.Core.BoxFoam/ViewModels/BeforeFoamingPageModelView.cs
index c3b49231..f2472ad6 100644
--- a/Aucma.Core.BoxFoam/ViewModels/BeforeFoamingPageModelView.cs
+++ b/Aucma.Core.BoxFoam/ViewModels/BeforeFoamingPageModelView.cs
@@ -28,17 +28,45 @@ namespace Aucma.Core.BoxFoam.ViewModels
public BeforeFoamingPageModelView() {
+
+ // 设置型号
+ SubmitCommand = new RelayCommand(obj => SubmitCommandExecute(obj));
+ SubmitCommand2 = new RelayCommand(obj => SubmitCommandExecute2(obj));
_baseSpaceDetailServices = App.ServiceProvider.GetService();
_baseSpaceInfoServices = App.ServiceProvider.GetService();
-
+ SelectTypeViewModel.RefreshPageEvent += LoadSpaceStoreMedthAsync;
this.LoadSpaceStoreMedthAsync();
}
+ #region 参数定义
+ ///
+ /// 设置型号
+ ///
+ public RelayCommand SubmitCommand { get; set; }
+
+ private void SubmitCommandExecute(string spaceCode)
+ {
+
+ SelectType type = new SelectType(1, spaceCode);
+ type.ShowDialog();
+
+ }
+
+ public RelayCommand SubmitCommand2 { get; set; }
+
+ private void SubmitCommandExecute2(string spaceCode)
+ {
+
+ SelectType type = new SelectType(2, spaceCode);
+ type.ShowDialog();
+
+ }
+ #endregion
#region 加载泡前库货道信息
///
/// 加载泡前库货道信息
///
- private void LoadSpaceStoreMedthAsync()
+ private void LoadSpaceStoreMedthAsync()
{
string storeCode = Appsettings.app("StoreInfo", "BeforeStoreCode");//泡前库code
@@ -54,6 +82,7 @@ namespace Aucma.Core.BoxFoam.ViewModels
model.onTheWay = item.OnRouteAmount;
model.totalAmount = item.SpaceStock + item.OnRouteAmount;
model.materialType = item.MaterialType;
+ model.typeCodeB = item.typeCodeB;
model.unusualFlag = item.UnusualFlag == 2 ? "Red" : "White";
if (item.SpaceStatus == 2)
{
diff --git a/Aucma.Core.BoxFoam/ViewModels/SelectTypeViewModel.cs b/Aucma.Core.BoxFoam/ViewModels/SelectTypeViewModel.cs
new file mode 100644
index 00000000..a222db3b
--- /dev/null
+++ b/Aucma.Core.BoxFoam/ViewModels/SelectTypeViewModel.cs
@@ -0,0 +1,297 @@
+using Admin.Core.Common;
+using Admin.Core.IService;
+using Admin.Core.Model;
+using Admin.Core.Service;
+using CommunityToolkit.Mvvm.ComponentModel;
+using CommunityToolkit.Mvvm.Input;
+using log4net;
+using Microsoft.Extensions.DependencyInjection;
+using Microsoft.IdentityModel.Logging;
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+
+namespace Aucma.Core.BoxFoam.ViewModels
+{
+ public class SelectTypeViewModel : ObservableObject
+ {
+
+ ///
+ /// 委托,关闭窗口
+ ///
+ ///
+ public delegate void close();
+ public event close closeEvent;
+
+ ///
+ /// 刷新泡后库页面
+ ///
+ ///
+ public delegate void RefreshPage();
+ public static event RefreshPage RefreshPageEvent;
+
+
+ public RelayCommand QueryCommand { get; set; }
+ public RelayCommand deleteCommand { get; set; }
+ public RelayCommand SaveCommand { get; set; }
+ private string storeCode = Appsettings.app("StoreInfo", "BeforeStoreCode");//泡前库code
+
+ private static readonly log4net.ILog logHelper = LogManager.GetLogger(typeof(BaseSpaceInfoServices));
+
+
+ private readonly IBaseMaterialInfoServices? _baseMaterialInfoServices;
+
+ private readonly IBaseSpaceInfoServices _baseSpaceInfoServices;
+
+ public RelayCommand