From 075db76d0043c8679cd7a9239187d775e00d049a Mon Sep 17 00:00:00 2001 From: gyq <875626088@qq.com> Date: Wed, 29 May 2024 18:00:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=AD=98=E9=85=92=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/application.js | 72 +++++ .../application/components/wine/addModal.vue | 281 +++++++++++++++--- .../application/components/wine/record.vue | 101 ++++++- .../components/winestorage/addModal.vue | 153 +++++++--- .../components/winestorage/record.vue | 93 +++++- src/views/application/winestorage.vue | 2 +- 6 files changed, 594 insertions(+), 108 deletions(-) diff --git a/src/api/application.js b/src/api/application.js index df10362..a85d3e6 100644 --- a/src/api/application.js +++ b/src/api/application.js @@ -25,3 +25,75 @@ export function appCenterGet() { method: "get" }); } + +/** + * 新增/编辑酒品 + * @returns + */ +export function tbShopStorageGood(data, method = "post") { + return request({ + url: "/api/tbShopStorageGood", + method: method, + data: { + shopId: localStorage.getItem("shopId"), + ...data + } + }); +} + +/** + * 查询酒品列表 + * @returns + */ +export function tbShopStorageGoodlist(data) { + return request({ + url: "/api/tbShopStorageGood/list", + method: "post", + data: { + shopId: localStorage.getItem("shopId"), + ...data + } + }); +} + +/** + * 新增存酒 + * @returns + */ +export function storageWin(data) { + return request({ + url: "/api/storage", + method: "post", + data: { + shopId: localStorage.getItem("shopId"), + ...data + } + }); +} + +/** + * 查询存酒列表 + * @returns + */ +export function storageList(data) { + return request({ + url: "/api/storage/list", + method: "post", + data: { + shopId: localStorage.getItem("shopId"), + ...data + } + }); +} + +/** + * 存取酒 + * @returns + */ +export function storagePut(data) { + return request({ + url: "/api/storage", + method: "put", + data + }); +} diff --git a/src/views/application/components/wine/addModal.vue b/src/views/application/components/wine/addModal.vue index 1e7c9c4..a52be43 100644 --- a/src/views/application/components/wine/addModal.vue +++ b/src/views/application/components/wine/addModal.vue @@ -1,42 +1,108 @@ \ No newline at end of file diff --git a/src/views/application/components/wine/record.vue b/src/views/application/components/wine/record.vue index 8a85d88..0a06027 100644 --- a/src/views/application/components/wine/record.vue +++ b/src/views/application/components/wine/record.vue @@ -3,29 +3,70 @@
- 添加酒品 + 添加酒品 - 查询 - 重置 + 查询 + 重置
- + + + + + + + + + + + + + + +
- +
+ +
+ + \ No newline at end of file diff --git a/src/views/application/components/winestorage/addModal.vue b/src/views/application/components/winestorage/addModal.vue index 1474e64..eaab21c 100644 --- a/src/views/application/components/winestorage/addModal.vue +++ b/src/views/application/components/winestorage/addModal.vue @@ -1,23 +1,31 @@ \ No newline at end of file diff --git a/src/views/application/winestorage.vue b/src/views/application/winestorage.vue index 0c20c14..6d01422 100644 --- a/src/views/application/winestorage.vue +++ b/src/views/application/winestorage.vue @@ -38,7 +38,7 @@ export default { data() { return { applocation: JSON.parse(localStorage.getItem('applocation')), - tabActive: 1, + tabActive: 0, tabs: [ { value: 1,