You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.1 KiB
TypeScript
48 lines
1.1 KiB
TypeScript
import request from '@/config/axios'
|
|
|
|
export interface CapacityReportVO {
|
|
id: number
|
|
deviceCode: string
|
|
deviceName: string
|
|
typeName: string
|
|
deviceStatus: number
|
|
ratedCapacity: number
|
|
reportCapacity: number
|
|
actualCapacity: number
|
|
workshopName: string
|
|
}
|
|
|
|
export interface CapacityReportQuery {
|
|
pageNo: number
|
|
pageSize: number
|
|
deviceCode?: string
|
|
deviceName?: string
|
|
deviceType?: string
|
|
deviceStatus?: string
|
|
workshop?: string
|
|
ids?: string
|
|
}
|
|
|
|
export const DeviceLedgerApi = {
|
|
/**
|
|
* 产能报表分页查询
|
|
*/
|
|
getCapacityReportPage: async (params: CapacityReportQuery) => {
|
|
return await request.get({ url: '/mes/device-ledger/capacity-report/page', params })
|
|
},
|
|
|
|
/**
|
|
* 产能报表导出
|
|
*/
|
|
exportCapacityReport: async (params: { ids?: string }) => {
|
|
return await request.download({ url: '/mes/device-ledger/capacity-report/export-excel', params })
|
|
},
|
|
|
|
/**
|
|
* 更新设备状态
|
|
*/
|
|
updateDeviceLedger: async (data: { id: number; deviceStatus: number }) => {
|
|
return await request.put({ url: '/mes/device-ledger/update', data })
|
|
}
|
|
}
|