From 5773bf718397e8a7073b935d989259ef0cb29219 Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期一, 05 二月 2024 19:20:34 +0800 Subject: [PATCH] Merge branch 'reportWorkAppFile/reportWorkApp' of http://192.168.5.5:10010/r/web/bulletin-board-style1 into reportWorkAppFile/reportWorkApp --- src/api/task.ts | 25 ++++++++++++++++++++++--- 1 files changed, 22 insertions(+), 3 deletions(-) diff --git a/src/api/task.ts b/src/api/task.ts index 521f229..ca0ee32 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: string - outputMaterials: string + 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,6 +72,14 @@ AllProcedures: string[] CurrentProcedureIndex: number CanStarted: boolean + ProcedureModel: ProcedureModel +} +export interface Material { + materialId: string + materialName: string + amount: number + unit: string + date: string } export interface Worker { @@ -97,6 +116,6 @@ } export interface CraftParamsResponse { - number: string + Number: string Params: CraftParam[] } -- Gitblit v1.8.0