Merge branch 'dev' into 8004-liliumStyleRemake
This commit is contained in:
commit
5925a1acf2
|
@ -115,6 +115,9 @@ onMounted(async () => {
|
||||||
<VnSelect
|
<VnSelect
|
||||||
:label="t('invoiceOutSerialType')"
|
:label="t('invoiceOutSerialType')"
|
||||||
v-model="formData.serialType"
|
v-model="formData.serialType"
|
||||||
|
@update:model-value="
|
||||||
|
invoiceOutGlobalStore.fetchInvoiceOutConfig(formData)
|
||||||
|
"
|
||||||
:options="serialTypesOptions"
|
:options="serialTypesOptions"
|
||||||
option-value="type"
|
option-value="type"
|
||||||
option-label="type"
|
option-label="type"
|
||||||
|
|
|
@ -37,6 +37,7 @@ const userParams = reactive({
|
||||||
ipt: 'H',
|
ipt: 'H',
|
||||||
futureIpt: 'H',
|
futureIpt: 'H',
|
||||||
isFullMovable: true,
|
isFullMovable: true,
|
||||||
|
onlyWithDestination: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
const ticketColumns = computed(() => [
|
const ticketColumns = computed(() => [
|
||||||
|
@ -464,6 +465,7 @@ watch(
|
||||||
color="primary"
|
color="primary"
|
||||||
name="vn:agency-term"
|
name="vn:agency-term"
|
||||||
size="xs"
|
size="xs"
|
||||||
|
class="q-mr-xs"
|
||||||
>
|
>
|
||||||
<QTooltip class="column">
|
<QTooltip class="column">
|
||||||
<span>
|
<span>
|
||||||
|
@ -482,6 +484,14 @@ watch(
|
||||||
</span>
|
</span>
|
||||||
</QTooltip>
|
</QTooltip>
|
||||||
</QIcon>
|
</QIcon>
|
||||||
|
<QIcon
|
||||||
|
v-if="row.saleClonedFk"
|
||||||
|
color="primary"
|
||||||
|
name="content_copy"
|
||||||
|
size="xs"
|
||||||
|
>
|
||||||
|
<QTooltip>{{ t('advanceTickets.clonedSales') }}</QTooltip>
|
||||||
|
</QIcon>
|
||||||
</template>
|
</template>
|
||||||
<template #column-id="{ row }">
|
<template #column-id="{ row }">
|
||||||
<QBtn flat class="link">
|
<QBtn flat class="link">
|
||||||
|
|
|
@ -168,6 +168,16 @@ onMounted(async () => await getItemPackingTypes());
|
||||||
</VnSelect>
|
</VnSelect>
|
||||||
</QItemSection>
|
</QItemSection>
|
||||||
</QItem>
|
</QItem>
|
||||||
|
<QItem>
|
||||||
|
<QItemSection>
|
||||||
|
<QCheckbox
|
||||||
|
toggle-indeterminate
|
||||||
|
label="only with destination"
|
||||||
|
v-model="params.onlyWithDestination"
|
||||||
|
@update:model-value="searchFn()"
|
||||||
|
/>
|
||||||
|
</QItemSection>
|
||||||
|
</QItem>
|
||||||
</template>
|
</template>
|
||||||
</VnFilterPanel>
|
</VnFilterPanel>
|
||||||
</template>
|
</template>
|
||||||
|
@ -182,6 +192,7 @@ en:
|
||||||
ipt: Destination IPT
|
ipt: Destination IPT
|
||||||
isFullMovable: 100% movable
|
isFullMovable: 100% movable
|
||||||
warehouseFk: Warehouse
|
warehouseFk: Warehouse
|
||||||
|
onlyWithDestination: Only with destination
|
||||||
es:
|
es:
|
||||||
Horizontal: Horizontal
|
Horizontal: Horizontal
|
||||||
Vertical: Vertical
|
Vertical: Vertical
|
||||||
|
@ -193,4 +204,5 @@ es:
|
||||||
ipt: IPT destino
|
ipt: IPT destino
|
||||||
isFullMovable: 100% movible
|
isFullMovable: 100% movible
|
||||||
warehouseFk: Almacén
|
warehouseFk: Almacén
|
||||||
|
onlyWithDestination: Solo con destino
|
||||||
</i18n>
|
</i18n>
|
||||||
|
|
|
@ -53,6 +53,7 @@ advanceTickets:
|
||||||
errorsList: Errors list
|
errorsList: Errors list
|
||||||
search: Search advance tickets
|
search: Search advance tickets
|
||||||
searchInfo: Search advance tickets by ID or client ID
|
searchInfo: Search advance tickets by ID or client ID
|
||||||
|
clonedSales: Has turn lines
|
||||||
futureTickets:
|
futureTickets:
|
||||||
problems: Problems
|
problems: Problems
|
||||||
shipped: Date
|
shipped: Date
|
||||||
|
|
|
@ -91,6 +91,7 @@ advanceTickets:
|
||||||
errorsList: Lista de errores
|
errorsList: Lista de errores
|
||||||
search: Buscar por tickets adelantados
|
search: Buscar por tickets adelantados
|
||||||
searchInfo: Buscar tickets adelantados por el identificador o el identificador del cliente
|
searchInfo: Buscar tickets adelantados por el identificador o el identificador del cliente
|
||||||
|
clonedSales: Tiene líneas de turno
|
||||||
futureTickets:
|
futureTickets:
|
||||||
problems: Problemas
|
problems: Problemas
|
||||||
shipped: Fecha
|
shipped: Fecha
|
||||||
|
|
|
@ -19,7 +19,7 @@ export const useInvoiceOutGlobalStore = defineStore({
|
||||||
maxShipped: null,
|
maxShipped: null,
|
||||||
clientId: null,
|
clientId: null,
|
||||||
printer: null,
|
printer: null,
|
||||||
serialType: null,
|
serialType: 'global',
|
||||||
},
|
},
|
||||||
addresses: [],
|
addresses: [],
|
||||||
minInvoicingDate: null,
|
minInvoicingDate: null,
|
||||||
|
@ -41,7 +41,6 @@ export const useInvoiceOutGlobalStore = defineStore({
|
||||||
|
|
||||||
async fetchAllData() {
|
async fetchAllData() {
|
||||||
try {
|
try {
|
||||||
const userInfo = await useUserConfig().fetch();
|
|
||||||
const date = Date.vnNew();
|
const date = Date.vnNew();
|
||||||
this.formInitialData.maxShipped = new Date(
|
this.formInitialData.maxShipped = new Date(
|
||||||
date.getFullYear(),
|
date.getFullYear(),
|
||||||
|
@ -53,7 +52,7 @@ export const useInvoiceOutGlobalStore = defineStore({
|
||||||
|
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
this.fetchParallelism(),
|
this.fetchParallelism(),
|
||||||
this.fetchInvoiceOutConfig(userInfo.companyFk),
|
this.fetchInvoiceOutConfig(),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
this.initialDataLoading = false;
|
this.initialDataLoading = false;
|
||||||
|
@ -62,21 +61,23 @@ export const useInvoiceOutGlobalStore = defineStore({
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
async fetchInvoiceOutConfig(companyFk) {
|
async fetchInvoiceOutConfig(formData = this.formInitialData) {
|
||||||
try {
|
try {
|
||||||
this.formInitialData.companyFk = companyFk;
|
const userInfo = await useUserConfig().fetch();
|
||||||
const params = { companyFk: companyFk };
|
const params = {
|
||||||
|
companyFk: userInfo.companyFk,
|
||||||
|
serialType: formData.serialType,
|
||||||
|
};
|
||||||
|
|
||||||
const { data } = await axios.get('InvoiceOuts/getInvoiceDate', {
|
const { data } = await axios.get('InvoiceOuts/getInvoiceDate', {
|
||||||
params,
|
params,
|
||||||
});
|
});
|
||||||
|
|
||||||
const stringDate = data.issued.substring(0, 10);
|
this.minInvoicingDate = data?.issued
|
||||||
this.minInvoicingDate = stringDate;
|
? new Date(data.issued)
|
||||||
this.formInitialData.invoiceDate = stringDate;
|
: Date.vnNew();
|
||||||
|
|
||||||
this.minInvoicingDate = new Date(data.issued);
|
|
||||||
this.formInitialData.invoiceDate = this.minInvoicingDate;
|
this.formInitialData.invoiceDate = this.minInvoicingDate;
|
||||||
|
formData.invoiceDate = this.minInvoicingDate;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error('Error fetching invoice out global initial data');
|
console.error('Error fetching invoice out global initial data');
|
||||||
throw new Error();
|
throw new Error();
|
||||||
|
|
Loading…
Reference in New Issue