added dist to docker 2
This commit is contained in:
@@ -8,7 +8,7 @@ import { formatCurrency, formatDate } from '@/utils/format'
|
||||
import { useToast } from '@/composables/useToast'
|
||||
import { confirm } from '@/composables/useConfirm'
|
||||
import { rawStatusLabel } from '@/utils/orderStatus'
|
||||
import type { Check } from '@/types'
|
||||
import type { Check, RawOrderStatus } from '@/types'
|
||||
|
||||
const route = useRoute()
|
||||
const router = useRouter()
|
||||
@@ -41,7 +41,7 @@ const allChecksApproved = computed(
|
||||
|
||||
const canFinalApprove = computed(() => {
|
||||
if (!allChecksApproved.value || !order.value) return false
|
||||
const status = order.value.status
|
||||
const status = (order.value.rawStatus ?? order.value.status) as RawOrderStatus
|
||||
return status === 'checks_approved' || status === 'awaiting_check_review'
|
||||
})
|
||||
|
||||
|
||||
@@ -20,11 +20,11 @@ const form = reactive({ customerId: '', productId: '', note: '' })
|
||||
const customerOptions = computed(() =>
|
||||
customers.value.map((c) => ({
|
||||
value: c.id,
|
||||
label: `${c.firstName} ${c.lastName}`.trim() || c.phone,
|
||||
label: c.name?.trim() || c.phone,
|
||||
})),
|
||||
)
|
||||
const productOptions = computed(() =>
|
||||
products.value.map((p) => ({ value: p.id, label: `${p.name} (${p.productCode || p.code})` })),
|
||||
products.value.map((p) => ({ value: p.id, label: `${p.name} (${p.productCode})` })),
|
||||
)
|
||||
|
||||
async function load() {
|
||||
|
||||
Reference in New Issue
Block a user