fix some bugs

This commit is contained in:
2026-06-23 22:31:07 +03:30
parent 4e7d6bca00
commit 71764f7e9a
68 changed files with 1941 additions and 1288 deletions
@@ -63,6 +63,7 @@ import MobileStatCard from '@/components/mobile/MobileStatCard.vue'
import { isMobile } from '@core/utils/is'
import { toJalali, toJalaliNoTime } from '@core/utils/useDataTime'
import { usePrice } from '@core/utils/usePrice'
import { metalLabel } from '@/utils/adminMetalLabels'
type GiftCardRow = Giftcard & { customer?: { name?: string; mobile?: string } }
@@ -83,7 +84,7 @@ const visibleProxy = computed({
const sheetTitle = computed(() => props.item?.unique_code || `کارت هدیه #${props.item?.id ?? '-'}`)
function unitLabel(row: GiftCardRow) {
return row.unit === 2 ? 'طلایی' : 'ریالی'
return row.unit === 2 ? metalLabel.goldWalletShort() : 'ریالی'
}
function unitTagClass(row: GiftCardRow) {