Merge branch 'dev' into 8673-viewEntryNotesField
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:
commit
eef88a471e
|
@ -49,3 +49,9 @@ pnpm run test:e2e:summary
|
||||||
```bash
|
```bash
|
||||||
quasar build
|
quasar build
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Serve the app for production
|
||||||
|
|
||||||
|
```bash
|
||||||
|
quasar build quasar serve dist/spa --host 0.0.0.0 --proxy=./proxy-serve.js
|
||||||
|
```
|
||||||
|
|
|
@ -15,7 +15,7 @@ const editDownloadDisabled = ref(false);
|
||||||
const $props = defineProps({
|
const $props = defineProps({
|
||||||
defaultDmsCode: {
|
defaultDmsCode: {
|
||||||
type: String,
|
type: String,
|
||||||
default: 'InvoiceIn',
|
default: 'invoiceIn',
|
||||||
},
|
},
|
||||||
disable: {
|
disable: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
|
|
|
@ -152,6 +152,10 @@ const value = computed({
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const computedSortBy = computed(() => {
|
||||||
|
return $props.sortBy || $props.optionLabel + ' ASC';
|
||||||
|
});
|
||||||
|
|
||||||
watch(options, (newValue) => {
|
watch(options, (newValue) => {
|
||||||
setOptions(newValue);
|
setOptions(newValue);
|
||||||
});
|
});
|
||||||
|
@ -186,7 +190,7 @@ function findKeyInOptions() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function setOptions(data) {
|
function setOptions(data) {
|
||||||
data = dataByOrder(data, $props.sortBy);
|
data = dataByOrder(data, computedSortBy.value);
|
||||||
myOptions.value = JSON.parse(JSON.stringify(data));
|
myOptions.value = JSON.parse(JSON.stringify(data));
|
||||||
myOptionsOriginal.value = JSON.parse(JSON.stringify(data));
|
myOptionsOriginal.value = JSON.parse(JSON.stringify(data));
|
||||||
emit('update:options', data);
|
emit('update:options', data);
|
||||||
|
@ -216,7 +220,8 @@ function filter(val, options) {
|
||||||
async function fetchFilter(val) {
|
async function fetchFilter(val) {
|
||||||
if (!$props.url) return;
|
if (!$props.url) return;
|
||||||
|
|
||||||
const { fields, include, sortBy, limit } = $props;
|
const { fields, include, limit } = $props;
|
||||||
|
const sortBy = computedSortBy.value;
|
||||||
const key =
|
const key =
|
||||||
optionFilterValue.value ??
|
optionFilterValue.value ??
|
||||||
(new RegExp(/\d/g).test(val)
|
(new RegExp(/\d/g).test(val)
|
||||||
|
|
|
@ -648,7 +648,7 @@ onMounted(() => {
|
||||||
:url="`Entries/${entityId}/getBuyList`"
|
:url="`Entries/${entityId}/getBuyList`"
|
||||||
search-url="EntryBuys"
|
search-url="EntryBuys"
|
||||||
save-url="Buys/crud"
|
save-url="Buys/crud"
|
||||||
:filter="filter"
|
:filter="editableMode ? filter : {}"
|
||||||
:disable-option="{ card: true }"
|
:disable-option="{ card: true }"
|
||||||
v-model:selected="selectedRows"
|
v-model:selected="selectedRows"
|
||||||
@on-fetch="() => footerFetchDataRef.fetch()"
|
@on-fetch="() => footerFetchDataRef.fetch()"
|
||||||
|
|
|
@ -147,7 +147,7 @@ async function deleteEntry() {
|
||||||
<template>
|
<template>
|
||||||
<EntityDescriptor
|
<EntityDescriptor
|
||||||
:url="`Entries/${entityId}`"
|
:url="`Entries/${entityId}`"
|
||||||
:user-filter="entryFilter"
|
:filter="entryFilter"
|
||||||
title="supplier.nickname"
|
title="supplier.nickname"
|
||||||
data-key="Entry"
|
data-key="Entry"
|
||||||
width="lg-width"
|
width="lg-width"
|
||||||
|
|
|
@ -116,6 +116,7 @@ const filter = computed(() => ({
|
||||||
hour: 0,
|
hour: 0,
|
||||||
minute: 0,
|
minute: 0,
|
||||||
second: 0,
|
second: 0,
|
||||||
|
milliseconds: 0,
|
||||||
}),
|
}),
|
||||||
m3: { neq: null },
|
m3: { neq: null },
|
||||||
},
|
},
|
||||||
|
|
|
@ -198,20 +198,7 @@ const getLocale = (label) => {
|
||||||
<QItemSection>
|
<QItemSection>
|
||||||
<VnSelect
|
<VnSelect
|
||||||
dense
|
dense
|
||||||
filled
|
rounded
|
||||||
:label="t('globals.params.departmentFk')"
|
|
||||||
v-model="params.department"
|
|
||||||
option-label="name"
|
|
||||||
option-value="name"
|
|
||||||
url="Departments"
|
|
||||||
/>
|
|
||||||
</QItemSection>
|
|
||||||
</QItem>
|
|
||||||
<QItem>
|
|
||||||
<QItemSection>
|
|
||||||
<VnSelect
|
|
||||||
dense
|
|
||||||
filled
|
|
||||||
:label="t('globals.params.packing')"
|
:label="t('globals.params.packing')"
|
||||||
v-model="params.packing"
|
v-model="params.packing"
|
||||||
url="ItemPackingTypes"
|
url="ItemPackingTypes"
|
||||||
|
|
|
@ -197,7 +197,11 @@ const entriesTotals = computed(() => {
|
||||||
|
|
||||||
entriesTableRows.value.forEach((row) => {
|
entriesTableRows.value.forEach((row) => {
|
||||||
for (const key in totals) {
|
for (const key in totals) {
|
||||||
totals[key] += row[key] || 0;
|
if (key === 'cc') {
|
||||||
|
totals[key] += Math.ceil(row[key] || 0);
|
||||||
|
} else {
|
||||||
|
totals[key] += row[key] || 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -80,7 +80,7 @@ defineExpose({ states });
|
||||||
/>
|
/>
|
||||||
<VnSelect
|
<VnSelect
|
||||||
:label="t('travel.warehouseOut')"
|
:label="t('travel.warehouseOut')"
|
||||||
v-model="params.warehouseOut"
|
v-model="params.warehouseOutFk"
|
||||||
@update:model-value="searchFn()"
|
@update:model-value="searchFn()"
|
||||||
url="warehouses"
|
url="warehouses"
|
||||||
:use-like="false"
|
:use-like="false"
|
||||||
|
@ -128,6 +128,7 @@ en:
|
||||||
ref: Reference
|
ref: Reference
|
||||||
agency: Agency
|
agency: Agency
|
||||||
warehouseInFk: Warehouse In
|
warehouseInFk: Warehouse In
|
||||||
|
warehouseOutFk: Warehouse Out
|
||||||
shipped: Shipped
|
shipped: Shipped
|
||||||
shipmentHour: Shipment Hour
|
shipmentHour: Shipment Hour
|
||||||
warehouseOut: Warehouse Out
|
warehouseOut: Warehouse Out
|
||||||
|
@ -141,6 +142,7 @@ es:
|
||||||
ref: Referencia
|
ref: Referencia
|
||||||
agency: Agencia
|
agency: Agencia
|
||||||
warehouseInFk: Alm.Entrada
|
warehouseInFk: Alm.Entrada
|
||||||
|
warehouseOutFk: Alm.Salida
|
||||||
shipped: F.Envío
|
shipped: F.Envío
|
||||||
shipmentHour: Hora de envío
|
shipmentHour: Hora de envío
|
||||||
warehouseOut: Alm.Salida
|
warehouseOut: Alm.Salida
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
describe('RouteAutonomous', () => {
|
describe.skip('RouteAutonomous', () => {
|
||||||
const getLinkSelector = (colField) =>
|
const getLinkSelector = (colField) =>
|
||||||
`tr:first-child > [data-col-field="${colField}"] > .no-padding > .link`;
|
`tr:first-child > [data-col-field="${colField}"] > .no-padding > .link`;
|
||||||
|
|
||||||
|
|
|
@ -39,11 +39,11 @@ describe('UserPanel', () => {
|
||||||
cy.get(userCompany).should('have.value', 'Warehouse One').click();
|
cy.get(userCompany).should('have.value', 'Warehouse One').click();
|
||||||
|
|
||||||
//Actualizo la opción
|
//Actualizo la opción
|
||||||
cy.getOption(2);
|
cy.getOption(3);
|
||||||
|
|
||||||
//Compruebo la notificación
|
//Compruebo la notificación
|
||||||
cy.get('.q-notification').should('be.visible');
|
cy.get('.q-notification').should('be.visible');
|
||||||
cy.get(userCompany).should('have.value', 'Warehouse Two');
|
cy.get(userCompany).should('have.value', 'TestingWarehouse');
|
||||||
|
|
||||||
//Restauro el valor
|
//Restauro el valor
|
||||||
cy.get(userCompany).click();
|
cy.get(userCompany).click();
|
||||||
|
|
|
@ -20,7 +20,7 @@ describe('VnLog', () => {
|
||||||
it('should filter by entity', () => {
|
it('should filter by entity', () => {
|
||||||
cy.selectOption('.q-drawer--right .q-item > .q-select', 'Claim');
|
cy.selectOption('.q-drawer--right .q-item > .q-select', 'Claim');
|
||||||
cy.get('.q-page').click();
|
cy.get('.q-page').click();
|
||||||
cy.validateContent(chips[0], 'Claim');
|
cy.validateContent(chips[0], 'Beginning');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should show claimDescriptor', () => {
|
it('should show claimDescriptor', () => {
|
||||||
|
|
Loading…
Reference in New Issue