修改了初始入库

This commit is contained in:
2025-07-17 15:39:02 +08:00
parent 5c7e037a6f
commit 3ae1d42bcd
3 changed files with 10 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
using System; using NPOI.OpenXmlFormats.Dml.Diagram;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
using System.Linq; using System.Linq;
@@ -103,6 +104,8 @@ namespace WMS.Web.Domain.Entitys
{ {
if (type == InstockType.Purchase) if (type == InstockType.Purchase)
this.Status = InstockStatus.Wait; this.Status = InstockStatus.Wait;
else if (type == InstockType.ProduceSotck)
this.Status = InstockStatus.Wait;
else else
this.Status = InstockStatus.WaitInStock; this.Status = InstockStatus.WaitInStock;
this.Type = type; this.Type = type;

View File

@@ -78,6 +78,11 @@ namespace WMS.Web.Domain.Services
var result = await this.SsynPurchaseInStock(billNos, isTransaction); var result = await this.SsynPurchaseInStock(billNos, isTransaction);
if (!result.IsSuccess) isRollback = true; if (!result.IsSuccess) isRollback = true;
} }
else if(task.Type==InstockType.ProduceSotck)
{
var result = await this.SsynProduceSotck(billNos, isTransaction);
if (!result.IsSuccess) isRollback = true;
}
else if (task.Type == InstockType.Miscellaneous) else if (task.Type == InstockType.Miscellaneous)
{ {
var result = await this.SysnMiscellaneous(billNos, isTransaction); var result = await this.SysnMiscellaneous(billNos, isTransaction);

View File

@@ -795,6 +795,7 @@ namespace WMS.Web.Domain.Services.Public
lis.ErpDetailId = Convert.ToInt32(item[12]); lis.ErpDetailId = Convert.ToInt32(item[12]);
lis.Type = (int)InstockType.ProduceSotck; lis.Type = (int)InstockType.ProduceSotck;
lis.SaleBillNo = item[1]; lis.SaleBillNo = item[1];
erp_list.Add(lis); erp_list.Add(lis);
} }
//_logger.LogInformation("分步式调入条数:" + erp_list.Count); //_logger.LogInformation("分步式调入条数:" + erp_list.Count);