物料签收
This commit is contained in:
@@ -5,10 +5,17 @@ namespace Tnb.BasicData.Interfaces
|
||||
public interface IBasMbomService
|
||||
{
|
||||
/// <summary>
|
||||
/// <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>id<EFBFBD><EFBFBD>ȡ<EFBFBD><EFBFBD>Ӧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>б<EFBFBD>
|
||||
/// 根据物料id获取对应的子任务列表
|
||||
/// </summary>
|
||||
/// <param name="bomId">bomid</param>
|
||||
/// <returns></returns>
|
||||
Task<dynamic> GetSubMoListByBomId([FromRoute] string bomId);
|
||||
|
||||
/// <summary>
|
||||
/// 根据生产bom工序id获取投入物料
|
||||
/// </summary>
|
||||
/// <param name="dic">id</param>
|
||||
/// <returns></returns>
|
||||
Task<dynamic> GetInputMaterialByMbomProcessId(Dictionary<string, string> dic);
|
||||
}
|
||||
}
|
||||
@@ -181,6 +181,20 @@ namespace Tnb.BasicData
|
||||
return result;
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
public async Task<dynamic> GetInputMaterialByMbomProcessId(Dictionary<string, string> dic)
|
||||
{
|
||||
string id = dic["id"];
|
||||
var result = await _repository.AsSugarClient().Queryable<BasMbomInput>()
|
||||
.Where(x => x.mbom_process_id == id)
|
||||
.Select(x => new
|
||||
{
|
||||
material_id = x.material_id,
|
||||
}).ToListAsync();
|
||||
return result;
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据物料id获取生产bom
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user