From 6e377db3568788eab9bfbe2d7d7598f0ca7bca9b Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期六, 30 三月 2024 16:19:29 +0800 Subject: [PATCH] 任务详情模块确认完成和开始生产点击后自动刷新页面 --- 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