73 lines
2.4 KiB
TypeScript
Raw Normal View History

2024-07-25 16:31:59 +08:00
import request from '@/config/axios'
// 历史合同 VO
export interface ContractHistoryVO {
processInstanceId: string // 流程实体id
name: string // 合同名称
type: string // 合同类型
progress: string // 合同进展
expectedTime: Date // 合同拟定时间
printingTime: Date // 合同用印时间
signingTime: Date // 签订时间
archiveTime: Date // 归档时间
status: string // 合同状态
countType: string // 计费方式
remark: string // 备注
contractFileUrl: string // 合同url
constructionCost: number // 建安费
source: string // 资金来源
discount: string // 优惠
consortium: boolean // 是否联合体
consortiumCompany: string // 联合体单位
extProportion: string // 占主合同比例
approvedAmount: number // 审定金额
reviewFileUrl: string // 审核文件url
creator: string // 创建者
createTime: Date // 创建时间
updater: string // 更新者
updateTime: Date // 更新时间
deleted: boolean // 是否删除
tenantId: number // 租户编号
amount: number // 签订合同总额
preAmount: number // 前期费
designAmount: number // 设计费
surveyFees: number // 勘测费
measurementFee: number // 测量费
otherFee: number // 其他费
processStatus: string // 流程状态
contractId: number // 合同
version: string // 版本
}
// 历史合同 API
export const ContractHistoryApi = {
// 查询历史合同分页
getContractHistoryPage: async (params: any) => {
return await request.get({ url: `/cms/contract-history/page`, params })
},
// 查询历史合同详情
getContractHistory: async (id: number) => {
return await request.get({ url: `/cms/contract-history/get?id=` + id })
},
// 新增历史合同
createContractHistory: async (data: ContractHistoryVO) => {
return await request.post({ url: `/cms/contract-history/create`, data })
},
// 修改历史合同
updateContractHistory: async (data: ContractHistoryVO) => {
return await request.put({ url: `/cms/contract-history/update`, data })
},
// 删除历史合同
deleteContractHistory: async (id: number) => {
return await request.delete({ url: `/cms/contract-history/delete?id=` + id })
},
// 导出历史合同 Excel
exportContractHistory: async (params) => {
return await request.download({ url: `/cms/contract-history/export-excel`, params })
},
}