feat(api): add production work order, production task, and cell product API modules
This commit is contained in:
1 parent
4b676886b0
commit
96a0c394c2
3 files changed
+129
No files matched your search
@@ -0,0 +1,24 @@
|
||||
import request from '@/utils/http'
|
||||
|
||||
export function fetchProductionWorkOrderList(params?: {
|
||||
page?: number
|
||||
pageSize?: number
|
||||
keyword?: string
|
||||
workOrderStatus?: string
|
||||
}) {
|
||||
return request.get<{
|
||||
list: any[]
|
||||
total: number
|
||||
page: number
|
||||
pageSize: number
|
||||
totalPages: number
|
||||
}>({ url: '/web/admin/production-work-orders', params })
|
||||
}
|
||||
|
||||
export function fetchProductionWorkOrderDetail(id: string) {
|
||||
return request.get<any>({ url: `/web/admin/production-work-orders/${id}` })
|
||||
}
|
||||
|
||||
export function fetchCompleteProductionWorkOrder(id: string, data: Record<string, any>) {
|
||||
return request.put({ url: `/web/admin/production-work-orders/${id}/complete`, params: data })
|
||||
}
|
||||
Reference in new issue
Block a user