This commit is contained in:
2024-09-13 12:31:33 +08:00
2 changed files with 18 additions and 1 deletions

View File

@@ -134,6 +134,23 @@ namespace Tnb.BasicData
return mbomDataOutput;
}
/// <summary>
/// 获取编辑信息
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
[HttpGet]
public async Task<dynamic> GetEbomInfo(string id)
{
ISqlSugarClient db = _repository.AsSugarClient();
BasEbomH basEbomH = await db.Queryable<BasEbomH>().SingleAsync(x => x.id == id);
List<BasEbomD> basEbomDs = await db.Queryable<BasEbomD>().Where(x => x.ebom_id == id).ToListAsync();
Dictionary<string, object> result = new Dictionary<string, object>();
result.Add("main",basEbomH);
result.Add("detail",basEbomDs);
return result;
}
/// <summary>
/// 复制生产bom
/// </summary>

View File

@@ -365,7 +365,7 @@ namespace Tnb.WarehouseMgr
.Select((x, y) => y)
.ToListAsync();
List<WmsErpWarehouserelaH> erpWarehouserelaHs = await _db.Queryable<WmsErpWarehouserelaH>().Where(x=>x.id!=null).ToListAsync();
string userId = instock?.create_id ?? WmsWareHouseConst.AdministratorUserId;
string userId = prdReport?.create_id ?? WmsWareHouseConst.AdministratorUserId;
string supplierId = WmsWareHouseConst.TIANYIGONGYINGSHANG_ID;
List<string> tableIds = new List<string>();