charles
2024-04-29 c7f3fd5215399b37d0511b3bd555150ff1b13507
src/api/task.ts
@@ -35,6 +35,7 @@
  /** 1 未生产 2生产中 3生产完成*/
  Status: 1 | 2 | 3
  procedure: ProcedureProcedure
  productProcedureID: string
}
export interface ProcedureProcedure {
@@ -47,11 +48,21 @@
  startTime: number
  endTime: number
  workHours: string
  inputMaterials: inputMaterial[]
  outputMaterials: inputMaterial[]
  inputMaterials: Material[]
  outputMaterials: Material[]
  workers: Worker[]
  allProcedureNames: string[]
  channel: number
}
export interface ParamsMap {
  [keyProp: string]: string
}
export interface ProcedureModel {
  number: string
  product: string
  procedure: string
  paramsMap: ParamsMap
}
export interface Task {
@@ -61,13 +72,14 @@
  AllProcedures: string[]
  CurrentProcedureIndex: number
  CanStarted: boolean
  ProcedureModel: ProcedureModel
  ShowCheck: boolean
}
export interface inputMaterial {
export interface Material {
  materialId: string
  materialName: string
  amount: number
  unit: string
  background: string
  date: string
}