diff --git a/resources/js/pages/admin/manage/orders/form/OrderPosForm.vue b/resources/js/pages/admin/manage/orders/form/OrderPosForm.vue index 57b3918..3fa06d1 100644 --- a/resources/js/pages/admin/manage/orders/form/OrderPosForm.vue +++ b/resources/js/pages/admin/manage/orders/form/OrderPosForm.vue @@ -3,9 +3,6 @@ import { useForm, usePage } from '@inertiajs/vue3'; import { Minus, Plus, Save, Search, ShoppingCart, Trash2 } from '@lucide/vue'; import { computed, ref, watch } from 'vue'; import { toast } from 'vue-sonner'; -import CustomerQuickCreateModal from './CustomerQuickCreateModal.vue'; -import PosCatalogCard from '../../shared/PosCatalogCard.vue'; -import PosCatalogVariantThumb from '../../shared/PosCatalogVariantThumb.vue'; import { NumberInput } from '@/components/form/number-input'; import { RupiahInput } from '@/components/form/rupiah-input'; import { Button } from '@/components/ui/button'; @@ -49,8 +46,12 @@ import { getFirstCoverImage } from '@/lib/catalog-cover'; import { formErrors } from '@/lib/form'; import { formatRupiah, parseRupiah } from '@/lib/rupiah'; import type { Auth } from '@/types/auth'; -import { STOCK_QUALITY_OPTIONS, type EnumOption, type OrderCartItem, type OrderCatalogItem, type SelectOption } from '@/types/order'; +import { STOCK_QUALITY_OPTIONS } from '@/types/order'; +import type { EnumOption, OrderCartItem, OrderCatalogItem, SelectOption } from '@/types/order'; import type { ProductPriceItem, ProductVariantItem } from '@/types/product'; +import PosCatalogCard from '../../shared/PosCatalogCard.vue'; +import PosCatalogVariantThumb from '../../shared/PosCatalogVariantThumb.vue'; +import CustomerQuickCreateModal from './CustomerQuickCreateModal.vue'; const props = defineProps<{ customers: SelectOption[]; @@ -498,29 +499,27 @@ function submit() { Pilih Produk - - Kualitas Stok - - - - - - - - {{ option.label }} - - - - - + + + + + - - - + + + + + + + + + {{ option.label }} + + + + + @@ -592,12 +591,9 @@ function submit() { Ringkasan Pesanan - + @click="cartDetailOpen = true"> Lihat Detail @@ -675,8 +671,7 @@ function submit() { - + {{ pt.label }} @@ -713,8 +708,8 @@ function submit() { - + @@ -755,11 +750,9 @@ function submit() { - + class="rounded-lg border p-3"> @@ -770,7 +763,8 @@ function submit() { {{ item.variant_name }} · - {{ item.stock_quality_label ?? (item.stock_quality === 'reject' ? 'Reject' : 'Bagus') }} + {{ item.stock_quality_label ?? (item.stock_quality === 'reject' + ? 'Reject' : 'Bagus') }} Detail Keranjang - + {{ item.product_name }} {{ item.variant_name }} - · {{ item.stock_quality_label ?? (item.stock_quality === 'reject' ? 'Reject' : 'Bagus') }} + · {{ item.stock_quality_label ?? (item.stock_quality === 'reject' ? 'Reject' : 'Bagus') + }} {{ item.quantity }} pcs
{{ item.variant_name }} · - {{ item.stock_quality_label ?? (item.stock_quality === 'reject' ? 'Reject' : 'Bagus') }} + {{ item.stock_quality_label ?? (item.stock_quality === 'reject' + ? 'Reject' : 'Bagus') }}
{{ item.product_name }}
{{ item.variant_name }} - · {{ item.stock_quality_label ?? (item.stock_quality === 'reject' ? 'Reject' : 'Bagus') }} + · {{ item.stock_quality_label ?? (item.stock_quality === 'reject' ? 'Reject' : 'Bagus') + }}