仓库-批量查询库存功能新建文件,暂未实现
This commit is contained in:
@@ -14,6 +14,7 @@ using System.Text.Json;
|
||||
using MimeKit.Utils;
|
||||
using System.Collections.Generic;
|
||||
using Org.BouncyCastle.Crypto;
|
||||
using static System.Runtime.InteropServices.JavaScript.JSType;
|
||||
|
||||
namespace ZR.Service.Business
|
||||
{
|
||||
@@ -136,8 +137,17 @@ namespace ZR.Service.Business
|
||||
var jsonObject = new
|
||||
{
|
||||
packageList = list,
|
||||
// 拼箱批次号
|
||||
newPatchCode = newPatchCode,
|
||||
// 拼箱流水号
|
||||
serialNumber = newPatchCode.Split("_")[1],
|
||||
// 拼箱数量
|
||||
newQuantityCount = quantityCount,
|
||||
// 拼箱班组
|
||||
Team = "C",
|
||||
// 拼箱零件号
|
||||
newPartnumber = mainPackage.PartNumner,
|
||||
// 拼箱时间
|
||||
time = DateUtils.FormatDate(nowTime)
|
||||
};
|
||||
// 日志记录
|
||||
@@ -169,9 +179,9 @@ namespace ZR.Service.Business
|
||||
nowProduction.GoodsNumAction = quantityCount;
|
||||
nowProduction.Remark = "拼箱整箱";
|
||||
//TODO 20240422开会讨论结果:拼箱完需要重新扫码入库,原数据删除
|
||||
//Context.Deleteable<WmGoodsNowProduction>().Where(it => it.Id == nowProduction.Id).ExecuteCommand();
|
||||
//Context.Deleteable<WmGoodsNowProduction>().Where(it => it.Id == secondId).ExecuteCommand();
|
||||
//return log;
|
||||
Context.Deleteable<WmGoodsNowProduction>().Where(it => it.Id == nowProduction.Id).ExecuteCommand();
|
||||
Context.Deleteable<WmGoodsNowProduction>().Where(it => it.Id == secondId).ExecuteCommand();
|
||||
return log;
|
||||
// 修改主箱
|
||||
Context.Updateable(nowProduction).IgnoreColumns(ignoreAllNullColumns: true).ExecuteCommand();
|
||||
// 次箱操作
|
||||
@@ -283,11 +293,25 @@ namespace ZR.Service.Business
|
||||
DateTime nowTime = DateTime.Now.ToLocalTime();
|
||||
var jsonObject = new
|
||||
{
|
||||
// 主箱信息
|
||||
mainPackage = mainPackage,
|
||||
// 新标签1
|
||||
newPatchCode1 = newPatchCode1,
|
||||
// 新流水号1
|
||||
serialNumber1 = newPatchCode1.Split("_")[1],
|
||||
// 新标签2
|
||||
newPatchCode2 = newPatchCode2,
|
||||
// 新流水号2
|
||||
serialNumber2 = newPatchCode2.Split("_")[1],
|
||||
// 拆箱1数量
|
||||
firstNum = firstNum,
|
||||
// 拆箱2数量
|
||||
secondNum = secondNum,
|
||||
// 班组
|
||||
Team = "C",
|
||||
// 全部箱子零件号
|
||||
newPartnumber = mainPackage.PartNumner,
|
||||
// 拆箱时间
|
||||
time = DateUtils.FormatDate(nowTime)
|
||||
};
|
||||
// 日志记录
|
||||
@@ -301,8 +325,8 @@ namespace ZR.Service.Business
|
||||
};
|
||||
Context.Insertable(log).ExecuteReturnEntity();
|
||||
//TODO 20240422开会讨论结果:拆箱完需要重新扫码入库,原主箱数据删除
|
||||
//Context.Deleteable<WmGoodsNowProduction>().Where(it => it.Id == mainNowProduction.Id).ExecuteCommand();
|
||||
//return log;
|
||||
Context.Deleteable<WmGoodsNowProduction>().Where(it => it.Id == mainNowProduction.Id).ExecuteCommand();
|
||||
return log;
|
||||
// 执行修改
|
||||
// 1.主箱修改为1号分箱参数
|
||||
WmGoodsNowProduction newPackage1 = mainNowProduction;
|
||||
|
||||
Reference in New Issue
Block a user