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}` }} - +