[feat] 新增外包合同历史管理

This commit is contained in:
wyw
2024-08-02 13:22:33 +08:00
parent e0c60dd15b
commit 2e9937cad2
11 changed files with 1090 additions and 105 deletions

View File

@ -0,0 +1,71 @@
import request from '@/config/axios'
// 外部合同 VO
export interface ExtContractHistoryVO {
id: number // 主键
projectId: number // 项目id
name: string // 合同名称
type: string // 合同类型
customerCompanyId: number // 客户公司id
progress: string // 合同进展
expectedTime: Date // 预计签订时间
signingTime: Date // 签订时间
archiveTime: Date // 归档时间
status: string // 状态
amount: number // 合同金额
preAmount: number // 前期费用
designFee: number // 设计费
surveyFees: number // 勘测费
testingFee: number // 检测费
otherFee: string // 其他费
countType: string // 计费方式
remark: string // 备注
contractFileUrl: string // 合同附件url
constructionCost: number // 建安费
source: string // 资金来源
chargingStandard: string // 收费标准
discount: string // 优惠
consortium: boolean // 是否联合体
consortiumCompany: string // 联合体单位
reminderTime: Date // 合同提示时间
approvedAmount: number // 审定金额
reviewFileUrl: string // 审核文件url
processInstanceId: string // 流程实体id
processStatus: string // 流程状态
contractId: number // 合同id
extContractId: number // 外部合同id
version: string // 版本
}
// 外部合同 API
export const ExtContractHistoryApi = {
// 查询外部合同分页
getExtContractHistoryPage: async (params: any) => {
return await request.get({ url: `/cms/ext-contract-history/page`, params })
},
// 查询外部合同详情
getExtContractHistory: async (id: number) => {
return await request.get({ url: `/cms/ext-contract-history/get?id=` + id })
},
// 新增外部合同
createExtContractHistory: async (data: ExtContractHistoryVO) => {
return await request.post({ url: `/cms/ext-contract-history/create`, data })
},
// 修改外部合同
updateExtContractHistory: async (data: ExtContractHistoryVO) => {
return await request.put({ url: `/cms/ext-contract-history/update`, data })
},
// 删除外部合同
deleteExtContractHistory: async (id: number) => {
return await request.delete({ url: `/cms/ext-contract-history/delete?id=` + id })
},
// 导出外部合同 Excel
exportExtContractHistory: async (params) => {
return await request.download({ url: `/cms/ext-contract-history/export-excel`, params })
},
}