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

@@ -11,6 +11,7 @@ import {
orderLogisticsStateText,
orderDeliveryStateText,
} from '~/composables/useOrderDetailPresentation';
import { formatOrderCode } from '~/composables/useOrderCodePresentation';
definePageMeta({
middleware: ['manager-only'],
@@ -38,6 +39,8 @@ const currentOrder = computed<ManagerOrderItem | null>(() =>
orderQuery.result.value?.order ?? null,
);
const currentOrderCode = computed(() => formatOrderCode(currentOrder.value?.code));
watch(
currentOrder,
(order) => {
@@ -209,7 +212,7 @@ watch(
<template v-else>
<div class="manager-hero">
<p class="manager-eyebrow">Заказ</p>
<h1 class="manager-title">{{ currentOrder.code }}</h1>
<h1 class="manager-title">{{ currentOrderCode }}</h1>
</div>
<div class="space-y-4">