采购收货质检收货单找载具逻辑

This commit is contained in:
2024-08-21 12:37:56 +08:00
parent cdaeefa4ae
commit 3ab02675d7
10 changed files with 131 additions and 123 deletions

View File

@@ -397,6 +397,7 @@ namespace Tnb.WarehouseMgr
var billCode = input.data.ContainsKey(nameof(WmsPurchaseH.bill_code)) ? input.data[nameof(WmsPurchaseH.bill_code)] : null;
string bill_type = "";
string required_type = (await _dbScanInStockByRedis.Queryable<WmsTempCode>().FirstAsync(it => it.barcode == input.data["物料条码"])).required_type;
string source_id = (await _dbScanInStockByRedis.Queryable<WmsTempCode>().FirstAsync(it => it.barcode == input.data["物料条码"])).require_id;
switch (required_type)
{
case WmsWareHouseConst.BILLTYPE_PURCHASE_ID:
@@ -581,6 +582,7 @@ namespace Tnb.WarehouseMgr
area_code = it.Key,
require_id = instock.id,
require_code = instock.bill_code,
source_id = source_id,
create_id = _userManager.User == null ? "" : _userManager.UserId!,
create_time = DateTime.Now,
priority = WmsWareHouseConst.priority_instock