This commit is contained in:
Viet An
2026-06-18 11:21:10 +07:00
parent 87397be8bf
commit ac9a651ae2
2 changed files with 57 additions and 23 deletions

View File

@@ -1,4 +1,6 @@
<script setup>
import { capitalize } from "es-toolkit";
const props = defineProps({
invoice: Object,
});
@@ -6,16 +8,40 @@ const props = defineProps({
<template>
<div class="is-flex is-flex-direction-column is-gap-2">
<div class="p-4 rounded-md has-background-primary-95">
<p class="has-text-grey">Trạng thái</p>
<p class="fs-17 mt-1 font-semibold has-text-primary-50">
{{ invoice.delivery_status__name }}
<div
class="p-4 rounded-md has-background-primary-95 is-flex is-justify-content-space-between is-align-items-center"
>
<div>
<p class="fs-14 has-text-grey-40"> giao hàng</p>
<p class="is-flex is-gap-1 is-align-items-center">
<span class="font-semibold">{{ invoice.delivery__tracking_code }}</span>
<button
class="button is-ghost is-small size-6 p-0 rounded-full"
@click="$copyToClipboard(invoice.delivery__tracking_code)"
>
<span class="icon">
<Icon
name="material-symbols:content-copy-outline-rounded"
:size="17"
/>
</span>
</button>
</p>
</div>
<p class="fs-16 font-medium has-text-primary-50">
{{ capitalize(invoice.delivery__status) }}
</p>
</div>
<div class="p-4 rounded-md has-background-white-bis">
<p class="has-text-grey">Địa chỉ giao hàng</p>
<p class="mt-1 has-text-grey-darker">{{ invoice.customer__name }}</p>
<p class="has-text-grey-darker">{{ invoice.customer__phone }}</p>
<div class="rounded-md has-background-white-bis">
<div class="p-4">
<p class="fs-14 has-text-grey-40">Người nhận</p>
<p class="font-medium">{{ invoice.delivery__receiver_name }}</p>
</div>
<hr class="m-0" />
<div class="p-4">
<p class="fs-14 has-text-grey-40">Địa chỉ</p>
<p class="font-medium">{{ invoice.delivery__receiver_phone }}</p>
</div>
</div>
</div>
</template>