From 06e17a74b3570ccd6a5c726f4e0074e8b2aba0d7 Mon Sep 17 00:00:00 2001 From: duan <1004387497@qq.com> Date: Thu, 12 Dec 2024 17:25:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B9=B6=E8=BD=AC=E6=A1=8C=E5=AD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- http/yskApi/table.js | 11 ++ pageConsumables/editsupplier.vue | 9 +- pageShopLogin/login.vue | 11 +- pages.json | 7 + pages/login/index.vue | 27 ++- .../confirm-order/confirm-order.vue | 20 +- .../confirm-order/rotatingTables.vue | 179 ++++++++++++++++++ 7 files changed, 241 insertions(+), 23 deletions(-) create mode 100644 pagesCreateOrder/confirm-order/rotatingTables.vue diff --git a/http/yskApi/table.js b/http/yskApi/table.js index 796f756..6b4104c 100644 --- a/http/yskApi/table.js +++ b/http/yskApi/table.js @@ -24,6 +24,17 @@ export function $bind(data) { } }); } +// 转/并桌 +export function tableswitch(data) { + return request({ + url: '/api/place/switch', + method: "put", + data: { + shopId: uni.getStorageSync('shopId'), + ...data + } + }); +} //获取台桌详情状态 export function $returnTableDetail(data) { return request({ diff --git a/pageConsumables/editsupplier.vue b/pageConsumables/editsupplier.vue index e7bae30..8f60104 100644 --- a/pageConsumables/editsupplier.vue +++ b/pageConsumables/editsupplier.vue @@ -51,6 +51,9 @@ } from 'vue'; import color from '@/commons/color.js'; import go from '@/commons/utils/go.js'; + import { + onLoad, + } from '@dcloudio/uni-app'; import { tbShopPurveyorput } from '@/http/yskApi/requestAll.js'; @@ -62,17 +65,15 @@ type: String } }) - onMounted(() => { - datas.form = JSON.parse(props.item) + onLoad((d)=>{ + datas.form = JSON.parse(d.item) }) function sumbit() { tbShopPurveyorput({ shopId: uni.getStorageSync("shopId"), - ...datas.form }).then(res => { - // go.to('PAGES_SUPPLIER') go.back() }) } diff --git a/pageShopLogin/login.vue b/pageShopLogin/login.vue index 487278f..b9e6020 100644 --- a/pageShopLogin/login.vue +++ b/pageShopLogin/login.vue @@ -11,7 +11,7 @@ - + @@ -29,7 +29,8 @@ @@ -55,7 +56,6 @@ + + \ No newline at end of file