功能优化 成品调拨入库
This commit is contained in:
@@ -402,16 +402,19 @@ namespace Tnb.ProductionMgr
|
||||
.LeftJoin<OrganizeEntity>((a, b) => a.workline_id == b.Id)
|
||||
.LeftJoin<PrdMo>((a, b, c) => a.mo_id == c.id)
|
||||
.LeftJoin<BasMbom>((a, b, c, d) => a.bom_id == d.id)
|
||||
.LeftJoin<BasMaterial>((a,b,c,d,e)=>a.material_id==e.id)
|
||||
.WhereIF(!string.IsNullOrEmpty(input.mo_task_code), (a, b, c, d) => a.mo_task_code.Contains(input.mo_task_code))
|
||||
.Where((a, b, c, d) => a.schedule_type == 2 && string.IsNullOrEmpty(a.parent_id))
|
||||
.OrderByDescending(a => a.create_time)
|
||||
.Select((a, b, c, d) => new PackSechelToBeIssueListOutput
|
||||
.Select((a, b, c, d,e) => new PackSechelToBeIssueListOutput
|
||||
{
|
||||
mo_task_id = a.id,
|
||||
mo_task_code = a.mo_task_code,
|
||||
material_id = a.material_id,
|
||||
material_code = SqlFunc.Subqueryable<BasMaterial>().Where(it => it.id == a.material_id).Select(it => it.code),
|
||||
material_name = SqlFunc.Subqueryable<BasMaterial>().Where(it => it.id == a.material_id).Select(it => it.name),
|
||||
material_code = e.code,
|
||||
material_name = e.name,
|
||||
material_specification = e.material_specification,
|
||||
material_standard = e.material_standard,
|
||||
workline_id = a.workline_id,
|
||||
workline_code = b.EnCode,
|
||||
workline_name = b.FullName,
|
||||
@@ -629,7 +632,8 @@ namespace Tnb.ProductionMgr
|
||||
mo_code = a.mo_code,
|
||||
material_code = b.code,
|
||||
material_name = b.name,
|
||||
material_standard = b.material_specification,
|
||||
material_specification = b.material_specification,
|
||||
material_standard = b.material_standard,
|
||||
mo_type = c.FullName,
|
||||
mo_status = d.FullName,
|
||||
plan_qty = a.plan_qty.Value.ToString(),
|
||||
|
||||
Reference in New Issue
Block a user