feat: 订单详情功能完善

This commit is contained in:
duanshuwen
2025-08-01 21:37:07 +08:00
parent afae470f85
commit 7ff542e57a
8 changed files with 317 additions and 198 deletions

View File

@@ -75,7 +75,19 @@ const displayItems = computed(() => {
case ORDER_TYPES.HOTEL:
return [
{ label: LABELS.ORDER_ID, value: orderData.orderId },
{ label: LABELS.CHECK_IN_TIME, value: orderData.checkInTime },
{
label: LABELS.CHECK_IN_TIME,
value:
orderData.checkInData?.replace(
/(\d{4})-(\d{1,2})-(\d{1,2})/,
"$2月$3日"
) +
"-" +
orderData.checkOutData?.replace(
/(\d{4})-(\d{1,2})-(\d{1,2})/,
"$2月$3日"
),
},
{ label: LABELS.VISITOR_NAME, value: orderData.visitorName },
{ label: LABELS.CONTACT_PHONE, value: orderData.contactPhone },
];