fix some bugs
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user