From e6b7921fc2e2b95e4c2b666b372ad611c08e9d62 Mon Sep 17 00:00:00 2001 From: songshankun <songshankun@foxmail.com> Date: 星期一, 13 十一月 2023 10:25:03 +0800 Subject: [PATCH] feat: 调整按钮样式; 切换设备后自动选中第一条任务并展示详情 --- src/api/task.ts | 14 +++++++++++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/api/task.ts b/src/api/task.ts index 8be45af..ca76d50 100644 --- a/src/api/task.ts +++ b/src/api/task.ts @@ -16,6 +16,7 @@ startTime: number endTime: number Status: number + finishNumber: number } export interface Procedure { @@ -46,8 +47,8 @@ startTime: number endTime: number workHours: string - inputMaterials: string - outputMaterials: string + inputMaterials: Material[] + outputMaterials: Material[] workers: Worker[] allProcedureNames: string[] channel: number @@ -60,6 +61,13 @@ AllProcedures: string[] CurrentProcedureIndex: number CanStarted: boolean +} +export interface Material { + materialId: string + materialName: string + amount: number + unit: string + date: string } export interface Worker { @@ -96,6 +104,6 @@ } export interface CraftParamsResponse { - number: string + Number: string Params: CraftParam[] } -- Gitblit v1.8.0