some trigger handled
This commit is contained in:
@@ -31,7 +31,14 @@
|
||||
<a-divider class="!my-1" />
|
||||
<BasicInfoItem
|
||||
class="flex justify-between"
|
||||
title="معادل ریالی مجموع دارایی ها"
|
||||
title="معادل ریالی محصولات"
|
||||
is-line
|
||||
:value="usePrice(assetsRialValue)"
|
||||
/>
|
||||
<a-divider class="!my-1" />
|
||||
<BasicInfoItem
|
||||
class="flex justify-between"
|
||||
title="مجموع دارایی ریالی"
|
||||
is-line
|
||||
:value="usePrice(totalRialValue)"
|
||||
/>
|
||||
@@ -49,7 +56,7 @@ import BasicInfoItem from '@/components/BasicPacks/BasicInfoItem.vue'
|
||||
import { usePrice } from '@/utils/usePrice'
|
||||
import { useWalletAssets } from '@/composables/useWalletAssets'
|
||||
import type { WalletMetalTotal } from '@/models/walletAssets'
|
||||
import { formatInventoryCardValue } from '@/utils/productAssets'
|
||||
import { formatInventoryCardValue, assetSheetInventoryCards } from '@/utils/productAssets'
|
||||
|
||||
const props = defineProps<{
|
||||
show: boolean
|
||||
@@ -71,6 +78,7 @@ const visible = computed({
|
||||
const inventoryCards = computed(() => assetsSummary.value?.inventory_cards ?? [])
|
||||
const metalTotals = computed(() => assetsSummary.value?.metal_totals ?? [])
|
||||
const cashWallet = computed(() => assetsSummary.value?.cash_wallet ?? 0)
|
||||
const assetsRialValue = computed(() => assetsSummary.value?.assets_rial_value ?? 0)
|
||||
const totalRialValue = computed(() => assetsSummary.value?.total_rial_value ?? 0)
|
||||
|
||||
onMounted(() => {
|
||||
@@ -87,7 +95,7 @@ watch(
|
||||
)
|
||||
|
||||
function cardsByMetal(metalId: number) {
|
||||
return inventoryCards.value.filter((card) => Number(card.metal_id) === metalId)
|
||||
return assetSheetInventoryCards(inventoryCards.value, metalId)
|
||||
}
|
||||
|
||||
function formatMetalTotal(metal: WalletMetalTotal) {
|
||||
|
||||
Reference in New Issue
Block a user