From 75a462f8ee30491f05d29ccac1b65d31e835957b Mon Sep 17 00:00:00 2001 From: spring <2396852758@qq.com> Date: 星期三, 20 八月 2025 15:57:14 +0800 Subject: [PATCH] 档案管理调整 --- src/api/fileManagement/document.js | 164 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 164 insertions(+), 0 deletions(-) diff --git a/src/api/fileManagement/document.js b/src/api/fileManagement/document.js new file mode 100644 index 0000000..49b156e --- /dev/null +++ b/src/api/fileManagement/document.js @@ -0,0 +1,164 @@ +import request from "@/utils/request"; + +// 鑾峰彇鍒嗙被鏍� +export function getCategoryTree() { + return request({ + url: "/warehouse/documentClassification/getList", + method: "get", + }); +} + +// 鏂板鍒嗙被 +export function addCategory(data) { + return request({ + url: "/warehouse/documentClassification/add", + method: "post", + data: { + category: data.category, + parentId: data.parentId, + }, + }); +} + +// 淇敼鍒嗙被 +export function updateCategory(data) { + return request({ + url: "/warehouse/documentClassification/update", + method: "put", + data: { + id: data.id, + category: data.category, + }, + }); +} + +// 鍒犻櫎鍒嗙被 +export function deleteCategory(ids) { + return request({ + url: "/warehouse/documentClassification/delete", + method: "delete", + data: ids, + }); +} + +// 鑾峰彇鏂囨。鍒楄〃锛堝垎椤碉級 +export function getDocumentList(query) { + return request({ + url: "/documentation/listPage", + method: "get", + params: query, + }); +} + +// 鏂板鏂囨。 +export function addDocument(data) { + return request({ + url: "/documentation/add", + method: "post", + data: data, + }); +} + +// 淇敼鏂囨。 +export function updateDocument(data) { + return request({ + url: "/documentation/update", + method: "put", + data: data, + }); +} + +// 鍒犻櫎鏂囨。 +export function deleteDocument(ids) { + return request({ + url: "/documentation/delete", + method: "delete", + data: ids, + }); +} + +// 鑾峰彇鏂囨。璇︽儏 +export function getDocumentDetail(id) { + return request({ + url: "/document/" + id, + method: "get", + }); +} + +// 鎼滅储鏂囨。 +export function searchDocument(query) { + return request({ + url: "/document/search", + method: "get", + params: query, + }); +} + +// 鑾峰彇浠撳簱缁撴瀯 +export function getWarehouseStructure() { + return request({ + url: "/document/warehouse/structure", + method: "get", + }); +} + +// 闄勪欢绠$悊鐩稿叧鎺ュ彛 +// 娣诲姞闄勪欢 +export function addDocumentationFile(data) { + return request({ + url: "/documentation/documentationFile/add", + method: "post", + data: data, + }); +} + +// 鑾峰彇闄勪欢鍒楄〃 +export function getDocumentationFileList(params) { + return request({ + url: "/documentation/documentationFile/listPage", + method: "get", + params: params, + }); +} + +// 鍒犻櫎闄勪欢 +export function deleteDocumentationFile(ids) { + return request({ + url: "/documentation/documentationFile/del", + method: "delete", + data: ids, + }); +} + +// 鏂囨。鍊熼槄绠$悊鐩稿叧鎺ュ彛 +export function getBorrowList(params) { + return request({ + url: "/documentationBorrowManagement/listPage", + method: "get", + params: params, + }); +} + +export function addBorrow(data) { + return request({ + url: "/documentationBorrowManagement/add", + method: "post", + data: data, + }); +} + +export function updateBorrow(data) { + return request({ + url: "/documentationBorrowManagement/update", + method: "put", + data: data, + }); +} + +export function deleteBorrow(ids) { + return request({ + url: "/documentationBorrowManagement/delete", + method: "delete", + data: ids, + }); +} -- Gitblit v1.9.3