2024-07-25 14:08:51 +08:00

54 lines
1.8 KiB
TypeScript

import request from '@/config/axios'
// 预算管理 VO
export interface BudgetHistoryVO {
id: number // 主键
projectId: number // 项目id
contractId: number // 合同管理
budgetFileUrl: string // 预算文件url
outsourcingCosts: number // 预算外包成本
laborCosts: number // 人力成本
accumulatedLaborCosts: number // 累计人力成本
productCosts: number // 生产成本
accumulatedProductCosts: number // 累计生产成本
financialCosts: number // 财务成本
accumulatedFinancialCosts: number // 累计财务成本
collectionSituation: string // 回款情况
processInstanceId: string // 流程实体id
processStatus: string // 流程状态
budgetId: number // 预算id
version: string // 版本
}
// 预算管理 API
export const BudgetHistoryApi = {
// 查询预算管理分页
getBudgetHistoryPage: async (params: any) => {
return await request.get({ url: `/pms/budget-history/page`, params })
},
// 查询预算管理详情
getBudgetHistory: async (id: number) => {
return await request.get({ url: `/pms/budget-history/get?id=` + id })
},
// 新增预算管理
createBudgetHistory: async (data: BudgetHistoryVO) => {
return await request.post({ url: `/pms/budget-history/create`, data })
},
// 修改预算管理
updateBudgetHistory: async (data: BudgetHistoryVO) => {
return await request.put({ url: `/pms/budget-history/update`, data })
},
// 删除预算管理
deleteBudgetHistory: async (id: number) => {
return await request.delete({ url: `/pms/budget-history/delete?id=` + id })
},
// 导出预算管理 Excel
exportBudgetHistory: async (params) => {
return await request.download({ url: `/pms/budget-history/export-excel`, params })
},
}