diff --git a/http/yskApi/requestAll.js b/http/yskApi/requestAll.js index daa329c..6e39d31 100644 --- a/http/yskApi/requestAll.js +++ b/http/yskApi/requestAll.js @@ -17,4 +17,53 @@ export function dateProduct(params) { method: 'get', params }) +} +// 桌型列表 +export function callTable(params) { + return request({ + url: '/callTable', + method: 'get', + params + }) +} +// 排队列表 +export function callTablequeue(params) { + return request({ + url: '/callTable/queue', + method: 'get', + params + }) +} +// 取号 +export function callTabletakeNumber(data) { + return request({ + url: '/callTable/takeNumber', + method: 'post', + data: { + ...data + } + }) +} + +export function callTablecallRecord(params) { + return request({ + url: '/callTable/callRecord', + method: 'get', + params + }) +} +export function callTableput(data) { + return request({ + url: `/callTable/updateState`, + method: "put", + data + }); +} +// 叫号 +export function callTablecall(data) { + return request({ + url: `/callTable/call`, + method: 'post', + data + }); } \ No newline at end of file diff --git a/pageLineUp/avation.svg b/pageLineUp/avation.svg new file mode 100644 index 0000000..b5d2d82 --- /dev/null +++ b/pageLineUp/avation.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/pageLineUp/callRecord.vue b/pageLineUp/callRecord.vue new file mode 100644 index 0000000..d7f28dc --- /dev/null +++ b/pageLineUp/callRecord.vue @@ -0,0 +1,187 @@ + + + + + \ No newline at end of file diff --git a/pageLineUp/index.vue b/pageLineUp/index.vue new file mode 100644 index 0000000..e8b288d --- /dev/null +++ b/pageLineUp/index.vue @@ -0,0 +1,378 @@ + + + + + \ No newline at end of file diff --git a/pages.json b/pages.json index 5c0de9d..0baef4f 100644 --- a/pages.json +++ b/pages.json @@ -1220,21 +1220,39 @@ { "root": "pageSalesSummary", "pages": [{ - "pageId": "PAGES_SALES_SUMMARY", - "path": "index", - "style": { - "navigationBarTitleText": "销售汇总" + "pageId": "PAGES_SALES_SUMMARY", + "path": "index", + "style": { + "navigationBarTitleText": "销售汇总" + } + }, { + "pageId": "PAGES_PRODUCT_SALES_RANKING", + "path": "productSalesRanking", + "style": { + "navigationBarTitleText": "商品销售排行" + } } - },{ - "pageId": "PAGES_PRODUCT_SALES_RANKING", - "path": "productSalesRanking", - "style": { - "navigationBarTitleText": "商品销售排行" - } - } - + ] }, + { + "root": "pageLineUp", + "pages": [{ + "pageId": "PAGES_LINE_UP", + "path": "index", + "style": { + "navigationBarTitleText": "排队" + } + },{ + "pageId": "PAGES_CALLRE_CORD", + "path": "callRecord", + "style": { + "navigationBarTitleText": "叫号记录" + } + } + ] + }, + { "root": "pageConsumables", "pages": [{ diff --git a/pages/index/index.vue b/pages/index/index.vue index b517ee0..ff2267c 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -71,6 +71,10 @@ title: '桌台', icon: '/static/indexImg/icon-table.svg', pageUrl: 'PAGES_TABLE' + },{ + title: '排队', + icon: '/static/indexImg/icon-table.svg', + pageUrl: 'PAGES_LINE_UP' }, { title: '代客下单',