From 239f61596bccd90e2c45ab99b35f92b3eed47e46 Mon Sep 17 00:00:00 2001 From: 15066119699 Date: Tue, 4 Mar 2025 12:50:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=93=E5=BA=93=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/storage.js | 44 ++++ src/views/system/storage/index.vue | 376 +++++++++++++++++++++++++++++ 2 files changed, 420 insertions(+) create mode 100644 src/api/system/storage.js create mode 100644 src/views/system/storage/index.vue diff --git a/src/api/system/storage.js b/src/api/system/storage.js new file mode 100644 index 0000000..df74efc --- /dev/null +++ b/src/api/system/storage.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询仓库列表 +export function listStorage(query) { + return request({ + url: '/app/storage/list', + method: 'get', + params: query + }) +} + +// 查询仓库详细 +export function getStorage(id) { + return request({ + url: '/app/storage/' + id, + method: 'get' + }) +} + +// 新增仓库 +export function addStorage(data) { + return request({ + url: '/app/storage', + method: 'post', + data: data + }) +} + +// 修改仓库 +export function updateStorage(data) { + return request({ + url: '/app/storage', + method: 'put', + data: data + }) +} + +// 删除仓库 +export function delStorage(id) { + return request({ + url: '/app/storage/' + id, + method: 'delete' + }) +} diff --git a/src/views/system/storage/index.vue b/src/views/system/storage/index.vue new file mode 100644 index 0000000..192ad53 --- /dev/null +++ b/src/views/system/storage/index.vue @@ -0,0 +1,376 @@ + + +