对接订单列表接口

This commit is contained in:
gyq
2025-03-01 14:08:24 +08:00
parent d3ed4ec8e6
commit 573dd88b24
21 changed files with 2769 additions and 1674 deletions

View File

@@ -42,6 +42,7 @@
<script setup>
import { onMounted, reactive, ref } from 'vue'
import { shopTable } from '@/api/account.js'
import { queryShopTable } from '@/api/table.js'
import { orderSwitcht } from '@/api/product.js'
import { useUser } from "@/store/user.js"
@@ -109,14 +110,13 @@ const tableList = ref([])
// 获取台桌列表
async function queryShopTableAjax() {
try {
const res = await queryShopTable({
shopId: store.userInfo.shopId,
areaId: '',
status: '',
page: 1,
pageSize: 100
const res = await shopTable({
areaId: store.userInfo.shopId,
tableCode: '',
status: 'using',
name: ''
})
tableList.value = res.list.filter(item => item.qrcode != props.data[0].info[0].tableId && item.status == 'using')
tableList.value = res.records
} catch (error) {
console.log(error)
}