added notif 2

This commit is contained in:
2026-07-23 22:24:26 +03:30
parent d505f3b5bd
commit bd441a0e8e
31 changed files with 2105 additions and 34 deletions
+29 -2
View File
@@ -81,6 +81,15 @@
<template #title><span>در ته‌حساب ثبت نشده — کلیک برای ثبت</span></template>
<Icon icon="vuesax-linear:profile-add" color="#CA8A04" />
</a-tooltip>
<a-tooltip
v-if="zarinEnabled && !isValidAccountingCode(row.moshtari_code)"
placement="bottom"
class="cursor-pointer"
@click="openZarinRegister(row)"
>
<template #title><span>در زرین ثبت نشده — کلیک برای ثبت</span></template>
<Icon icon="vuesax-linear:profile-add" color="#0284C7" />
</a-tooltip>
<a-tooltip
v-if="pargarEnabled && !isValidAccountingCode(row.pargar_account_id)"
placement="bottom"
@@ -250,6 +259,14 @@
:customer-name="tahesabCustomer?.name"
@success="load"
/>
<ZarinRetryModal
v-if="zarinEnabled"
v-model="zarinRegisterVisible"
mode="register-customer"
:customer-id="zarinCustomer?.id"
:customer-name="zarinCustomer?.name"
@success="load"
/>
<PargarRetryModal
v-if="pargarEnabled"
v-model="pargarRegisterVisible"
@@ -287,6 +304,7 @@ import WalletChargeModal from '@/pages/menuPages/customers/base/components/Walle
import CustomerDirectSmsModal from '@/pages/menuPages/customers/base/components/CustomerDirectSmsModal.vue'
import CustomerAccountingCodeModal from '@/pages/menuPages/customers/base/components/CustomerAccountingCodeModal.vue'
import TahesabRetryModal from '@/components/TahesabRetryModal.vue'
import ZarinRetryModal from '@/components/ZarinRetryModal.vue'
import PargarRetryModal from '@/components/PargarRetryModal.vue'
import {
accountingProviderSetting,
@@ -294,7 +312,8 @@ import {
initAccountingSettingsFromApi,
initWalletSettingsFromApi,
pargarEnabledSetting,
tahesabEnabledSetting
tahesabEnabledSetting,
zarinEnabledSetting
} from '@/utils/config'
import { isValidAccountingCode } from '@/utils/accountingCode'
@@ -323,6 +342,9 @@ const confirmInfo = ref<Customer>()
const tahesabRegisterVisible = ref(false)
const tahesabCustomer = ref<Customer>()
const tahesabEnabled = tahesabEnabledSetting
const zarinRegisterVisible = ref(false)
const zarinCustomer = ref<Customer>()
const zarinEnabled = zarinEnabledSetting
const pargarRegisterVisible = ref(false)
const pargarCustomer = ref<Customer>()
const pargarEnabled = pargarEnabledSetting
@@ -330,7 +352,7 @@ const customerDirectSmsEnabled = customerDirectSmsEnabledSetting
const accountingEnabled = computed(() => {
const provider = accountingProviderSetting.value
return provider === 'pargar' || provider === 'tahesab'
return provider === 'pargar' || provider === 'tahesab' || provider === 'zarin'
})
const editVisible = ref(false)
@@ -404,6 +426,11 @@ function openTahesabRegister(row: Customer) {
tahesabRegisterVisible.value = true
}
function openZarinRegister(row: Customer) {
zarinCustomer.value = row
zarinRegisterVisible.value = true
}
function openPargarRegister(row: Customer) {
pargarCustomer.value = row
pargarRegisterVisible.value = true