From 41fd7f7b2e2d1fadcea5f8d7d6121dd297f4f958 Mon Sep 17 00:00:00 2001 From: Mahdi Date: Thu, 26 Nov 2026 19:34:06 +0330 Subject: [PATCH] feat(web): share the page header and icon finance fields. Remaining screens and finance use the shared page header, tab icons sit closer to their labels, and the active workspace tab no longer paints a broken corner. Treasury selects and the money field show a leading icon. Co-authored-by: Cursor --- apps/web/src/components/MoneyInput.vue | 10 +- apps/web/src/components/OrgSwitcher.vue | 37 +- apps/web/src/components/OrgUserPersonPick.vue | 3 +- apps/web/src/components/page/PageHeader.vue | 4 +- .../components/treasury/SelectWithIcon.vue | 19 + .../treasury/TreasuryDocumentsPanel.vue | 61 +- .../treasury/TreasuryPartySelect.vue | 108 +-- apps/web/src/layouts/AppLayout.vue | 26 +- .../src/views/AccountBalanceSettingsView.vue | 9 +- apps/web/src/views/ActivityFormView.vue | 51 +- apps/web/src/views/LeadFormBuilderView.vue | 2 - apps/web/src/views/ProductsSettingsView.vue | 62 +- apps/web/src/views/SmsCampaignReportView.vue | 30 +- apps/web/src/views/TahesabSettingsView.vue | 8 +- apps/web/src/views/VoipSettingsView.vue | 69 +- .../src/views/routines/RoutineFormView.vue | 8 +- .../views/treasury/TreasuryAccountView.vue | 18 +- .../views/treasury/TreasuryAccountsView.vue | 172 ++-- .../views/treasury/TreasuryCategoriesView.vue | 26 +- .../views/treasury/TreasuryExpensesView.vue | 849 +++++++++++++----- .../views/treasury/TreasuryIncomesView.vue | 680 ++++++++++---- .../web/src/views/treasury/TreasuryLayout.vue | 103 ++- .../views/treasury/TreasuryPayrollView.vue | 172 ++-- .../treasury/TreasuryReceivablesView.vue | 108 +-- .../views/treasury/TreasuryRecurringView.vue | 43 +- .../views/treasury/TreasuryReportsView.vue | 2 +- 26 files changed, 1728 insertions(+), 952 deletions(-) create mode 100644 apps/web/src/components/treasury/SelectWithIcon.vue diff --git a/apps/web/src/components/MoneyInput.vue b/apps/web/src/components/MoneyInput.vue index 97fd520..36cd95e 100644 --- a/apps/web/src/components/MoneyInput.vue +++ b/apps/web/src/components/MoneyInput.vue @@ -1,6 +1,7 @@ + + diff --git a/apps/web/src/components/treasury/TreasuryDocumentsPanel.vue b/apps/web/src/components/treasury/TreasuryDocumentsPanel.vue index 5a1db5f..9be0d72 100644 --- a/apps/web/src/components/treasury/TreasuryDocumentsPanel.vue +++ b/apps/web/src/components/treasury/TreasuryDocumentsPanel.vue @@ -24,11 +24,15 @@ import { theme, } from 'ant-design-vue'; import { + CreditCardOutlined, DeleteOutlined, EditOutlined, EyeOutlined, + FileTextOutlined, + SearchOutlined, StopOutlined, -} from '@ant-design/icons-vue'; + TagOutlined, +} from '@/icons/ant-bridge'; import { canManageTreasuryDocuments, type FinancialCategoryDto, @@ -36,6 +40,7 @@ import { } from '@mento/shared'; import JalaliDateInput from '@/components/JalaliDateInput.vue'; import MoneyInput from '@/components/MoneyInput.vue'; +import SelectWithIcon from '@/components/treasury/SelectWithIcon.vue'; import { api } from '@/lib/api'; import { formatJalaliNumeric, formatLocalDateInput } from '@/lib/jalali'; import { parseMoneyNumber } from '@/lib/money'; @@ -326,7 +331,9 @@ function modalContainer() { placeholder="عنوان یا شماره پیگیری" @press-enter="onSearch" @change="onSearch" - /> + > + + @@ -575,7 +582,9 @@ function modalContainer() { - + + + @@ -585,29 +594,33 @@ function modalContainer() { - - - {{ opt.label }} - - + + + + {{ opt.label }} + + + - + + + @@ -617,7 +630,9 @@ function modalContainer() { - + + + diff --git a/apps/web/src/components/treasury/TreasuryPartySelect.vue b/apps/web/src/components/treasury/TreasuryPartySelect.vue index fdea88e..fce26a8 100644 --- a/apps/web/src/components/treasury/TreasuryPartySelect.vue +++ b/apps/web/src/components/treasury/TreasuryPartySelect.vue @@ -9,6 +9,8 @@ import { message, } from 'ant-design-vue'; import type { CompanyDto, FinancialPartyKind, PersonDto, TreasuryPartySearchDto } from '@mento/shared'; +import { UserOutlined } from '@/icons/ant-bridge'; +import SelectWithIcon from '@/components/treasury/SelectWithIcon.vue'; import { UiModal } from '@/components/ui'; import { api } from '@/lib/api'; import CompanyFormView from '@/views/CompanyFormView.vue'; @@ -153,58 +155,60 @@ onMounted(() => {