diff --git a/.env.production b/.env.production index 7f079f7..2a4f841 100644 --- a/.env.production +++ b/.env.production @@ -3,10 +3,10 @@ ENV = 'production' # 如果使用 Nginx 代理后端接口,那么此处需要改为 '/',文件查看 Docker 部署篇,Nginx 配置 # 接口地址,注意协议,如果你没有配置 ssl,需要将 https 改为 http # 测试 -# VUE_APP_BASE_API = 'https://admintestpapi.sxczgkj.cn' +VUE_APP_BASE_API = 'https://admintestpapi.sxczgkj.cn' # 生产 -VUE_APP_BASE_API = 'https://cashieradmin.sxczgkj.cn' +# VUE_APP_BASE_API = 'https://cashieradmin.sxczgkj.cn' # 预发布接口 # VUE_APP_BASE_API = 'https://pre-cashieradmin.sxczgkj.cn' diff --git a/src/api/shop.js b/src/api/shop.js index 128db8d..ed81c3c 100644 --- a/src/api/shop.js +++ b/src/api/shop.js @@ -595,7 +595,86 @@ export function updateStatus(data) { data }); } - +// 叫号记录 +export function callRecord(params) { + return request({ + url: `/callTable/callRecord`, + method: "get", + params + }); +} +// 删除桌型 +export function callTabledelete(data) { + return request({ + url: `/callTable`, + method: "delete", + data + }); +} +export function callTablepost(data) { + return request({ + url: '/callTable', + method: 'post', + data + }) +} +// 桌型列表 +export function callTable(params) { + return request({ + url: `/callTable`, + method: "get", + params + }); +} +// 修改桌号 +export function callTabledataput(data) { + return request({ + url: `/callTable`, + method: "put", + data + }); +} +// 叫号列表 +export function callTablequeue(params) { + return request({ + url: '/callTable/queue', + method: 'get', + params + }) +} +// 取消叫号 +export function callTableput(data) { + return request({ + url: `/callTable/updateState`, + method: "put", + data + }); +} +export function callTabletakeNumber(data) { + return request({ + url: '/callTable/takeNumber', + method: 'post', + data: { + ...data + } + }) +} +// 叫号配置获取 +export function callTableconfig(params) { + return request({ + url: '/callTable/config', + method: 'get', + params + }) +} +// 叫号配置修改 +export function callTableconfigput(data) { + return request({ + url: `/callTable/config`, + method: "put", + data + }); +} /** * 员工删除 * @returns diff --git a/src/api/table.js b/src/api/table.js index 246c020..88e39e2 100644 --- a/src/api/table.js +++ b/src/api/table.js @@ -9,7 +9,10 @@ export function tbShopTableGet(params) { return request({ url: `/api/tbShopTable`, method: "get", - params + params:{ + shopId: localStorage.getItem("shopId"), + ...params + } }); } @@ -327,4 +330,76 @@ export function $payOrder(data) { ...data } }); -} \ No newline at end of file +} +//退单 + +export function $returnCart(data) { + return request({ + url: '/api/place/returnCart', + method: "put", + data:{ + shopId: localStorage.getItem("shopId"), + ...data + } + }); +} +// 选择台桌 +export function $choseTable(data) { + return request({ + url: '/api/place/choseTable', + method: "put", + data:{ + shopId: localStorage.getItem("shopId"), + ...data + } + }); +} +// 用餐人数 + +export function $choseCount(data) { + return request({ + url: '/api/place/choseCount', + method: "put", + data:{ + shopId: localStorage.getItem("shopId"), + ...data + } + }); +} + +// 批量生成台桌 +export function $fastCreateTable(data) { + return request({ + url: '/api/tbShopTable/generate', + method: "post", + data:{ + shopId: localStorage.getItem("shopId"), + ...data + } + }); +} + +//打印当前台桌订单 +export function $printOrder(data) { + return request({ + url: '/api/place/printOrder', + method: "post", + data:{ + shopId: localStorage.getItem("shopId"), + ...data + } + }); +} +//打印当前台桌菜品 + +export function $printDishes(data) { + return request({ + url: '/api/place/printDishes', + method: "post", + data:{ + shopId: localStorage.getItem("shopId"), + ...data + } + }); +} + diff --git a/src/assets/images/shalou.png b/src/assets/images/shalou.png new file mode 100644 index 0000000..46cd083 Binary files /dev/null and b/src/assets/images/shalou.png differ diff --git a/src/views/devices/devices_list.vue b/src/views/devices/devices_list.vue index 81779fb..2f2b09b 100644 --- a/src/views/devices/devices_list.vue +++ b/src/views/devices/devices_list.vue @@ -99,13 +99,16 @@ export default { }, filters: { devicesName(value) { - return devices.find(item => item.value == value).name + const item=devices.find(item => item.value == value) + return item?item.name:'' }, modelsName(value) { - return models.find(item => item.value == value).name + const item=models.find(item => item.value == value) + return item?item.name:'' }, subTypesName(value) { - return subTypes.find(item => item.value == value).name + const item=subTypes.find(item => item.value == value) + return item?item.name:'' }, timeFilter(s) { return dayjs(s).format('YYYY-MM-DD HH:mm:ss') diff --git a/src/views/lineUp/basic.vue b/src/views/lineUp/basic.vue new file mode 100644 index 0000000..ae85380 --- /dev/null +++ b/src/views/lineUp/basic.vue @@ -0,0 +1,383 @@ + + + + + \ No newline at end of file diff --git a/src/views/lineUp/index.vue b/src/views/lineUp/index.vue new file mode 100644 index 0000000..84379d8 --- /dev/null +++ b/src/views/lineUp/index.vue @@ -0,0 +1,447 @@ + + + + + \ No newline at end of file diff --git a/src/views/lineUp/record.vue b/src/views/lineUp/record.vue new file mode 100644 index 0000000..7a2a556 --- /dev/null +++ b/src/views/lineUp/record.vue @@ -0,0 +1,124 @@ + + + + + \ No newline at end of file diff --git a/src/views/product/add_shop.vue b/src/views/product/add_shop.vue index b42d0e5..f076ec5 100644 --- a/src/views/product/add_shop.vue +++ b/src/views/product/add_shop.vue @@ -743,7 +743,7 @@ export default { costPrice: undefined, originPrice: undefined, stockNumber: undefined, - firstShared: undefined, + firstShared: 0, barCode: `${localStorage.getItem("shopId")}${dayjs().valueOf()}`, isGrounding: 1, productId: this.$route.query.goods_id ? this.$route.query.goods_id : "", diff --git a/src/views/table/components/addTable.vue b/src/views/table/components/addTable.vue index 17993d0..7ed3aba 100644 --- a/src/views/table/components/addTable.vue +++ b/src/views/table/components/addTable.vue @@ -1,137 +1,229 @@ \ No newline at end of file diff --git a/src/views/table/components/choose-user.vue b/src/views/table/components/choose-user.vue index c391b32..f834fca 100644 --- a/src/views/table/components/choose-user.vue +++ b/src/views/table/components/choose-user.vue @@ -18,7 +18,7 @@ -->
- 搜索 @@ -77,7 +77,7 @@ diff --git a/src/views/table/components/keyboard.vue b/src/views/table/components/keyboard.vue index 03ddbd7..079d139 100644 --- a/src/views/table/components/keyboard.vue +++ b/src/views/table/components/keyboard.vue @@ -1,7 +1,11 @@ - -
- - - + +
+
+ + {{ item.useNum || 0 }}/{{ item.maxCapacity }} +
+
+ + {{ + item.durationTime | formatTime + }} +
+
+
@@ -151,31 +198,48 @@
+ + + - + + +