diff --git a/src/pages/Worker/Card/WorkerBusiness.vue b/src/pages/Worker/Card/WorkerBusiness.vue index 7827720957..cd0dee7d81 100644 --- a/src/pages/Worker/Card/WorkerBusiness.vue +++ b/src/pages/Worker/Card/WorkerBusiness.vue @@ -67,6 +67,7 @@ const businessFilter = { }, ], }; + const columns = computed(() => [ { align: 'left', @@ -75,7 +76,7 @@ const columns = computed(() => [ format: ({ started }) => toDate(started), component: VnInputDate, cardVisible: true, - created: true, + create: true, }, { align: 'left', @@ -84,20 +85,22 @@ const columns = computed(() => [ format: ({ ended }) => toDate(ended), component: VnInputDate, cardVisible: true, - created: true, + create: true, }, { align: 'left', - label: t('worker.business.tableVisibleColumns.company'), name: 'companyCodeFk', component: 'select', attrs: { url: 'Companies', fields: ['code'], + optionLabel: 'code', + label: t('worker.business.tableVisibleColumns.company'), }, + event: { 'update:modelValue': (a, b) => console.log(a, b) }, disable: false, cardVisible: true, - created: true, + create: true, }, { align: 'left', @@ -122,7 +125,7 @@ const columns = computed(() => [ }, disable: false, cardVisible: true, - created: true, + create: true, }, { align: 'left', @@ -135,7 +138,7 @@ const columns = computed(() => [ }, disable: false, cardVisible: true, - created: true, + create: true, }, { align: 'left', @@ -148,7 +151,7 @@ const columns = computed(() => [ }, disable: false, cardVisible: true, - created: true, + create: true, }, { align: 'left', @@ -161,15 +164,15 @@ const columns = computed(() => [ }, disable: false, cardVisible: true, - created: true, + create: true, }, { align: 'left', label: t('worker.business.tableVisibleColumns.payrollCategories'), - name: 'payrollCategoriesFk', + name: 'workerBusinessCategoryFk', component: 'select', attrs: { - url: 'BusinessReasonEnd', + url: 'payrollCategories', fields: ['id', 'description'], }, disable: false, @@ -183,10 +186,11 @@ const columns = computed(() => [ attrs: { url: 'OccupationCodes', fields: ['code', 'name'], + optionValue: 'code', }, disable: false, cardVisible: true, - created: true, + create: true, }, { align: 'left', @@ -207,7 +211,7 @@ const columns = computed(() => [ }, disable: false, cardVisible: true, - created: true, + create: true, }, { align: 'left', @@ -216,7 +220,7 @@ const columns = computed(() => [ component: 'input', disable: false, cardVisible: true, - created: true, + create: true, }, { align: 'left', @@ -225,7 +229,7 @@ const columns = computed(() => [ component: 'input', disable: false, cardVisible: true, - created: true, + create: true, }, { align: 'left', @@ -255,6 +259,7 @@ const columns = computed(() => [ default-mode="card" auto-load :right-search="false" + card-class="grid-two" >