diff --git a/src/api/pargar.ts b/src/api/pargar.ts index ddb0f71..56d5074 100644 --- a/src/api/pargar.ts +++ b/src/api/pargar.ts @@ -7,12 +7,15 @@ export interface PargarRecord { amount?: number desc?: string type?: string + order_id?: number | null + withdraw_id?: number | null sync_status?: 'pending' | 'success' | 'failed' sync_log?: string | null pargar_ref?: string | null data?: string | null res?: string | null created_at?: string + confirmed_at?: string | null customer?: { id?: number name?: string diff --git a/src/pages/menuPages/configuration/settingGroups.ts b/src/pages/menuPages/configuration/settingGroups.ts index c59e7a0..15b39b6 100644 --- a/src/pages/menuPages/configuration/settingGroups.ts +++ b/src/pages/menuPages/configuration/settingGroups.ts @@ -21,7 +21,7 @@ export const EDITABLE_SETTING_GROUPS: SettingGroupDef[] = [ title: 'دسترسی مشتری به قابلیت‌ها', icon: 'vuesax-linear:people', match: (k) => - /^(banner_enabled|tracking_systems_enabled|jibit_verification|register_jibit_verify)$/.test(k) + /^(banner_enabled|tracking_systems_enabled|jibit_verification|register_jibit_verify|show_product_details)$/.test(k) }, { id: 'trading_hours', diff --git a/src/pages/menuPages/configuration/settingTypes.ts b/src/pages/menuPages/configuration/settingTypes.ts index d810f12..18d2837 100644 --- a/src/pages/menuPages/configuration/settingTypes.ts +++ b/src/pages/menuPages/configuration/settingTypes.ts @@ -268,6 +268,7 @@ const KEY_TYPE_FALLBACK: Record = { show_last_price: 'switch', show_home_price_when_closed: 'switch', show_gold_ounce_price: 'switch', + show_product_details: 'switch', send_to_tahesab: 'switch', accounting_provider: 'select', profit_gold_api_enabled: 'switch', @@ -561,6 +562,8 @@ const KEY_HELP_FALLBACK: Record = { 'روشن: وقتی فروشگاه خارج از ساعت کاری است، قیمت صفحه اصلی اپ همچنان نمایش داده می‌شود و پیام «فروشگاه بسته است» نشان داده نمی‌شود. خرید/فروش همچنان بسته می‌ماند. خاموش (پیش‌فرض): خارج از ساعت پیام بسته بودن نشان داده می‌شود.', show_gold_ounce_price: 'روشن: اگر آدرس API تابلو (zaarbox_api_url) تنظیم شده باشد، قیمت انس طلا در اپ مشتری نمایش داده می‌شود. خاموش: نمایش داده نمی‌شود.', + show_product_details: + 'روشن: بعد از انتخاب محصول در صفحه خرید/فروش، متن توضیح محصول نمایش داده می‌شود. خاموش: توضیح نشان داده نمی‌شود.', fee_single: 'اختلاف پایه (ریال) بین قیمت خرید و فروش روی مظنه. معمولاً نصف مجموع اختلاف قیمت خرید و فروش است.', buy_fee: @@ -819,6 +822,7 @@ export const KEY_LABEL_FALLBACK: Record = { show_last_price: 'نمایش آخرین قیمت ذخیره‌شده', show_home_price_when_closed: 'نمایش قیمت صفحه اصلی خارج از ساعت کاری', show_gold_ounce_price: 'نمایش قیمت انس طلا', + show_product_details: 'نمایش جزئیات اطلاعات محصول', fee_single: 'اختلاف پایه خرید/فروش', buy_fee: 'اضافه قیمت خرید', sell_fee: 'کسر قیمت فروش', @@ -978,7 +982,7 @@ export const SETTING_EDITABLE_KEYS = new Set([ 'open_register', 'referral_id', 'referral_limit', 'referral_gift_on_first_order', 'register_jibit_verify', 'register_referral_bonus_message', 'register_referral_sms_to_referrer', - 'sell_fee', 'show_last_price', 'show_home_price_when_closed', 'show_gold_ounce_price', 'startDay', + 'sell_fee', 'show_last_price', 'show_home_price_when_closed', 'show_gold_ounce_price', 'show_product_details', 'startDay', 'support_messengers', 'support_messenger_text', 'deposit_support_message_text', 'deposit_account_holder', 'deposit_card_number', 'deposit_sheba', 'text_about', 'text_rule', diff --git a/src/pages/menuPages/customers/base/components/CustomerPargarLogsTable.vue b/src/pages/menuPages/customers/base/components/CustomerPargarLogsTable.vue new file mode 100644 index 0000000..9d3493b --- /dev/null +++ b/src/pages/menuPages/customers/base/components/CustomerPargarLogsTable.vue @@ -0,0 +1,265 @@ + + + diff --git a/src/pages/menuPages/customers/base/components/PargarWalletSyncAction.vue b/src/pages/menuPages/customers/base/components/PargarWalletSyncAction.vue index 58a1c53..63ee8c1 100644 --- a/src/pages/menuPages/customers/base/components/PargarWalletSyncAction.vue +++ b/src/pages/menuPages/customers/base/components/PargarWalletSyncAction.vue @@ -26,38 +26,49 @@ > همگام‌سازی مانده از پرگار - - - اعمال اجباری مانده - - + اعمال اجباری مانده +