fix(itemDescriptor): fix redirection to itemDiary #721

Merged
alexm merged 1 commits from hotFix_itemDiary_redirect into master 2024-09-17 07:37:01 +00:00
1 changed files with 4 additions and 13 deletions

View File

@ -11,7 +11,6 @@ import VnConfirm from 'components/ui/VnConfirm.vue';
import RegularizeStockForm from 'components/RegularizeStockForm.vue';
import ItemDescriptorImage from 'src/pages/Item/Card/ItemDescriptorImage.vue';
import useCardDescription from 'src/composables/useCardDescription';
import { getUrl } from 'src/composables/getUrl';
import axios from 'axios';
import { dashIfEmpty } from 'src/filters';
@ -51,10 +50,8 @@ const entityId = computed(() => {
const regularizeStockFormDialog = ref(null);
const available = ref(null);
const visible = ref(null);
const salixUrl = ref();
onMounted(async () => {
salixUrl.value = await getUrl('');
await getItemConfigs();
await updateStock();
});
@ -200,16 +197,10 @@ const openCloneDialog = async () => {
<template #actions="{}">
<QCardActions class="row justify-center">
<QBtn
:href="
salixUrl +
'item/' +
entityId +
'/diary?' +
'warehouseFk=' +
warehouseFk +
'&lineFk=' +
$props.saleFk
"
:to="{
name: 'ItemDiary',
query: { warehouseFk, lineFk: $props.saleFk },
}"
size="md"
icon="vn:transaction"
color="primary"