Add preparing tab, clarify order status actions and stage banners

This commit is contained in:
2026-11-08 11:58:05 +03:30
parent 12a31903ed
commit 93d677fa9d
5 changed files with 299 additions and 11 deletions
+10 -1
View File
@@ -15,7 +15,7 @@ export function useOrdersPage() {
const companies = ref<Company[]>([])
const customers = ref<Customer[]>([])
const orderList = ref<Order[]>([])
const activeTab = ref('all')
const activeTab = ref(typeof route.query.tab === 'string' && route.query.tab.trim() ? route.query.tab.trim() : 'all')
const selectedOrderId = ref<string>('')
const searchQuery = ref('')
const showAddModal = ref(false)
@@ -140,6 +140,15 @@ export function useOrdersPage() {
},
)
watch(
() => route.query.tab,
(tab) => {
if (typeof tab === 'string' && tab.trim()) {
activeTab.value = tab.trim()
}
},
)
function selectOrder(order: Order, openDetail = false) {
selectedOrderId.value = order.id
if (openDetail) {