Merge branch 'master' into hotfix_8625_fixCreateNewRoute
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:
commit
38769d8b0a
|
@ -122,22 +122,9 @@ const updateStock = async () => {
|
||||||
</template>
|
</template>
|
||||||
</VnLv>
|
</VnLv>
|
||||||
<VnLv :label="t('globals.producer')" :value="dashIfEmpty(entity.subName)" />
|
<VnLv :label="t('globals.producer')" :value="dashIfEmpty(entity.subName)" />
|
||||||
<VnLv
|
<VnLv v-if="entity?.value5" :label="entity?.tag5" :value="entity.value5" />
|
||||||
v-if="entity.value5"
|
<VnLv v-if="entity?.value6" :label="entity?.tag6" :value="entity.value6" />
|
||||||
:label="t('item.descriptor.color')"
|
<VnLv v-if="entity?.value7" :label="entity?.tag7" :value="entity.value7" />
|
||||||
:value="entity.value5"
|
|
||||||
>
|
|
||||||
</VnLv>
|
|
||||||
<VnLv
|
|
||||||
v-if="entity.value6"
|
|
||||||
:label="t('item.descriptor.category')"
|
|
||||||
:value="entity.value6"
|
|
||||||
/>
|
|
||||||
<VnLv
|
|
||||||
v-if="entity.value7"
|
|
||||||
:label="t('item.list.stems')"
|
|
||||||
:value="entity.value7"
|
|
||||||
/>
|
|
||||||
</template>
|
</template>
|
||||||
<template #icons="{ entity }">
|
<template #icons="{ entity }">
|
||||||
<QCardActions v-if="entity" class="q-gutter-x-md">
|
<QCardActions v-if="entity" class="q-gutter-x-md">
|
||||||
|
|
|
@ -202,7 +202,7 @@ const updateQuantity = async (sale) => {
|
||||||
sale.isNew = false;
|
sale.isNew = false;
|
||||||
await axios.post(`Sales/${id}/updateQuantity`, { quantity });
|
await axios.post(`Sales/${id}/updateQuantity`, { quantity });
|
||||||
notify('globals.dataSaved', 'positive');
|
notify('globals.dataSaved', 'positive');
|
||||||
tableRef.value.reload();
|
resetChanges();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
const { quantity } = tableRef.value.CrudModelRef.originalData.find(
|
const { quantity } = tableRef.value.CrudModelRef.originalData.find(
|
||||||
(s) => s.id === sale.id,
|
(s) => s.id === sale.id,
|
||||||
|
@ -246,7 +246,7 @@ const updateConcept = async (sale) => {
|
||||||
const data = { newConcept: sale.concept };
|
const data = { newConcept: sale.concept };
|
||||||
await axios.post(`Sales/${sale.id}/updateConcept`, data);
|
await axios.post(`Sales/${sale.id}/updateConcept`, data);
|
||||||
notify('globals.dataSaved', 'positive');
|
notify('globals.dataSaved', 'positive');
|
||||||
tableRef.value.reload();
|
resetChanges();
|
||||||
};
|
};
|
||||||
|
|
||||||
const DEFAULT_EDIT = {
|
const DEFAULT_EDIT = {
|
||||||
|
@ -297,7 +297,7 @@ const updatePrice = async (sale, newPrice) => {
|
||||||
sale.price = newPrice;
|
sale.price = newPrice;
|
||||||
edit.value = { ...DEFAULT_EDIT };
|
edit.value = { ...DEFAULT_EDIT };
|
||||||
notify('globals.dataSaved', 'positive');
|
notify('globals.dataSaved', 'positive');
|
||||||
tableRef.value.reload();
|
resetChanges();
|
||||||
};
|
};
|
||||||
|
|
||||||
const changeDiscount = async (sale) => {
|
const changeDiscount = async (sale) => {
|
||||||
|
@ -329,7 +329,7 @@ const updateDiscount = async (sales, newDiscount = null) => {
|
||||||
};
|
};
|
||||||
await axios.post(`Tickets/${route.params.id}/updateDiscount`, params);
|
await axios.post(`Tickets/${route.params.id}/updateDiscount`, params);
|
||||||
notify('globals.dataSaved', 'positive');
|
notify('globals.dataSaved', 'positive');
|
||||||
tableRef.value.reload();
|
resetChanges();
|
||||||
};
|
};
|
||||||
|
|
||||||
const getNewPrice = computed(() => {
|
const getNewPrice = computed(() => {
|
||||||
|
@ -397,7 +397,7 @@ const removeSales = async () => {
|
||||||
await axios.post('Sales/deleteSales', params);
|
await axios.post('Sales/deleteSales', params);
|
||||||
removeSelectedSales();
|
removeSelectedSales();
|
||||||
notify('globals.dataSaved', 'positive');
|
notify('globals.dataSaved', 'positive');
|
||||||
window.location.reload();
|
resetChanges();
|
||||||
};
|
};
|
||||||
|
|
||||||
const setTransferParams = async () => {
|
const setTransferParams = async () => {
|
||||||
|
|
|
@ -251,7 +251,7 @@ const fetchAvailableAgencies = async (formData) => {
|
||||||
|
|
||||||
const { options, agency } = response;
|
const { options, agency } = response;
|
||||||
if (options) agenciesOptions.value = options;
|
if (options) agenciesOptions.value = options;
|
||||||
if (agency) formData.agencyModeId = agency;
|
if (agency) formData.agencyModeId = agency.agencyModeFk;
|
||||||
};
|
};
|
||||||
|
|
||||||
const fetchClient = async (formData) => {
|
const fetchClient = async (formData) => {
|
||||||
|
|
Loading…
Reference in New Issue