From f59373dccb4afb37e63f4fe655061d067244860c Mon Sep 17 00:00:00 2001 From: Admin <978517621@qq.com> Date: 星期三, 16 十一月 2022 09:17:11 +0800 Subject: [PATCH] Default Changelist --- src/api/specialWorkSystem/workApply/index.ts | 39 +++++++++++++++++++++++++++++++++++++++ 1 files changed, 39 insertions(+), 0 deletions(-) diff --git a/src/api/specialWorkSystem/workApply/index.ts b/src/api/specialWorkSystem/workApply/index.ts index 890b524..1286cbe 100644 --- a/src/api/specialWorkSystem/workApply/index.ts +++ b/src/api/specialWorkSystem/workApply/index.ts @@ -11,6 +11,15 @@ }); }, + // 所有记录列表 + getApplyList: (data: object) => { + return request({ + url: import.meta.env.VITE_API_URL + `/work/apply/all/page/list`, + method: 'post', + data: data + }); + }, + // 分页获取申请列表 getAllUsers: () => { return request({ @@ -18,6 +27,18 @@ method: 'get' }); }, + + // 导出打印接口 + postPrinting: (data: object) => { + return request({ + url: import.meta.env.VITE_API_URL + `/work/apply/printing`, + method: 'post', + data: data, + responseType: 'blob', + headers:{'Content-Type': 'application/json'} + }); + }, + // 动火申请 postFireApply: (data: object) => { @@ -109,6 +130,15 @@ }); }, + // 查询所有进度 + getAllStatus: (data: object) => { + return request({ + url: import.meta.env.VITE_API_URL + `/work/apply/others/view`, + method: 'post', + data: data + }); + }, + // 获取图片上传路径 getUploadUrl: (name: string) => { return request({ @@ -137,6 +167,15 @@ method: 'post', data: data }); + }, + + // 获取物资配置数据 + getMaterial: (data: object) => { + return request({ + url: import.meta.env.VITE_API_URL + `/specialWork/material/queryByWorkTypeOrLevel`, + method: 'post', + data: data + }); } }; } -- Gitblit v1.9.2