diff --git a/webUI/src/components/application/combobox/business_switcher.vue b/webUI/src/components/application/combobox/business_switcher.vue new file mode 100644 index 0000000..ddd2eae --- /dev/null +++ b/webUI/src/components/application/combobox/business_switcher.vue @@ -0,0 +1,349 @@ + + + + mdi-store + + + {{ item.raw.name }} + + + + + + + {{ item.raw.name }} + {{ item.raw.owner }} + + + + + + + + + + mdi-store-switch + تغییر کسبوکار + + + + mdi-close + + + + + + + mdi-store + + تأیید انتقال + + آیا میخواهید به کسبوکار انتخاب شده منتقل شوید؟ + + + + + + + + + + mdi-close + انصراف + + + mdi-check + تأیید انتقال + + + + + + + + + + + mdi-loading + در حال انتقال + + + + + در حال انتقال... + در حال انتقال به کسبوکار انتخاب شده + + + + + + + + + + mdi-check-circle + انتقال موفق + + + + + mdi-check-circle + + انتقال موفق + به کسبوکار انتخاب شده منتقل شدید + + + + + + + + + + mdi-alert-circle + خطا + + + + mdi-close + + + + + mdi-alert-circle + + خطا + {{ errorMessage }} + + + + + mdi-close + بستن + + + + + + + + + \ No newline at end of file diff --git a/webUI/src/hesabixConfig.js b/webUI/src/hesabixConfig.js index a9dd3c8..e34dda5 100755 --- a/webUI/src/hesabixConfig.js +++ b/webUI/src/hesabixConfig.js @@ -68,7 +68,7 @@ async function fetchAndCache(url, localStorageKey, defaultValue) { export async function getSiteName() { return fetchAndCache( - `${getApiUrl()}/system/getname`, + `${getApiUrl()}system/getname`, KEYS.SITE_NAME, DEFAULTS.SITE_NAME ); @@ -76,7 +76,7 @@ export async function getSiteName() { export async function getSiteSlogan() { return fetchAndCache( - `${getApiUrl()}/system/getslogon`, + `${getApiUrl()}system/getslogon`, KEYS.SITE_SLOGON, DEFAULTS.SITE_SLOGON ); diff --git a/webUI/src/i18n/en_lang.ts b/webUI/src/i18n/en_lang.ts index ab7c4ba..64c51b3 100755 --- a/webUI/src/i18n/en_lang.ts +++ b/webUI/src/i18n/en_lang.ts @@ -91,6 +91,7 @@ const en_lang = { hrm_docs: 'Payroll Document', warranty_system: 'Warranty System', warranty_serials: 'Warranty Serials', + business_switcher: 'Switch Business', }, }; export default en_lang diff --git a/webUI/src/i18n/fa_lang.ts b/webUI/src/i18n/fa_lang.ts index 5507a8b..c31373c 100755 --- a/webUI/src/i18n/fa_lang.ts +++ b/webUI/src/i18n/fa_lang.ts @@ -143,6 +143,7 @@ const fa_lang = { recs_today: "دریافتهای امروز", sends_today: "پرداختهای امروز", exit_bus: "ترک کسبوکار", + business_switcher: "تغییر کسبوکار", persons_list: "فهرست اشخاص", gets: "دریافتها", pays: "پرداختها", @@ -408,8 +409,8 @@ const fa_lang = { fiscal_year: "سال مالی", currency: "واحد پولی", notifications: "اعلانات", - fiscal_settings: "تنظیمات مالی", - fiscal_settings_info: "در این بخش میتوانید تنظیمات مربوط به موارد مالی کسب و کار را تغییر دهید.", + fiscal_settings: "تنظیمات کارتابل", + fiscal_settings_info: "در این بخش میتوانید موارد مربوط به تنظیمات سریع کسبوکار را تغییر دهید.", unread_notifications: "اعلانات خوانده نشده", no_notification: "درحال حاضر هیچ اعلانی برای نمایش وجود ندارد !", show_notifications: "مشاهده اعلانات", diff --git a/webUI/src/views/acc/App.vue b/webUI/src/views/acc/App.vue index 9faf739..fa59253 100755 --- a/webUI/src/views/acc/App.vue +++ b/webUI/src/views/acc/App.vue @@ -9,6 +9,7 @@ import Profile_btn from '@/components/application/buttons/profile_btn.vue'; import Notifications_btn from '@/components/application/buttons/notifications_btn.vue'; import Year_cob from '@/components/application/combobox/year_cob.vue'; import Currency_cob from '@/components/application/combobox/currency_cob.vue'; +import BusinessSwitcher from '@/components/application/combobox/business_switcher.vue'; import clock from '@/components/application/clock.vue'; import CalculatorDialog from '@/components/application/buttons/CalculatorDialog.vue' import SecretDialog from '@/components/application/buttons/SecretDialog.vue'; @@ -302,6 +303,7 @@ export default { Notifications_btn, Year_cob, Currency_cob, + BusinessSwitcher, clock, CalculatorDialog, SecretDialog, @@ -1084,10 +1086,13 @@ export default { :title="$t('dialog.fiscal_settings')"> - + + + + - +