#5938 Fix & Fine Advance Tickets #690

Merged
jsegarra merged 5 commits from 5938_fine_ticketAdvance into dev 2024-09-11 06:30:12 +00:00
5 changed files with 28 additions and 24 deletions

View File

@ -635,6 +635,7 @@ onMounted(async () => {
<template #body-cell-state="{ row }"> <template #body-cell-state="{ row }">
<QTd> <QTd>
<QBadge <QBadge
v-if="row.state"
text-color="black" text-color="black"
:color="row.classColor" :color="row.classColor"
class="q-ma-none" class="q-ma-none"
@ -642,6 +643,7 @@ onMounted(async () => {
> >
{{ row.state }} {{ row.state }}
</QBadge> </QBadge>
<span v-else> {{ dashIfEmpty(row.state) }}</span>
</QTd> </QTd>
</template> </template>
<template #body-cell-import="{ row }"> <template #body-cell-import="{ row }">

View File

@ -55,7 +55,7 @@ onMounted(async () => await getItemPackingTypes());
:data-key="props.dataKey" :data-key="props.dataKey"
:search-button="true" :search-button="true"
:hidden-tags="['search']" :hidden-tags="['search']"
:un-removable-params="['warehouseFk', 'dateFuture', 'dateToAdvance']" :unremovable-params="['warehouseFk', 'dateFuture', 'dateToAdvance']"
> >
<template #tags="{ tag, formatFn }"> <template #tags="{ tag, formatFn }">
<div class="q-gutter-x-xs"> <div class="q-gutter-x-xs">
@ -119,10 +119,9 @@ onMounted(async () => await getItemPackingTypes());
<QItem> <QItem>
<QItemSection> <QItemSection>
<QCheckbox <QCheckbox
:label="t('params.itemPackingTypes')" :label="t('params.isFullMovable')"
v-model="params.itemPackingTypes" v-model="params.isFullMovable"
toggle-indeterminate toggle-indeterminate
:false-value="null"
@update:model-value="searchFn()" @update:model-value="searchFn()"
/> />
</QItemSection> </QItemSection>
@ -155,7 +154,7 @@ en:
dateToAdvance: Destination date dateToAdvance: Destination date
futureIpt: Origin IPT futureIpt: Origin IPT
ipt: Destination IPT ipt: Destination IPT
itemPackingTypes: 100% movable isFullMovable: 100% movable
warehouseFk: Warehouse warehouseFk: Warehouse
es: es:
Horizontal: Horizontal Horizontal: Horizontal
@ -166,6 +165,6 @@ es:
dateToAdvance: Fecha destino dateToAdvance: Fecha destino
futureIpt: IPT Origen futureIpt: IPT Origen
ipt: IPT destino ipt: IPT destino
itemPackingTypes: 100% movible isFullMovable: 100% movible
warehouseFk: Almacén warehouseFk: Almacén
</i18n> </i18n>

View File

@ -49,8 +49,8 @@ const exprBuilder = (param, value) => {
}; };
const userParams = reactive({ const userParams = reactive({
futureDated: Date.vnNew().toISOString(), futureScopeDays: Date.vnNew().toISOString(),
originDated: Date.vnNew().toISOString(), originScopeDays: Date.vnNew().toISOString(),
warehouseFk: user.value.warehouseFk, warehouseFk: user.value.warehouseFk,
}); });
@ -62,8 +62,8 @@ const arrayData = useArrayData('FutureTickets', {
const { store } = arrayData; const { store } = arrayData;
const params = reactive({ const params = reactive({
futureDated: Date.vnNew(), futureScopeDays: Date.vnNew(),
originDated: Date.vnNew(), originScopeDays: Date.vnNew(),
warehouseFk: user.value.warehouseFk, warehouseFk: user.value.warehouseFk,
}); });
@ -172,7 +172,7 @@ const ticketColumns = computed(() => [
label: t('futureTickets.availableLines'), label: t('futureTickets.availableLines'),
name: 'lines', name: 'lines',
field: 'lines', field: 'lines',
align: 'left', align: 'center',
sortable: true, sortable: true,
columnFilter: { columnFilter: {
component: VnInput, component: VnInput,
@ -234,7 +234,7 @@ const ticketColumns = computed(() => [
{ {
label: t('futureTickets.futureState'), label: t('futureTickets.futureState'),
name: 'futureState', name: 'futureState',
align: 'left', align: 'right',
sortable: true, sortable: true,
columnFilter: null, columnFilter: null,
format: (val) => dashIfEmpty(val), format: (val) => dashIfEmpty(val),
@ -458,7 +458,7 @@ onMounted(async () => {
</QTd> </QTd>
</template> </template>
<template #body-cell-shipped="{ row }"> <template #body-cell-shipped="{ row }">
<QTd> <QTd class="shipped">
<QBadge <QBadge
text-color="black" text-color="black"
:color="getDateQBadgeColor(row.shipped)" :color="getDateQBadgeColor(row.shipped)"
@ -505,7 +505,7 @@ onMounted(async () => {
</QTd> </QTd>
</template> </template>
<template #body-cell-futureShipped="{ row }"> <template #body-cell-futureShipped="{ row }">
<QTd> <QTd class="shipped">
<QBadge <QBadge
text-color="black" text-color="black"
:color="getDateQBadgeColor(row.futureShipped)" :color="getDateQBadgeColor(row.futureShipped)"
@ -532,6 +532,9 @@ onMounted(async () => {
</template> </template>
<style scoped lang="scss"> <style scoped lang="scss">
.shipped {
min-width: 132px;
}
.vertical-separator { .vertical-separator {
border-left: 4px solid white !important; border-left: 4px solid white !important;
} }

View File

@ -68,7 +68,7 @@ onMounted(async () => {
<VnFilterPanel <VnFilterPanel
:data-key="props.dataKey" :data-key="props.dataKey"
:hidden-tags="['search']" :hidden-tags="['search']"
:un-removable-params="['warehouseFk', 'originDated', 'futureDated']" :un-removable-params="['warehouseFk', 'originScopeDays ', 'futureScopeDays']"
> >
<template #tags="{ tag, formatFn }"> <template #tags="{ tag, formatFn }">
<div class="q-gutter-x-xs"> <div class="q-gutter-x-xs">
@ -80,8 +80,8 @@ onMounted(async () => {
<QItem class="q-my-sm"> <QItem class="q-my-sm">
<QItemSection> <QItemSection>
<VnInputDate <VnInputDate
v-model="params.originDated" v-model="params.originScopeDays"
:label="t('params.originDated')" :label="t('params.originScopeDays')"
is-outlined is-outlined
/> />
</QItemSection> </QItemSection>
@ -89,8 +89,8 @@ onMounted(async () => {
<QItem class="q-my-sm"> <QItem class="q-my-sm">
<QItemSection> <QItemSection>
<VnInputDate <VnInputDate
v-model="params.futureDated" v-model="params.futureScopeDays"
:label="t('params.futureDated')" :label="t('params.futureScopeDays')"
is-outlined is-outlined
/> />
</QItemSection> </QItemSection>
@ -214,8 +214,8 @@ onMounted(async () => {
en: en:
iptInfo: IPT iptInfo: IPT
params: params:
originDated: Origin date originScopeDays: Origin date
futureDated: Destination date futureScopeDays: Destination date
futureIpt: Destination IPT futureIpt: Destination IPT
ipt: Origin IPT ipt: Origin IPT
warehouseFk: Warehouse warehouseFk: Warehouse
@ -229,8 +229,8 @@ es:
Vertical: Vertical Vertical: Vertical
iptInfo: Encajado iptInfo: Encajado
params: params:
originDated: Fecha origen originScopeDays: Fecha origen
futureDated: Fecha destino futureScopeDays: Fecha destino
futureIpt: IPT destino futureIpt: IPT destino
ipt: IPT Origen ipt: IPT Origen
warehouseFk: Almacén warehouseFk: Almacén

View File

@ -105,7 +105,7 @@ advanceTickets:
futureLines: Líneas futureLines: Líneas
futureImport: Importe futureImport: Importe
advanceTickets: Adelantar tickets con negativos advanceTickets: Adelantar tickets con negativos
advanceTicketTitle: Advance tickets advanceTicketTitle: Adelantar tickets
advanceTitleSubtitle: '¿Desea adelantar {selectedTickets} tickets?' advanceTitleSubtitle: '¿Desea adelantar {selectedTickets} tickets?'
noDeliveryZone: No hay una zona de reparto disponible para la fecha de envío seleccionada noDeliveryZone: No hay una zona de reparto disponible para la fecha de envío seleccionada
moveTicketSuccess: 'Tickets movidos correctamente {ticketsNumber}' moveTicketSuccess: 'Tickets movidos correctamente {ticketsNumber}'