0
0
Fork 0

fix: refs #8083 update rightly

This commit is contained in:
Jorge Penadés 2024-10-23 15:17:06 +02:00
parent 81a55a9e7a
commit 9673f7be1e
1 changed files with 7 additions and 7 deletions

View File

@ -231,14 +231,14 @@ onUnmounted(() => (stateStore.rightDrawer = false));
:select-props="{
options: expeditionStateTypes,
optionLabel: 'description',
optionValue: 'code',
}"
:promise="
async (stateTypeFk) => {
await vnTableRef.CrudModelRef.saveChanges({
updates: selectedRows.map(({ id }) => ({
data: { stateTypeFk },
where: { id },
})),
async (stateCode) => {
await axios.post('ExpeditionStates/addExpeditionState', {
expeditions: selectedRows.map(({ id }) => {
return { expeditionFk: id, stateCode };
}),
});
vnTableRef.tableRef.clearSelection();
}
@ -309,7 +309,7 @@ onUnmounted(() => (stateStore.rightDrawer = false));
'row-key': 'id',
selection: 'multiple',
}"
save-url="Expeditions/crud"
save-url="ExpeditionStates/crud"
auto-load
:expr-builder="
(param, value) => {