diff --git a/app/components/orders/InvoiceRow.vue b/app/components/orders/InvoiceRow.vue
new file mode 100644
index 0000000..7babaa0
--- /dev/null
+++ b/app/components/orders/InvoiceRow.vue
@@ -0,0 +1,118 @@
+
+
+ {{ invoice.code }} {{ invoice.staff__fullname }} {{ invoice.customer_name }} {{ $shortenCurrency(invoice.total_amount) }} {{ invoice.product_amount }} SP
+ {{ invoice.payment_status__name }}
+
+ {{ invoice.delivery__status }}
+
+ {{ $dayjs(invoice.create_time).format("HH:mm") }}
+
+
+
+
diff --git a/app/components/orders/OrderDeliveryTab.vue b/app/components/orders/OrderDeliveryTab.vue
index 0c5a9e3..bde58a0 100644
--- a/app/components/orders/OrderDeliveryTab.vue
+++ b/app/components/orders/OrderDeliveryTab.vue
@@ -1,6 +1,6 @@
@@ -9,13 +9,13 @@ const props = defineProps({
+
+
+
+
+
+
+
+ {{ invoice.status }}
+
+
+
+
+
+
+
+
+
+
+
+
Trạng thái
- {{ order.delivery_status__name }} + {{ invoice.delivery_status__name }}
Địa chỉ giao hàng
-{{ order.customer__name }}
-{{ order.customer__phone }}
+{{ invoice.customer__name }}
+{{ invoice.customer__phone }}
Tổng tiền
- {{ $numtoString(order.total, { hasUnit: true }) }} + {{ $numtoString(invoice.total, { hasUnit: true }) }}
Còn lại
- {{ $numtoString(order.total, { hasUnit: true }) }} + {{ $numtoString(invoice.total, { hasUnit: true }) }}
{{ invoiceDetails }}
{{ product.name }}
-- {{ $numtoString(product.total, { hasUnit: true }) }} +
{{ invoiceDetail.variant__product__name }}
++ {{ $numtoString(invoiceDetail.price, { hasUnit: true }) }}
SL: {{ product.quantity }}
-Đơn giá: {{ $numtoString(product.unit_price, { hasUnit: true }) }}
+SL: {{ invoiceDetail.quantity }}
+Đơn giá: {{ $numtoString(invoiceDetail.price, { hasUnit: true }) }}
Giảm: - {{ new Intl.NumberFormat("vi-VN", { style: "percent" }).format(product.discount) }} + {{ new Intl.NumberFormat("vi-VN", { style: "percent" }).format(invoiceDetail.discount) }}
Tổng cộng
-{{ $numtoString(order.total, { hasUnit: true }) }}
-| Tổng tiền hàng | +{{ $numtoString(invoice.total_amount, { hasUnit: true }) }} | +
| Phí vận chuyển | +{{ $numtoString(invoice.shipping_fee, { hasUnit: true }) }} | +
| Giảm giá | +{{ $numtoString(invoice.discount_amount, { hasUnit: true }) }} | +
| Tổng cộng | +{{ $numtoString(invoice.final_amount, { hasUnit: true }) }} | +
{{ order.code }}
-{{ order.employee__name }}
-{{ order.customer__name }}
-{{ $shortenCurrency(order.total) }}
-{{ order.order__products.length }} SP
-- {{ order.payment_status__name }} -
-- {{ order.delivery_status__name }} -
-- {{ $dayjs(order.create_time).format("HH:mm") }} -
-
-
-
| Đơn hàng | -Khách hàng | -Tổng tiền | -Trạng thái | -Thanh toán | -Giao hàng | -Ngày tạo | -Thao tác | -
|---|
+
+
| Đơn hàng | +Khách hàng | +Tổng tiền | +Trạng thái | +Thanh toán | +Giao hàng | +Ngày tạo | +Thao tác | +
|---|