Files
tehran_taj/apps/admin-panel/src/views/promotion/promotion_add_edit.vue
T

26 lines
895 B
Vue
Raw Normal View History

<template>
<!--
Ported from legacy henza_admin/src/views/promotion/promotion_add_edit.vue.
Verified by diff against promotion_tak_add_edit.vue: the two files differ
only in the card title and whether the "مشتری" scope is offered, so both are
thin wrappers over PromotionForm. Props/emits pass through unchanged so this
wrapper works both as the /major/promotion/add(/edit/:id) route and as a
modal opened from promotion_list.vue.
-->
<PromotionForm
title="تعریف تخفیف"
:allow-customer-scope="true"
:open="open"
:id="id"
@update:open="$emit('update:open', $event)"
@success="$emit('success')"
/>
</template>
<script setup lang="ts">
import PromotionForm from './PromotionForm.vue';
defineProps<{ open?: boolean; id?: string }>();
defineEmits<{ (e: 'update:open', value: boolean): void; (e: 'success'): void }>();
</script>