changes of giftCard page
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
<template #tracked="{ column, record }">
|
||||
<div v-if="record.tracked_number">{{ record.tracked_number }}</div>
|
||||
<div v-else-if="needsTrackingConfirmation(record)">
|
||||
<BaseButton @click="emits('withdraw', record)">
|
||||
<BaseButton v-if="can('confirm')" @click="emits('withdraw', record)">
|
||||
{{ confirmLabelForRecord(record, props.flowType) }}
|
||||
</BaseButton>
|
||||
</div>
|
||||
@@ -28,14 +28,14 @@
|
||||
<Icon icon="vuesax-linear:message-text" color="#64748b" />
|
||||
</a-badge>
|
||||
</a-tooltip>
|
||||
<a-tooltip v-if="needsTrackingConfirmation(record)" class="cursor-pointer">
|
||||
<a-tooltip v-if="can('confirm') && needsTrackingConfirmation(record)" class="cursor-pointer">
|
||||
<template #title><span>{{ confirmLabelForRecord(record, props.flowType) }}</span></template>
|
||||
<BaseButton size="small" type="primary" @click="emits('withdraw', record)">
|
||||
{{ confirmLabelForRecord(record, props.flowType) }}
|
||||
</BaseButton>
|
||||
</a-tooltip>
|
||||
<div class="flex gap-2" v-if="record.sts <= 70 && record.sts >= 50">
|
||||
<a-tooltip class="cursor-pointer">
|
||||
<a-tooltip v-if="can('factor')" class="cursor-pointer">
|
||||
<template #title><span>دریافت فاکتور</span></template>
|
||||
<Icon
|
||||
icon="vuesax-linear:document-download"
|
||||
@@ -43,7 +43,7 @@
|
||||
@click="$router.push({ name: 'factor', params: { id: record.id } })"
|
||||
/>
|
||||
</a-tooltip>
|
||||
<a-tooltip class="cursor-pointer">
|
||||
<a-tooltip v-if="can('status')" class="cursor-pointer">
|
||||
<template #title><span>وضعیت</span></template>
|
||||
<ADropdown :trigger="['click']">
|
||||
<Icon icon="vuesax-linear:status-up" color="#CA8A04" @click="test(record)" />
|
||||
@@ -66,7 +66,7 @@
|
||||
</ADropdown>
|
||||
</a-tooltip>
|
||||
</div>
|
||||
<a-tooltip v-if="needsWeightAssignment(record)" class="cursor-pointer">
|
||||
<a-tooltip v-if="can('weight') && needsWeightAssignment(record)" class="cursor-pointer">
|
||||
<template #title><span>تعیین وزن</span></template>
|
||||
<Icon
|
||||
icon="vuesax-linear:3d-cube-scan"
|
||||
@@ -75,7 +75,7 @@
|
||||
/>
|
||||
</a-tooltip>
|
||||
<a-tooltip
|
||||
v-if="tahesabEnabled && record.tahesab_failed_id"
|
||||
v-if="can('tahesab') && tahesabEnabled && record.tahesab_failed_id"
|
||||
class="cursor-pointer"
|
||||
@click="openTahesabRetry(record)"
|
||||
>
|
||||
@@ -83,7 +83,7 @@
|
||||
<Icon icon="vuesax-linear:refresh-circle" color="#CA8A04" />
|
||||
</a-tooltip>
|
||||
<a-tooltip
|
||||
v-if="zarinEnabled && record.zarin_failed_id"
|
||||
v-if="can('zarin') && zarinEnabled && record.zarin_failed_id"
|
||||
class="cursor-pointer"
|
||||
@click="openZarinRetry(record)"
|
||||
>
|
||||
@@ -242,6 +242,9 @@ onMounted(() => {
|
||||
import { status } from '@/pages/menuPages/withdraw/information/hooks/status'
|
||||
import {toNumber} from "lodash";
|
||||
import { withdrawPageIntro } from '@/utils/adminHelpCopy'
|
||||
import { usePageActionAccess } from '@/composables/usePageActionAccess'
|
||||
|
||||
const { can } = usePageActionAccess()
|
||||
const withdrawId = ref(null)
|
||||
const sts = ref()
|
||||
const statusList = computed(() => {
|
||||
|
||||
Reference in New Issue
Block a user