refactor: refs #8277 update account type labels and filter fields in EntryControl.vue
gitea/salix-front/pipeline/pr-dev This commit is unstable
Details
gitea/salix-front/pipeline/pr-dev This commit is unstable
Details
This commit is contained in:
parent
304dc7db49
commit
ec19ecdc98
|
@ -171,7 +171,8 @@ const columns = computed(() => [
|
||||||
component: 'select',
|
component: 'select',
|
||||||
name: 'accountType',
|
name: 'accountType',
|
||||||
options: entryAccounts.value,
|
options: entryAccounts.value,
|
||||||
optionLabel: 'account',
|
optionLabel: 'type',
|
||||||
|
optionValue: 'code',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -200,23 +201,6 @@ const columns = computed(() => [
|
||||||
component: 'checkbox',
|
component: 'checkbox',
|
||||||
isEditable: false,
|
isEditable: false,
|
||||||
},
|
},
|
||||||
// {
|
|
||||||
// name: 'travelFk',
|
|
||||||
// label: t('entry.travelFk'),
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// name: 'agencyMode',
|
|
||||||
// label: t('entry.agencyMode'),
|
|
||||||
// format: (row) => row.agencyMode,
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// name: 'account',
|
|
||||||
// label: t('globals.account'),
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// name: 'nickname',
|
|
||||||
// label: t('globals.nickname'),
|
|
||||||
// },
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
onBeforeMount(() => {
|
onBeforeMount(() => {
|
||||||
|
@ -348,7 +332,7 @@ async function createInvoice(isAgricultural) {
|
||||||
/>
|
/>
|
||||||
<FetchData
|
<FetchData
|
||||||
url="EntryAccounts"
|
url="EntryAccounts"
|
||||||
:filter="{ fields: ['id', 'account'] }"
|
:filter="{ fields: ['code', 'type'] }"
|
||||||
@on-fetch="(data) => (entryAccounts = data)"
|
@on-fetch="(data) => (entryAccounts = data)"
|
||||||
auto-load
|
auto-load
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in New Issue