feat: 完善材料条码与焊接业务功能

This commit is contained in:
2026-08-12 23:10:22 +08:00
parent 5d0501806b
commit 67206a28ee
26 changed files with 800 additions and 814 deletions
+60 -1
View File
@@ -190,7 +190,7 @@ namespace WebAPI.Controllers
}
/// <summary>
/// 根据材料主编码获取材料信息
/// 根据入库条码获取材料信息
/// </summary>
/// <param name="materialCode"></param>
/// <returns></returns>
@@ -210,6 +210,65 @@ namespace WebAPI.Controllers
return responeData;
}
/// <summary>
/// 根据入库条码保存数量
/// </summary>
[HttpPost]
public Model.ResponeData SaveMaterialInfoByBarCode(string barCode, decimal quantity)
{
var responeData = new Model.ResponeData();
try
{
responeData.data = BLL.MaterialCodeLibService.SaveBarCodeQuantity(barCode, quantity);
}
catch (Exception ex)
{
responeData.code = 0;
responeData.message = ex.Message;
}
return responeData;
}
/// <summary>
/// 获取焊接方法
/// </summary>
/// <returns></returns>
public Model.ResponeData GetWeldingMethod()
{
var responeData = new Model.ResponeData();
try
{
responeData.data = BLL.APIBaseInfoService.GetWeldingMethod();
}
catch (Exception ex)
{
responeData.code = 0;
responeData.message = ex.Message;
}
return responeData;
}
/// <summary>
/// 获取焊缝类型
/// </summary>
/// <returns></returns>
public Model.ResponeData GetWeldType()
{
var responeData = new Model.ResponeData();
try
{
responeData.data = BLL.APIBaseInfoService.GetWeldType();
}
catch (Exception ex)
{
responeData.code = 0;
responeData.message = ex.Message;
}
return responeData;
}
/// <summary>
/// 获取探伤类型
/// </summary>