diff --git a/src/pages/InvoiceOut/InvoiceOutGlobalForm.vue b/src/pages/InvoiceOut/InvoiceOutGlobalForm.vue index 5bcb21001..e85f1f44c 100644 --- a/src/pages/InvoiceOut/InvoiceOutGlobalForm.vue +++ b/src/pages/InvoiceOut/InvoiceOutGlobalForm.vue @@ -13,7 +13,7 @@ const { t } = useI18n(); const invoiceOutGlobalStore = useInvoiceOutGlobalStore(); // invoiceOutGlobalStore state and getters -const { initialDataLoading, formInitialData, invoicing, status } = +const { initialDataLoading, formInitialData, status } = storeToRefs(invoiceOutGlobalStore); // invoiceOutGlobalStore actions @@ -151,9 +151,8 @@ onMounted(async () => { rounded /> - { dense /> route.params.id); - const columns = computed(() => [ { align: 'left', @@ -25,8 +26,9 @@ const columns = computed(() => [ create: true, component: 'select', attrs: { - url: 'payrollComponents', - fields: ['id', 'name'], + options: payrollComponents, + optionLabel: 'name', + optionValue: 'id', }, cardVisible: true, }, @@ -73,6 +75,16 @@ const columns = computed(() => [ ]); diff --git a/src/pages/Worker/Card/WorkerFormation.vue b/src/pages/Worker/Card/WorkerFormation.vue index c11dd019e..596691d2e 100644 --- a/src/pages/Worker/Card/WorkerFormation.vue +++ b/src/pages/Worker/Card/WorkerFormation.vue @@ -134,6 +134,7 @@ const columns = computed(() => [ :is-editable="true" :use-model="true" :default-remove="false" + search-url="formation" />