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