Pārlūkot izejas kodu

更新请求API

ZaiZai 2 gadi atpakaļ
vecāks
revīzija
0c038f36f5

+ 0 - 6
src/api/index.js

@@ -1,6 +0,0 @@
-//请求配置
-export default {
-    putFile: '/api/blade-resource/oss/endpoint/put-file',       //上传文件
-    removeFile: '/api/blade-resource/oss/endpoint/remove-file', //移除文件
-    uploadFile: '/api/blade-resource/oss/endpoint/upload-file', //上传文件,转PDF
-}

+ 0 - 19
src/api/modules/api.js

@@ -1,19 +0,0 @@
-import {httpApi} from "../request/httpApi";
-
-export default {
-    async hcPostApi(form, msg = true) {
-        return httpApi({
-            url: '/api/' + form.url,
-            method: 'post',
-            params: form.params,
-            data: form.data
-        },msg);
-    },
-    async hcGetApi(form, msg = true) {
-        return httpApi({
-            url: '/api/' + form.url,
-            params: form.params,
-            method: 'get',
-        },msg);
-    },
-}

+ 44 - 0
src/api/modules/expense/finReimburse.js

@@ -0,0 +1,44 @@
+import {httpApi} from "../../request/httpApi";
+
+export default {
+    //日志填报列表查询
+    async getLogList(form, msg = false) {
+        return httpApi({
+            url: '/api/blade-control/log/list',
+            method: 'post',
+            data: form
+        }, msg);
+    },
+    //日志填报详情
+    async getLogDetail(form, msg = false) {
+        return httpApi({
+            url: '/api/blade-control/log/detail',
+            method: 'post',
+            params: form
+        },msg);
+    },
+    //日志任务列表-获取当前用户当日的任务信息
+    async getLogTaskList(form= {}, msg = false) {
+        return httpApi({
+            url: '/api/blade-control/log/task/list',
+            method: 'post',
+            data: form
+        },msg);
+    },
+    //日志任务完成
+    async setLogTaskComplete(form, msg = false) {
+        return httpApi({
+            url: '/api/blade-control/log/task/complete',
+            method: 'post',
+            params: form
+        },msg);
+    },
+     //日志填报新增或修改
+     async setLogSubmit(form, msg = false) {
+        return httpApi({
+            url: '/api/blade-control/log/submit',
+            method: 'post',
+            data: form
+        },msg);
+    },
+}

+ 0 - 28
src/api/modules/oss.js

@@ -1,28 +0,0 @@
-import {httpApi} from "../request/httpApi";
-
-export default {
-    //上传文件
-    async putFile(form, msg = true) {
-        return httpApi({
-            url: '/api/blade-resource/oss/endpoint/put-file',
-            method: 'post',
-            data: form
-        }, msg);
-    },
-    //移除文件
-    async removeFile(form, msg = true) {
-        return httpApi({
-            url: '/api/blade-resource/oss/endpoint/remove-file',
-            method: 'post',
-            params: form
-        }, msg);
-    },
-    //上传文件
-    async uploadFile(form, msg = true) {
-        return httpApi({
-            url: '/api/blade-resource/oss/endpoint/upload-file',
-            method: 'post',
-            data: form
-        }, msg);
-    },
-}

+ 0 - 106
src/api/modules/other.js

@@ -1,31 +1,5 @@
 import {httpApi} from "../request/httpApi";
 
-export const ApprovalApi = (url,form, msg = true) => httpApi({
-    url: '/api/blade-business/' + url,
-    method: 'post',
-    data: form
-}, msg);
-
-export const batchApproval = (form, msg = true) => httpApi({
-    url: '/api/blade-business/archiveFile/batchApproval',
-    method: 'post',
-    data: form
-}, msg);
-
-//短信验证
-export const sendNotice = (form, msg = true) => httpApi({
-    url: '/api/blade-business/task/send-notice',
-    method: 'post',
-    params: form
-}, msg);
-
-//短信过期时间
-export const saveSmsTimeout = (form, msg = true) => httpApi({
-    url: '/api/blade-business/task/save-sms-timeout',
-    method: 'get',
-    params: form
-}, msg);
-
 //用户配置保存
 export const userConfigSave = (form, msg = true) => httpApi({
     url: '/api/blade-business/defaultConfig/saveOrUpdate',
@@ -39,83 +13,3 @@ export const userConfigInfo = (form, msg = true) => httpApi({
     method: 'get',
     params: form
 }, msg);
-
-//获取上报批次
-// export const getReportNumber = (form, msg = true) => httpApi({
-//     url: '/api/blade-business/informationWriteQuery/getReportNumberByContractId',
-//     method: 'get',
-//     params: form
-// }, msg);
-export const getReportNumber = (form, msg = true) => httpApi({
-    url: 'api/blade-business/task/query-batch-list-two',
-    method: 'get',
-    params: form
-}, msg);
-//获取类型
-export const getDictionary = (form, msg = true) => httpApi({
-    url: '/api/blade-system/dict/dictionary',
-    method: 'get',
-    params: form
-}, msg);
-
-
-//获取表单的下拉框测站点数据
-export const getDapSiteData = (form, msg = true) => httpApi({
-    url: '/api/blade-business/dap/site',
-    method: 'get',
-    params: form
-}, msg);
-
-
-//检查当前合同段是否开启电签
-export const eVisaTaskCheck = (form, msg = true) => httpApi({
-    url: '/api/blade-business/eVisaTaskCheck/checkContractIsOpenEVisa',
-    method: 'get',
-    params: form
-}, msg);
-
-export const eVisaTaskCheckApi = async (form) => {
-    const {error, code, msg, data} = await eVisaTaskCheck(form)
-    //判断数据
-    if (!error && code === 200 && data === true) {
-        return true
-    } else {
-        window.$message?.warning(msg)
-        return false
-    }
-}
-
-
-//检查当前审批人是否存在证书
-export const checkFlowUserIsExistPfxFile = (form, msg = true) => httpApi({
-    url: '/api/blade-business/eVisaTaskCheck/checkFlowUserIsExistPfxFile',
-    method: 'get',
-    params: form
-}, msg);
-
-
-//获取符合条件的预设流程(三大填报页、日志列表的批量上报、首件列表的批量上报)
-export const queryFixedFlow = (form, msg = true) => httpApi({
-    url: '/api/blade-business/eVisaTaskCheck/queryFixedFlow',
-    method: 'post',
-    data: form
-}, msg);
-
-//检查所选的流程环节处理人是否具有审批权限(三大填报页、日志列表的批量上报、首件列表的批量上报)
-export const checkCustomFlowUserIsEVisaPermissions = (form, msg = true) => httpApi({
-    url: '/api/blade-business/eVisaTaskCheck/checkCustomFlowUserIsEVisaPermissions',
-    method: 'post',
-    data: form
-}, msg);
-//资料查询页面
-export const checkCustomFlowUserIsEVisaPermissionsquery = (form, msg = true) => httpApi({
-    url: '/api/blade-business/eVisaTaskCheck/batchCheckCustomFlowUserIsEVisaPermissions2',
-    method: 'post',
-    data: form
-}, msg);
-//获取用户列表
-export const getContractUserList = (form, msg = true) => httpApi({
-    url: '/api/blade-manager/contractInfo/get-contract-userList',
-    method: 'get',
-    params: form
-}, msg);