fix price
This commit is contained in:
@@ -9,7 +9,8 @@
|
||||
</div>
|
||||
<div class="flex flex-wrap items-center gap-x-3 gap-y-0.5 text-xs text-gray-600">
|
||||
<span>نوع: <span class="font-600 text-gray-900">{{ item.type || '-' }}</span></span>
|
||||
<span>مقدار: <span class="font-600 text-gray-900">{{ item.amount ?? '-' }}</span></span>
|
||||
<span>مقدار: <span class="font-600 text-gray-900">{{ metalLabel }}</span></span>
|
||||
<span>ریال: <span class="font-600 text-gray-900">{{ rialLabel }}</span></span>
|
||||
</div>
|
||||
<div class="text-xs text-gray-400">{{ createdAtLabel }}</div>
|
||||
</div>
|
||||
@@ -20,6 +21,10 @@
|
||||
import type { ZarinRecord } from '@/api/zarin'
|
||||
import MobileCard from '@/components/mobile/MobileCard.vue'
|
||||
import { toJalali } from '@core/utils/useDataTime'
|
||||
import {
|
||||
metalAmountLabel,
|
||||
rialAmountLabel,
|
||||
} from '@/pages/menuPages/accounting/utils/accountingDocAmounts'
|
||||
import { zarinStatusLabel } from '@/pages/menuPages/accounting/utils/zarinStatus'
|
||||
|
||||
const props = defineProps<{
|
||||
@@ -34,6 +39,8 @@ const customerName = computed(() => props.item.customer?.name || '-')
|
||||
const createdAtLabel = computed(() =>
|
||||
props.item.created_at ? toJalali(props.item.created_at) : '-'
|
||||
)
|
||||
const metalLabel = computed(() => metalAmountLabel(props.item))
|
||||
const rialLabel = computed(() => rialAmountLabel(props.item))
|
||||
const statusText = computed(() =>
|
||||
zarinStatusLabel(props.item.sync_status, props.item.zarin_id)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user