@@ -181,10 +184,17 @@ const emit = defineEmits<{
}
.col-product span {
+ display: block;
font-size: 0.75rem;
color: var(--color-text-muted);
}
+.col-product__company {
+ margin-top: 2px;
+ color: var(--color-primary) !important;
+ font-weight: 600;
+}
+
.col-meterage {
text-align: center;
font-weight: 700;
diff --git a/src/views/checkout/CashSettlementView.vue b/src/views/checkout/CashSettlementView.vue
index 8e8900c..9d86896 100644
--- a/src/views/checkout/CashSettlementView.vue
+++ b/src/views/checkout/CashSettlementView.vue
@@ -16,8 +16,13 @@ const cartStore = useCartStore()
const orderStore = useOrderStore()
const authStore = useAuthStore()
-const companyId = computed(() => cartStore.activeCart?.companyId ?? '')
-const companyName = computed(() => cartStore.activeCart?.companyName ?? '')
+const companyId = computed(() => {
+ const firstItem = cartStore.activeCart?.items[0]
+ return firstItem?.companyId || cartStore.selectedCompanyId || cartStore.activeCart?.companyId || ''
+})
+const companyName = computed(
+ () => cartStore.companyNamesLabel || cartStore.activeCart?.companyName || '',
+)
const bankAccounts = computed(() => orderStore.getBankAccountsForCompany(companyId.value))
const expiryMessage = computed(() => {
@@ -27,7 +32,8 @@ const expiryMessage = computed(() => {
})
const accountsSectionTitle = computed(() => {
- const name = companyName.value.replace(/^شرکت\s+/u, '')
+ const company = getCompanyById(companyId.value)
+ const name = (company?.name || companyName.value).replace(/^شرکت\s+/u, '')
return `شماره حسابهای شرکت ${name}`
})
diff --git a/src/views/checkout/CheckListView.vue b/src/views/checkout/CheckListView.vue
index 17e5de5..892d73d 100644
--- a/src/views/checkout/CheckListView.vue
+++ b/src/views/checkout/CheckListView.vue
@@ -9,6 +9,7 @@ import EmptyState from '@/components/ui/EmptyState.vue'
import IconChevronBack from '@/components/icons/IconChevronBack.vue'
import { formatCurrency, formatDate, formatNumber, toPersianDigits } from '@/utils/format'
import { calculateCheckRass } from '@/utils/checkRass'
+import { confirm } from '@/composables/useConfirm'
import type { CheckData } from '@/types'
const route = useRoute()
@@ -68,9 +69,17 @@ function addAnother() {
router.push('/checkout/check-form')
}
-function removeCheck(id: string) {
- orderStore.removeDraftCheck(id)
+async function removeCheck(id: string) {
openMenuId.value = ''
+ const ok = await confirm({
+ title: 'حذف چک',
+ message: 'آیا از حذف این چک مطمئن هستید؟',
+ confirmLabel: 'حذف',
+ cancelLabel: 'انصراف',
+ tone: 'danger',
+ })
+ if (!ok) return
+ orderStore.removeDraftCheck(id)
}
function toggleMenu(id: string) {
diff --git a/src/views/companies/CompanySelectView.vue b/src/views/companies/CompanySelectView.vue
index 40b37c5..a5bfeb0 100644
--- a/src/views/companies/CompanySelectView.vue
+++ b/src/views/companies/CompanySelectView.vue
@@ -1,9 +1,7 @@
+
+
+
+
+
+
+
+
diff --git a/src/views/profile/ProfileNotificationsView.vue b/src/views/profile/ProfileNotificationsView.vue
new file mode 100644
index 0000000..558a27b
--- /dev/null
+++ b/src/views/profile/ProfileNotificationsView.vue
@@ -0,0 +1,118 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ذخیره تنظیمات
+ تنظیمات اعلان ذخیره شد ✓
+
+
+
+
diff --git a/src/views/profile/ProfileSecurityView.vue b/src/views/profile/ProfileSecurityView.vue
new file mode 100644
index 0000000..be661af
--- /dev/null
+++ b/src/views/profile/ProfileSecurityView.vue
@@ -0,0 +1,99 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/profile/components/DesktopProfilePage.vue b/src/views/profile/components/DesktopProfilePage.vue
index 9c7b095..9ea3e43 100644
--- a/src/views/profile/components/DesktopProfilePage.vue
+++ b/src/views/profile/components/DesktopProfilePage.vue
@@ -106,21 +106,21 @@ const settingsItems: Array<{
label: 'امنیت حساب',
description: 'تغییر رمز عبور و تنظیمات ورود',
icon: IconLock,
- path: '/profile/edit',
+ path: '/profile/security',
},
{
id: 'notifications',
label: 'اعلانها',
description: 'مدیریت اعلانهای ایمیل و پیامک',
icon: IconBell,
- path: '/profile/edit',
+ path: '/profile/notifications',
},
{
id: 'display',
label: 'تنظیمات نمایش',
description: 'زبان، واحد پول و حالت نمایش',
icon: IconLayoutGrid,
- path: '/profile/edit',
+ path: '/profile/display',
},
]
diff --git a/src/views/profile/components/ProfileSubpageLayout.vue b/src/views/profile/components/ProfileSubpageLayout.vue
new file mode 100644
index 0000000..a8a9ea3
--- /dev/null
+++ b/src/views/profile/components/ProfileSubpageLayout.vue
@@ -0,0 +1,118 @@
+
+
+
+
+
+
+
+ {{ title }}
+
+
+
+
+
+
+
+
+
+
+ {{ title }}
+ {{ subtitle }}
+
+
+
+
+
+
+
+
+