From 82e27d0cadbddfc73e8b978e778b802dc8e51fa1 Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期五, 29 三月 2024 10:51:36 +0800 Subject: [PATCH] 报工入参修改和工序ID修改 --- src/api/task.ts | 20 ++++++++++++++++---- 1 files changed, 16 insertions(+), 4 deletions(-) diff --git a/src/api/task.ts b/src/api/task.ts index 125883a..a475293 100644 --- a/src/api/task.ts +++ b/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 } -- Gitblit v1.8.0