Refine order code and calendar cards

This commit is contained in:
Ruslan Bakiev
2026-04-04 15:27:00 +07:00
parent 309d0e78db
commit e20565b4ae
6 changed files with 167 additions and 9 deletions

View File

@@ -4,6 +4,7 @@ import {
MyOrdersDocument,
type MyOrdersQuery,
} from '~/composables/graphql/generated';
import { formatOrderCode } from '~/composables/useOrderCodePresentation';
type OrderItem = MyOrdersQuery['myOrders'][number];
@@ -34,6 +35,7 @@ const filteredOrders = computed(() => {
return orders.filter((order) => {
const text = [
order.code,
formatOrderCode(order.code),
...order.items.map((item) => item.productName),
]
.join(' ')