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/table/components/addTable.vue b/src/views/table/components/addTable.vue index 17993d0..adf97ab 100644 --- a/src/views/table/components/addTable.vue +++ b/src/views/table/components/addTable.vue @@ -1,137 +1,221 @@ \ 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 @@
+ + + - + + +