From b0f14528e49fcfb6d486bf1e920f0457cbac6049 Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期六, 18 十一月 2023 14:32:43 +0800
Subject: [PATCH] 没有任务的时候如果plc有数据也需要显示百分比和老看板保持一致

---
 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