feat: refs #8087 refs#8087 Redadas en travel
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
e26fdfe4a3
commit
fc73149dcf
|
@ -1041,6 +1041,7 @@ travel:
|
||||||
delivered: Delivered
|
delivered: Delivered
|
||||||
received: Received
|
received: Received
|
||||||
daysInForward: Days in forward
|
daysInForward: Days in forward
|
||||||
|
isRaid: Raid
|
||||||
thermographs:
|
thermographs:
|
||||||
code: Code
|
code: Code
|
||||||
temperature: Temperature
|
temperature: Temperature
|
||||||
|
|
|
@ -1039,6 +1039,7 @@ travel:
|
||||||
delivered: Enviada
|
delivered: Enviada
|
||||||
received: Recibida
|
received: Recibida
|
||||||
daysInForward: Días redada
|
daysInForward: Días redada
|
||||||
|
isRaid: Redada
|
||||||
thermographs:
|
thermographs:
|
||||||
code: Código
|
code: Código
|
||||||
temperature: Temperatura
|
temperature: Temperatura
|
||||||
|
|
|
@ -36,6 +36,7 @@ const canEditZone = useAcl().hasAny([
|
||||||
const agencyFetchRef = ref();
|
const agencyFetchRef = ref();
|
||||||
const warehousesOptions = ref([]);
|
const warehousesOptions = ref([]);
|
||||||
const companiesOptions = ref([]);
|
const companiesOptions = ref([]);
|
||||||
|
const currenciesOptions = ref([]);
|
||||||
const agenciesOptions = ref([]);
|
const agenciesOptions = ref([]);
|
||||||
const zonesOptions = ref([]);
|
const zonesOptions = ref([]);
|
||||||
const addresses = ref([]);
|
const addresses = ref([]);
|
||||||
|
@ -289,6 +290,15 @@ async function getZone(options) {
|
||||||
@on-fetch="(data) => (companiesOptions = data)"
|
@on-fetch="(data) => (companiesOptions = data)"
|
||||||
auto-load
|
auto-load
|
||||||
/>
|
/>
|
||||||
|
<FetchData
|
||||||
|
url="Currencies"
|
||||||
|
:filter="{
|
||||||
|
fields: ['id', 'code'],
|
||||||
|
order: 'code ASC',
|
||||||
|
}"
|
||||||
|
@on-fetch="(data) => (currenciesOptions = data)"
|
||||||
|
auto-load
|
||||||
|
/>
|
||||||
<FetchData
|
<FetchData
|
||||||
ref="agencyFetchRef"
|
ref="agencyFetchRef"
|
||||||
url="AgencyModes/byWarehouse"
|
url="AgencyModes/byWarehouse"
|
||||||
|
@ -395,17 +405,6 @@ async function getZone(options) {
|
||||||
/>
|
/>
|
||||||
</VnRow>
|
</VnRow>
|
||||||
<VnRow class="row q-gutter-md q-mb-md no-wrap">
|
<VnRow class="row q-gutter-md q-mb-md no-wrap">
|
||||||
<VnSelect
|
|
||||||
:label="t('basicData.company')"
|
|
||||||
v-model="formData.companyFk"
|
|
||||||
option-value="id"
|
|
||||||
option-label="code"
|
|
||||||
:options="companiesOptions"
|
|
||||||
hide-selected
|
|
||||||
map-options
|
|
||||||
:required="true"
|
|
||||||
:rules="validate('basicData.company')"
|
|
||||||
/>
|
|
||||||
<VnSelect
|
<VnSelect
|
||||||
:label="t('basicData.agency')"
|
:label="t('basicData.agency')"
|
||||||
v-model="agencyModeId"
|
v-model="agencyModeId"
|
||||||
|
@ -444,6 +443,30 @@ async function getZone(options) {
|
||||||
</QItem>
|
</QItem>
|
||||||
</template>
|
</template>
|
||||||
</VnSelect>
|
</VnSelect>
|
||||||
|
<VnSelect
|
||||||
|
:label="t('basicData.company')"
|
||||||
|
v-model="formData.companyFk"
|
||||||
|
option-value="id"
|
||||||
|
option-label="code"
|
||||||
|
:options="companiesOptions"
|
||||||
|
hide-selected
|
||||||
|
map-options
|
||||||
|
:required="true"
|
||||||
|
:rules="validate('basicData.company')"
|
||||||
|
/>
|
||||||
|
</VnRow>
|
||||||
|
<VnRow class="row q-gutter-md q-mb-md no-wrap">
|
||||||
|
<VnSelect
|
||||||
|
:label="t('basicData.currencyFk')"
|
||||||
|
v-model="formData.currencyFk"
|
||||||
|
option-value="id"
|
||||||
|
option-label="code"
|
||||||
|
:options="currenciesOptions"
|
||||||
|
hide-selected
|
||||||
|
map-options
|
||||||
|
:required="true"
|
||||||
|
:rules="validate('basicData.currencyFk')"
|
||||||
|
/>
|
||||||
</VnRow>
|
</VnRow>
|
||||||
<VnRow>
|
<VnRow>
|
||||||
<VnInputDate
|
<VnInputDate
|
||||||
|
|
|
@ -170,6 +170,7 @@ basicData:
|
||||||
negativesConfirmMessage: Negatives are going to be generated, are you sure you want to advance all the lines?
|
negativesConfirmMessage: Negatives are going to be generated, are you sure you want to advance all the lines?
|
||||||
chooseAnOption: Choose an option
|
chooseAnOption: Choose an option
|
||||||
unroutedTicket: The ticket has been unrouted
|
unroutedTicket: The ticket has been unrouted
|
||||||
|
currencyFk: Currency
|
||||||
purchaseRequest:
|
purchaseRequest:
|
||||||
id: Id
|
id: Id
|
||||||
description: Description
|
description: Description
|
||||||
|
|
|
@ -88,6 +88,7 @@ basicData:
|
||||||
negativesConfirmMessage: Se van a generar negativos, ¿seguro que quieres adelantar todas las líneas?
|
negativesConfirmMessage: Se van a generar negativos, ¿seguro que quieres adelantar todas las líneas?
|
||||||
chooseAnOption: Elige una opción
|
chooseAnOption: Elige una opción
|
||||||
unroutedTicket: El ticket ha sido desenrutado
|
unroutedTicket: El ticket ha sido desenrutado
|
||||||
|
currencyFk: Moneda
|
||||||
weeklyTickets:
|
weeklyTickets:
|
||||||
id: ID Ticket
|
id: ID Ticket
|
||||||
client: Cliente
|
client: Cliente
|
||||||
|
|
|
@ -84,6 +84,7 @@ const agenciesOptions = ref([]);
|
||||||
</VnInput>
|
</VnInput>
|
||||||
</VnRow>
|
</VnRow>
|
||||||
<VnRow>
|
<VnRow>
|
||||||
|
<QCheckbox v-model="data.isRaid" :label="t('travel.basicData.isRaid')" />
|
||||||
<QCheckbox
|
<QCheckbox
|
||||||
:label="t('travel.basicData.delivered')"
|
:label="t('travel.basicData.delivered')"
|
||||||
v-model="data.isDelivered"
|
v-model="data.isDelivered"
|
||||||
|
@ -99,7 +100,7 @@ const agenciesOptions = ref([]);
|
||||||
|
|
||||||
<i18n>
|
<i18n>
|
||||||
es:
|
es:
|
||||||
raidDays: Al rellenarlo, generamos una redada. Indica los días que un travel se moverá automáticamente en el tiempo
|
raidDays: Si se marca "Redada", la fecha de entrega se moverá automáticamente los días indicados (incluido 0). Si no se especifican días, la fecha no cambiará
|
||||||
en:
|
en:
|
||||||
raidDays: When filling, a raid is generated. Enter the number of days the travel will automatically forward in time
|
raidDays: If "Raid" is checked, the landing date will automatically shift by the specified number of days (including 0). If no days are specified, the date will stay the same.
|
||||||
</i18n>
|
</i18n>
|
||||||
|
|
|
@ -32,6 +32,7 @@ const filter = {
|
||||||
'warehouseOutFk',
|
'warehouseOutFk',
|
||||||
'cargoSupplierFk',
|
'cargoSupplierFk',
|
||||||
'agencyModeFk',
|
'agencyModeFk',
|
||||||
|
'isRaid',
|
||||||
'daysInForward',
|
'daysInForward',
|
||||||
],
|
],
|
||||||
include: [
|
include: [
|
||||||
|
@ -80,12 +81,7 @@ const setData = (entity) => (data.value = useCardDescription(entity.ref, entity.
|
||||||
</template>
|
</template>
|
||||||
<template #icons="{ entity }">
|
<template #icons="{ entity }">
|
||||||
<QCardActions class="q-gutter-x-md">
|
<QCardActions class="q-gutter-x-md">
|
||||||
<QIcon
|
<QIcon v-if="entity.isRaid" name="vn:net" color="primary" size="xs">
|
||||||
v-if="entity.daysInForward"
|
|
||||||
name="vn:net"
|
|
||||||
color="primary"
|
|
||||||
size="xs"
|
|
||||||
>
|
|
||||||
<QTooltip>
|
<QTooltip>
|
||||||
{{
|
{{
|
||||||
t('globals.raid', { daysInForward: entity.daysInForward })
|
t('globals.raid', { daysInForward: entity.daysInForward })
|
||||||
|
|
|
@ -268,6 +268,11 @@ const getLink = (param) => `#/travel/${entityId.value}/${param}`;
|
||||||
:label="t('globals.wareHouseOut')"
|
:label="t('globals.wareHouseOut')"
|
||||||
:value="travel.warehouseOut?.name"
|
:value="travel.warehouseOut?.name"
|
||||||
/>
|
/>
|
||||||
|
<QCheckbox
|
||||||
|
:label="t('travel.basicData.isRaid')"
|
||||||
|
v-model="travel.isRaid"
|
||||||
|
:disable="true"
|
||||||
|
/>
|
||||||
<QCheckbox
|
<QCheckbox
|
||||||
:label="t('travel.summary.delivered')"
|
:label="t('travel.summary.delivered')"
|
||||||
v-model="travel.isDelivered"
|
v-model="travel.isDelivered"
|
||||||
|
@ -286,6 +291,10 @@ const getLink = (param) => `#/travel/${entityId.value}/${param}`;
|
||||||
:label="t('globals.wareHouseIn')"
|
:label="t('globals.wareHouseIn')"
|
||||||
:value="travel.warehouseIn?.name"
|
:value="travel.warehouseIn?.name"
|
||||||
/>
|
/>
|
||||||
|
<VnLv
|
||||||
|
:label="t('travel.basicData.daysInForward')"
|
||||||
|
:value="travel?.daysInForward"
|
||||||
|
/>
|
||||||
<QCheckbox
|
<QCheckbox
|
||||||
:label="t('travel.summary.received')"
|
:label="t('travel.summary.received')"
|
||||||
v-model="travel.isReceived"
|
v-model="travel.isReceived"
|
||||||
|
@ -303,10 +312,6 @@ const getLink = (param) => `#/travel/${entityId.value}/${param}`;
|
||||||
<VnLv :label="t('globals.reference')" :value="travel.ref" />
|
<VnLv :label="t('globals.reference')" :value="travel.ref" />
|
||||||
<VnLv label="m³" :value="travel.m3" />
|
<VnLv label="m³" :value="travel.m3" />
|
||||||
<VnLv :label="t('globals.totalEntries')" :value="travel.totalEntries" />
|
<VnLv :label="t('globals.totalEntries')" :value="travel.totalEntries" />
|
||||||
<VnLv
|
|
||||||
:label="t('travel.basicData.daysInForward')"
|
|
||||||
:value="travel?.daysInForward"
|
|
||||||
/>
|
|
||||||
</QCard>
|
</QCard>
|
||||||
<QCard class="full-width">
|
<QCard class="full-width">
|
||||||
<VnTitle :text="t('travel.summary.entries')" />
|
<VnTitle :text="t('travel.summary.entries')" />
|
||||||
|
|
|
@ -227,12 +227,14 @@ const columns = computed(() => [
|
||||||
>
|
>
|
||||||
<template #column-status="{ row }">
|
<template #column-status="{ row }">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<QIcon v-if="!!row.daysInForward" name="vn:net" color="primary">
|
<QIcon v-if="!!row.isRaid" name="vn:net" color="primary">
|
||||||
<QTooltip>
|
<QTooltip>
|
||||||
{{
|
{{
|
||||||
t('globals.raid', { daysInForward: row.daysInForward })
|
t('globals.raid', {
|
||||||
|
daysInForward: row.daysInForward,
|
||||||
|
})
|
||||||
}}</QTooltip
|
}}</QTooltip
|
||||||
>
|
>{{ console.log(row.daysInForward) }}
|
||||||
</QIcon>
|
</QIcon>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in New Issue