Browse Source

AGV出入库接口默认库位修改

master
yu.wu 5 months ago
parent
commit
06d18ee554
  1. 4
      src/WmsWebApi.Application/ProductRecieve/ProductRecieveService.cs
  2. 22
      src/WmsWebApi.Application/StockMove/StockMoveService.cs

4
src/WmsWebApi.Application/ProductRecieve/ProductRecieveService.cs

@ -195,7 +195,7 @@ public class ProductRecieveService : ApplicationService, IProductRecieveService
PartCode = item.PartCode, PartCode = item.PartCode,
Batch = item.Batch, Batch = item.Batch,
FromLocCode = "", FromLocCode = "",
//ToLocCode = part.DefaultReceiveLocCode, ToLocCode = part.DefaultReceiveLocCode,
Remark = part.QLevel, Remark = part.QLevel,
Qty = item.Qty, Qty = item.Qty,
GoodQty = item.Qty, GoodQty = item.Qty,
@ -208,7 +208,7 @@ public class ProductRecieveService : ApplicationService, IProductRecieveService
//Unit = tmp.ZDJLX, //单据类型 //Unit = tmp.ZDJLX, //单据类型
//TraceBackCode = tmp.MEINS, //基本计量单位 //TraceBackCode = tmp.MEINS, //基本计量单位
}; };
tbRecieve.ToLocCode = _configuration.GetConnectionString("AgvInLoc"); //tbRecieve.ToLocCode = _configuration.GetConnectionString("AgvInLoc");
_recieveList.Add(tbRecieve); _recieveList.Add(tbRecieve);
//插入ts_stock_detail //插入ts_stock_detail

22
src/WmsWebApi.Application/StockMove/StockMoveService.cs

@ -240,13 +240,13 @@ public class StockMoveService : ApplicationService, IStockMoveService
if (_SSDto.BillType == "902")//从WMS移库到AGV if (_SSDto.BillType == "902")//从WMS移库到AGV
{ {
tbStockMove.FromLocCode = wmsloc; tbStockMove.FromLocCode = part.DefaultReceiveLocCode;//wmsloc;
tbStockMove.ToLocCode = agvloc; tbStockMove.ToLocCode = part.DefaultReceiveLocCode;//agvloc;
} }
else if (_SSDto.BillType == "903") else if (_SSDto.BillType == "903")
{ {
tbStockMove.FromLocCode = agvloc; tbStockMove.FromLocCode = part.DefaultReceiveLocCode;//agvloc;
tbStockMove.ToLocCode = wmsloc; tbStockMove.ToLocCode = part.DefaultReceiveLocCode;//wmsloc;
} }
_stockMoveList.Add(tbStockMove); _stockMoveList.Add(tbStockMove);
@ -286,7 +286,7 @@ public class StockMoveService : ApplicationService, IStockMoveService
if (_SSDto.BillType == "902")//AGV库位增加库存,WMS库位减少库存 if (_SSDto.BillType == "902")//AGV库位增加库存,WMS库位减少库存
{ {
#region 出库 #region 出库
tsStock.LocCode = wmsloc; tsStock.LocCode = part.DefaultReceiveLocCode;//wmsloc;
if (stockwms == null || stockwms.Qty - item.Qty < 0) if (stockwms == null || stockwms.Qty - item.Qty < 0)
{ {
bErr = true; bErr = true;
@ -323,7 +323,7 @@ public class StockMoveService : ApplicationService, IStockMoveService
else//WMS库位增加库存 else//WMS库位增加库存
{ {
#region 出库 #region 出库
tsStock.LocCode = agvloc; tsStock.LocCode = part.DefaultReceiveLocCode;//agvloc;
if (stockagv == null || stockagv.Qty - item.Qty < 0) if (stockagv == null || stockagv.Qty - item.Qty < 0)
{ {
bErr = true; bErr = true;
@ -372,7 +372,7 @@ public class StockMoveService : ApplicationService, IStockMoveService
Batch = item.Batch, Batch = item.Batch,
Qty = item.Qty, Qty = item.Qty,
BarCode = _barcode, BarCode = _barcode,
LocCode = agvloc, LocCode = part.DefaultReceiveLocCode,//agvloc,
EqptCode = "", EqptCode = "",
Remark = "In", Remark = "In",
State = 2, State = 2,
@ -389,7 +389,7 @@ public class StockMoveService : ApplicationService, IStockMoveService
Batch = item.Batch, Batch = item.Batch,
Qty = 0 - item.Qty, Qty = 0 - item.Qty,
BarCode = _barcode, BarCode = _barcode,
LocCode = wmsloc, LocCode = part.DefaultReceiveLocCode,//wmsloc,
EqptCode = "", EqptCode = "",
Remark = "Out", Remark = "Out",
State = 2, State = 2,
@ -411,7 +411,7 @@ public class StockMoveService : ApplicationService, IStockMoveService
Batch = item.Batch, Batch = item.Batch,
Qty = item.Qty, Qty = item.Qty,
BarCode = _barcode, BarCode = _barcode,
LocCode = wmsloc, LocCode = part.DefaultReceiveLocCode,//wmsloc,
EqptCode = "", EqptCode = "",
Remark = "In", Remark = "In",
State = 2, State = 2,
@ -428,7 +428,7 @@ public class StockMoveService : ApplicationService, IStockMoveService
Batch = item.Batch, Batch = item.Batch,
Qty = 0 - item.Qty, Qty = 0 - item.Qty,
BarCode = _barcode, BarCode = _barcode,
LocCode = agvloc, LocCode = part.DefaultReceiveLocCode,//agvloc,
EqptCode = "", EqptCode = "",
Remark = "Out", Remark = "Out",
State = 2, State = 2,

Loading…
Cancel
Save