diff --git a/src/apis/crafts.ts b/src/apis/crafts.ts index 64af207..2e0da24 100644 --- a/src/apis/crafts.ts +++ b/src/apis/crafts.ts @@ -16,7 +16,7 @@ export const updateCraft = (params: Craft): Promise => http.put(`/crafts`, export const delCraft = (ids: string): Promise => http.delete(`/crafts/${ids}`) // 开始执行工艺 -export const startCraft = (params: { heatId: string }): Promise => http.post(`/crafts/start`, params) +export const startCraft = (params: { heatId?: string, craftId?: number }): Promise => http.post(`/crafts/start`, params) export const pauseCraft = (params: { heatId: string }): Promise => http.post(`/crafts/pause`, params) export const resumeCraft = (params: { heatId: string }): Promise => http.post(`/crafts/resume`, params) diff --git a/src/apis/system.ts b/src/apis/system.ts index 07115a4..ab33991 100644 --- a/src/apis/system.ts +++ b/src/apis/system.ts @@ -4,3 +4,4 @@ export const debugControl = (params: System.CmdControlParams): Promise(params: System.CmdControlParams): Promise => http.post('/cmd', params) export const getStatus = (): Promise => http.get('/sys/device-status') export const getPoint = (): Promise => http.get('/cmd/step/gantry-point') +export const requireOutTray = (): Promise<{ moduleCode: string }[]> => http.get('/self-test/require-out-tray') diff --git a/src/components/check/index.vue b/src/components/check/index.vue index b58941f..c6b574b 100644 --- a/src/components/check/index.vue +++ b/src/components/check/index.vue @@ -1,9 +1,11 @@