diff --git a/src/pages/Ticket/Card/TicketEditMana.vue b/src/pages/Ticket/Card/TicketEditMana.vue index a55658a07..de9a982b9 100644 --- a/src/pages/Ticket/Card/TicketEditMana.vue +++ b/src/pages/Ticket/Card/TicketEditMana.vue @@ -21,6 +21,10 @@ const $props = defineProps({ type: String, default: 'mana', }, + sale: { + type: Object, + default: null, + }, }); const emit = defineEmits(['save', 'cancel']); @@ -29,8 +33,8 @@ const { t } = useI18n(); const QPopupProxyRef = ref(null); const manaCode = ref($props.manaCode); -const save = () => { - emit('save'); +const save = (sale = $props.sale) => { + emit('save', sale); QPopupProxyRef.value.hide(); }; @@ -38,6 +42,7 @@ const cancel = () => { emit('cancel'); QPopupProxyRef.value.hide(); }; +defineExpose({ save }); {{ toPercentage(row.discount / 100) }}