74 lines
1.6 KiB
TypeScript
74 lines
1.6 KiB
TypeScript
![]() |
/*
|
|||
|
* @Author: 王文杰
|
|||
|
* @Date: 2024-01-04 12:54:56
|
|||
|
* @LastEditors: 王文杰
|
|||
|
* @LastEditTime: 2024-03-25 11:17:12
|
|||
|
* @FilePath: /app-nx-personal/src/services/home.ts
|
|||
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|||
|
*/
|
|||
|
import { http } from '@/utils/http'
|
|||
|
|
|||
|
export const getApproveOrderAPI = (data: Object) => {
|
|||
|
return http<any[]>({
|
|||
|
method: 'GET',
|
|||
|
url: '/heli/project-order/page',
|
|||
|
data,
|
|||
|
})
|
|||
|
}
|
|||
|
|
|||
|
export const getApproveOrderDetailAPI = (data: Object) => {
|
|||
|
return http<any[]>({
|
|||
|
method: 'GET',
|
|||
|
url: '/heli/project-order/get',
|
|||
|
data,
|
|||
|
})
|
|||
|
}
|
|||
|
/**
|
|||
|
* 操作项目订单(批准/打回/直接终止)
|
|||
|
*/
|
|||
|
export const postOperateAPI = (data: Object) => {
|
|||
|
return http<any[]>({
|
|||
|
method: 'POST',
|
|||
|
url: '/heli/project-order/operate',
|
|||
|
data,
|
|||
|
})
|
|||
|
}
|
|||
|
/**
|
|||
|
* 项目订单子项目列表
|
|||
|
*/
|
|||
|
export const getChildProductAPI = (data: Object) => {
|
|||
|
return http<any[]>({
|
|||
|
method: 'GET',
|
|||
|
url: '/heli/project-order/project-order-sub/list-by-project-order-id',
|
|||
|
data,
|
|||
|
})
|
|||
|
}
|
|||
|
/**
|
|||
|
* 附件信息查询
|
|||
|
*/
|
|||
|
export const getFileAPI = (data: Object) => {
|
|||
|
return http<any[]>({
|
|||
|
method: 'GET',
|
|||
|
url: '/infra/file/page',
|
|||
|
data,
|
|||
|
})
|
|||
|
}
|
|||
|
/**
|
|||
|
* 操作日志分页查询
|
|||
|
*/
|
|||
|
export const getLogAPI = (data: Object) => {
|
|||
|
return http<any[]>({
|
|||
|
method: 'GET',
|
|||
|
url: '/system/operate-log/page',
|
|||
|
data,
|
|||
|
})
|
|||
|
}
|
|||
|
|
|||
|
export const getDictAPI = (data: Object) => {
|
|||
|
return http<any[]>({
|
|||
|
method: 'GET',
|
|||
|
url: '/system/dict-data/page',
|
|||
|
data,
|
|||
|
})
|
|||
|
}
|