|
@@ -13,9 +13,9 @@ export async function getDocTreeListAPI(data) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
-* 查询文件数据
|
|
|
|
|
-* @data data
|
|
|
|
|
-*/
|
|
|
|
|
|
|
+ * 查询文件数据
|
|
|
|
|
+ * @data data
|
|
|
|
|
+ */
|
|
|
export async function filePageAPI(data) {
|
|
export async function filePageAPI(data) {
|
|
|
const res = await request.post('/fm/file/pageBusiness', data);
|
|
const res = await request.post('/fm/file/pageBusiness', data);
|
|
|
if (res.data.code == 0) {
|
|
if (res.data.code == 0) {
|
|
@@ -51,7 +51,7 @@ export async function fileGetByIdAPI(id) {
|
|
|
* ids查询文件列表
|
|
* ids查询文件列表
|
|
|
* @data data
|
|
* @data data
|
|
|
*/
|
|
*/
|
|
|
- export async function queryIds(data) {
|
|
|
|
|
|
|
+export async function queryIds(data) {
|
|
|
const res = await request.post('/fm/file/queryIds', data);
|
|
const res = await request.post('/fm/file/queryIds', data);
|
|
|
if (res.data.code == 0) {
|
|
if (res.data.code == 0) {
|
|
|
return res.data.data;
|
|
return res.data.data;
|
|
@@ -59,12 +59,12 @@ export async function fileGetByIdAPI(id) {
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
// 获取编码树
|
|
// 获取编码树
|
|
|
export async function selectTreeList(data) {
|
|
export async function selectTreeList(data) {
|
|
|
- const res = await request.post(`/main/business_code_category/selectTreeList`, data);
|
|
|
|
|
|
|
+ const res = await request.post(
|
|
|
|
|
+ `/main/business_code_category/selectTreeList`,
|
|
|
|
|
+ data
|
|
|
|
|
+ );
|
|
|
if (res.data.code == 0) {
|
|
if (res.data.code == 0) {
|
|
|
return res.data.data;
|
|
return res.data.data;
|
|
|
}
|
|
}
|
|
@@ -72,7 +72,10 @@ export async function selectTreeList(data) {
|
|
|
}
|
|
}
|
|
|
// 获取右侧列表
|
|
// 获取右侧列表
|
|
|
export async function listParentId(data) {
|
|
export async function listParentId(data) {
|
|
|
- const res = await request.post(`/main/business_code_category/listPageParentId`, data);
|
|
|
|
|
|
|
+ const res = await request.post(
|
|
|
|
|
+ `/main/business_code_category/listPageParentId`,
|
|
|
|
|
+ data
|
|
|
|
|
+ );
|
|
|
if (res.data.code == 0) {
|
|
if (res.data.code == 0) {
|
|
|
return res.data.data;
|
|
return res.data.data;
|
|
|
}
|
|
}
|
|
@@ -87,10 +90,11 @@ export async function pageSegment(data) {
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
// 生成编码
|
|
// 生成编码
|
|
|
export async function getCode(id) {
|
|
export async function getCode(id) {
|
|
|
- const res = await request.get(`/main/business_code_category/applyForCode/`+id);
|
|
|
|
|
|
|
+ const res = await request.get(
|
|
|
|
|
+ `/main/business_code_category/applyForCode/` + id
|
|
|
|
|
+ );
|
|
|
if (res.data.code == 0) {
|
|
if (res.data.code == 0) {
|
|
|
return res.data.data;
|
|
return res.data.data;
|
|
|
}
|
|
}
|
|
@@ -101,7 +105,7 @@ export async function getCode(id) {
|
|
|
* 上传文件
|
|
* 上传文件
|
|
|
* @param file 文件
|
|
* @param file 文件
|
|
|
*/
|
|
*/
|
|
|
- export async function uploadFileNew (data) {
|
|
|
|
|
|
|
+export async function uploadFileNew(data) {
|
|
|
const formData = new FormData();
|
|
const formData = new FormData();
|
|
|
formData.append('multiPartFile', data.multiPartFile);
|
|
formData.append('multiPartFile', data.multiPartFile);
|
|
|
formData.append('module', data.module);
|
|
formData.append('module', data.module);
|
|
@@ -112,11 +116,14 @@ export async function getCode(id) {
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
}
|
|
|
// 编码方案
|
|
// 编码方案
|
|
|
-export async function listCode(code) {
|
|
|
|
|
- const res = await request.get(`/main/business_code_category/listCode/`+code);
|
|
|
|
|
|
|
+export async function listCode(data = {}) {
|
|
|
|
|
+ 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));
|
|
|
}
|
|
}
|
|
|
-
|
|
|