move QList element and classes inside VnFilterPanel
This commit is contained in:
parent
533435c7ba
commit
def175bee2
|
@ -38,7 +38,6 @@ const workers = ref();
|
||||||
minimal
|
minimal
|
||||||
>
|
>
|
||||||
</QDate>
|
</QDate>
|
||||||
<QList dense>
|
|
||||||
<QSeparator />
|
<QSeparator />
|
||||||
<QItem>
|
<QItem>
|
||||||
<QItemSection v-if="!workers">
|
<QItemSection v-if="!workers">
|
||||||
|
@ -59,7 +58,6 @@ const workers = ref();
|
||||||
/>
|
/>
|
||||||
</QItemSection>
|
</QItemSection>
|
||||||
</QItem>
|
</QItem>
|
||||||
</QList>
|
|
||||||
</template>
|
</template>
|
||||||
</VnFilterPanel>
|
</VnFilterPanel>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -116,3 +116,9 @@ watch(options, (newValue) => {
|
||||||
</template>
|
</template>
|
||||||
</QSelect>
|
</QSelect>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<style scoped lang="scss">
|
||||||
|
.q-field--outlined {
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
|
@ -216,7 +216,9 @@ function formatValue(value) {
|
||||||
</QItem>
|
</QItem>
|
||||||
<QSeparator />
|
<QSeparator />
|
||||||
</QList>
|
</QList>
|
||||||
|
<QList dense class="list q-gutter-y-sm q-mt-sm">
|
||||||
<slot name="body" :params="userParams" :search-fn="search"></slot>
|
<slot name="body" :params="userParams" :search-fn="search"></slot>
|
||||||
|
</QList>
|
||||||
<template v-if="props.searchButton">
|
<template v-if="props.searchButton">
|
||||||
<QItem>
|
<QItem>
|
||||||
<QItemSection class="q-py-sm">
|
<QItemSection class="q-py-sm">
|
||||||
|
@ -242,6 +244,12 @@ function formatValue(value) {
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<style scoped lang="scss">
|
||||||
|
.list {
|
||||||
|
width: 256px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
<i18n>
|
<i18n>
|
||||||
es:
|
es:
|
||||||
No filters applied: No se han aplicado filtros
|
No filters applied: No se han aplicado filtros
|
||||||
|
|
|
@ -36,7 +36,6 @@ const states = ref();
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template #body="{ params, searchFn }">
|
<template #body="{ params, searchFn }">
|
||||||
<QList dense class="list">
|
|
||||||
<QItem class="q-my-sm">
|
<QItem class="q-my-sm">
|
||||||
<QItemSection>
|
<QItemSection>
|
||||||
<VnInput
|
<VnInput
|
||||||
|
@ -178,20 +177,10 @@ const states = ref();
|
||||||
</QItemSection>
|
</QItemSection>
|
||||||
</QItem>
|
</QItem>
|
||||||
</QExpansionItem>
|
</QExpansionItem>
|
||||||
</QList>
|
|
||||||
</template>
|
</template>
|
||||||
</VnFilterPanel>
|
</VnFilterPanel>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
.list {
|
|
||||||
width: 256px;
|
|
||||||
}
|
|
||||||
.list * {
|
|
||||||
max-width: 100%;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<i18n>
|
<i18n>
|
||||||
en:
|
en:
|
||||||
params:
|
params:
|
||||||
|
|
|
@ -37,7 +37,6 @@ const zones = ref();
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template #body="{ params, searchFn }">
|
<template #body="{ params, searchFn }">
|
||||||
<QList dense class="list">
|
|
||||||
<QItem class="q-my-sm">
|
<QItem class="q-my-sm">
|
||||||
<QItemSection>
|
<QItemSection>
|
||||||
<VnInput :label="t('FI')" v-model="params.fi" is-outlined>
|
<VnInput :label="t('FI')" v-model="params.fi" is-outlined>
|
||||||
|
@ -115,11 +114,7 @@ const zones = ref();
|
||||||
<QExpansionItem :label="t('More options')" expand-separator>
|
<QExpansionItem :label="t('More options')" expand-separator>
|
||||||
<QItem>
|
<QItem>
|
||||||
<QItemSection>
|
<QItemSection>
|
||||||
<VnInput
|
<VnInput :label="t('Phone')" v-model="params.phone" is-outlined>
|
||||||
:label="t('Phone')"
|
|
||||||
v-model="params.phone"
|
|
||||||
is-outlined
|
|
||||||
>
|
|
||||||
<template #prepend>
|
<template #prepend>
|
||||||
<QIcon name="phone" size="xs" />
|
<QIcon name="phone" size="xs" />
|
||||||
</template>
|
</template>
|
||||||
|
@ -128,11 +123,7 @@ const zones = ref();
|
||||||
</QItem>
|
</QItem>
|
||||||
<QItem>
|
<QItem>
|
||||||
<QItemSection>
|
<QItemSection>
|
||||||
<VnInput
|
<VnInput :label="t('Email')" v-model="params.email" is-outlined>
|
||||||
:label="t('Email')"
|
|
||||||
v-model="params.email"
|
|
||||||
is-outlined
|
|
||||||
>
|
|
||||||
<template #prepend>
|
<template #prepend>
|
||||||
<QIcon name="email" size="sm" />
|
<QIcon name="email" size="sm" />
|
||||||
</template>
|
</template>
|
||||||
|
@ -170,20 +161,10 @@ const zones = ref();
|
||||||
</QItemSection>
|
</QItemSection>
|
||||||
</QItem>
|
</QItem>
|
||||||
</QExpansionItem>
|
</QExpansionItem>
|
||||||
</QList>
|
|
||||||
</template>
|
</template>
|
||||||
</VnFilterPanel>
|
</VnFilterPanel>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
.list {
|
|
||||||
width: 256px;
|
|
||||||
}
|
|
||||||
.list * {
|
|
||||||
max-width: 100%;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<i18n>
|
<i18n>
|
||||||
en:
|
en:
|
||||||
params:
|
params:
|
||||||
|
|
|
@ -46,7 +46,6 @@ const authors = ref();
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template #body="{ params }">
|
<template #body="{ params }">
|
||||||
<QList dense class="list">
|
|
||||||
<QItem class="q-mb-sm q-mt-sm">
|
<QItem class="q-mb-sm q-mt-sm">
|
||||||
<QItemSection v-if="clients">
|
<QItemSection v-if="clients">
|
||||||
<VnSelectFilter
|
<VnSelectFilter
|
||||||
|
@ -161,11 +160,7 @@ const authors = ref();
|
||||||
|
|
||||||
<QItem class="q-mb-sm">
|
<QItem class="q-mb-sm">
|
||||||
<QItemSection>
|
<QItemSection>
|
||||||
<VnInput
|
<VnInput :label="t('L. O. Date')" is-outlined v-model="params.date" />
|
||||||
:label="t('L. O. Date')"
|
|
||||||
is-outlined
|
|
||||||
v-model="params.date"
|
|
||||||
/>
|
|
||||||
</QItemSection>
|
</QItemSection>
|
||||||
</QItem>
|
</QItem>
|
||||||
|
|
||||||
|
@ -189,20 +184,10 @@ const authors = ref();
|
||||||
</QItemSection>
|
</QItemSection>
|
||||||
</QItem>
|
</QItem>
|
||||||
<QSeparator />
|
<QSeparator />
|
||||||
</QList>
|
|
||||||
</template>
|
</template>
|
||||||
</VnFilterPanel>
|
</VnFilterPanel>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
.list {
|
|
||||||
width: 256px;
|
|
||||||
}
|
|
||||||
.list * {
|
|
||||||
max-width: 100%;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<i18n>
|
<i18n>
|
||||||
en:
|
en:
|
||||||
params:
|
params:
|
||||||
|
|
|
@ -145,7 +145,6 @@ const shouldRenderColumn = (colName) => {
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template #body="{ params, searchFn }">
|
<template #body="{ params, searchFn }">
|
||||||
<QList dense class="list q-gutter-y-sm q-mt-sm">
|
|
||||||
<QItem v-if="shouldRenderColumn('id')">
|
<QItem v-if="shouldRenderColumn('id')">
|
||||||
<QItemSection>
|
<QItemSection>
|
||||||
<VnInput
|
<VnInput
|
||||||
|
@ -204,9 +203,7 @@ const shouldRenderColumn = (colName) => {
|
||||||
<QItemSection v-if="workers">
|
<QItemSection v-if="workers">
|
||||||
<VnSelectFilter
|
<VnSelectFilter
|
||||||
:label="
|
:label="
|
||||||
t(
|
t('customer.extendedList.tableVisibleColumns.salesPersonFk')
|
||||||
'customer.extendedList.tableVisibleColumns.salesPersonFk'
|
|
||||||
)
|
|
||||||
"
|
"
|
||||||
v-model="params.salesPersonFk"
|
v-model="params.salesPersonFk"
|
||||||
@update:model-value="searchFn()"
|
@update:model-value="searchFn()"
|
||||||
|
@ -237,9 +234,7 @@ const shouldRenderColumn = (colName) => {
|
||||||
<QItemSection>
|
<QItemSection>
|
||||||
<VnInput
|
<VnInput
|
||||||
:label="
|
:label="
|
||||||
t(
|
t('customer.extendedList.tableVisibleColumns.creditInsurance')
|
||||||
'customer.extendedList.tableVisibleColumns.creditInsurance'
|
|
||||||
)
|
|
||||||
"
|
"
|
||||||
v-model="params.creditInsurance"
|
v-model="params.creditInsurance"
|
||||||
is-outlined
|
is-outlined
|
||||||
|
@ -276,9 +271,7 @@ const shouldRenderColumn = (colName) => {
|
||||||
<QItem v-if="shouldRenderColumn('countryFk')">
|
<QItem v-if="shouldRenderColumn('countryFk')">
|
||||||
<QItemSection>
|
<QItemSection>
|
||||||
<VnSelectFilter
|
<VnSelectFilter
|
||||||
:label="
|
:label="t('customer.extendedList.tableVisibleColumns.countryFk')"
|
||||||
t('customer.extendedList.tableVisibleColumns.countryFk')
|
|
||||||
"
|
|
||||||
v-model="params.countryFk"
|
v-model="params.countryFk"
|
||||||
@update:model-value="searchFn()"
|
@update:model-value="searchFn()"
|
||||||
:options="countriesOptions"
|
:options="countriesOptions"
|
||||||
|
@ -295,9 +288,7 @@ const shouldRenderColumn = (colName) => {
|
||||||
<QItem v-if="shouldRenderColumn('provinceFk')">
|
<QItem v-if="shouldRenderColumn('provinceFk')">
|
||||||
<QItemSection>
|
<QItemSection>
|
||||||
<VnSelectFilter
|
<VnSelectFilter
|
||||||
:label="
|
:label="t('customer.extendedList.tableVisibleColumns.provinceFk')"
|
||||||
t('customer.extendedList.tableVisibleColumns.provinceFk')
|
|
||||||
"
|
|
||||||
v-model="params.provinceFk"
|
v-model="params.provinceFk"
|
||||||
@update:model-value="searchFn()"
|
@update:model-value="searchFn()"
|
||||||
:options="provincesOptions"
|
:options="provincesOptions"
|
||||||
|
@ -323,9 +314,7 @@ const shouldRenderColumn = (colName) => {
|
||||||
<QItem v-if="shouldRenderColumn('postcode')">
|
<QItem v-if="shouldRenderColumn('postcode')">
|
||||||
<QItemSection>
|
<QItemSection>
|
||||||
<VnInput
|
<VnInput
|
||||||
:label="
|
:label="t('customer.extendedList.tableVisibleColumns.postcode')"
|
||||||
t('customer.extendedList.tableVisibleColumns.postcode')
|
|
||||||
"
|
|
||||||
v-model="params.postcode"
|
v-model="params.postcode"
|
||||||
is-outlined
|
is-outlined
|
||||||
/>
|
/>
|
||||||
|
@ -345,9 +334,7 @@ const shouldRenderColumn = (colName) => {
|
||||||
<QItemSection>
|
<QItemSection>
|
||||||
<VnInputDate
|
<VnInputDate
|
||||||
v-model="params.created"
|
v-model="params.created"
|
||||||
:label="
|
:label="t('customer.extendedList.tableVisibleColumns.created')"
|
||||||
t('customer.extendedList.tableVisibleColumns.created')
|
|
||||||
"
|
|
||||||
@update:model-value="searchFn()"
|
@update:model-value="searchFn()"
|
||||||
is-outlined
|
is-outlined
|
||||||
/>
|
/>
|
||||||
|
@ -357,9 +344,7 @@ const shouldRenderColumn = (colName) => {
|
||||||
<QItemSection>
|
<QItemSection>
|
||||||
<VnSelectFilter
|
<VnSelectFilter
|
||||||
:label="
|
:label="
|
||||||
t(
|
t('customer.extendedList.tableVisibleColumns.businessTypeFk')
|
||||||
'customer.extendedList.tableVisibleColumns.businessTypeFk'
|
|
||||||
)
|
|
||||||
"
|
"
|
||||||
v-model="params.businessTypeFk"
|
v-model="params.businessTypeFk"
|
||||||
:options="businessTypesOptions"
|
:options="businessTypesOptions"
|
||||||
|
@ -397,9 +382,7 @@ const shouldRenderColumn = (colName) => {
|
||||||
<QItemSection>
|
<QItemSection>
|
||||||
<VnSelectFilter
|
<VnSelectFilter
|
||||||
:label="
|
:label="
|
||||||
t(
|
t('customer.extendedList.tableVisibleColumns.sageTaxTypeFk')
|
||||||
'customer.extendedList.tableVisibleColumns.sageTaxTypeFk'
|
|
||||||
)
|
|
||||||
"
|
"
|
||||||
v-model="params.sageTaxTypeFk"
|
v-model="params.sageTaxTypeFk"
|
||||||
@update:model-value="searchFn()"
|
@update:model-value="searchFn()"
|
||||||
|
@ -435,16 +418,12 @@ const shouldRenderColumn = (colName) => {
|
||||||
/>
|
/>
|
||||||
</QItemSection>
|
</QItemSection>
|
||||||
</QItem>
|
</QItem>
|
||||||
<QItem
|
<QItem v-if="shouldRenderColumn('isActive') || shouldRenderColumn('isVies')">
|
||||||
v-if="shouldRenderColumn('isActive') || shouldRenderColumn('isVies')"
|
|
||||||
>
|
|
||||||
<QItemSection v-if="shouldRenderColumn('isActive')">
|
<QItemSection v-if="shouldRenderColumn('isActive')">
|
||||||
<QCheckbox
|
<QCheckbox
|
||||||
v-model="params.isActive"
|
v-model="params.isActive"
|
||||||
@update:model-value="searchFn()"
|
@update:model-value="searchFn()"
|
||||||
:label="
|
:label="t('customer.extendedList.tableVisibleColumns.isActive')"
|
||||||
t('customer.extendedList.tableVisibleColumns.isActive')
|
|
||||||
"
|
|
||||||
toggle-indeterminate
|
toggle-indeterminate
|
||||||
:false-value="undefined"
|
:false-value="undefined"
|
||||||
/>
|
/>
|
||||||
|
@ -483,9 +462,7 @@ const shouldRenderColumn = (colName) => {
|
||||||
v-model="params.isEqualizated"
|
v-model="params.isEqualizated"
|
||||||
@update:model-value="searchFn()"
|
@update:model-value="searchFn()"
|
||||||
:label="
|
:label="
|
||||||
t(
|
t('customer.extendedList.tableVisibleColumns.isEqualizated')
|
||||||
'customer.extendedList.tableVisibleColumns.isEqualizated'
|
|
||||||
)
|
|
||||||
"
|
"
|
||||||
toggle-indeterminate
|
toggle-indeterminate
|
||||||
:false-value="undefined"
|
:false-value="undefined"
|
||||||
|
@ -494,17 +471,14 @@ const shouldRenderColumn = (colName) => {
|
||||||
</QItem>
|
</QItem>
|
||||||
<QItem
|
<QItem
|
||||||
v-if="
|
v-if="
|
||||||
shouldRenderColumn('hasToInvoice') ||
|
shouldRenderColumn('hasToInvoice') || shouldRenderColumn('isFreezed')
|
||||||
shouldRenderColumn('isFreezed')
|
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<QItemSection v-if="shouldRenderColumn('isFreezed')">
|
<QItemSection v-if="shouldRenderColumn('isFreezed')">
|
||||||
<QCheckbox
|
<QCheckbox
|
||||||
v-model="params.isFreezed"
|
v-model="params.isFreezed"
|
||||||
@update:model-value="searchFn()"
|
@update:model-value="searchFn()"
|
||||||
:label="
|
:label="t('customer.extendedList.tableVisibleColumns.isFreezed')"
|
||||||
t('customer.extendedList.tableVisibleColumns.isFreezed')
|
|
||||||
"
|
|
||||||
toggle-indeterminate
|
toggle-indeterminate
|
||||||
:false-value="undefined"
|
:false-value="undefined"
|
||||||
/>
|
/>
|
||||||
|
@ -514,9 +488,7 @@ const shouldRenderColumn = (colName) => {
|
||||||
v-model="params.hasToInvoice"
|
v-model="params.hasToInvoice"
|
||||||
@update:model-value="searchFn()"
|
@update:model-value="searchFn()"
|
||||||
:label="
|
:label="
|
||||||
t(
|
t('customer.extendedList.tableVisibleColumns.hasToInvoice')
|
||||||
'customer.extendedList.tableVisibleColumns.hasToInvoice'
|
|
||||||
)
|
|
||||||
"
|
"
|
||||||
toggle-indeterminate
|
toggle-indeterminate
|
||||||
:false-value="undefined"
|
:false-value="undefined"
|
||||||
|
@ -547,9 +519,7 @@ const shouldRenderColumn = (colName) => {
|
||||||
v-model="params.isToBeMailed"
|
v-model="params.isToBeMailed"
|
||||||
@update:model-value="searchFn()"
|
@update:model-value="searchFn()"
|
||||||
:label="
|
:label="
|
||||||
t(
|
t('customer.extendedList.tableVisibleColumns.isToBeMailed')
|
||||||
'customer.extendedList.tableVisibleColumns.isToBeMailed'
|
|
||||||
)
|
|
||||||
"
|
"
|
||||||
toggle-indeterminate
|
toggle-indeterminate
|
||||||
:false-value="undefined"
|
:false-value="undefined"
|
||||||
|
@ -557,9 +527,7 @@ const shouldRenderColumn = (colName) => {
|
||||||
</QItemSection>
|
</QItemSection>
|
||||||
</QItem>
|
</QItem>
|
||||||
<QItem
|
<QItem
|
||||||
v-if="
|
v-if="shouldRenderColumn('hasLcr') || shouldRenderColumn('hasCoreVnl')"
|
||||||
shouldRenderColumn('hasLcr') || shouldRenderColumn('hasCoreVnl')
|
|
||||||
"
|
|
||||||
>
|
>
|
||||||
<QItemSection v-if="shouldRenderColumn('hasLcr')">
|
<QItemSection v-if="shouldRenderColumn('hasLcr')">
|
||||||
<QCheckbox
|
<QCheckbox
|
||||||
|
@ -574,9 +542,7 @@ const shouldRenderColumn = (colName) => {
|
||||||
<QCheckbox
|
<QCheckbox
|
||||||
v-model="params.hasCoreVnl"
|
v-model="params.hasCoreVnl"
|
||||||
@update:model-value="searchFn()"
|
@update:model-value="searchFn()"
|
||||||
:label="
|
:label="t('customer.extendedList.tableVisibleColumns.hasCoreVnl')"
|
||||||
t('customer.extendedList.tableVisibleColumns.hasCoreVnl')
|
|
||||||
"
|
|
||||||
toggle-indeterminate
|
toggle-indeterminate
|
||||||
:false-value="undefined"
|
:false-value="undefined"
|
||||||
/>
|
/>
|
||||||
|
@ -587,9 +553,7 @@ const shouldRenderColumn = (colName) => {
|
||||||
<QCheckbox
|
<QCheckbox
|
||||||
v-model="params.hasSepaVnl"
|
v-model="params.hasSepaVnl"
|
||||||
@update:model-value="searchFn()"
|
@update:model-value="searchFn()"
|
||||||
:label="
|
:label="t('customer.extendedList.tableVisibleColumns.hasSepaVnl')"
|
||||||
t('customer.extendedList.tableVisibleColumns.hasSepaVnl')
|
|
||||||
"
|
|
||||||
toggle-indeterminate
|
toggle-indeterminate
|
||||||
:false-value="undefined"
|
:false-value="undefined"
|
||||||
/>
|
/>
|
||||||
|
@ -597,20 +561,10 @@ const shouldRenderColumn = (colName) => {
|
||||||
</QItem>
|
</QItem>
|
||||||
|
|
||||||
<QSeparator />
|
<QSeparator />
|
||||||
</QList>
|
|
||||||
</template>
|
</template>
|
||||||
</VnFilterPanel>
|
</VnFilterPanel>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
.list {
|
|
||||||
width: 256px;
|
|
||||||
}
|
|
||||||
.list * {
|
|
||||||
max-width: 100%;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<i18n>
|
<i18n>
|
||||||
es:
|
es:
|
||||||
Social name: Razón social
|
Social name: Razón social
|
||||||
|
|
|
@ -36,7 +36,6 @@ const clients = ref();
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template #body="{ params, searchFn }">
|
<template #body="{ params, searchFn }">
|
||||||
<QList dense class="list">
|
|
||||||
<QItem class="q-mb-sm q-mt-sm">
|
<QItem class="q-mb-sm q-mt-sm">
|
||||||
<QItemSection>
|
<QItemSection>
|
||||||
<VnInput
|
<VnInput
|
||||||
|
@ -107,20 +106,10 @@ const clients = ref();
|
||||||
</QItemSection>
|
</QItemSection>
|
||||||
</QItem>
|
</QItem>
|
||||||
<QSeparator />
|
<QSeparator />
|
||||||
</QList>
|
|
||||||
</template>
|
</template>
|
||||||
</VnFilterPanel>
|
</VnFilterPanel>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
.list {
|
|
||||||
width: 256px;
|
|
||||||
}
|
|
||||||
.list * {
|
|
||||||
max-width: 100%;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<i18n>
|
<i18n>
|
||||||
en:
|
en:
|
||||||
params:
|
params:
|
||||||
|
|
|
@ -27,14 +27,9 @@ function isValidNumber(value) {
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template #body="{ params }">
|
<template #body="{ params }">
|
||||||
<QList dense class="q-gutter-y-sm q-mt-sm">
|
|
||||||
<QItem>
|
<QItem>
|
||||||
<QItemSection>
|
<QItemSection>
|
||||||
<VnInput
|
<VnInput :label="t('Order ID')" v-model="params.orderFk" is-outlined>
|
||||||
:label="t('Order ID')"
|
|
||||||
v-model="params.orderFk"
|
|
||||||
is-outlined
|
|
||||||
>
|
|
||||||
<template #prepend>
|
<template #prepend>
|
||||||
<QIcon name="vn:basket" size="xs" />
|
<QIcon name="vn:basket" size="xs" />
|
||||||
</template>
|
</template>
|
||||||
|
@ -67,8 +62,7 @@ function isValidNumber(value) {
|
||||||
}
|
}
|
||||||
"
|
"
|
||||||
:rules="[
|
:rules="[
|
||||||
(val) =>
|
(val) => isValidNumber(val) || !val || 'Please type a number',
|
||||||
isValidNumber(val) || !val || 'Please type a number',
|
|
||||||
]"
|
]"
|
||||||
lazy-rules
|
lazy-rules
|
||||||
>
|
>
|
||||||
|
@ -81,17 +75,12 @@ function isValidNumber(value) {
|
||||||
|
|
||||||
<QItem>
|
<QItem>
|
||||||
<QItemSection>
|
<QItemSection>
|
||||||
<VnInputDate
|
<VnInputDate v-model="params.from" :label="t('From')" is-outlined />
|
||||||
v-model="params.from"
|
|
||||||
:label="t('From')"
|
|
||||||
is-outlined
|
|
||||||
/>
|
|
||||||
</QItemSection>
|
</QItemSection>
|
||||||
<QItemSection>
|
<QItemSection>
|
||||||
<VnInputDate v-model="params.to" :label="t('To')" is-outlined />
|
<VnInputDate v-model="params.to" :label="t('To')" is-outlined />
|
||||||
</QItemSection>
|
</QItemSection>
|
||||||
</QItem>
|
</QItem>
|
||||||
</QList>
|
|
||||||
</template>
|
</template>
|
||||||
</VnFilterPanel>
|
</VnFilterPanel>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -54,7 +54,6 @@ const suppliersOptions = ref([]);
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template #body="{ params }">
|
<template #body="{ params }">
|
||||||
<QList dense class="list q-gutter-y-sm q-mt-sm">
|
|
||||||
<QItem>
|
<QItem>
|
||||||
<QItemSection>
|
<QItemSection>
|
||||||
<VnInput
|
<VnInput
|
||||||
|
@ -198,7 +197,6 @@ const suppliersOptions = ref([]);
|
||||||
/>
|
/>
|
||||||
</QItemSection>
|
</QItemSection>
|
||||||
</QItem>
|
</QItem>
|
||||||
</QList>
|
|
||||||
</template>
|
</template>
|
||||||
</VnFilterPanel>
|
</VnFilterPanel>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -36,7 +36,6 @@ const suppliersRef = ref();
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template #body="{ params, searchFn }">
|
<template #body="{ params, searchFn }">
|
||||||
<QList dense class="list q-gutter-y-sm q-mt-sm">
|
|
||||||
<QItem>
|
<QItem>
|
||||||
<QItemSection>
|
<QItemSection>
|
||||||
<VnInput
|
<VnInput
|
||||||
|
@ -186,11 +185,7 @@ const suppliersRef = ref();
|
||||||
</QItem>
|
</QItem>
|
||||||
<QItem>
|
<QItem>
|
||||||
<QItemSection>
|
<QItemSection>
|
||||||
<VnInputDate
|
<VnInputDate :label="t('To')" v-model="params.to" is-outlined />
|
||||||
:label="t('To')"
|
|
||||||
v-model="params.to"
|
|
||||||
is-outlined
|
|
||||||
/>
|
|
||||||
</QItemSection>
|
</QItemSection>
|
||||||
</QItem>
|
</QItem>
|
||||||
<QItem>
|
<QItem>
|
||||||
|
@ -203,20 +198,10 @@ const suppliersRef = ref();
|
||||||
</QItemSection>
|
</QItemSection>
|
||||||
</QItem>
|
</QItem>
|
||||||
</QExpansionItem>
|
</QExpansionItem>
|
||||||
</QList>
|
|
||||||
</template>
|
</template>
|
||||||
</VnFilterPanel>
|
</VnFilterPanel>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
.list {
|
|
||||||
width: 256px;
|
|
||||||
}
|
|
||||||
.list * {
|
|
||||||
max-width: 100%;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<i18n>
|
<i18n>
|
||||||
en:
|
en:
|
||||||
params:
|
params:
|
||||||
|
|
|
@ -41,7 +41,6 @@ function setWorkers(data) {
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template #body="{ params, searchFn }">
|
<template #body="{ params, searchFn }">
|
||||||
<QList dense class="q-gutter-y-sm q-mt-sm">
|
|
||||||
<QItem>
|
<QItem>
|
||||||
<QItemSection>
|
<QItemSection>
|
||||||
<VnInput
|
<VnInput
|
||||||
|
@ -58,11 +57,7 @@ function setWorkers(data) {
|
||||||
</QItem>
|
</QItem>
|
||||||
<QItem>
|
<QItem>
|
||||||
<QItemSection>
|
<QItemSection>
|
||||||
<VnInput
|
<VnInput :label="t('Amount')" v-model="params.amount" is-outlined />
|
||||||
:label="t('Amount')"
|
|
||||||
v-model="params.amount"
|
|
||||||
is-outlined
|
|
||||||
/>
|
|
||||||
</QItemSection>
|
</QItemSection>
|
||||||
</QItem>
|
</QItem>
|
||||||
<QItem>
|
<QItem>
|
||||||
|
@ -129,7 +124,6 @@ function setWorkers(data) {
|
||||||
</QItemSection>
|
</QItemSection>
|
||||||
</QItem>
|
</QItem>
|
||||||
</QExpansionItem>
|
</QExpansionItem>
|
||||||
</QList>
|
|
||||||
</template>
|
</template>
|
||||||
</VnFilterPanel>
|
</VnFilterPanel>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -27,7 +27,6 @@ const props = defineProps({
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template #body="{ params }">
|
<template #body="{ params }">
|
||||||
<QList dense class="q-gutter-y-sm q-mt-sm">
|
|
||||||
<QItem>
|
<QItem>
|
||||||
<QItemSection>
|
<QItemSection>
|
||||||
<VnInputDate
|
<VnInputDate
|
||||||
|
@ -101,13 +100,10 @@ const props = defineProps({
|
||||||
/>
|
/>
|
||||||
</QItemSection>
|
</QItemSection>
|
||||||
</QItem>
|
</QItem>
|
||||||
</QList>
|
|
||||||
</template>
|
</template>
|
||||||
</VnFilterPanel>
|
</VnFilterPanel>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped></style>
|
|
||||||
|
|
||||||
<i18n>
|
<i18n>
|
||||||
en:
|
en:
|
||||||
params:
|
params:
|
||||||
|
|
|
@ -219,7 +219,6 @@ const getCategoryClass = (category, params) => {
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
<template #body="{ params, searchFn }">
|
<template #body="{ params, searchFn }">
|
||||||
<QList dense style="max-width: 256px">
|
|
||||||
<QItem class="category-filter q-mt-md">
|
<QItem class="category-filter q-mt-md">
|
||||||
<div
|
<div
|
||||||
v-for="category in categoryList"
|
v-for="category in categoryList"
|
||||||
|
@ -395,7 +394,6 @@ const getCategoryClass = (category, params) => {
|
||||||
</QItemSection>
|
</QItemSection>
|
||||||
</QItem>
|
</QItem>
|
||||||
<QSeparator />
|
<QSeparator />
|
||||||
</QList>
|
|
||||||
</template>
|
</template>
|
||||||
</VnFilterPanel>
|
</VnFilterPanel>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -59,7 +59,6 @@ const sourceList = ref(null);
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template #body="{ params }">
|
<template #body="{ params }">
|
||||||
<QList id="orderFilter" dense>
|
|
||||||
<QItem>
|
<QItem>
|
||||||
<QItemSection>
|
<QItemSection>
|
||||||
<VnInput
|
<VnInput
|
||||||
|
@ -202,19 +201,10 @@ const sourceList = ref(null);
|
||||||
<QCheckbox v-model="params.showEmpty" :label="t('showEmpty')" />
|
<QCheckbox v-model="params.showEmpty" :label="t('showEmpty')" />
|
||||||
</QItemSection>
|
</QItemSection>
|
||||||
</QItem>
|
</QItem>
|
||||||
</QList>
|
|
||||||
</template>
|
</template>
|
||||||
</VnFilterPanel>
|
</VnFilterPanel>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style lang="scss">
|
|
||||||
#orderFilter {
|
|
||||||
.q-item {
|
|
||||||
padding-top: 8px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<i18n>
|
<i18n>
|
||||||
en:
|
en:
|
||||||
params:
|
params:
|
||||||
|
|
|
@ -61,7 +61,6 @@ const warehouseList = ref([]);
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template #body="{ params }">
|
<template #body="{ params }">
|
||||||
<QList dense>
|
|
||||||
<QItem class="q-my-sm">
|
<QItem class="q-my-sm">
|
||||||
<QItemSection v-if="workerList">
|
<QItemSection v-if="workerList">
|
||||||
<VnSelectFilter
|
<VnSelectFilter
|
||||||
|
@ -198,7 +197,6 @@ const warehouseList = ref([]);
|
||||||
/>
|
/>
|
||||||
</QItemSection>
|
</QItemSection>
|
||||||
</QItem>
|
</QItem>
|
||||||
</QList>
|
|
||||||
</template>
|
</template>
|
||||||
</VnFilterPanel>
|
</VnFilterPanel>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -28,7 +28,6 @@ const countries = ref();
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template #body="{ params }">
|
<template #body="{ params }">
|
||||||
<QList dense class="q-gutter-y-sm q-mt-sm">
|
|
||||||
<QItem>
|
<QItem>
|
||||||
<QItemSection>
|
<QItemSection>
|
||||||
<VnInput
|
<VnInput
|
||||||
|
@ -124,7 +123,6 @@ const countries = ref();
|
||||||
/>
|
/>
|
||||||
</QItemSection>
|
</QItemSection>
|
||||||
</QItem>
|
</QItem>
|
||||||
</QList>
|
|
||||||
</template>
|
</template>
|
||||||
</VnFilterPanel>
|
</VnFilterPanel>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -41,7 +41,11 @@ function setParkings(data) {
|
||||||
@on-fetch="setWorkers"
|
@on-fetch="setWorkers"
|
||||||
auto-load
|
auto-load
|
||||||
/>
|
/>
|
||||||
<VnFilterPanel :data-key="props.dataKey" :search-button="true" @search="emit('search')">
|
<VnFilterPanel
|
||||||
|
:data-key="props.dataKey"
|
||||||
|
:search-button="true"
|
||||||
|
@search="emit('search')"
|
||||||
|
>
|
||||||
<template #tags="{ tag, formatFn }">
|
<template #tags="{ tag, formatFn }">
|
||||||
<div class="q-gutter-x-xs">
|
<div class="q-gutter-x-xs">
|
||||||
<strong>{{ t(`params.${tag.label}`) }}: </strong>
|
<strong>{{ t(`params.${tag.label}`) }}: </strong>
|
||||||
|
@ -49,7 +53,6 @@ function setParkings(data) {
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template #body="{ params }">
|
<template #body="{ params }">
|
||||||
<QList dense>
|
|
||||||
<QItem class="q-my-sm">
|
<QItem class="q-my-sm">
|
||||||
<QItemSection v-if="!parkings">
|
<QItemSection v-if="!parkings">
|
||||||
<QSkeleton type="QInput" class="full-width" />
|
<QSkeleton type="QInput" class="full-width" />
|
||||||
|
@ -101,7 +104,6 @@ function setParkings(data) {
|
||||||
/>
|
/>
|
||||||
</QItemSection>
|
</QItemSection>
|
||||||
</QItem>
|
</QItem>
|
||||||
</QList>
|
|
||||||
</template>
|
</template>
|
||||||
</VnFilterPanel>
|
</VnFilterPanel>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -56,7 +56,6 @@ const warehouses = ref();
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template #body="{ params, searchFn }">
|
<template #body="{ params, searchFn }">
|
||||||
<QList dense class="q-gutter-y-sm q-mt-sm">
|
|
||||||
<QItem>
|
<QItem>
|
||||||
<QItemSection>
|
<QItemSection>
|
||||||
<VnInput
|
<VnInput
|
||||||
|
@ -75,11 +74,7 @@ const warehouses = ref();
|
||||||
</QItem>
|
</QItem>
|
||||||
<QItem>
|
<QItem>
|
||||||
<QItemSection>
|
<QItemSection>
|
||||||
<VnInputDate
|
<VnInputDate v-model="params.from" :label="t('From')" is-outlined />
|
||||||
v-model="params.from"
|
|
||||||
:label="t('From')"
|
|
||||||
is-outlined
|
|
||||||
/>
|
|
||||||
</QItemSection>
|
</QItemSection>
|
||||||
<QItemSection>
|
<QItemSection>
|
||||||
<VnInputDate v-model="params.to" :label="t('To')" is-outlined />
|
<VnInputDate v-model="params.to" :label="t('To')" is-outlined />
|
||||||
|
@ -244,7 +239,6 @@ const warehouses = ref();
|
||||||
</QItemSection>
|
</QItemSection>
|
||||||
</QItem>
|
</QItem>
|
||||||
</QExpansionItem>
|
</QExpansionItem>
|
||||||
</QList>
|
|
||||||
</template>
|
</template>
|
||||||
</VnFilterPanel>
|
</VnFilterPanel>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -66,7 +66,6 @@ const decrement = (paramsObj, key) => {
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template #body="{ params }">
|
<template #body="{ params }">
|
||||||
<QList dense class="list q-gutter-y-sm q-mt-sm">
|
|
||||||
<QItem>
|
<QItem>
|
||||||
<QItemSection>
|
<QItemSection>
|
||||||
<VnInput label="id" v-model="params.id" is-outlined />
|
<VnInput label="id" v-model="params.id" is-outlined />
|
||||||
|
@ -205,19 +204,11 @@ const decrement = (paramsObj, key) => {
|
||||||
/>
|
/>
|
||||||
</QItemSection>
|
</QItemSection>
|
||||||
</QItem>
|
</QItem>
|
||||||
</QList>
|
|
||||||
</template>
|
</template>
|
||||||
</VnFilterPanel>
|
</VnFilterPanel>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.list {
|
|
||||||
width: 256px;
|
|
||||||
}
|
|
||||||
.list * {
|
|
||||||
max-width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.input-number >>> input[type='number'] {
|
.input-number >>> input[type='number'] {
|
||||||
-moz-appearance: textfield;
|
-moz-appearance: textfield;
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,7 +61,6 @@ const decrement = (paramsObj, key) => {
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template #body="{ params }">
|
<template #body="{ params }">
|
||||||
<QList dense class="list q-gutter-y-sm q-mt-sm">
|
|
||||||
<QItem>
|
<QItem>
|
||||||
<QItemSection>
|
<QItemSection>
|
||||||
<VnInput
|
<VnInput
|
||||||
|
@ -258,19 +257,11 @@ const decrement = (paramsObj, key) => {
|
||||||
</QInput>
|
</QInput>
|
||||||
</QItemSection>
|
</QItemSection>
|
||||||
</QItem>
|
</QItem>
|
||||||
</QList>
|
|
||||||
</template>
|
</template>
|
||||||
</VnFilterPanel>
|
</VnFilterPanel>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.list {
|
|
||||||
width: 256px;
|
|
||||||
}
|
|
||||||
.list * {
|
|
||||||
max-width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.input-number >>> input[type='number'] {
|
.input-number >>> input[type='number'] {
|
||||||
-moz-appearance: textfield;
|
-moz-appearance: textfield;
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,7 +27,6 @@ const departments = ref();
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template #body="{ params, searchFn }">
|
<template #body="{ params, searchFn }">
|
||||||
<QList dense class="q-gutter-y-sm q-mt-sm">
|
|
||||||
<QItem>
|
<QItem>
|
||||||
<QItemSection>
|
<QItemSection>
|
||||||
<VnInput :label="t('FI')" v-model="params.fi" is-outlined
|
<VnInput :label="t('FI')" v-model="params.fi" is-outlined
|
||||||
|
@ -94,7 +93,6 @@ const departments = ref();
|
||||||
/>
|
/>
|
||||||
</QItemSection>
|
</QItemSection>
|
||||||
</QItem>
|
</QItem>
|
||||||
</QList>
|
|
||||||
</template>
|
</template>
|
||||||
</VnFilterPanel>
|
</VnFilterPanel>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in New Issue