feat: 大屏多订单改为同屏并列展示,物料申请新增跨工位借料来源并移除工单完成日期
This commit is contained in:
@@ -390,7 +390,6 @@ type UnplannedWorkOrder struct {
|
||||
OrderNo string `json:"orderNo"`
|
||||
ProductTypeId int `json:"productTypeId"`
|
||||
Quantity int `json:"quantity"`
|
||||
DueDate string `json:"dueDate"`
|
||||
Status string `json:"status"`
|
||||
}
|
||||
|
||||
@@ -413,15 +412,10 @@ func (s *Service) ListUnplannedWorkOrders(ctx context.Context) ([]*UnplannedWork
|
||||
if planned[wo.WorkOrderNo] {
|
||||
continue
|
||||
}
|
||||
due := ""
|
||||
if wo.DueDate != nil {
|
||||
due = wo.DueDate.Format("2006-01-02")
|
||||
}
|
||||
out = append(out, &UnplannedWorkOrder{
|
||||
OrderNo: wo.WorkOrderNo,
|
||||
ProductTypeId: wo.ProductTypeId,
|
||||
Quantity: wo.Quantity,
|
||||
DueDate: due,
|
||||
Status: wo.Status,
|
||||
})
|
||||
}
|
||||
@@ -441,7 +435,7 @@ type ForScheduleWorkOrder struct {
|
||||
// ListWorkOrdersForSchedule 返回未排满(剩余可排 > 0)的工单,供日排产工单号下拉过滤。
|
||||
// 与 /daily-plans/unplanned("完全未排产"横幅入口)区分:本接口包含"部分排产"的工单。
|
||||
func (s *Service) ListWorkOrdersForSchedule(ctx context.Context, keyword string) ([]*ForScheduleWorkOrder, error) {
|
||||
wos, err := s.ListWorkOrders(ctx, "", "", "", "", "", "", "", "", keyword, 0)
|
||||
wos, err := s.ListWorkOrders(ctx, "", "", "", "", "", "", keyword, 0)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user