客户需求
This commit is contained in:
@ -8,12 +8,54 @@ enum Api {
|
||||
List = '/dayPlan/pngAppro/list',
|
||||
Info = '/dayPlan/pngAppro/info',
|
||||
LngPngAppro = '/dayPlan/pngAppro',
|
||||
approve = '/dayPlan/pngAppro/approveXS',
|
||||
|
||||
|
||||
|
||||
records = '/magic-api/approve/records',
|
||||
compare = '/dayPlan/pngAppro/compare'
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 获取LngPngAppro信息
|
||||
*/
|
||||
export async function getLngPngApproCompare(demandOrgId: String, mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.get<LngPngApproPageModel>(
|
||||
{
|
||||
url: Api.compare,
|
||||
params: { demandOrgId },
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
/**
|
||||
* @description: 审批LngPngAppro
|
||||
*/
|
||||
export async function approveLngPngAppro(lngPngAppro: Recordable, mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.post<boolean>(
|
||||
{
|
||||
url: Api.approve,
|
||||
params: lngPngAppro,
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
/**
|
||||
* @description: 获取LngPngAppro审批记录
|
||||
*/
|
||||
export async function getLngPngApproRecords(id: String, mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.get<LngPngApproPageModel>(
|
||||
{
|
||||
url: Api.records,
|
||||
params: { id },
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
/**
|
||||
* @description: 查询LngPngAppro分页列表
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user