代客下单更新

This commit is contained in:
2024-10-10 16:22:09 +08:00
parent efa346ade6
commit 0632e395ce
6 changed files with 61 additions and 23 deletions

View File

@@ -45,6 +45,9 @@
</view>
</view>
</view>
<template v-if="tables.list.length<=0">
<my-img-empty tips="未找到相关的桌台"></my-img-empty>
</template>
</view>
@@ -142,7 +145,7 @@
content
} = await $table.get(query)
tables.hasAjax = true
content = content.filter(v => v.status != 'closed')
content = content.filter(v => v.status == 'idle')
tables.list = content
tables.selIndex = content.findIndex(v => v.tableId == option.tableId)
console.log(tables.selIndex );
@@ -166,6 +169,10 @@
}
watch(() => area.sel, (newval) => {
if(!newval){
tables.list = tables.originList
return
}
tables.list = tables.originList.filter(v => v.areaId == newval.id)
})
let option = {}