From 5b9fcf4e06ec72e25bbccef49ab0ef6c9ca8160a Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: Fri, 24 Mar 2023 10:43:25 +0800
Subject: [PATCH] Default Changelist
---
src/api/specialWorkSystem/workApply/index.ts | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 57 insertions(+), 1 deletions(-)
diff --git a/src/api/specialWorkSystem/workApply/index.ts b/src/api/specialWorkSystem/workApply/index.ts
index 890b524..8afaf8f 100644
--- a/src/api/specialWorkSystem/workApply/index.ts
+++ b/src/api/specialWorkSystem/workApply/index.ts
@@ -11,13 +11,42 @@
});
},
- // 分页获取申请列表
+ // 所有记录列表
+ getApplyList: (data: object) => {
+ return request({
+ url: import.meta.env.VITE_API_URL + `/work/apply/all/page/list`,
+ method: 'post',
+ data: data
+ });
+ },
+
+ // 获取所有用户
getAllUsers: () => {
return request({
url: import.meta.env.VITE_API_URL + `/account/list`,
method: 'get'
});
},
+
+ // 获取所有设备
+ getAllDevices: () => {
+ return request({
+ url: import.meta.env.VITE_API_URL + `/sysAdmin/camera/find/byAll`,
+ 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 +138,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 +175,24 @@
method: 'post',
data: data
});
+ },
+
+ // 获取物资配置数据
+ getMaterial: (data: object) => {
+ return request({
+ url: import.meta.env.VITE_API_URL + `/specialWork/material/queryByWorkTypeOrLevel`,
+ method: 'post',
+ data: data
+ });
+ },
+
+ // 根据物资配置id和领取人获取领取情况
+ getMaterialDetail: (data: object) => {
+ return request({
+ url: import.meta.env.VITE_API_URL + `/specialWork/material/receive`,
+ method: 'post',
+ data: data
+ });
}
};
}
--
Gitblit v1.9.2