diff --git a/BasicData/Tnb.BasicData.Entities/Consts/CodeTemplateConst.cs b/BasicData/Tnb.BasicData.Entities/Consts/CodeTemplateConst.cs
index eedf0c86..a758ff30 100644
--- a/BasicData/Tnb.BasicData.Entities/Consts/CodeTemplateConst.cs
+++ b/BasicData/Tnb.BasicData.Entities/Consts/CodeTemplateConst.cs
@@ -38,7 +38,12 @@ namespace Tnb.BasicData
///
/// 设备维修单
///
- public const string EQPREPAIR_CODE = "EqpRepair";
+ public const string EQPREPAIR_CODE = "EqpRepair";
+
+ ///
+ /// 生产入库单
+ ///
+ public const string PRDINSTOCK_CODE = "PrdInStock";
}
diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Dto/PrdManage/PrdInstockRecordUpListOutPut.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Dto/PrdManage/PrdInstockRecordUpListOutPut.cs
new file mode 100644
index 00000000..840d50a8
--- /dev/null
+++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Dto/PrdManage/PrdInstockRecordUpListOutPut.cs
@@ -0,0 +1,43 @@
+namespace Tnb.ProductionMgr.Entities.Dto
+{
+ public class PrdInstockRecordUpListOutPut
+ {
+ public string id { get; set; }
+ public string mo_task_code { get; set; }
+ public string mo_task_status { get; set; }
+ public string mo_id { get; set; }
+ public string material_id { get; set; }
+ public string workstation_id { get; set; }
+ public string workline_id { get; set; }
+ public string act_start_date { get; set; }
+ public List tablefield102 { get; set; } = new List();
+ }
+
+ public class PrdInstockRecordUpListChildOutPut
+ {
+ public string id { get; set; }
+ public string code { get; set; }
+ public string bill_type { get; set; }
+ public string carry_code { get; set; }
+ public string create_id { get; set; }
+ public string bill_date { get; set; }
+ ///
+ /// 起始库位编号
+ ///
+ public string location_code { get; set; } = string.Empty;
+ }
+
+ public class PrdInstockRecordUpListDownOutPut
+ {
+ public string id { get; set; }
+ public string material_id { get; set; }
+ public string material_code { get; set; }
+ public string unit_id { get; set; }
+ public string quantity { get; set; }
+ public string code_batch { get; set; }
+ ///
+ /// 条码编号
+ ///
+ public string barcode { get; set; } = string.Empty;
+ }
+}
\ No newline at end of file
diff --git a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdInstockH.cs b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdInstockH.cs
index 720f5d24..488366d5 100644
--- a/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdInstockH.cs
+++ b/ProductionMgr/Tnb.ProductionMgr.Entities/Entity/PrdInstockH.cs
@@ -75,5 +75,15 @@ public partial class PrdInstockH : BaseEntity
/// 状态 0 申请入库 1 已入库
///
public int? status { get; set; }
+
+ ///
+ /// 生产任务单id
+ ///
+ public string? mo_task_id { get; set; }
+
+ ///
+ /// 入库单编号
+ ///
+ public string? code { get; set; }
}
\ No newline at end of file
diff --git a/ProductionMgr/Tnb.ProductionMgr/PrdInstockRecordDownServicecs.cs b/ProductionMgr/Tnb.ProductionMgr/PrdInstockRecordDownServicecs.cs
new file mode 100644
index 00000000..09ca70e7
--- /dev/null
+++ b/ProductionMgr/Tnb.ProductionMgr/PrdInstockRecordDownServicecs.cs
@@ -0,0 +1,80 @@
+using JNPF.Common.Core.Manager;
+using JNPF.Common.Filter;
+using JNPF.DependencyInjection;
+using JNPF.DynamicApiController;
+using JNPF.Systems.Entitys.Permission;
+using JNPF.Systems.Entitys.System;
+using JNPF.Systems.Interfaces.Permission;
+using JNPF.VisualDev;
+using JNPF.VisualDev.Entitys.Dto.VisualDevModelData;
+using Microsoft.AspNetCore.Mvc;
+using Newtonsoft.Json;
+using SqlSugar;
+using Tnb.BasicData;
+using Tnb.BasicData.Entities;
+using Tnb.EquipMgr.Entities;
+using Tnb.ProductionMgr.Entities;
+using Tnb.ProductionMgr.Entities.Dto;
+using Tnb.WarehouseMgr.Entities;
+
+namespace Tnb.ProductionMgr
+{
+ ///
+ /// 物料签收记录pc端
+ ///
+ [ApiDescriptionSettings(Tag = ModuleConst.Tag, Area = ModuleConst.Area, Order = 700)]
+ [Route("api/[area]/[controller]/[action]")]
+ [OverideVisualDev(ModuleId)]
+ public class PrdInstockRecordDownServicecs : IDynamicApiController, ITransient, IOverideVisualDevService
+ {
+ private readonly ISqlSugarRepository _repository;
+ private readonly IUserManager _userManager;
+ private readonly IOrganizeService _organizeService;
+ private const string ModuleId = "30374696689685";
+ public OverideVisualDevFunc OverideFuncs { get; } = new OverideVisualDevFunc();
+
+ public PrdInstockRecordDownServicecs(
+ ISqlSugarRepository repository,
+ IOrganizeService organizeService,
+ IUserManager userManager
+ )
+ {
+ _repository = repository;
+ _organizeService = organizeService;
+ _userManager = userManager;
+ OverideFuncs.GetListAsync = GetList;
+ }
+
+ private async Task