From c8cf9f8ba577ce75e8723ff2d4218fffae349c47 Mon Sep 17 00:00:00 2001
From: songshankun <songshankun@foxmail.com>
Date: 星期二, 14 十一月 2023 15:11:09 +0800
Subject: [PATCH] fix: 修复工序步骤条当前工序展示错误的问题

---
 src/api/task.ts |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/src/api/task.ts b/src/api/task.ts
index 521f229..ca76d50 100644
--- a/src/api/task.ts
+++ b/src/api/task.ts
@@ -47,8 +47,8 @@
   startTime: number
   endTime: number
   workHours: string
-  inputMaterials: string
-  outputMaterials: string
+  inputMaterials: Material[]
+  outputMaterials: Material[]
   workers: Worker[]
   allProcedureNames: string[]
   channel: number
@@ -61,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 {
@@ -97,6 +104,6 @@
 }
 
 export interface CraftParamsResponse {
-  number: string
+  Number: string
   Params: CraftParam[]
 }

--
Gitblit v1.8.0