|
@@ -22,12 +22,13 @@ export async function directorySaveAPI(data) {
|
|
|
}
|
|
}
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 修改
|
|
* 修改
|
|
|
* @data data
|
|
* @data data
|
|
|
*/
|
|
*/
|
|
|
export async function directoryUpdateAPi(data) {
|
|
export async function directoryUpdateAPi(data) {
|
|
|
- data.authority = data.authority || 0
|
|
|
|
|
|
|
+ data.authority = data.authority || 0;
|
|
|
const res = await request.post('/fm/directory/update', data);
|
|
const res = await request.post('/fm/directory/update', data);
|
|
|
if (res.data.code == 0) {
|
|
if (res.data.code == 0) {
|
|
|
return res.data.data;
|
|
return res.data.data;
|
|
@@ -58,7 +59,6 @@ export async function directoryDeleteAPI(data) {
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* 检入
|
|
* 检入
|
|
|
* @data data
|
|
* @data data
|
|
@@ -82,7 +82,6 @@ export async function checkOut(data) {
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* 发布版本
|
|
* 发布版本
|
|
|
* @data data
|
|
* @data data
|
|
@@ -95,11 +94,14 @@ export async function fileVersion(data) {
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+//移动
|
|
|
|
|
+export async function batchMove(data) {
|
|
|
|
|
+ const res = await request.post('/fm/file/batchMove', data);
|
|
|
|
|
+ if (res.data.code == 0) {
|
|
|
|
|
+ return res.data.data;
|
|
|
|
|
+ }
|
|
|
|
|
+ return Promise.reject(new Error(res.data.message));
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 版本详情
|
|
* 版本详情
|
|
@@ -139,7 +141,7 @@ export async function queryRecycle(id) {
|
|
|
* 工作流
|
|
* 工作流
|
|
|
* @id id
|
|
* @id id
|
|
|
*/
|
|
*/
|
|
|
- export async function queryProcess(id) {
|
|
|
|
|
|
|
+export async function queryProcess(id) {
|
|
|
const res = await request.get(`/fm/file_operation_log/queryProcess/${id}`);
|
|
const res = await request.get(`/fm/file_operation_log/queryProcess/${id}`);
|
|
|
if (res.data.code == 0) {
|
|
if (res.data.code == 0) {
|
|
|
return res.data.data;
|
|
return res.data.data;
|
|
@@ -147,7 +149,6 @@ export async function queryRecycle(id) {
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* 个人工作区创建文件夹
|
|
* 个人工作区创建文件夹
|
|
|
*/
|
|
*/
|
|
@@ -159,11 +160,6 @@ export async function validationPersonal() {
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* 收发管理
|
|
* 收发管理
|
|
|
*/
|
|
*/
|
|
@@ -187,7 +183,6 @@ export async function sendUpdate(data) {
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
export async function sendPage(data) {
|
|
export async function sendPage(data) {
|
|
|
const res = await request.post('/fm/release_management/page', data);
|
|
const res = await request.post('/fm/release_management/page', data);
|
|
|
if (res.data.code == 0) {
|
|
if (res.data.code == 0) {
|
|
@@ -204,11 +199,10 @@ export async function releasePage(data) {
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
/*
|
|
/*
|
|
|
-* 回收文档
|
|
|
|
|
-* @data data
|
|
|
|
|
-*/
|
|
|
|
|
|
|
+ * 回收文档
|
|
|
|
|
+ * @data data
|
|
|
|
|
+ */
|
|
|
export async function receiveSave(data) {
|
|
export async function receiveSave(data) {
|
|
|
const res = await request.post('/fm/recycle_management/save', data);
|
|
const res = await request.post('/fm/recycle_management/save', data);
|
|
|
if (res.data.code == 0) {
|
|
if (res.data.code == 0) {
|
|
@@ -232,7 +226,6 @@ export async function recyclePage(data) {
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* 签收
|
|
* 签收
|
|
|
*/
|
|
*/
|
|
@@ -255,29 +248,27 @@ export async function allSignFor(data) {
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* 回收权限
|
|
* 回收权限
|
|
|
*/
|
|
*/
|
|
|
export async function recycleAuthority(data) {
|
|
export async function recycleAuthority(data) {
|
|
|
- const res = await request.post(`/fm/release_management/RecycleAuthority `, data);
|
|
|
|
|
|
|
+ const res = await request.post(
|
|
|
|
|
+ `/fm/release_management/RecycleAuthority `,
|
|
|
|
|
+ data
|
|
|
|
|
+ );
|
|
|
if (res.data.code == 0) {
|
|
if (res.data.code == 0) {
|
|
|
return res.data.data;
|
|
return res.data.data;
|
|
|
}
|
|
}
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
-* 查询文件数据
|
|
|
|
|
-* @data data
|
|
|
|
|
-*/
|
|
|
|
|
|
|
+ * 查询文件数据
|
|
|
|
|
+ * @data data
|
|
|
|
|
+ */
|
|
|
export async function filePageAPI(data) {
|
|
export async function filePageAPI(data) {
|
|
|
if (!data.lcyStatus) {
|
|
if (!data.lcyStatus) {
|
|
|
- return true
|
|
|
|
|
|
|
+ return true;
|
|
|
}
|
|
}
|
|
|
const res = await request.post('/fm/file/page', data);
|
|
const res = await request.post('/fm/file/page', data);
|
|
|
if (res.data.code == 0) {
|
|
if (res.data.code == 0) {
|
|
@@ -301,7 +292,7 @@ export async function fileSaveAPI(data) {
|
|
|
* @data data
|
|
* @data data
|
|
|
*/
|
|
*/
|
|
|
export async function fileUpdateAPI(data) {
|
|
export async function fileUpdateAPI(data) {
|
|
|
- data.authority = data.authority || 0
|
|
|
|
|
|
|
+ data.authority = data.authority || 0;
|
|
|
const res = await request.put('/fm/file/update', data);
|
|
const res = await request.put('/fm/file/update', data);
|
|
|
if (res.data.code == 0) {
|
|
if (res.data.code == 0) {
|
|
|
return res.data.data;
|
|
return res.data.data;
|
|
@@ -345,9 +336,9 @@ export async function fileDeleteAPI(data) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
-* 操作日志
|
|
|
|
|
-* @data data
|
|
|
|
|
-*/
|
|
|
|
|
|
|
+ * 操作日志
|
|
|
|
|
+ * @data data
|
|
|
|
|
+ */
|
|
|
export async function actionPage(data) {
|
|
export async function actionPage(data) {
|
|
|
const res = await request.post('/fm/file_operation_log/page', data);
|
|
const res = await request.post('/fm/file_operation_log/page', data);
|
|
|
if (res.data.code == 0) {
|
|
if (res.data.code == 0) {
|
|
@@ -356,10 +347,6 @@ export async function actionPage(data) {
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* 回收站
|
|
* 回收站
|
|
|
* @data data
|
|
* @data data
|
|
@@ -394,16 +381,15 @@ export async function recycleDeleteAPI(id) {
|
|
|
* 删除
|
|
* 删除
|
|
|
* @id id
|
|
* @id id
|
|
|
*/
|
|
*/
|
|
|
- export async function sendDeleteAPI(data) {
|
|
|
|
|
- console.log(data,'id')
|
|
|
|
|
- const res = await request.delete(`/fm/release_management/delete`,{data});
|
|
|
|
|
|
|
+export async function sendDeleteAPI(data) {
|
|
|
|
|
+ console.log(data, 'id');
|
|
|
|
|
+ const res = await request.delete(`/fm/release_management/delete`, { data });
|
|
|
if (res.data.code == 0) {
|
|
if (res.data.code == 0) {
|
|
|
return res.data.data;
|
|
return res.data.data;
|
|
|
}
|
|
}
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* 归档
|
|
* 归档
|
|
|
* @data data
|
|
* @data data
|
|
@@ -419,7 +405,7 @@ export async function updateLcyStatus(data) {
|
|
|
* 取消归档
|
|
* 取消归档
|
|
|
* @data data
|
|
* @data data
|
|
|
*/
|
|
*/
|
|
|
- export async function noUpdateLcyStatus(data) {
|
|
|
|
|
|
|
+export async function noUpdateLcyStatus(data) {
|
|
|
const res = await request.post('/fm/file/noUpdateLcyStatus', data);
|
|
const res = await request.post('/fm/file/noUpdateLcyStatus', data);
|
|
|
if (res.data.code == 0) {
|
|
if (res.data.code == 0) {
|
|
|
return res.data.data;
|
|
return res.data.data;
|
|
@@ -430,7 +416,7 @@ export async function updateLcyStatus(data) {
|
|
|
* 排序
|
|
* 排序
|
|
|
* @data data
|
|
* @data data
|
|
|
*/
|
|
*/
|
|
|
- export async function moveDirectory(data) {
|
|
|
|
|
|
|
+export async function moveDirectory(data) {
|
|
|
const res = await request.post('/fm/directory/moveDirectory', data);
|
|
const res = await request.post('/fm/directory/moveDirectory', data);
|
|
|
if (res.data.code == 0) {
|
|
if (res.data.code == 0) {
|
|
|
return res.data.data;
|
|
return res.data.data;
|
|
@@ -438,24 +424,25 @@ export async function updateLcyStatus(data) {
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
}
|
|
|
// 编码方案
|
|
// 编码方案
|
|
|
-export async function listCode(data={}) {
|
|
|
|
|
- console.log(data?.parentId,'data?.parentId')
|
|
|
|
|
-
|
|
|
|
|
- const res = await request.get(`/main/business_code_category/listCode/${data.id||'0'}`+'?parentId='+(data.parentId||''));
|
|
|
|
|
|
|
+export async function listCode(data = {}) {
|
|
|
|
|
+ console.log(data?.parentId, 'data?.parentId');
|
|
|
|
|
+
|
|
|
|
|
+ const res = await request.get(
|
|
|
|
|
+ `/main/business_code_category/listCode/${data.id || '0'}` +
|
|
|
|
|
+ '?parentId=' +
|
|
|
|
|
+ (data.parentId || '')
|
|
|
|
|
+ );
|
|
|
if (res.data.code == 0) {
|
|
if (res.data.code == 0) {
|
|
|
return res.data.data;
|
|
return res.data.data;
|
|
|
}
|
|
}
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* 获取信息详情
|
|
* 获取信息详情
|
|
|
*/
|
|
*/
|
|
|
export async function sendGetById(id) {
|
|
export async function sendGetById(id) {
|
|
|
- const res = await request.get(`/fm/release_management/getById/`+id, {});
|
|
|
|
|
|
|
+ const res = await request.get(`/fm/release_management/getById/` + id, {});
|
|
|
if (res.data.code == 0) {
|
|
if (res.data.code == 0) {
|
|
|
return res.data.data;
|
|
return res.data.data;
|
|
|
}
|
|
}
|
|
@@ -465,8 +452,8 @@ export async function sendGetById(id) {
|
|
|
/**
|
|
/**
|
|
|
* 获取信息详情
|
|
* 获取信息详情
|
|
|
*/
|
|
*/
|
|
|
- export async function recycleGetById(id) {
|
|
|
|
|
- const res = await request.get(`/fm/recycle_management/getById/`+id, {});
|
|
|
|
|
|
|
+export async function recycleGetById(id) {
|
|
|
|
|
+ const res = await request.get(`/fm/recycle_management/getById/` + id, {});
|
|
|
if (res.data.code == 0) {
|
|
if (res.data.code == 0) {
|
|
|
return res.data.data;
|
|
return res.data.data;
|
|
|
}
|
|
}
|