From 7266dd9309b9a49c508d967a91065810b3bc70b3 Mon Sep 17 00:00:00 2001 From: gyq <875626088@qq.com> Date: Thu, 6 Jun 2024 17:44:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E7=BB=84=E6=96=B0=E5=A2=9E=E6=8E=92?= =?UTF-8?q?=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/application.js | 15 ++++ src/api/shop.js | 25 ++++++ .../application/components/wine/record.vue | 9 +- .../components/winetotal/winetotal.vue | 82 +++++++++++++++++++ src/views/application/winestorage.vue | 5 +- src/views/product/add_shop.vue | 30 ++++--- src/views/product/category.vue | 34 +++++++- src/views/product/components/addClassify.vue | 4 +- src/views/product/components/addGroup.vue | 2 +- src/views/product/components/addUnit.vue | 2 +- src/views/product/group/index.vue | 43 ++++++++-- src/views/product/index.vue | 14 +--- 12 files changed, 226 insertions(+), 39 deletions(-) create mode 100644 src/views/application/components/winetotal/winetotal.vue diff --git a/src/api/application.js b/src/api/application.js index 4f16079..6d90106 100644 --- a/src/api/application.js +++ b/src/api/application.js @@ -109,3 +109,18 @@ export function recordList(params) { params }); } + +/** + * 存酒统计 + * @returns + */ +export function countRecord(data) { + return request({ + url: "/api/storage/countRecord", + method: "post", + data: { + shopId: localStorage.getItem("shopId"), + ...data + } + }); +} diff --git a/src/api/shop.js b/src/api/shop.js index 9b150c4..5891ae2 100644 --- a/src/api/shop.js +++ b/src/api/shop.js @@ -455,3 +455,28 @@ export function upProSort(data) { data }); } + +/** + * 修改分组排序 + * @returns + */ +export function upGroupSort(data) { + return request({ + url: `/api/tbProductGroup/upGroupSort`, + method: "post", + data + }); +} + +/** + * 修改分类排序 + * @returns + */ +export function upCategorySort(data) { + return request({ + url: `/api/tbShopCategory/upCategorySort`, + method: "post", + data + }); +} + diff --git a/src/views/application/components/wine/record.vue b/src/views/application/components/wine/record.vue index 0a06027..7e4ada5 100644 --- a/src/views/application/components/wine/record.vue +++ b/src/views/application/components/wine/record.vue @@ -19,7 +19,12 @@ @@ -40,7 +45,7 @@ @@ -30,10 +31,12 @@