Require review before Tahesab wallet sync and harden accounting admin UX.

Single-customer and row sync preview balances with documents before overwrite/keep; bulk sync keeps confirm. Also ship Zarin wallet sync actions, field help, and get_user cache improvements.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-30 21:18:26 +03:30
co-authored by Cursor
parent 04cc03fe25
commit 1c4b2d4435
60 changed files with 2464 additions and 552 deletions
+2 -1
View File
@@ -1,6 +1,6 @@
<template>
<div class="h-full min-h-0">
<BasicShowContent :title="pageTitle" class="h-full">
<BasicShowContent :title="pageTitle" :help="configurationPageIntro" class="h-full">
<div class="settings-toolbar">
<a-input
v-model:value="search"
@@ -207,6 +207,7 @@ import { loading } from '@/utils'
import { getEditableConfiguration, getSystemConfiguration, setConfiguration, setSystemConfiguration, refreshSuperAdminSettings } from '@/api/configuration'
import SettingValueField from './SettingValueField.vue'
import SettingCard from './SettingCard.vue'
import { configurationPageIntro } from '@/utils/adminHelpCopy'
import { refreshAppModeMenu } from '@/router'
import { useUserStore } from '@/store/userStore'
import { applyBannerEnabledFromRows, applyTrackingSystemsEnabledFromRows, applyConditionalOrderEnabledFromRows, applyAutomationEnabledFromRows, applyProductFundsEnabledFromRows, applyPriceTriggerEnabledFromRows, applyAppNotificationEnabledFromRows, applyPriceProviderFromRows, applyPriceChannelAccessFromRows, applySupportChatMenuEnabledFromRows, applyGroupSmsFromRows, applyCustomerSpecialPricingFromRows, applyGoldCreditEnabledFromRows, applyCustomerDirectSmsFromRows, applyCustomerLevelProfitEnabledFromRows, applySuperAdminAccessFlagsFromItems, invalidateSettingsBootstrap, setBannerEnabledFromSettings, setConditionalOrderEnabledFromSettings, setAutomationEnabledFromSettings, setProductFundsEnabledFromSettings, setPriceTriggerEnabledFromSettings, setAppNotificationEnabledFromSettings, setPriceProviderFromSettings, setPriceChannelAccessFromSettings, setStoreModeFromSettings, setTrackingSystemsEnabledFromSettings, setGroupSmsEnabledFromSettings, setCustomerSpecialPricingEnabledFromSettings, setGoldCreditEnabledFromSettings } from '@/utils/config'
@@ -20,7 +20,7 @@ export const EDITABLE_SETTING_GROUPS: SettingGroupDef[] = [
title: 'عمومی و برند',
icon: 'vuesax-linear:home-2',
match: (k) =>
/^(name_fa|name_en|bace_url|server_url|logo_|title_pwa|title_fav|open_register|auto_active_customer|store_status|key$|enamad_url|enamad_logo)$/.test(
/^(name_fa|name_en|bace_url|server_url|logo_|title_pwa|title_fav|open_register|auto_active_customer|store_status|key$|enamad_url|enamad_logo|login_hero_)/.test(
k
)
},
@@ -174,7 +174,7 @@ export const SYSTEM_SETTING_GROUPS: SettingGroupDef[] = [
title: 'عمومی و برند',
icon: 'vuesax-linear:home-2',
match: (k) =>
/^(name_fa|name_en|app_url|admin_url|apk_download_link|bace_url|server_url|logo_|title_pwa|title_fav|metal_type|main_metal|unit$|open_register|auto_active_customer|store_status|key$|is_store|sms_panel|main_wallet_products|enamad_url|enamad_logo)/.test(
/^(name_fa|name_en|app_url|admin_url|apk_download_link|bace_url|server_url|logo_|title_pwa|title_fav|metal_type|main_metal|unit$|open_register|auto_active_customer|store_status|key$|is_store|sms_panel|main_wallet_products|enamad_url|enamad_logo|login_hero_)/.test(
k
)
},
@@ -292,6 +292,12 @@ const KEY_TYPE_FALLBACK: Record<string, SettingFieldType> = {
about_software: 'longtext',
enamad_url: 'text',
enamad_logo: 'text',
login_hero_eyebrow: 'text',
login_hero_title: 'text',
login_hero_feature_1: 'text',
login_hero_feature_2: 'text',
login_hero_feature_3: 'text',
login_hero_feature_4: 'text',
fee_service_charge_percentage: 'number',
fee_deduct_from_gold: 'switch',
require_zero_main_gold_before_other_buy: 'switch',
@@ -667,8 +673,20 @@ export function parseSwitchHelp(help: string | undefined | null): SwitchHelpPart
const KEY_HELP_FALLBACK: Record<string, string> = {
name_fa:
'نام فارسی برند که در پیامک‌ها، عنوان صفحات و بخش‌های عمومی اپ به مشتری نشان داده می‌شود.',
login_hero_eyebrow:
'متن بالای عنوان طلا در ستون چپ صفحه ورود دسکتاپ (تم VIP). خالی = پیش‌فرض «سرمایه‌گذاری هوشمند در».',
login_hero_title:
'عنوان طلایی ستون چپ صفحه ورود دسکتاپ (تم VIP). خالی = پیش‌فرض «طلای جهانی».',
login_hero_feature_1:
'اولین آیتم لیست ویژگی‌های هیرو لاگین دسکتاپ. خالی = «خرید و فروش آنلاین طلا».',
login_hero_feature_2:
'دومین آیتم لیست ویژگی‌های هیرو لاگین دسکتاپ. خالی = «قیمت لحظه‌ای و دقیق».',
login_hero_feature_3:
'سومین آیتم لیست ویژگی‌های هیرو لاگین دسکتاپ. خالی = «امنیت بالا و قابل اطمینان».',
login_hero_feature_4:
'چهارمین آیتم لیست ویژگی‌های هیرو لاگین دسکتاپ. خالی = «پشتیبانی ۲۴/۷».',
banner_enabled:
'روشن: منوی «بنرها» در ادمین و اسلایدر صفحه اصلی اپ مشتری نمایش داده می‌شود. خاموش: مخفی است.',
'روشن: منوی «بنرها» در ادمین باز می‌شود (اسلایدر صفحه اصلی + تصاویر تم مثل بنر اشتراک‌گذاری/کد معرف). خاموش: منو مخفی است.',
permision__enabled:
'روشن: آیتم «مجوز ها» در منوی تنظیمات اپ خانگی (تم جدید) نمایش داده می‌شود. خاموش: مخفی است.',
open_register:
@@ -1037,6 +1055,12 @@ export const KEY_LABEL_FALLBACK: Record<string, string> = {
show_product_card_meta: 'نمایش دسته و تحویل و مقدار روی کارت محصول',
enamad_url: 'آدرس اینماد',
enamad_logo: 'لوگوی اینماد',
login_hero_eyebrow: 'خط اول هیرو لاگین',
login_hero_title: 'عنوان هیرو لاگین',
login_hero_feature_1: 'ویژگی ۱ هیرو لاگین',
login_hero_feature_2: 'ویژگی ۲ هیرو لاگین',
login_hero_feature_3: 'ویژگی ۳ هیرو لاگین',
login_hero_feature_4: 'ویژگی ۴ هیرو لاگین',
fee_single: 'اختلاف پایه خرید/فروش',
buy_fee: 'اضافه قیمت خرید',
sell_fee: 'کسر قیمت فروش',
@@ -1268,6 +1292,8 @@ export const SETTING_EDITABLE_KEYS = new Set([
'do_send_liman',
'has_chat',
'text_about', 'text_rule', 'about_software', 'enamad_url', 'enamad_logo',
'login_hero_eyebrow', 'login_hero_title',
'login_hero_feature_1', 'login_hero_feature_2', 'login_hero_feature_3', 'login_hero_feature_4',
'zaarbox_price_key',
'price_channel_enabled', 'price_channel_messengers', 'price_channel_diff',
'price_channel_min_seconds', 'price_channel_footer_id', 'price_channel_footer_phone',