This commit is contained in:
‘huanghaiixia’
2025-12-19 16:24:12 +08:00
parent e79a450ca2
commit 694d3cc2ee
13 changed files with 2039 additions and 6 deletions

View File

@ -0,0 +1,89 @@
import { LngApproPageModel, LngApproPageParams, LngApproPageResult } from './model/ApproModel';
import { defHttp } from '/@/utils/http/axios';
import { ErrorMessageMode } from '/#/axios';
enum Api {
Page = '/approve/appro/page',
List = '/approve/appro/list',
Info = '/approve/appro/info',
LngAppro = '/approve/appro',
}
/**
* @description: 查询LngAppro分页列表
*/
export async function getLngApproPage(params: LngApproPageParams, mode: ErrorMessageMode = 'modal') {
return defHttp.get<LngApproPageResult>(
{
url: Api.Page,
params,
},
{
errorMessageMode: mode,
},
);
}
/**
* @description: 获取LngAppro信息
*/
export async function getLngAppro(id: String, mode: ErrorMessageMode = 'modal') {
return defHttp.get<LngApproPageModel>(
{
url: Api.Info,
params: { id },
},
{
errorMessageMode: mode,
},
);
}
/**
* @description: 新增LngAppro
*/
export async function addLngAppro(lngAppro: Recordable, mode: ErrorMessageMode = 'modal') {
return defHttp.post<boolean>(
{
url: Api.LngAppro,
params: lngAppro,
},
{
errorMessageMode: mode,
},
);
}
/**
* @description: 更新LngAppro
*/
export async function updateLngAppro(lngAppro: Recordable, mode: ErrorMessageMode = 'modal') {
return defHttp.put<boolean>(
{
url: Api.LngAppro,
params: lngAppro,
},
{
errorMessageMode: mode,
},
);
}
/**
* @description: 删除LngAppro批量删除
*/
export async function deleteLngAppro(ids: string[], mode: ErrorMessageMode = 'modal') {
return defHttp.delete<boolean>(
{
url: Api.LngAppro,
data: ids,
},
{
errorMessageMode: mode,
},
);
}

View File

@ -0,0 +1,60 @@
import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel';
/**
* @description: LngAppro分页参数 模型
*/
export interface LngApproPageParams extends BasicPageParams {
code: string;
title: string;
typeCode: string;
securityCode: string;
urgencyCode: string;
empId: string;
bDeptId: string;
dateAppro: string;
approCode: string;
content: string;
}
/**
* @description: LngAppro分页返回值模型
*/
export interface LngApproPageModel {
id: string;
code: string;
title: string;
typeCode: string;
securityCode: string;
urgencyCode: string;
empId: string;
bDeptId: string;
dateAppro: string;
approCode: string;
content: string;
}
0;
/**
* @description: LngAppro分页返回值结构
*/
export type LngApproPageResult = BasicFetchResult<LngApproPageModel>;