2026-09-13 21:02:25 +03:30
|
|
|
<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
|
2026-09-14 16:56:30 +03:30
|
|
|
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.
|
2026-09-13 21:02:25 +03:30
|
|
|
-->
|
2026-09-14 16:56:30 +03:30
|
|
|
<PromotionForm
|
|
|
|
|
title="تعریف تخفیف"
|
|
|
|
|
:allow-customer-scope="true"
|
|
|
|
|
:open="open"
|
|
|
|
|
:id="id"
|
|
|
|
|
@update:open="$emit('update:open', $event)"
|
|
|
|
|
@success="$emit('success')"
|
|
|
|
|
/>
|
2026-09-13 21:02:25 +03:30
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
|
import PromotionForm from './PromotionForm.vue';
|
2026-09-14 16:56:30 +03:30
|
|
|
|
|
|
|
|
defineProps<{ open?: boolean; id?: string }>();
|
|
|
|
|
defineEmits<{ (e: 'update:open', value: boolean): void; (e: 'success'): void }>();
|
2026-09-13 21:02:25 +03:30
|
|
|
</script>
|