新增多个功能模块

This commit is contained in:
2025-06-23 09:27:28 +08:00
parent c783f365c8
commit 255481861a
66 changed files with 8555 additions and 6 deletions

View File

@@ -0,0 +1,61 @@
import type { VerificationVO, VerificationForm, VerificationQuery } 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 verificationList(params?: VerificationQuery) {
return requestClient.get<PageResult<VerificationVO>>('/property/verification/list', { params });
}
/**
* 导出服务核销列表
* @param params
* @returns 服务核销列表
*/
export function verificationExport(params?: VerificationQuery) {
return commonExport('/property/verification/export', params ?? {});
}
/**
* 查询服务核销详情
* @param id id
* @returns 服务核销详情
*/
export function verificationInfo(id: ID) {
return requestClient.get<VerificationVO>(`/property/verification/${id}`);
}
/**
* 新增服务核销
* @param data
* @returns void
*/
export function verificationAdd(data: VerificationForm) {
return requestClient.postWithMsg<void>('/property/verification', data);
}
/**
* 更新服务核销
* @param data
* @returns void
*/
export function verificationUpdate(data: VerificationForm) {
return requestClient.putWithMsg<void>('/property/verification', data);
}
/**
* 删除服务核销
* @param id id
* @returns void
*/
export function verificationRemove(id: ID | IDS) {
return requestClient.deleteWithMsg<void>(`/property/verification/${id}`);
}

View File

@@ -0,0 +1,99 @@
import type { PageQuery, BaseEntity } from '#/api/common';
export interface VerificationVO {
/**
* 主键
*/
id: string | number;
/**
* 服务id
*/
serverId: string | number;
/**
* 核销人id
*/
userId: string | number;
/**
* 核销结果
*/
outcome: number;
/**
* 核销时间
*/
time: string;
/**
* 备注
*/
remark: string;
/**
* 创建时间
*/
createTime: string;
}
export interface VerificationForm extends BaseEntity {
/**
* 主键
*/
id?: string | number;
/**
* 服务id
*/
serverId?: string | number;
/**
* 核销人id
*/
userId?: string | number;
/**
* 核销结果
*/
outcome?: number;
/**
* 核销时间
*/
time?: string;
/**
* 备注
*/
remark?: string;
}
export interface VerificationQuery extends PageQuery {
/**
* 服务id
*/
serverId?: string | number;
/**
* 核销人id
*/
userId?: string | number;
/**
* 核销结果
*/
outcome?: number;
/**
* 核销时间
*/
time?: string;
/**
* 日期范围参数
*/
params?: any;
}