forked from verdnatura/salix-front
feat: refs #6943 lock grid mode
This commit is contained in:
parent
04422a1052
commit
a11dd6a5e9
|
@ -4,8 +4,8 @@ import { useI18n } from 'vue-i18n';
|
||||||
import { useRoute } from 'vue-router';
|
import { useRoute } from 'vue-router';
|
||||||
import { QBtn } from 'quasar';
|
import { QBtn } from 'quasar';
|
||||||
import { toCurrency, toDateHourMin } from 'src/filters';
|
import { toCurrency, toDateHourMin } from 'src/filters';
|
||||||
import WorkerDescriptorProxy from 'src/pages/Worker/Card/WorkerDescriptorProxy.vue';
|
|
||||||
import VnTable from 'components/VnTable/VnTable.vue';
|
import VnTable from 'components/VnTable/VnTable.vue';
|
||||||
|
import VnUserLink from 'src/components/ui/VnUserLink.vue';
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
|
@ -34,11 +34,8 @@ const columns = computed(() => [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
field: (value) => value?.worker?.user?.name,
|
|
||||||
label: t('Employee'),
|
label: t('Employee'),
|
||||||
name: 'employee',
|
name: 'employee',
|
||||||
component: QBtn, // workerDescriptorProxy is missing
|
|
||||||
attrs: { flat: true, color: 'blue', noCaps: true },
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
@ -62,7 +59,12 @@ const columns = computed(() => [
|
||||||
:is-editable="false"
|
:is-editable="false"
|
||||||
:use-model="true"
|
:use-model="true"
|
||||||
:column-search="false"
|
:column-search="false"
|
||||||
/>
|
:disable-option="{ card: true }"
|
||||||
|
>
|
||||||
|
<template #column-employee="{ row }">
|
||||||
|
<VnUserLink :name="row?.worker?.user?.name" :worker-id="row.worker?.id" />
|
||||||
|
</template>
|
||||||
|
</VnTable>
|
||||||
<QPageSticky :offset="[18, 18]">
|
<QPageSticky :offset="[18, 18]">
|
||||||
<QBtn
|
<QBtn
|
||||||
@click.stop="$router.push({ name: 'CustomerCreditCreate' })"
|
@click.stop="$router.push({ name: 'CustomerCreditCreate' })"
|
||||||
|
|
Loading…
Reference in New Issue