diff --git a/src/api/dashboard/index.ts b/src/api/dashboard/index.ts index 2a3aaa09..7a138d73 100644 --- a/src/api/dashboard/index.ts +++ b/src/api/dashboard/index.ts @@ -57,33 +57,39 @@ export interface DashboardTaskListResponse { // 编码生成记录 API export const DashboardApi = { - // 查询编码生成记录分页 - getProduction: async (params: any) => { - return await request.get({ url: `/mes/dashboard/getProduction`, params }) - }, - getPlan: async () => { - return await request.get({ url: `/mes/dashboard/getPlan` }) - }, - getDevice: async () => { - return await request.get({ url: `/mes/dashboard/getDevice` }) - }, - getMold: async () => { - return await request.get({ url: `/mes/dashboard/getMold` }) - }, - getTodoList: async () => { - return await request.get({ url: `/mes/dashboard/getTodoList` }) - }, - getDeviceOperationalStatus: async () => { - return await request.get({ url: `/iot/device/getDeviceOperationalStatus` }) - }, - getDeviceRepairLineOptions: async () => { - return await request.get({ url: `/mes/dashboard/getDeviceRepairLineOptions` }) - }, - getTaskStatistics: async () => { - return await request.get({ url: `/mes/dashboard/getTaskStatistics` }) - }, - getAllTaskList: async () => { - return await request.get({ url: `/mes/dashboard/getAllTaskList` }) - } + // 查询编码生成记录分页 + getProduction: async (params: any) => { + return await request.get({ url: `/mes/dashboard/getProduction`, params }) + }, +getPlan: async () => { + return await request.get({ url: `/mes/dashboard/getPlan` }) + }, + getDevice: async () => { + return await request.get({ url: `/mes/dashboard/getDevice` }) + }, + getMold: async () => { + return await request.get({ url: `/mes/dashboard/getMold` }) + }, + getTodoList: async () => { + return await request.get({ url: `/mes/dashboard/getTodoList` }) + }, + getDeviceOperationalStatus: async () => { + return await request.get({ url: `/iot/device/getDeviceOperationalStatus` }) + }, + getDeviceRepairLineOptions: async () => { + return await request.get({ url: `/mes/dashboard/getDeviceRepairLineOptions` }) + }, +getDeviceTypePieOptions: async () => { + return await request.get({ url: `/mes/dashboard/getDeviceTypePieOptions` }) + }, + getMoldTypeBarOptions: async () => { + return await request.get({ url: `/mes/dashboard/getMoldTypeBarOptions` }) + }, + getTaskStatistics: async () => { + return await request.get({ url: `/mes/dashboard/getTaskStatistics` }) + }, + getAllTaskList: async () => { + return await request.get({ url: `/mes/dashboard/getAllTaskList` }) + } } diff --git a/src/api/mes/plan/index.ts b/src/api/mes/plan/index.ts index 75d46e55..29fc2af4 100644 --- a/src/api/mes/plan/index.ts +++ b/src/api/mes/plan/index.ts @@ -22,7 +22,10 @@ export interface PlanVO { productionManager: number // 生产主管 remark: string // 备注 isEnable: boolean // 是否启用 - feedingPipeline: string //制浆线 + feedingPipeline: number //制浆线 + feedingPipelineName: string + wangongNumber: number + passRate: number } // 生产计划 API @@ -93,4 +96,12 @@ export const PlanApi = { getPlanByTicketType: async (status: number) => { return await request.get({ url: `/mes/plan/getByTicketType?status=` + status }) }, + // 产线任务看板 + getProductPlans: async () => { + return await request.get({ url: `/mes/plan/getProductPlans` }) + }, + // 周生产趋势 + getWeekTrend: async () => { + return await request.get({ url: `/mes/plan/getWeekTrend` }) + } } diff --git a/src/views/Home/Index.vue b/src/views/Home/Index.vue index 80d33287..d5d62411 100644 --- a/src/views/Home/Index.vue +++ b/src/views/Home/Index.vue @@ -220,7 +220,7 @@ v-model="deviceOverviewRange" type="daterange" unlink-panels value-format="YYYY- - +