新增多个功能模块
This commit is contained in:
61
apps/web-antd/src/api/property/conteact/index.ts
Normal file
61
apps/web-antd/src/api/property/conteact/index.ts
Normal file
@@ -0,0 +1,61 @@
|
||||
import type { ConteactVO, ConteactForm, ConteactQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询合同管理列表
|
||||
* @param params
|
||||
* @returns 合同管理列表
|
||||
*/
|
||||
export function conteactList(params?: ConteactQuery) {
|
||||
return requestClient.get<PageResult<ConteactVO>>('/property/conteact/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出合同管理列表
|
||||
* @param params
|
||||
* @returns 合同管理列表
|
||||
*/
|
||||
export function conteactExport(params?: ConteactQuery) {
|
||||
return commonExport('/property/conteact/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询合同管理详情
|
||||
* @param id id
|
||||
* @returns 合同管理详情
|
||||
*/
|
||||
export function conteactInfo(id: ID) {
|
||||
return requestClient.get<ConteactVO>(`/property/conteact/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增合同管理
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function conteactAdd(data: ConteactForm) {
|
||||
return requestClient.postWithMsg<void>('/property/conteact', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新合同管理
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function conteactUpdate(data: ConteactForm) {
|
||||
return requestClient.putWithMsg<void>('/property/conteact', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除合同管理
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function conteactRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/conteact/${id}`);
|
||||
}
|
204
apps/web-antd/src/api/property/conteact/model.d.ts
vendored
Normal file
204
apps/web-antd/src/api/property/conteact/model.d.ts
vendored
Normal file
@@ -0,0 +1,204 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface ConteactVO {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 合同编码
|
||||
*/
|
||||
contract: string;
|
||||
|
||||
/**
|
||||
* 合同名称
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* 描述信息
|
||||
*/
|
||||
msg: string;
|
||||
|
||||
/**
|
||||
* 甲方
|
||||
*/
|
||||
firstParty: string;
|
||||
|
||||
/**
|
||||
* 乙方
|
||||
*/
|
||||
lostParty: string;
|
||||
|
||||
/**
|
||||
* 金额
|
||||
*/
|
||||
price: number;
|
||||
|
||||
/**
|
||||
* 类型
|
||||
*/
|
||||
type: number;
|
||||
|
||||
/**
|
||||
* 经办人
|
||||
*/
|
||||
attn: string;
|
||||
|
||||
/**
|
||||
* 审核人
|
||||
*/
|
||||
audit: number;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
startTime: string;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
endTime: string;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
createTime: string;
|
||||
|
||||
}
|
||||
|
||||
export interface ConteactForm extends BaseEntity {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 合同编码
|
||||
*/
|
||||
contract?: string;
|
||||
|
||||
/**
|
||||
* 合同名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 描述信息
|
||||
*/
|
||||
msg?: string;
|
||||
|
||||
/**
|
||||
* 甲方
|
||||
*/
|
||||
firstParty?: string;
|
||||
|
||||
/**
|
||||
* 乙方
|
||||
*/
|
||||
lostParty?: string;
|
||||
|
||||
/**
|
||||
* 金额
|
||||
*/
|
||||
price?: number;
|
||||
|
||||
/**
|
||||
* 类型
|
||||
*/
|
||||
type?: number;
|
||||
|
||||
/**
|
||||
* 经办人
|
||||
*/
|
||||
attn?: string;
|
||||
|
||||
/**
|
||||
* 审核人
|
||||
*/
|
||||
audit?: number;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
startTime?: string;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
endTime?: string;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
createTime?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface ConteactQuery extends PageQuery {
|
||||
/**
|
||||
* 合同编码
|
||||
*/
|
||||
contract?: string;
|
||||
|
||||
/**
|
||||
* 合同名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 描述信息
|
||||
*/
|
||||
msg?: string;
|
||||
|
||||
/**
|
||||
* 甲方
|
||||
*/
|
||||
firstParty?: string;
|
||||
|
||||
/**
|
||||
* 乙方
|
||||
*/
|
||||
lostParty?: string;
|
||||
|
||||
/**
|
||||
* 金额
|
||||
*/
|
||||
price?: number;
|
||||
|
||||
/**
|
||||
* 类型
|
||||
*/
|
||||
type?: number;
|
||||
|
||||
/**
|
||||
* 经办人
|
||||
*/
|
||||
attn?: string;
|
||||
|
||||
/**
|
||||
* 审核人
|
||||
*/
|
||||
audit?: number;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
startTime?: string;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
endTime?: string;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
createTime?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
Reference in New Issue
Block a user