Browse Source

Merge branch 'dev_DY_CC' of http://dev.ccwin-in.com:3000/BoXu.Zheng/WZC2 into dev_DY_CC

dev_DY_CC
赵新宇 11 months ago
parent
commit
695b6d9339
  1. 27
      be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.TyrpAgent/Outgoing/TransferNoteConverter.cs
  2. 156
      be/Hosts/WmsPda.Host/Win_in.Sfs.Wms.Pda.Host/Controllers/Jobs/JobController.cs
  3. 12
      be/Modules/Shared/src/Win_in.Sfs.Shared.Domain.Shared/Enums/Inventory/EnumTransSubType.cs
  4. 49
      be/Modules/Shared/src/Win_in.Sfs.Shared.Domain.Shared/Enums/Job/EnumJobType.cs
  5. 15
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/GaoTongs/GaoTongAppService.cs
  6. 2
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Requests/UnplannedIssueRequests/UnplannedIssueRequestForDongyangAppService.cs
  7. 3
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Requests/UnplannedReceiptRequests/UnplannedReceiptRequestForDongyangAppService.cs
  8. 14
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Jobs/CountJobs/CountExtension.cs

27
be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Fawtyg.TyrpAgent/Outgoing/TransferNoteConverter.cs

@ -19,6 +19,7 @@ public class TransferNoteConverter : IOutgoingConverter
{ {
private readonly string billtype_s = "4002"; private readonly string billtype_s = "4002";
private readonly string billtype_w = "4033"; private readonly string billtype_w = "4033";
private readonly string billtype_issue = "4026";//线边仓领料单
private readonly IOutgoingFromWmsManager _outgoingFromWmsManager; private readonly IOutgoingFromWmsManager _outgoingFromWmsManager;
private readonly IOutgoingToExternalManager _outgoingToExternalManager; private readonly IOutgoingToExternalManager _outgoingToExternalManager;
private readonly IDepartmentAppService _departmentAppService; private readonly IDepartmentAppService _departmentAppService;
@ -77,11 +78,20 @@ public class TransferNoteConverter : IOutgoingConverter
if (exchangeReceipt.Type != EnumTransSubType.Transfer_Customer.ToString()) if (exchangeReceipt.Type != EnumTransSubType.Transfer_Customer.ToString())
{ {
outgoingToExternal.DataType = EnumOutgoingDataType.TransferForErp.ToString(); outgoingToExternal.DataType = EnumOutgoingDataType.TransferForErp.ToString();
var putawayNoteScontrol = BuildScontrolDataInterface(exchangeReceipt, dt_w); var putawayNoteScontrol = BuildScontrolDataInterface(exchangeReceipt, dt_w, billtype_s);
outgoingToExternal.DestinationDataContent = JsonSerializer.Serialize(putawayNoteScontrol); outgoingToExternal.DestinationDataContent = JsonSerializer.Serialize(putawayNoteScontrol);
WipDetails =details.GroupBy(r => new { r.Number, r.ItemCode, r.FromLocationErpCode , r.ToLocationErpCode }).Select(p => new TransferNoteDetailExchangeDto { Qty = p.Sum(itm => itm.Qty), Number = p.Key.Number, ItemCode = p.Key.ItemCode, FromLocationErpCode = p.Key.FromLocationErpCode, ToLocationErpCode=p.Key.ToLocationErpCode }).ToList(); WipDetails =details.GroupBy(r => new { r.Number, r.ItemCode, r.FromLocationErpCode , r.ToLocationErpCode }).Select(p => new TransferNoteDetailExchangeDto { Qty = p.Sum(itm => itm.Qty), Number = p.Key.Number, ItemCode = p.Key.ItemCode, FromLocationErpCode = p.Key.FromLocationErpCode, ToLocationErpCode=p.Key.ToLocationErpCode }).ToList();
}
else if (exchangeReceipt.Type != EnumTransSubType.Depot_Issue_WIP.ToString())//立库生成的线边仓领料单
{
outgoingToExternal.DataType = EnumOutgoingDataType.TransferForErp.ToString();
var putawayNoteScontrol = BuildScontrolDataInterface(exchangeReceipt, dt_w, billtype_issue);
outgoingToExternal.DestinationDataContent = JsonSerializer.Serialize(putawayNoteScontrol);
WipDetails = details.GroupBy(r => new { r.Number, r.ItemCode, r.FromLocationErpCode, r.ToLocationErpCode }).Select(p => new TransferNoteDetailExchangeDto { Qty = p.Sum(itm => itm.Qty), Number = p.Key.Number, ItemCode = p.Key.ItemCode, FromLocationErpCode = p.Key.FromLocationErpCode, ToLocationErpCode = p.Key.ToLocationErpCode }).ToList();
} }
else else
{ {
@ -119,7 +129,12 @@ public class TransferNoteConverter : IOutgoingConverter
if (exchangeReceipt.Type != EnumTransSubType.Transfer_Customer.ToString()) if (exchangeReceipt.Type != EnumTransSubType.Transfer_Customer.ToString())
{ {
var putawayNoteDetailScmsend = BuildScmsendDataInterfaceDetail(exchangeReceipt, detail, dt_w); var putawayNoteDetailScmsend = BuildScmsendDataInterfaceDetail(exchangeReceipt, detail, dt_w, billtype_s);
outgoingDetailToExternal.DestinationDataContent = JsonSerializer.Serialize(putawayNoteDetailScmsend);
}
else if (exchangeReceipt.Type != EnumTransSubType.Depot_Issue_WIP.ToString())//立库生成的线边仓领料单
{
var putawayNoteDetailScmsend = BuildScmsendDataInterfaceDetail(exchangeReceipt, detail, dt_w, billtype_issue);
outgoingDetailToExternal.DestinationDataContent = JsonSerializer.Serialize(putawayNoteDetailScmsend); outgoingDetailToExternal.DestinationDataContent = JsonSerializer.Serialize(putawayNoteDetailScmsend);
} }
else else
@ -146,7 +161,7 @@ public class TransferNoteConverter : IOutgoingConverter
/// </summary> /// </summary>
/// <param name="exchangeOrder"></param> /// <param name="exchangeOrder"></param>
/// <returns></returns> /// <returns></returns>
private Scontrol BuildScontrolDataInterface(TransferNoteExchangeDto exchangeOrder, string dt_w) private Scontrol BuildScontrolDataInterface(TransferNoteExchangeDto exchangeOrder, string dt_w,string type)
{ {
var ret = new Scontrol() var ret = new Scontrol()
{ {
@ -154,7 +169,7 @@ public class TransferNoteConverter : IOutgoingConverter
scontrol_dt_w = dt_w, scontrol_dt_w = dt_w,
scontrol_stat = "Y", scontrol_stat = "Y",
scontrol_dt_k = "", scontrol_dt_k = "",
scontrol_type = billtype_s, scontrol_type = type,
scontrol_id = 0,//明细中最大scmsend_id scontrol_id = 0,//明细中最大scmsend_id
}; };
return ret; return ret;
@ -165,11 +180,11 @@ public class TransferNoteConverter : IOutgoingConverter
/// <param name="exchangeOrder"></param> /// <param name="exchangeOrder"></param>
/// <param name="exchangeDetailOrder"></param> /// <param name="exchangeDetailOrder"></param>
/// <returns></returns> /// <returns></returns>
private Scmsend BuildScmsendDataInterfaceDetail(TransferNoteExchangeDto exchangeOrder, TransferNoteDetailExchangeDto exchangeDetailOrder, string dt_w) private Scmsend BuildScmsendDataInterfaceDetail(TransferNoteExchangeDto exchangeOrder, TransferNoteDetailExchangeDto exchangeDetailOrder, string dt_w,string type)
{ {
var ret = new Scmsend() var ret = new Scmsend()
{ {
scmsend_type = billtype_s, scmsend_type = type,
scmsend_dt_w = dt_w, scmsend_dt_w = dt_w,
scmsend_nbr = exchangeOrder.Number, scmsend_nbr = exchangeOrder.Number,
scmsend_stat1 = "0", scmsend_stat1 = "0",

156
be/Hosts/WmsPda.Host/Win_in.Sfs.Wms.Pda.Host/Controllers/Jobs/JobController.cs

@ -32,6 +32,13 @@ public class JobController : AbpController
private readonly IPutawayJobAppService _putawayJobAppService; private readonly IPutawayJobAppService _putawayJobAppService;
private readonly IProductionReturnJobAppService _productionReturnJobAppService; private readonly IProductionReturnJobAppService _productionReturnJobAppService;
private readonly IThirdLocationJobAppService _thirdLocationJobAppService; private readonly IThirdLocationJobAppService _thirdLocationJobAppService;
private readonly IContainerJobAppService _containerJobAppService;
private readonly IInjectionIssueJobAppService _injectionIssueJobAppService;
private readonly IInjectionPlanJobAppService _injectionPlanJobAppService;
private readonly ICoatingIssueJobAppService _coatingIssueJobAppService;
private readonly IAssembleIssueJobAppService _assembleIssueJobAppService;
private readonly IKittingIssueJobAppService _kittingIssueJobAppService;
private readonly ISparePartIssueJobAppService _sparePartIssueJobAppService;
/// <summary> /// <summary>
/// ///
@ -56,7 +63,14 @@ public class JobController : AbpController
IPurchaseReturnJobAppService purchaseReturnJobAppService, IPurchaseReturnJobAppService purchaseReturnJobAppService,
IPutawayJobAppService putawayJobAppService, IPutawayJobAppService putawayJobAppService,
IProductionReturnJobAppService productionReturnJobAppService, IProductionReturnJobAppService productionReturnJobAppService,
IThirdLocationJobAppService thirdLocationJobAppService) IThirdLocationJobAppService thirdLocationJobAppService,
IContainerJobAppService containerJobAppService,
IInjectionIssueJobAppService injectionIssueJobAppService,
IInjectionPlanJobAppService injectionPlanJobAppService,
ICoatingIssueJobAppService coatingIssueJobAppService,
IAssembleIssueJobAppService assembleIssueJobAppService,
IKittingIssueJobAppService kittingIssueJobAppService,
ISparePartIssueJobAppService sparePartIssueJobAppService)
{ {
_userWorkGroupAppService = userWorkGroupAppService; _userWorkGroupAppService = userWorkGroupAppService;
_countJobAppService = countJobAppService; _countJobAppService = countJobAppService;
@ -69,6 +83,13 @@ public class JobController : AbpController
_putawayJobAppService = putawayJobAppService; _putawayJobAppService = putawayJobAppService;
_productionReturnJobAppService = productionReturnJobAppService; _productionReturnJobAppService = productionReturnJobAppService;
_thirdLocationJobAppService = thirdLocationJobAppService; _thirdLocationJobAppService = thirdLocationJobAppService;
_containerJobAppService = containerJobAppService;
_injectionIssueJobAppService = injectionIssueJobAppService;
_injectionPlanJobAppService = injectionPlanJobAppService;
_coatingIssueJobAppService = coatingIssueJobAppService;
_assembleIssueJobAppService = assembleIssueJobAppService;
_kittingIssueJobAppService = kittingIssueJobAppService;
_sparePartIssueJobAppService = sparePartIssueJobAppService;
} }
/// <summary> /// <summary>
@ -81,24 +102,39 @@ public class JobController : AbpController
var wlgCodes = await _userWorkGroupAppService.GetUserWorkGroupAsync(userId).ConfigureAwait(false); var wlgCodes = await _userWorkGroupAppService.GetUserWorkGroupAsync(userId).ConfigureAwait(false);
var jsonCodes = JsonSerializer.Serialize(wlgCodes.Select(p=>p.WorkGroupCode)); var jsonCodes = JsonSerializer.Serialize(wlgCodes.Select(p=>p.WorkGroupCode));
var status = new List<EnumJobStatus>() { EnumJobStatus.Open,EnumJobStatus.Doing }; var status = new List<EnumJobStatus>() { EnumJobStatus.Open,EnumJobStatus.Doing, EnumJobStatus.Partial};
var jsonStatus = JsonSerializer.Serialize(status); var jsonStatus = JsonSerializer.Serialize(status);
var list = new List<JobCountDto>(); var list = new List<JobCountDto>();
//盘点有箱码 (原料盘点)
var countJobs = await _countJobAppService.GetCountByFilterAsync(new SfsJobRequestInputBase var countJobs_ByPackingCode = await _countJobAppService.GetCountByFilterAsync(new SfsJobRequestInputBase
{ {
Condition = new Condition Condition = new Condition
{ {
Filters = new List<Filter> Filters = new List<Filter>
{ {
new(nameof(CountJobDTO.WorkGroupCode),jsonCodes,"In"), new(nameof(CountJobDTO.WorkGroupCode),jsonCodes,"In"),
new(nameof(CountJobDTO.JobStatus),jsonStatus,"In") new(nameof(CountJobDTO.JobStatus),jsonStatus,"In"),
new(nameof(CountJobDTO.InventoryMode),EnumInventoryMode.ByPackingCode.ToString())
} }
} }
}).ConfigureAwait(false); }).ConfigureAwait(false);
list.Add(new JobCountDto { JobType = EnumJobType.CountJob, Count = countJobs }); list.Add(new JobCountDto { JobType = EnumJobType.CountJob_ByPackingCode, Count = countJobs_ByPackingCode });
//盘点无箱码 (成品盘点)
var countJobs_ByErpItemCode = await _countJobAppService.GetCountByFilterAsync(new SfsJobRequestInputBase
{
Condition = new Condition
{
Filters = new List<Filter>
{
new(nameof(CountJobDTO.WorkGroupCode),jsonCodes,"In"),
new(nameof(CountJobDTO.JobStatus),jsonStatus,"In"),
new(nameof(CountJobDTO.InventoryMode),EnumInventoryMode.ByErpItemCode.ToString())
}
}
}).ConfigureAwait(false);
list.Add(new JobCountDto { JobType = EnumJobType.CountJob_ByPackingCode, Count = countJobs_ByErpItemCode });
//发货
var deliverJobs = await _deliverJobAppService.GetCountByFilterAsync(new SfsJobRequestInputBase var deliverJobs = await _deliverJobAppService.GetCountByFilterAsync(new SfsJobRequestInputBase
{ {
Condition = new Condition Condition = new Condition
@ -111,7 +147,7 @@ public class JobController : AbpController
} }
}).ConfigureAwait(false); }).ConfigureAwait(false);
list.Add(new JobCountDto { JobType = EnumJobType.DeliverJob, Count = deliverJobs }); list.Add(new JobCountDto { JobType = EnumJobType.DeliverJob, Count = deliverJobs });
//检验
var inspectJobs = await _inspectJobAppService.GetCountByFilterAsync(new SfsJobRequestInputBase var inspectJobs = await _inspectJobAppService.GetCountByFilterAsync(new SfsJobRequestInputBase
{ {
Condition = new Condition Condition = new Condition
@ -124,7 +160,7 @@ public class JobController : AbpController
} }
}).ConfigureAwait(false); }).ConfigureAwait(false);
list.Add(new JobCountDto { JobType = EnumJobType.InspectJob, Count = inspectJobs }); list.Add(new JobCountDto { JobType = EnumJobType.InspectJob, Count = inspectJobs });
//发料
var issueJobs = await _issueJobAppService.GetCountByFilterAsync(new SfsJobRequestInputBase var issueJobs = await _issueJobAppService.GetCountByFilterAsync(new SfsJobRequestInputBase
{ {
Condition = new Condition Condition = new Condition
@ -137,7 +173,7 @@ public class JobController : AbpController
} }
}).ConfigureAwait(false); }).ConfigureAwait(false);
list.Add(new JobCountDto { JobType = EnumJobType.IssueJob, Count = issueJobs }); list.Add(new JobCountDto { JobType = EnumJobType.IssueJob, Count = issueJobs });
//完工收货
var productReceiveJobs = await _productReceiveJobAppService.GetCountByFilterAsync(new SfsJobRequestInputBase var productReceiveJobs = await _productReceiveJobAppService.GetCountByFilterAsync(new SfsJobRequestInputBase
{ {
Condition = new Condition Condition = new Condition
@ -150,7 +186,7 @@ public class JobController : AbpController
} }
}).ConfigureAwait(false); }).ConfigureAwait(false);
list.Add(new JobCountDto { JobType = EnumJobType.ProductReceiveJob, Count = productReceiveJobs }); list.Add(new JobCountDto { JobType = EnumJobType.ProductReceiveJob, Count = productReceiveJobs });
//采购收货
var purchaseReceiptJobRequest = new SfsJobRequestInputBase var purchaseReceiptJobRequest = new SfsJobRequestInputBase
{ {
Condition = new Condition Condition = new Condition
@ -169,7 +205,7 @@ public class JobController : AbpController
} }
var purchaseReceiptJobs = await _purchaseReceiptJobAppService.GetCountByFilterAsync(purchaseReceiptJobRequest).ConfigureAwait(false); var purchaseReceiptJobs = await _purchaseReceiptJobAppService.GetCountByFilterAsync(purchaseReceiptJobRequest).ConfigureAwait(false);
list.Add(new JobCountDto { JobType = EnumJobType.PurchaseReceiptJob, Count = purchaseReceiptJobs }); list.Add(new JobCountDto { JobType = EnumJobType.PurchaseReceiptJob, Count = purchaseReceiptJobs });
//采购退货
var purchaseReturnJobs = await _purchaseReturnJobAppService.GetCountByFilterAsync(new SfsJobRequestInputBase var purchaseReturnJobs = await _purchaseReturnJobAppService.GetCountByFilterAsync(new SfsJobRequestInputBase
{ {
Condition = new Condition Condition = new Condition
@ -182,7 +218,7 @@ public class JobController : AbpController
} }
}).ConfigureAwait(false); }).ConfigureAwait(false);
list.Add(new JobCountDto { JobType = EnumJobType.PurchaseReturnJob, Count = purchaseReturnJobs }); list.Add(new JobCountDto { JobType = EnumJobType.PurchaseReturnJob, Count = purchaseReturnJobs });
//上架
var putawayJobs = await _putawayJobAppService.GetCountByFilterAsync(new SfsJobRequestInputBase var putawayJobs = await _putawayJobAppService.GetCountByFilterAsync(new SfsJobRequestInputBase
{ {
Condition = new Condition Condition = new Condition
@ -195,7 +231,7 @@ public class JobController : AbpController
} }
}).ConfigureAwait(false); }).ConfigureAwait(false);
list.Add(new JobCountDto { JobType = EnumJobType.PutawayJob, Count = putawayJobs }); list.Add(new JobCountDto { JobType = EnumJobType.PutawayJob, Count = putawayJobs });
//退料
var productionReturnJobs = await _productionReturnJobAppService.GetCountByFilterAsync(new SfsJobRequestInputBase var productionReturnJobs = await _productionReturnJobAppService.GetCountByFilterAsync(new SfsJobRequestInputBase
{ {
Condition = new Condition Condition = new Condition
@ -221,7 +257,97 @@ public class JobController : AbpController
} }
}).ConfigureAwait(false); }).ConfigureAwait(false);
list.Add(new JobCountDto { JobType = EnumJobType.ThirdLocationJob, Count = thirdLocationJobs }); list.Add(new JobCountDto { JobType = EnumJobType.ThirdLocationJob, Count = thirdLocationJobs });
//空器具库移
var containerTransferJob = await _containerJobAppService.GetCountByFilterAsync(new SfsJobRequestInputBase
{
Condition = new Condition
{
Filters = new List<Filter>
{
new(nameof(ProductionReturnJobDTO.WorkGroupCode),jsonCodes,"In"),
new(nameof(ProductionReturnJobDTO.JobStatus),jsonStatus,"In")
}
}
}).ConfigureAwait(false);
list.Add(new JobCountDto { JobType = EnumJobType.ContainerTransferJob, Count = containerTransferJob });
//注塑发料
var injectionIssueJob = await _injectionIssueJobAppService.GetCountByFilterAsync(new SfsJobRequestInputBase
{
Condition = new Condition
{
Filters = new List<Filter>
{
new(nameof(ProductionReturnJobDTO.WorkGroupCode),jsonCodes,"In"),
new(nameof(ProductionReturnJobDTO.JobStatus),jsonStatus,"In")
}
}
}).ConfigureAwait(false);
list.Add(new JobCountDto { JobType = EnumJobType.InjectionIssueJob, Count = injectionIssueJob });
//注塑计划
var injectionPlanJob = await _injectionPlanJobAppService.GetCountByFilterAsync(new SfsJobRequestInputBase
{
Condition = new Condition
{
Filters = new List<Filter>
{
new(nameof(ProductionReturnJobDTO.WorkGroupCode),jsonCodes,"In"),
new(nameof(ProductionReturnJobDTO.JobStatus),jsonStatus,"In")
}
}
}).ConfigureAwait(false);
list.Add(new JobCountDto { JobType = EnumJobType.InjectionPlanJob, Count = injectionPlanJob });
//喷涂发料
var coatingIssueJob = await _coatingIssueJobAppService.GetCountByFilterAsync(new SfsJobRequestInputBase
{
Condition = new Condition
{
Filters = new List<Filter>
{
new(nameof(ProductionReturnJobDTO.WorkGroupCode),jsonCodes,"In"),
new(nameof(ProductionReturnJobDTO.JobStatus),jsonStatus,"In")
}
}
}).ConfigureAwait(false);
list.Add(new JobCountDto { JobType = EnumJobType.CoatingIssueJob, Count = coatingIssueJob });
//装配发料
var assembleIssueJob = await _assembleIssueJobAppService.GetCountByFilterAsync(new SfsJobRequestInputBase
{
Condition = new Condition
{
Filters = new List<Filter>
{
new(nameof(ProductionReturnJobDTO.WorkGroupCode),jsonCodes,"In"),
new(nameof(ProductionReturnJobDTO.JobStatus),jsonStatus,"In")
}
}
}).ConfigureAwait(false);
list.Add(new JobCountDto { JobType = EnumJobType.AssembleIssueJob, Count = assembleIssueJob });
//kitting发料
var kittingIssueJob = await _kittingIssueJobAppService.GetCountByFilterAsync(new SfsJobRequestInputBase
{
Condition = new Condition
{
Filters = new List<Filter>
{
new(nameof(ProductionReturnJobDTO.WorkGroupCode),jsonCodes,"In"),
new(nameof(ProductionReturnJobDTO.JobStatus),jsonStatus,"In")
}
}
}).ConfigureAwait(false);
list.Add(new JobCountDto { JobType = EnumJobType.KittingIssueJob, Count = kittingIssueJob });
//备品发料
var sparePartIssueJob = await _sparePartIssueJobAppService.GetCountByFilterAsync(new SfsJobRequestInputBase
{
Condition = new Condition
{
Filters = new List<Filter>
{
new(nameof(ProductionReturnJobDTO.WorkGroupCode),jsonCodes,"In"),
new(nameof(ProductionReturnJobDTO.JobStatus),jsonStatus,"In")
}
}
}).ConfigureAwait(false);
list.Add(new JobCountDto { JobType = EnumJobType.SparePartIssueJob, Count = sparePartIssueJob });
return new ListResultDto<JobCountDto>(list); return new ListResultDto<JobCountDto>(list);
} }
} }

12
be/Modules/Shared/src/Win_in.Sfs.Shared.Domain.Shared/Enums/Inventory/EnumTransSubType.cs

@ -1,4 +1,5 @@
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.Xml.Linq;
namespace Win_in.Sfs.Shared.Domain.Shared; namespace Win_in.Sfs.Shared.Domain.Shared;
@ -216,8 +217,13 @@ public enum EnumTransSubType
ExcelInCountPlan = 6002, ExcelInCountPlan = 6002,
/// <summary> /// <summary>
/// 立库出库 /// 立库出库线边仓调拨
/// </summary> /// </summary>
[Display(Name = "立库出库")] [Display(Name = "立库出库线边仓调拨")]
Depot_Out = 1510 Depot_Transfer_WIP = 1510,
/// <summary>
/// 立库出库线边仓领料
/// </summary>
[Display(Name = "立库出库线边仓领料")]
Depot_Issue_WIP = 1511
} }

49
be/Modules/Shared/src/Win_in.Sfs.Shared.Domain.Shared/Enums/Job/EnumJobType.cs

@ -58,11 +58,15 @@ public enum EnumJobType
CheckJob = 8, CheckJob = 8,
/// <summary> /// <summary>
/// 盘点任务 /// 盘点任务有箱码
/// </summary> /// </summary>
[Display(Name = "盘点")] [Display(Name = "盘点任务有箱码")]
CountJob = 9, CountJob_ByPackingCode = 9,
/// <summary>
/// 盘点任务无箱码
/// </summary>
[Display(Name = "盘点任务无箱码")]
CountJob_ByErpItemCode = 10,
/// <summary> /// <summary>
/// JIS发货 /// JIS发货
/// </summary> /// </summary>
@ -96,7 +100,7 @@ public enum EnumJobType
/// <summary> /// <summary>
/// 器具转移 /// 器具转移
/// </summary> /// </summary>
[Display(Name = "转移")] [Display(Name = "器具转移")]
ContainerTransferJob = 16, ContainerTransferJob = 16,
/// <summary> /// <summary>
@ -104,4 +108,39 @@ public enum EnumJobType
/// </summary> /// </summary>
[Display(Name = "三方库")] [Display(Name = "三方库")]
ThirdLocationJob = 17, ThirdLocationJob = 17,
/// <summary>
/// 注塑发料
/// </summary>
[Display(Name = "注塑发料")]
InjectionIssueJob = 18,
/// <summary>
/// 注塑计划
/// </summary>
[Display(Name = "注塑计划")]
InjectionPlanJob = 19,
/// <summary>
/// 喷涂发料
/// </summary>
[Display(Name = "喷涂发料")]
CoatingIssueJob = 20,
/// <summary>
/// 装配发料
/// </summary>
[Display(Name = "装配发料")]
AssembleIssueJob = 21,
/// <summary>
/// kitting发料
/// </summary>
[Display(Name = "kitting发料")]
KittingIssueJob = 22,
/// <summary>
/// 备品发料
/// </summary>
[Display(Name = "备品发料")]
SparePartIssueJob = 23,
/// <summary>
/// 盘点任务
/// </summary>
[Display(Name = "盘点任务")]
CountJob = 24,
} }

15
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/GaoTongs/GaoTongAppService.cs

@ -186,7 +186,7 @@ public class GaoTongAppService : ApplicationService, IGaoTongAppService
transferNoteEditInput.Remark = String.Empty; transferNoteEditInput.Remark = String.Empty;
transferNoteEditInput.Worker = _currentUser.UserName; transferNoteEditInput.Worker = _currentUser.UserName;
transferNoteEditInput.ActiveDate = CommonHelper.CurTime; transferNoteEditInput.ActiveDate = CommonHelper.CurTime;
transferNoteEditInput.Type = EnumTransSubType.Depot_Out.ToString(); //喷涂完工转储 //transferNoteEditInput.Type = EnumTransSubType.Depot_Out.ToString(); //喷涂完工转储
transferNoteEditInput.UseOnTheWayLocation = false; transferNoteEditInput.UseOnTheWayLocation = false;
//transferNoteEditInput.number //transferNoteEditInput.number
//transferNoteEditInput.CallServerName //transferNoteEditInput.CallServerName
@ -244,6 +244,19 @@ public class GaoTongAppService : ApplicationService, IGaoTongAppService
detailObj.ToStatus = EnumInventoryStatus.OK; detailObj.ToStatus = EnumInventoryStatus.OK;
detailObj.OnTheWayLocationCode = String.Empty; detailObj.OnTheWayLocationCode = String.Empty;
detailObj.Reason = ""; detailObj.Reason = "";
//from 库位类型半成品、成品 to 库位类型为线边仓,transferNoteEditInput.Type 赋值Depot_Issue_WIP
if ((fromLocationObj.Type == EnumLocationType.SEMI || fromLocationObj.Type == EnumLocationType.FG)
&& (toLocationObj.Type == EnumLocationType.WIP || toLocationObj.Type == EnumLocationType.KittingWip))
{
transferNoteEditInput.Type = EnumTransSubType.Depot_Issue_WIP.ToString();
}
else
{
//from 库位类型为线边仓 to 库位类型为线边仓,transferNoteEditInput.Type 赋值Depot_Transfer_WIP
//其它条件
transferNoteEditInput.Type = EnumTransSubType.Depot_Transfer_WIP.ToString();
}
var temp = await _transferNoteAppService.CreateAsync(transferNoteEditInput).ConfigureAwait(false); var temp = await _transferNoteAppService.CreateAsync(transferNoteEditInput).ConfigureAwait(false);
ret.Code = GaoTongResultStatus.Success; ret.Code = GaoTongResultStatus.Success;
ret.Message = "接收成功"; ret.Message = "接收成功";

2
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Requests/UnplannedIssueRequests/UnplannedIssueRequestForDongyangAppService.cs

@ -109,7 +109,7 @@ public class UnplannedIssueRequestForDongyangAppService : UnplannedIssueRequestA
$"或{EnumLocationType.SEMI.GetDisplayName()}" + $"或{EnumLocationType.SEMI.GetDisplayName()}" +
$"或{EnumLocationType.FG.GetDisplayName()}】"); $"或{EnumLocationType.FG.GetDisplayName()}】");
} }
unplannedIssueRequest.DirectCreateNote = false; // unplannedIssueRequest.DirectCreateNote = false;
input.IsPackingCode = true;//只查询带箱码的推荐 input.IsPackingCode = true;//只查询带箱码的推荐
} }
if (unplannedIssueRequest.UnplannedIssueType == EnumUnplannedIssueType.Wip) if (unplannedIssueRequest.UnplannedIssueType == EnumUnplannedIssueType.Wip)

3
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Requests/UnplannedReceiptRequests/UnplannedReceiptRequestForDongyangAppService.cs

@ -60,7 +60,6 @@ public class UnplannedReceiptRequestForDongyangAppService : UnplannedReceiptRequ
{ {
await SetDetailPropertiesAsync(item).ConfigureAwait(false); await SetDetailPropertiesAsync(item).ConfigureAwait(false);
} }
entity.AutoCompleteJob = false; //任务到记录 entity.AutoCompleteJob = false; //任务到记录
entity.AutoSubmit = true; entity.AutoSubmit = true;
entity.AutoAgree = true; entity.AutoAgree = true;
@ -111,7 +110,7 @@ public class UnplannedReceiptRequestForDongyangAppService : UnplannedReceiptRequ
$"或{EnumLocationType.SEMI.GetDisplayName()}】" + $"或{EnumLocationType.SEMI.GetDisplayName()}】" +
$"或{EnumLocationType.FG.GetDisplayName()}】"); $"或{EnumLocationType.FG.GetDisplayName()}】");
} }
unplannedReceiptRequest.DirectCreateNote = false; // unplannedReceiptRequest.DirectCreateNote = false;
//需要复制一个这个方法 去掉区域参数 换成库位参数 //需要复制一个这个方法 去掉区域参数 换成库位参数
//RecommendBalanceRequestInput input = new RecommendBalanceRequestInput(); //RecommendBalanceRequestInput input = new RecommendBalanceRequestInput();
//input.ItemCode = detail.ItemCode; //input.ItemCode = detail.ItemCode;

14
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Jobs/CountJobs/CountExtension.cs

@ -19,7 +19,19 @@ public static class CountExtension
public static CountJob Init(this CountJob job) public static CountJob Init(this CountJob job)
{ {
job.JobStatus = EnumJobStatus.Open; job.JobStatus = EnumJobStatus.Open;
job.JobType = EnumJobType.CountJob; if (job.InventoryMode == EnumInventoryMode.ByPackingCode)
{
job.JobType = EnumJobType.CountJob_ByPackingCode;
}
else if (job.InventoryMode == EnumInventoryMode.ByErpItemCode)
{
job.JobType = EnumJobType.CountJob_ByErpItemCode;
}
else
{
job.JobType = EnumJobType.CountJob;
}
return job; return job;
} }

Loading…
Cancel
Save