added notif 2
This commit is contained in:
@@ -82,6 +82,14 @@
|
||||
<template #title><span>ارسال به تهحساب</span></template>
|
||||
<Icon icon="vuesax-linear:refresh-circle" color="#CA8A04" />
|
||||
</a-tooltip>
|
||||
<a-tooltip
|
||||
v-if="zarinEnabled && record.zarin_failed_id"
|
||||
class="cursor-pointer"
|
||||
@click="openZarinRetry(record)"
|
||||
>
|
||||
<template #title><span>ارسال به زرین</span></template>
|
||||
<Icon icon="vuesax-linear:refresh-circle" color="#0284C7" />
|
||||
</a-tooltip>
|
||||
</div>
|
||||
</template>
|
||||
</BaseTable>
|
||||
@@ -103,6 +111,13 @@
|
||||
:tahesab-id="selectedTahesabId"
|
||||
@success="fetch"
|
||||
/>
|
||||
<ZarinRetryModal
|
||||
v-if="zarinEnabled"
|
||||
v-model="zarinRetryVisible"
|
||||
mode="retry-sanad"
|
||||
:zarin-id="selectedZarinId"
|
||||
@success="fetch"
|
||||
/>
|
||||
</BasicShowContext>
|
||||
</div>
|
||||
</template>
|
||||
@@ -127,7 +142,8 @@ import {
|
||||
needsWeightAssignment
|
||||
} from '@/pages/menuPages/withdraw/utils/withdrawDisplay'
|
||||
import TahesabRetryModal from '@/components/TahesabRetryModal.vue'
|
||||
import { initAccountingSettingsFromApi, tahesabEnabledSetting } from '@/utils/config'
|
||||
import ZarinRetryModal from '@/components/ZarinRetryModal.vue'
|
||||
import { initAccountingSettingsFromApi, tahesabEnabledSetting, zarinEnabledSetting } from '@/utils/config'
|
||||
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
@@ -143,6 +159,9 @@ const mobileListRef = ref<null | { fetch: () => Promise<void> }>(null)
|
||||
const tahesabRetryVisible = ref(false)
|
||||
const selectedTahesabId = ref<number>()
|
||||
const tahesabEnabled = tahesabEnabledSetting
|
||||
const zarinRetryVisible = ref(false)
|
||||
const selectedZarinId = ref<number>()
|
||||
const zarinEnabled = zarinEnabledSetting
|
||||
/*const select = (val) => {
|
||||
val.sts === 1 ? return ['1'] : ['2']
|
||||
}*/
|
||||
@@ -201,6 +220,12 @@ function openTahesabRetry(record: { tahesab_failed_id?: number }) {
|
||||
selectedTahesabId.value = record.tahesab_failed_id
|
||||
tahesabRetryVisible.value = true
|
||||
}
|
||||
|
||||
function openZarinRetry(record: { zarin_failed_id?: number }) {
|
||||
if (!record.zarin_failed_id) return
|
||||
selectedZarinId.value = record.zarin_failed_id
|
||||
zarinRetryVisible.value = true
|
||||
}
|
||||
// const spinTable = (val: boolean) => {
|
||||
// // console.log('sss')
|
||||
// table?.value?.loading.value = val
|
||||
|
||||
Reference in New Issue
Block a user