From 4b7edf54078dfd9f577889f1e9a494273287e66e Mon Sep 17 00:00:00 2001 From: SjS Date: Fri, 6 Jun 2025 18:21:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E5=8F=B0=E6=96=B0=E5=A2=9E=E5=AD=98?= =?UTF-8?q?=E9=85=92=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/bst/location.js | 44 ++ src/api/bst/storage.js | 44 ++ src/api/bst/storageRecord.js | 44 ++ src/views/bst/agreement/index.vue | 3 +- src/views/bst/app/index.vue | 2 +- .../bst/location/components/LocationTree.vue | 241 ++++++++++ src/views/bst/location/index.vue | 258 +++++++++++ src/views/bst/storage/index.vue | 423 ++++++++++++++++++ src/views/bst/storageRecord/index.vue | 360 +++++++++++++++ 9 files changed, 1416 insertions(+), 3 deletions(-) create mode 100644 src/api/bst/location.js create mode 100644 src/api/bst/storage.js create mode 100644 src/api/bst/storageRecord.js create mode 100644 src/views/bst/location/components/LocationTree.vue create mode 100644 src/views/bst/location/index.vue create mode 100644 src/views/bst/storage/index.vue create mode 100644 src/views/bst/storageRecord/index.vue diff --git a/src/api/bst/location.js b/src/api/bst/location.js new file mode 100644 index 0000000..5e2a9b0 --- /dev/null +++ b/src/api/bst/location.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询存放位置列表 +export function listLocation(query) { + return request({ + url: '/bst/location/list', + method: 'get', + params: query + }) +} + +// 查询存放位置详细 +export function getLocation(id) { + return request({ + url: '/bst/location/' + id, + method: 'get' + }) +} + +// 新增存放位置 +export function addLocation(data) { + return request({ + url: '/bst/location', + method: 'post', + data: data + }) +} + +// 修改存放位置 +export function updateLocation(data) { + return request({ + url: '/bst/location', + method: 'put', + data: data + }) +} + +// 删除存放位置 +export function delLocation(id) { + return request({ + url: '/bst/location/' + id, + method: 'delete' + }) +} diff --git a/src/api/bst/storage.js b/src/api/bst/storage.js new file mode 100644 index 0000000..ab6ef38 --- /dev/null +++ b/src/api/bst/storage.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询存酒列表 +export function listStorage(query) { + return request({ + url: '/bst/storage/list', + method: 'get', + params: query + }) +} + +// 查询存酒详细 +export function getStorage(id) { + return request({ + url: '/bst/storage/' + id, + method: 'get' + }) +} + +// 新增存酒 +export function addStorage(data) { + return request({ + url: '/bst/storage', + method: 'post', + data: data + }) +} + +// 修改存酒 +export function updateStorage(data) { + return request({ + url: '/bst/storage', + method: 'put', + data: data + }) +} + +// 删除存酒 +export function delStorage(id) { + return request({ + url: '/bst/storage/' + id, + method: 'delete' + }) +} diff --git a/src/api/bst/storageRecord.js b/src/api/bst/storageRecord.js new file mode 100644 index 0000000..501a6a5 --- /dev/null +++ b/src/api/bst/storageRecord.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询取酒记录列表 +export function listStorageRecord(query) { + return request({ + url: '/bst/storageRecord/list', + method: 'get', + params: query + }) +} + +// 查询取酒记录详细 +export function getStorageRecord(id) { + return request({ + url: '/bst/storageRecord/' + id, + method: 'get' + }) +} + +// 新增取酒记录 +export function addStorageRecord(data) { + return request({ + url: '/bst/storageRecord', + method: 'post', + data: data + }) +} + +// 修改取酒记录 +export function updateStorageRecord(data) { + return request({ + url: '/bst/storageRecord', + method: 'put', + data: data + }) +} + +// 删除取酒记录 +export function delStorageRecord(id) { + return request({ + url: '/bst/storageRecord/' + id, + method: 'delete' + }) +} diff --git a/src/views/bst/agreement/index.vue b/src/views/bst/agreement/index.vue index e5b0de8..7b85563 100644 --- a/src/views/bst/agreement/index.vue +++ b/src/views/bst/agreement/index.vue @@ -23,7 +23,6 @@ icon="el-icon-plus" size="mini" @click="handleAdd" - v-if="isSysAdmin()" v-has-permi="['bst:agreement:add']" >新增 @@ -113,7 +112,7 @@ - + - + + + + + diff --git a/src/views/bst/location/index.vue b/src/views/bst/location/index.vue new file mode 100644 index 0000000..e1d7ed7 --- /dev/null +++ b/src/views/bst/location/index.vue @@ -0,0 +1,258 @@ + + + diff --git a/src/views/bst/storage/index.vue b/src/views/bst/storage/index.vue new file mode 100644 index 0000000..ba5bbaf --- /dev/null +++ b/src/views/bst/storage/index.vue @@ -0,0 +1,423 @@ + + + diff --git a/src/views/bst/storageRecord/index.vue b/src/views/bst/storageRecord/index.vue new file mode 100644 index 0000000..828284f --- /dev/null +++ b/src/views/bst/storageRecord/index.vue @@ -0,0 +1,360 @@ + + +