From c4059d109c0dd17feadc816785a87253a22ee30b Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Mon, 8 Jul 2024 10:28:37 +0800 Subject: [PATCH] =?UTF-8?q?add=EF=BC=88=E6=A1=8C=E5=8F=B0=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1=EF=BC=8C=E7=82=B9=E6=AD=8C=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/application-song.js | 54 +++ src/api/table.js | 33 ++ src/router/routers.js | 6 + src/views/application/choose_song.vue | 139 +++++++ .../componentsCompoents/add-song.vue | 161 ++++++++ src/views/home/data_tables.vue | 358 ++++++++++++++++++ src/views/invoicing/goods_stoks.vue | 5 +- 7 files changed, 754 insertions(+), 2 deletions(-) create mode 100644 src/api/application-song.js create mode 100644 src/views/application/choose_song.vue create mode 100644 src/views/application/componentsCompoents/add-song.vue create mode 100644 src/views/home/data_tables.vue diff --git a/src/api/application-song.js b/src/api/application-song.js new file mode 100644 index 0000000..6a2cd4c --- /dev/null +++ b/src/api/application-song.js @@ -0,0 +1,54 @@ +import request from "@/utils/request"; + + +/** + * 查询歌曲列表 + * @returns + */ +export function tbShopSonglist(params) { + return request({ + url: "/api/tbShopSong", + method: "get", + params: { + shopId: localStorage.getItem("shopId"), + ...params + } + }); +} +/** + * 新增歌曲 + * @returns + */ +export function tbShopSongAdd(data) { + return request({ + url: "/api/tbShopSong", + method: "post", + data: { + shopId: localStorage.getItem("shopId"), + ...data + } + }); +} + +/** + * 修改歌曲 + * @returns + */ +export function tbShopSongEdit(data) { + return request({ + url: "/api/tbShopSong", + method: "put", + data + }); +} +/** + * 删除歌曲 + * @returns + */ +export function tbShopSongDel(ids) { + return request({ + url: 'api/tbProduct/', + method: 'delete', + data: ids + }) +} diff --git a/src/api/table.js b/src/api/table.js index ee1c9d8..31b8dfd 100644 --- a/src/api/table.js +++ b/src/api/table.js @@ -85,3 +85,36 @@ export function downloadTableCode(data) { responseType: "blob" }); } + + +/** + * 桌台统计 + * @returns + */ +export function summaryTable(params) { + return request({ + url: `/api/summary/table`, + method: "get", + params:{ + shopId: localStorage.getItem("shopId"), + ...params + } + }); +} + +/** + * 桌台统计导出文档 + * @returns + */ +export function summaryTableDownload(data) { + return request({ + url: `/api/summary/table/download`, + method: "POST", + data:{ + shopId: localStorage.getItem("shopId"), + ...data + }, + responseType: 'blob' + + }); +} diff --git a/src/router/routers.js b/src/router/routers.js index 4ebc72a..9774697 100644 --- a/src/router/routers.js +++ b/src/router/routers.js @@ -52,6 +52,12 @@ export const constantRouterMap = [ component: (resolve) => require(['@/views/home/data_forms'], resolve), name: 'data_forms', meta: { title: '数据报表' } + }, + { + path: 'data_tables', + component: (resolve) => require(['@/views/home/data_tables'], resolve), + name: 'data_tables', + meta: { title: '桌台统计' } } ] }, diff --git a/src/views/application/choose_song.vue b/src/views/application/choose_song.vue new file mode 100644 index 0000000..a045c59 --- /dev/null +++ b/src/views/application/choose_song.vue @@ -0,0 +1,139 @@ + + + diff --git a/src/views/application/componentsCompoents/add-song.vue b/src/views/application/componentsCompoents/add-song.vue new file mode 100644 index 0000000..855128e --- /dev/null +++ b/src/views/application/componentsCompoents/add-song.vue @@ -0,0 +1,161 @@ + + + + + diff --git a/src/views/home/data_tables.vue b/src/views/home/data_tables.vue new file mode 100644 index 0000000..350f0f5 --- /dev/null +++ b/src/views/home/data_tables.vue @@ -0,0 +1,358 @@ + + + + + diff --git a/src/views/invoicing/goods_stoks.vue b/src/views/invoicing/goods_stoks.vue index 2585bcd..0f1b634 100644 --- a/src/views/invoicing/goods_stoks.vue +++ b/src/views/invoicing/goods_stoks.vue @@ -51,7 +51,7 @@ {{ `${scope.row.number} ${scope.row.unitName}` }} - +