库存回传
入库扫描逻辑
添加物料二维码和唯一码对应表
This commit is contained in:
zgf committed 2023-11-09 17:17:05 +08:00
1 parent f9bf7be066
commit da78422528
19 files changed
+1684 -115

No files matched your search

+22
View File
@@ -6,6 +6,7 @@ using AutoMapper;
using HHWMS.Web.Models;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using Newtonsoft.Json;
using WalkingTec.Mvvm.Core;
namespace HHWMS.Web
@@ -36,6 +37,27 @@ namespace HHWMS.Web
[HttpPost]
public IActionResult RequestIn(WcsRequest request)
{
var inv = _unitwork.Find<Inventory>(x => x.ID > 0).FirstOrDefault();
var bizData = new InStore
{
INWMS = new INWMS
{
INITEMS = new INITEMS
{
INITEM = new List<INITEMItem>()
{
new INITEMItem()
{
ERPSN = inv.MaterialCode,
WMSSN = inv.UniqueCode,
QTY = ((int?)inv.Qty).ToString(),
TYPE = "2"
}
}
}
}
};
var str = JsonConvert.SerializeObject(bizData);
// 参数判断
if (request.RoadWay == null || request.Size == null)
{