This commit is contained in:
2025-08-21 12:07:07 +08:00
9 changed files with 1428 additions and 36 deletions

View File

@ -0,0 +1,74 @@
import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { ExpensesContractVO, ExpensesContractForm, ExpensesContractQuery } from '@/api/ctr/expensesContract/types';
/**
* 查询支出合同列表
* @param query
* @returns {*}
*/
export const listExpensesContract = (query?: ExpensesContractQuery): AxiosPromise<ExpensesContractVO[]> => {
return request({
url: '/ctr/expensesContract/list',
method: 'get',
params: query
});
};
/**
* 查询支出合同详细
* @param id
*/
export const getExpensesContract = (id: string | number): AxiosPromise<ExpensesContractVO> => {
return request({
url: '/ctr/expensesContract/' + id,
method: 'get'
});
};
/**
* 新增支出合同
* @param data
*/
export const addExpensesContract = (data: ExpensesContractForm) => {
return request({
url: '/ctr/expensesContract',
method: 'post',
data: data
});
};
/**
* 修改支出合同
* @param data
*/
export const updateExpensesContract = (data: ExpensesContractForm) => {
return request({
url: '/ctr/expensesContract',
method: 'put',
data: data
});
};
/**
* 删除支出合同
* @param id
*/
export const delExpensesContract = (id: string | number | Array<string | number>) => {
return request({
url: '/ctr/expensesContract/' + id,
method: 'delete'
});
};
/**
* 查看支出合同附件列表
* @param id
*/
export const getFileList = (data) => {
return request({
url: '/ctr/expensesContract/file/list',
method: 'get',
params: data
})
}

View File

@ -0,0 +1,141 @@
export interface ExpensesContractVO {
/**
* 主键ID
*/
id: string | number;
/**
* 项目ID
*/
projectId: string | number;
/**
* 合同编号
*/
contractCode: string;
/**
* 合同类型
*/
contractType: string;
/**
* 供应商
*/
contractSupplier: string;
/**
* 分包内容
*/
contractedContent: string;
/**
* 合同金额
*/
amount: number;
/**
* 招标Id
*/
tenderId: string | number;
/**
* 备注
*/
remark: string;
}
export interface ExpensesContractForm extends BaseEntity {
/**
* 主键ID
*/
id?: string | number;
/**
* 项目ID
*/
projectId?: string | number;
/**
* 合同编号
*/
contractCode?: string;
/**
* 合同类型
*/
contractType?: string;
/**
* 供应商
*/
contractSupplier?: string;
/**
* 分包内容
*/
contractedContent?: string;
/**
* 合同金额
*/
amount?: number;
/**
* 招标Id
*/
tenderId?: string | number;
/**
* 备注
*/
remark?: string;
}
export interface ExpensesContractQuery extends PageQuery {
/**
* 项目ID
*/
projectId?: string | number;
/**
* 合同编号
*/
contractCode?: string;
/**
* 合同类型
*/
contractType?: string;
/**
* 供应商
*/
contractSupplier?: string;
/**
* 分包内容
*/
contractedContent?: string;
/**
* 合同金额
*/
amount?: number;
/**
* 招标Id
*/
tenderId?: string | number;
/**
* 日期范围参数
*/
params?: any;
}

View File

@ -0,0 +1,74 @@
import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { IncomeContractVO, IncomeContractForm, IncomeContractQuery } from '@/api/ctr/incomeContract/types';
/**
* 查询收入合同列表
* @param query
* @returns {*}
*/
export const listIncomeContract = (query?: IncomeContractQuery): AxiosPromise<IncomeContractVO[]> => {
return request({
url: '/ctr/incomeContract/list',
method: 'get',
params: query
});
};
/**
* 查询收入合同详细
* @param id
*/
export const getIncomeContract = (id: string | number): AxiosPromise<IncomeContractVO> => {
return request({
url: '/ctr/incomeContract/' + id,
method: 'get'
});
};
/**
* 新增收入合同
* @param data
*/
export const addIncomeContract = (data: IncomeContractForm) => {
return request({
url: '/ctr/incomeContract',
method: 'post',
data: data
});
};
/**
* 修改收入合同
* @param data
*/
export const updateIncomeContract = (data: IncomeContractForm) => {
return request({
url: '/ctr/incomeContract',
method: 'put',
data: data
});
};
/**
* 删除收入合同
* @param id
*/
export const delIncomeContract = (id: string | number | Array<string | number>) => {
return request({
url: '/ctr/incomeContract/' + id,
method: 'delete'
});
};
/**
* 查看收入合同附件列表
* @param id
*/
export const getFileList = (data) => {
return request({
url: '/ctr/incomeContract/file/list',
method: 'get',
params: data
})
}

View File

@ -0,0 +1,126 @@
export interface IncomeContractVO {
/**
* 主键ID
*/
id: string | number;
/**
* 项目ID
*/
projectId: string | number;
/**
* 合同编号
*/
contractCode: string;
/**
* 合同类型
*/
contractType: string;
/**
* 业主单位
*/
contractOwner: string;
/**
* 承包内容
*/
contractedContent: string;
/**
* 合同金额
*/
amount: number;
/**
* 备注
*/
remark: string;
}
export interface IncomeContractForm extends BaseEntity {
/**
* 主键ID
*/
id?: string | number;
/**
* 项目ID
*/
projectId?: string | number;
/**
* 合同编号
*/
contractCode?: string;
/**
* 合同类型
*/
contractType?: string;
/**
* 业主单位
*/
contractOwner?: string;
/**
* 承包内容
*/
contractedContent?: string;
/**
* 合同金额
*/
amount?: number;
/**
* 备注
*/
remark?: string;
}
export interface IncomeContractQuery extends PageQuery {
/**
* 项目ID
*/
projectId?: string | number;
/**
* 合同编号
*/
contractCode?: string;
/**
* 合同类型
*/
contractType?: string;
/**
* 业主单位
*/
contractOwner?: string;
/**
* 承包内容
*/
contractedContent?: string;
/**
* 合同金额
*/
amount?: number;
/**
* 日期范围参数
*/
params?: any;
}