added kashkool
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<div class="h-full min-h-0 min-w-0 max-w-full overflow-hidden">
|
||||
<BasicShowContext title="لیست کارت های هدیه">
|
||||
<template v-if="!customerId" #extra>
|
||||
<BaseButton type="primary" size="small" class="flex shrink-0 md:hidden" @click="emits('add')">
|
||||
<BaseButton type="primary" size="small" class="flex shrink-0 md:hidden" @click="emits('add', 'gift')">
|
||||
<div>افزودن</div>
|
||||
<BaseIcon icon="vuesax-linear:receipt-add" Size="16px" />
|
||||
</BaseButton>
|
||||
@@ -11,10 +11,22 @@
|
||||
<div class="flex h-full min-h-0 flex-col">
|
||||
<BaseTable v-if="!isMobile" class="h-full min-h-0 min-w-0" v-bind="tblProps" @register="submit" ref="tbl">
|
||||
<template #extraHeader>
|
||||
<BaseButton v-if="!customerId" type="primary" size="small" class="flex" @click="emits('add')">
|
||||
<div>افزودن کارت هدیه</div>
|
||||
<BaseIcon icon="vuesax-linear:receipt-add" Size="16px" />
|
||||
</BaseButton>
|
||||
<div class="flex gap-2">
|
||||
<BaseButton v-if="!customerId" type="primary" size="small" class="flex" @click="emits('add', 'gift')">
|
||||
<div>افزودن کارت هدیه</div>
|
||||
<BaseIcon icon="vuesax-linear:receipt-add" Size="16px" />
|
||||
</BaseButton>
|
||||
<BaseButton
|
||||
v-if="!customerId && isStoreApp()"
|
||||
type="primary"
|
||||
size="small"
|
||||
class="flex"
|
||||
@click="emits('add', 'discount')"
|
||||
>
|
||||
<div>افزودن کد تخفیف</div>
|
||||
<BaseIcon icon="vuesax-linear:discount-circle" Size="16px" />
|
||||
</BaseButton>
|
||||
</div>
|
||||
</template>
|
||||
<template #action="{ column, record }">
|
||||
<div class="gap-2 flex justify-center">
|
||||
@@ -26,7 +38,7 @@
|
||||
</a-tooltip>
|
||||
<a-tooltip placement="bottom" class="cursor-pointer" @click="emits('giftcardcodes', record)">
|
||||
<template #title>
|
||||
<span>کدهای کارت هدیه</span>
|
||||
<span>کدهای {{ record.unit == 3 ? 'تخفیف' : 'کارت هدیه' }}</span>
|
||||
</template>
|
||||
<Icon icon="vuesax-linear:document-text" color="#1890ff" />
|
||||
</a-tooltip>
|
||||
@@ -55,6 +67,7 @@ import { usePrefix } from '@core/composable/usePrefix'
|
||||
import { getGiftCardTable } from '@/api/giftCard'
|
||||
import GiftCardMobileCardList from './GiftCardMobileCardList.vue'
|
||||
import { isMobile } from '@core/utils/is'
|
||||
import { isStoreApp } from '@/utils/config'
|
||||
|
||||
interface Prop {
|
||||
customerId?: number
|
||||
|
||||
Reference in New Issue
Block a user