From 83bbceeca584500a9902ce1677a3337990d9157a Mon Sep 17 00:00:00 2001 From: 马宇豪 <978517621@qq.com> Date: 星期五, 26 五月 2023 17:00:08 +0800 Subject: [PATCH] 新特殊作业 --- src/api/specialWorkSystem/workApply/index.ts | 93 ++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 93 insertions(+), 0 deletions(-) diff --git a/src/api/specialWorkSystem/workApply/index.ts b/src/api/specialWorkSystem/workApply/index.ts index 8afaf8f..7a86f70 100644 --- a/src/api/specialWorkSystem/workApply/index.ts +++ b/src/api/specialWorkSystem/workApply/index.ts @@ -11,6 +11,90 @@ }); }, + // 新分页获取申请列表 + getNewApplyListPage: (data: object) => { + return request({ + url: import.meta.env.VITE_API_URL + `/specialwork9step/work/applyUser/list/page`, + method: 'post', + data: data + }); + }, + + // 新获取所有申请 + getAllNewApplyListPage: (data: object) => { + return request({ + url: import.meta.env.VITE_API_URL + `/specialwork9step/work/all/list/page`, + method: 'post', + data: data + }); + }, + + // 获取基础数据 + getFormData: (type: number) => { + return request({ + url: import.meta.env.VITE_API_URL + `/specialwork9step/work/getFormData/${type}`, + method: 'get' + }); + }, + + // 新提交接口 + submitFireApply: (data: object) => { + return request({ + url: import.meta.env.VITE_API_URL + `/specialwork9step/work/apply/hot`, + method: 'post', + data: data + }); + }, + submitSpaceApply: (data: object) => { + return request({ + url: import.meta.env.VITE_API_URL + `/specialwork9step/work/apply/confinedspace`, + method: 'post', + data: data + }); + }, + submitHoistApply: (data: object) => { + return request({ + url: import.meta.env.VITE_API_URL + `/specialwork9step/work/apply/hoisting`, + method: 'post', + data: data + }); + }, + submitGroundApply: (data: object) => { + return request({ + url: import.meta.env.VITE_API_URL + `/specialwork9step/work/apply/groundBreaking`, + method: 'post', + data: data + }); + }, + submitBrokenApply: (data: object) => { + return request({ + url: import.meta.env.VITE_API_URL + `/specialwork9step/work/apply/brokenCircuit`, + method: 'post', + data: data + }); + }, + submitHeightApply: (data: object) => { + return request({ + url: import.meta.env.VITE_API_URL + `/specialwork9step/work/apply/hight`, + method: 'post', + data: data + }); + }, + submitPowerApply: (data: object) => { + return request({ + url: import.meta.env.VITE_API_URL + `/specialwork9step/work/apply/temporaryPower`, + method: 'post', + data: data + }); + }, + submitPlateApply: (data: object) => { + return request({ + url: import.meta.env.VITE_API_URL + `/specialwork9step/work/apply/blindPlatePlugging`, + method: 'post', + data: data + }); + }, + // 所有记录列表 getApplyList: (data: object) => { return request({ @@ -156,6 +240,15 @@ }); }, + // 获取图片上传路径 + getUpload9Url: (name: string) => { + return request({ + url: import.meta.env.VITE_API_URL + `/specialwork9step/file/getPresignUrl`, + method: 'post', + data: { prefixName: name.split('.')[0], suffixName: name.split('.')[1] } + }); + }, + // 上传图片 uploadFile: (path: string, file: any) => { return request({ -- Gitblit v1.9.2