feat: refs #7006 itemType basic data new inputs
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
8edba36a74
commit
494fc66c06
|
@ -7,7 +7,6 @@ import FetchData from 'components/FetchData.vue';
|
|||
|
||||
const { t } = useI18n();
|
||||
const tableRef = ref();
|
||||
const workerOptions = ref([]);
|
||||
const ItemCategoriesOptions = ref([]);
|
||||
|
||||
const columns = computed(() => [
|
||||
|
@ -40,12 +39,12 @@ const columns = computed(() => [
|
|||
create: true,
|
||||
component: 'select',
|
||||
attrs: {
|
||||
options: workerOptions.value,
|
||||
optionLabel: 'firstName',
|
||||
url: 'Workers/search',
|
||||
optionLabel: 'nickname',
|
||||
optionValue: 'id',
|
||||
},
|
||||
cardVisible: false,
|
||||
visible: false,
|
||||
cardVisible: true,
|
||||
visible: true,
|
||||
},
|
||||
{
|
||||
align: 'left',
|
||||
|
@ -78,12 +77,6 @@ const columns = computed(() => [
|
|||
</script>
|
||||
|
||||
<template>
|
||||
<FetchData
|
||||
url="Workers"
|
||||
:filter="{ fields: ['id', 'firstName'], order: ['firstName ASC'] }"
|
||||
@on-fetch="(data) => (workerOptions = data)"
|
||||
auto-load
|
||||
/>
|
||||
<FetchData
|
||||
url="ItemCategories"
|
||||
:filter="{ fields: ['id', 'name'], order: ['name ASC'] }"
|
||||
|
|
|
@ -58,7 +58,6 @@ const itemPackingTypesOptions = ref([]);
|
|||
:label="t('shared.worker')"
|
||||
sort-by="nickname ASC"
|
||||
:fields="['id', 'nickname']"
|
||||
:params="{ departmentCodes: ['shopping'] }"
|
||||
option-label="nickname"
|
||||
option-value="id"
|
||||
hide-selected
|
||||
|
|
Loading…
Reference in New Issue