feat(工单): 实现工单标签打印功能并优化相关逻辑
- 添加Bartender打印工具类实现工单标签打印功能 - 修改PrintTicketsByTemplate方法返回类型为string并实现完整打印逻辑 - 优化工单领料逻辑,增加原材料工单信息获取 - 调整工单查询条件,移除PlanNum>0的限制 - 修复出库单操作符赋值错误 - 优化不良品处理流程,统一使用不良库代替报废库 - 完善领料报工逻辑,增加计划数校验和原材料工单处理
This commit is contained in:
@@ -55,6 +55,22 @@ namespace DOAN.Service.MES.product
|
||||
WorkorderRaw = it.WorkorderRaw,
|
||||
})
|
||||
.ToList();
|
||||
foreach(var item in result)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(item.WorkorderRaw))
|
||||
{
|
||||
var workorderRawInfo = Context
|
||||
.Queryable<ProWorkorder>()
|
||||
.Where(x => x.Workorder == item.WorkorderRaw)
|
||||
.First();
|
||||
if(workorderRawInfo != null)
|
||||
{
|
||||
item.StoveCode = workorderRawInfo.StoveCode;
|
||||
item.BatchNo = workorderRawInfo.FeedOrder;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user