2026-10-22 10:36:43 +03:30
|
|
|
import { openCopperConvert } from '@/composables/useCopperConvertModal'
|
2026-06-16 17:01:35 +03:30
|
|
|
import { getBoursecuActionIconSrc } from '@/utils/config'
|
2026-06-14 10:08:46 +03:30
|
|
|
import type { HomeQuickActionItem } from '../types'
|
|
|
|
|
|
|
|
|
|
export const boursecuQuickActions: HomeQuickActionItem[] = [
|
|
|
|
|
{
|
|
|
|
|
id: 'buySell',
|
|
|
|
|
label: 'خرید و فروش',
|
|
|
|
|
icon: 'vuesax-linear:money-receive',
|
2026-06-16 17:01:35 +03:30
|
|
|
iconSrc: getBoursecuActionIconSrc('buySell'),
|
2026-06-14 10:08:46 +03:30
|
|
|
route: { name: 'buyProduct' },
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'wallet',
|
|
|
|
|
label: 'واریز و برداشت',
|
|
|
|
|
icon: 'vuesax-linear:wallet-1',
|
2026-06-16 17:01:35 +03:30
|
|
|
iconSrc: getBoursecuActionIconSrc('wallet'),
|
2026-06-14 10:08:46 +03:30
|
|
|
route: { name: 'wallet' },
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'assets',
|
|
|
|
|
label: 'دارایی ها',
|
|
|
|
|
icon: 'vuesax-linear:cup',
|
2026-06-16 17:01:35 +03:30
|
|
|
iconSrc: getBoursecuActionIconSrc('assets'),
|
2026-09-12 10:11:32 +03:30
|
|
|
// شیت موجودیها — نه مسیر fund (با enable_product_funds=false گارد بیصدا برمیگرداند)
|
2026-06-14 10:08:46 +03:30
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'transactions',
|
|
|
|
|
label: 'تراکنش ها',
|
|
|
|
|
icon: 'vuesax-linear:receipt-item',
|
2026-06-16 17:01:35 +03:30
|
|
|
iconSrc: getBoursecuActionIconSrc('transactions'),
|
2026-06-14 10:08:46 +03:30
|
|
|
route: { name: 'transactions' },
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'physicalReceive',
|
|
|
|
|
label: 'تحویل فیزیکی',
|
|
|
|
|
icon: 'vuesax-linear:direct-inbox',
|
2026-06-16 17:01:35 +03:30
|
|
|
iconSrc: getBoursecuActionIconSrc('physicalReceive'),
|
2026-06-14 10:08:46 +03:30
|
|
|
route: { name: 'physicalReceive' },
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'convert',
|
|
|
|
|
label: 'تبدیل',
|
|
|
|
|
icon: 'vuesax-linear:refresh-circle',
|
2026-06-16 17:01:35 +03:30
|
|
|
iconSrc: getBoursecuActionIconSrc('convert'),
|
2026-10-22 10:36:43 +03:30
|
|
|
handler: () => openCopperConvert(),
|
2026-06-14 10:08:46 +03:30
|
|
|
},
|
2026-06-16 17:01:35 +03:30
|
|
|
]
|