fix: reload window when price is recalculated
gitea/salix-front/pipeline/pr-master This commit looks good
Details
gitea/salix-front/pipeline/pr-master This commit looks good
Details
This commit is contained in:
parent
a0a37a68a0
commit
b02199eb07
|
@ -476,6 +476,7 @@ onUnmounted(() => (stateStore.rightDrawer = false));
|
|||
:ticket-config="ticketConfig"
|
||||
@get-mana="getMana()"
|
||||
@update-discounts="updateDiscount"
|
||||
@re-calculated-price="resetChanges"
|
||||
/>
|
||||
<QBtn
|
||||
color="primary"
|
||||
|
|
|
@ -14,7 +14,7 @@ import { toDateFormat } from 'src/filters/date';
|
|||
import { useRole } from 'src/composables/useRole';
|
||||
import { useVnConfirm } from 'composables/useVnConfirm';
|
||||
|
||||
const emit = defineEmits(['updateDiscounts', 'getMana']);
|
||||
const emit = defineEmits(['updateDiscounts', 'getMana', 'reCalculatedPrice']);
|
||||
|
||||
const props = defineProps({
|
||||
disable: {
|
||||
|
@ -105,8 +105,10 @@ const showSmsDialog = (template) => {
|
|||
const calculateSalePrice = async () => {
|
||||
if (!props.sales) return;
|
||||
|
||||
console.log('CALLED');
|
||||
await axios.post(`Sales/recalculatePrice`, props.sales);
|
||||
notify(t('globals.dataSaved'), 'positive');
|
||||
emit('reCalculatedPrice', props.sales);
|
||||
};
|
||||
|
||||
const changeMultipleDiscount = () => {
|
||||
|
|
Loading…
Reference in New Issue