forked from verdnatura/salix-front
Merge branch 'dev' into 6988-SummaryRefactor
This commit is contained in:
commit
a4a96a106f
|
@ -60,3 +60,6 @@ async function fetch(fetchFilter = {}) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
<template>
|
||||||
|
<template></template>
|
||||||
|
</template>
|
||||||
|
|
|
@ -173,14 +173,14 @@ function copyUserToken() {
|
||||||
<div class="col q-gutter-xs q-pa-md">
|
<div class="col q-gutter-xs q-pa-md">
|
||||||
<VnRow>
|
<VnRow>
|
||||||
<VnSelectFilter
|
<VnSelectFilter
|
||||||
:label="t('localWarehouse')"
|
:label="t('components.userPanel.localWarehouse')"
|
||||||
v-model="user.localWarehouseFk"
|
v-model="user.localWarehouseFk"
|
||||||
:options="warehousesData"
|
:options="warehousesData"
|
||||||
option-label="name"
|
option-label="name"
|
||||||
option-value="id"
|
option-value="id"
|
||||||
/>
|
/>
|
||||||
<VnSelectFilter
|
<VnSelectFilter
|
||||||
:label="t('localBank')"
|
:label="t('components.userPanel.localBank')"
|
||||||
hide-selected
|
hide-selected
|
||||||
v-model="user.localBankFk"
|
v-model="user.localBankFk"
|
||||||
:options="accountBankData"
|
:options="accountBankData"
|
||||||
|
@ -190,7 +190,7 @@ function copyUserToken() {
|
||||||
</VnRow>
|
</VnRow>
|
||||||
<VnRow>
|
<VnRow>
|
||||||
<VnSelectFilter
|
<VnSelectFilter
|
||||||
:label="t('localCompany')"
|
:label="t('components.userPanel.localCompany')"
|
||||||
hide-selected
|
hide-selected
|
||||||
v-model="user.companyFk"
|
v-model="user.companyFk"
|
||||||
:options="companiesData"
|
:options="companiesData"
|
||||||
|
@ -198,7 +198,7 @@ function copyUserToken() {
|
||||||
option-value="id"
|
option-value="id"
|
||||||
/>
|
/>
|
||||||
<VnSelectFilter
|
<VnSelectFilter
|
||||||
:label="t('userWarehouse')"
|
:label="t('components.userPanel.userWarehouse')"
|
||||||
hide-selected
|
hide-selected
|
||||||
v-model="user.warehouseFk"
|
v-model="user.warehouseFk"
|
||||||
:options="warehousesData"
|
:options="warehousesData"
|
||||||
|
@ -208,7 +208,7 @@ function copyUserToken() {
|
||||||
</VnRow>
|
</VnRow>
|
||||||
<VnRow>
|
<VnRow>
|
||||||
<VnSelectFilter
|
<VnSelectFilter
|
||||||
:label="t('userCompany')"
|
:label="t('components.userPanel.userCompany')"
|
||||||
hide-selected
|
hide-selected
|
||||||
v-model="user.companyFk"
|
v-model="user.companyFk"
|
||||||
:options="companiesData"
|
:options="companiesData"
|
||||||
|
@ -228,18 +228,3 @@ function copyUserToken() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<i18n>
|
|
||||||
en:
|
|
||||||
localWarehouse: Local warehouse
|
|
||||||
localBank: Local bank
|
|
||||||
localCompany: Local company
|
|
||||||
userWarehouse: User warehouse
|
|
||||||
userCompany: User company
|
|
||||||
es:
|
|
||||||
localWarehouse: Almacén local
|
|
||||||
localBank: Banco local
|
|
||||||
localCompany: Empresa local
|
|
||||||
userWarehouse: Almacén del usuario
|
|
||||||
userCompany: Empresa del usuario
|
|
||||||
</i18n>
|
|
||||||
|
|
|
@ -51,8 +51,8 @@ const $props = defineProps({
|
||||||
default: null,
|
default: null,
|
||||||
},
|
},
|
||||||
limit: {
|
limit: {
|
||||||
type: Number,
|
type: [Number, String],
|
||||||
default: 30,
|
default: '30',
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -151,7 +151,7 @@ watch(modelValue, (newValue) => {
|
||||||
@on-fetch="(data) => setOptions(data)"
|
@on-fetch="(data) => setOptions(data)"
|
||||||
:where="where || { [optionValue]: value }"
|
:where="where || { [optionValue]: value }"
|
||||||
:limit="limit"
|
:limit="limit"
|
||||||
:order-by="orderBy"
|
:sort-by="sortBy"
|
||||||
:fields="fields"
|
:fields="fields"
|
||||||
/>
|
/>
|
||||||
<QSelect
|
<QSelect
|
||||||
|
|
|
@ -838,6 +838,7 @@ export default {
|
||||||
workerCreate: 'New worker',
|
workerCreate: 'New worker',
|
||||||
department: 'Department',
|
department: 'Department',
|
||||||
pda: 'PDA',
|
pda: 'PDA',
|
||||||
|
log: 'Log',
|
||||||
},
|
},
|
||||||
list: {
|
list: {
|
||||||
name: 'Name',
|
name: 'Name',
|
||||||
|
@ -1204,6 +1205,11 @@ export default {
|
||||||
copyToken: 'Token copied to clipboard',
|
copyToken: 'Token copied to clipboard',
|
||||||
settings: 'Settings',
|
settings: 'Settings',
|
||||||
logOut: 'Log Out',
|
logOut: 'Log Out',
|
||||||
|
localWarehouse: 'Local warehouse',
|
||||||
|
localBank: 'Local bank',
|
||||||
|
localCompany: 'Local company',
|
||||||
|
userWarehouse: 'User warehouse',
|
||||||
|
userCompany: 'User company',
|
||||||
},
|
},
|
||||||
smartCard: {
|
smartCard: {
|
||||||
downloadFile: 'Download file',
|
downloadFile: 'Download file',
|
||||||
|
|
|
@ -838,6 +838,7 @@ export default {
|
||||||
workerCreate: 'Nuevo trabajador',
|
workerCreate: 'Nuevo trabajador',
|
||||||
department: 'Departamentos',
|
department: 'Departamentos',
|
||||||
pda: 'PDA',
|
pda: 'PDA',
|
||||||
|
log: 'Historial',
|
||||||
},
|
},
|
||||||
list: {
|
list: {
|
||||||
name: 'Nombre',
|
name: 'Nombre',
|
||||||
|
@ -1204,6 +1205,11 @@ export default {
|
||||||
copyToken: 'Token copiado al portapapeles',
|
copyToken: 'Token copiado al portapapeles',
|
||||||
settings: 'Configuración',
|
settings: 'Configuración',
|
||||||
logOut: 'Cerrar sesión',
|
logOut: 'Cerrar sesión',
|
||||||
|
localWarehouse: 'Almacén local',
|
||||||
|
localBank: 'Banco local',
|
||||||
|
localCompany: 'Empresa local',
|
||||||
|
userWarehouse: 'Almacén del usuario',
|
||||||
|
userCompany: 'Empresa del usuario',
|
||||||
},
|
},
|
||||||
smartCard: {
|
smartCard: {
|
||||||
downloadFile: 'Descargar archivo',
|
downloadFile: 'Descargar archivo',
|
||||||
|
|
|
@ -204,7 +204,7 @@ function navigateToRouteSummary(event, row) {
|
||||||
<QPage class="column items-center">
|
<QPage class="column items-center">
|
||||||
<div class="route-list">
|
<div class="route-list">
|
||||||
<div class="q-pa-md">
|
<div class="q-pa-md">
|
||||||
<QCard class="vn-one q-py-sm q-px-lg">
|
<QCard class="vn-one q-py-sm q-px-lg flex justify-between">
|
||||||
<VnLv class="flex">
|
<VnLv class="flex">
|
||||||
<template #label>
|
<template #label>
|
||||||
<span class="text-h6">{{ t('Total') }}</span>
|
<span class="text-h6">{{ t('Total') }}</span>
|
||||||
|
@ -213,6 +213,16 @@ function navigateToRouteSummary(event, row) {
|
||||||
<span class="text-h6 q-ml-md">{{ toCurrency(total) }}</span>
|
<span class="text-h6 q-ml-md">{{ toCurrency(total) }}</span>
|
||||||
</template>
|
</template>
|
||||||
</VnLv>
|
</VnLv>
|
||||||
|
<QBtn
|
||||||
|
icon="vn:invoice-in-create"
|
||||||
|
color="primary"
|
||||||
|
:disable="!selectedRows?.length"
|
||||||
|
@click="openDmsUploadDialog"
|
||||||
|
>
|
||||||
|
<QTooltip>
|
||||||
|
{{ t('Create invoiceIn') }}
|
||||||
|
</QTooltip>
|
||||||
|
</QBtn>
|
||||||
</QCard>
|
</QCard>
|
||||||
</div>
|
</div>
|
||||||
<VnPaginate
|
<VnPaginate
|
||||||
|
@ -289,18 +299,6 @@ function navigateToRouteSummary(event, row) {
|
||||||
</template>
|
</template>
|
||||||
</VnPaginate>
|
</VnPaginate>
|
||||||
</div>
|
</div>
|
||||||
<QPageSticky :offset="[20, 20]" v-if="selectedRows?.length">
|
|
||||||
<QBtn
|
|
||||||
fab
|
|
||||||
icon="vn:invoice-in-create"
|
|
||||||
color="primary"
|
|
||||||
@click="openDmsUploadDialog"
|
|
||||||
>
|
|
||||||
<QTooltip>
|
|
||||||
{{ t('Create invoiceIn') }}
|
|
||||||
</QTooltip>
|
|
||||||
</QBtn>
|
|
||||||
</QPageSticky>
|
|
||||||
</QPage>
|
</QPage>
|
||||||
<QDialog v-model="dmsDialog.show">
|
<QDialog v-model="dmsDialog.show">
|
||||||
<VnDms
|
<VnDms
|
||||||
|
|
|
@ -60,15 +60,6 @@ const decrement = (paramsObj, key) => {
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template #body="{ params, searchFn }">
|
<template #body="{ params, searchFn }">
|
||||||
<QItem>
|
|
||||||
<QItemSection>
|
|
||||||
<VnInput
|
|
||||||
v-model="params.search"
|
|
||||||
:label="t('params.search')"
|
|
||||||
is-outlined
|
|
||||||
/>
|
|
||||||
</QItemSection>
|
|
||||||
</QItem>
|
|
||||||
<QItem>
|
<QItem>
|
||||||
<QItemSection>
|
<QItemSection>
|
||||||
<VnSelectFilter
|
<VnSelectFilter
|
||||||
|
|
|
@ -8,6 +8,7 @@ import VnLv from 'src/components/ui/VnLv.vue';
|
||||||
import TravelSummary from './Card/TravelSummary.vue';
|
import TravelSummary from './Card/TravelSummary.vue';
|
||||||
import TravelFilter from './TravelFilter.vue';
|
import TravelFilter from './TravelFilter.vue';
|
||||||
import FetchData from 'components/FetchData.vue';
|
import FetchData from 'components/FetchData.vue';
|
||||||
|
import VnSearchbar from 'src/components/ui/VnSearchbar.vue';
|
||||||
|
|
||||||
import { useStateStore } from 'stores/useStateStore';
|
import { useStateStore } from 'stores/useStateStore';
|
||||||
import { toDate } from 'src/filters/index';
|
import { toDate } from 'src/filters/index';
|
||||||
|
@ -59,6 +60,15 @@ onMounted(async () => {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
<template v-if="stateStore.isHeaderMounted()">
|
||||||
|
<Teleport to="#searchbar">
|
||||||
|
<VnSearchbar
|
||||||
|
data-key="TravelList"
|
||||||
|
:limit="20"
|
||||||
|
:label="t('searchByIdOrReference')"
|
||||||
|
/>
|
||||||
|
</Teleport>
|
||||||
|
</template>
|
||||||
<FetchData
|
<FetchData
|
||||||
url="Warehouses"
|
url="Warehouses"
|
||||||
:filter="{ fields: ['id', 'name'] }"
|
:filter="{ fields: ['id', 'name'] }"
|
||||||
|
@ -172,7 +182,9 @@ onMounted(async () => {
|
||||||
<i18n>
|
<i18n>
|
||||||
en:
|
en:
|
||||||
addEntry: Add entry
|
addEntry: Add entry
|
||||||
|
searchByIdOrReference: Search by ID or reference
|
||||||
|
|
||||||
es:
|
es:
|
||||||
addEntry: Añadir entrada
|
addEntry: Añadir entrada
|
||||||
|
searchByIdOrReference: Buscar por ID o por referencia
|
||||||
</i18n>
|
</i18n>
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
<script setup>
|
||||||
|
import VnLog from 'src/components/common/VnLog.vue';
|
||||||
|
</script>
|
||||||
|
<template>
|
||||||
|
<VnLog model="Worker" url="/WorkerLogs" />
|
||||||
|
</template>
|
|
@ -12,7 +12,7 @@ export default {
|
||||||
redirect: { name: 'WorkerMain' },
|
redirect: { name: 'WorkerMain' },
|
||||||
menus: {
|
menus: {
|
||||||
main: ['WorkerList', 'WorkerDepartment'],
|
main: ['WorkerList', 'WorkerDepartment'],
|
||||||
card: ['WorkerNotificationsManager', 'WorkerPda'],
|
card: ['WorkerNotificationsManager', 'WorkerPda', 'WorkerLog'],
|
||||||
departmentCard: ['BasicData'],
|
departmentCard: ['BasicData'],
|
||||||
},
|
},
|
||||||
children: [
|
children: [
|
||||||
|
@ -85,6 +85,15 @@ export default {
|
||||||
},
|
},
|
||||||
component: () => import('src/pages/Worker/Card/WorkerPda.vue'),
|
component: () => import('src/pages/Worker/Card/WorkerPda.vue'),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'WorkerLog',
|
||||||
|
path: 'log',
|
||||||
|
meta: {
|
||||||
|
title: 'log',
|
||||||
|
icon: 'vn:History',
|
||||||
|
},
|
||||||
|
component: () => import('src/pages/Worker/Card/WorkerLog.vue'),
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in New Issue