#6943 - Customer module migration bugs #705

Merged
jsegarra merged 12 commits from 6943_fix_customer_module into dev 2024-09-13 05:33:52 +00:00
1 changed files with 13 additions and 3 deletions
Showing only changes of commit 8fc7e3cfb4 - Show all commits

View File

@ -1,7 +1,7 @@
<script setup>
import { ref, computed } from 'vue';
import { useI18n } from 'vue-i18n';
import { useRoute, useRouter } from 'vue-router';
import { useRoute } from 'vue-router';
import { QBtn, useQuasar } from 'quasar';
@ -13,7 +13,6 @@ import CustomerSamplesCreate from '../components/CustomerSamplesCreate.vue';
const { t } = useI18n();
const route = useRoute();
const router = useRouter();
const filter = {
include: [
@ -42,7 +41,16 @@ const columns = computed(() => [
{
align: 'left',
label: t('Worker'),
name: 'worker',
columnField: {
component: 'userLink',
attrs: ({ row }) => {
return {
defaultName: true,
workerId: row?.user?.id,
name: row?.user?.name,
};
},
},
},
{
align: 'left',
@ -73,7 +81,9 @@ const tableRef = ref();
:columns="columns"
:pagination="{ rowsPerPage: 12 }"
:disable-option="{ card: true }"
:right-search="false"
:rows="rows"
:order="['created DESC']"
class="full-width q-mt-md"
row-key="id"
:create="false"