forked from verdnatura/salix-front
fix: refs #8083 update rightly
This commit is contained in:
parent
81a55a9e7a
commit
9673f7be1e
|
@ -231,14 +231,14 @@ onUnmounted(() => (stateStore.rightDrawer = false));
|
||||||
:select-props="{
|
:select-props="{
|
||||||
options: expeditionStateTypes,
|
options: expeditionStateTypes,
|
||||||
optionLabel: 'description',
|
optionLabel: 'description',
|
||||||
|
optionValue: 'code',
|
||||||
}"
|
}"
|
||||||
:promise="
|
:promise="
|
||||||
async (stateTypeFk) => {
|
async (stateCode) => {
|
||||||
await vnTableRef.CrudModelRef.saveChanges({
|
await axios.post('ExpeditionStates/addExpeditionState', {
|
||||||
updates: selectedRows.map(({ id }) => ({
|
expeditions: selectedRows.map(({ id }) => {
|
||||||
data: { stateTypeFk },
|
return { expeditionFk: id, stateCode };
|
||||||
where: { id },
|
}),
|
||||||
})),
|
|
||||||
});
|
});
|
||||||
vnTableRef.tableRef.clearSelection();
|
vnTableRef.tableRef.clearSelection();
|
||||||
}
|
}
|
||||||
|
@ -309,7 +309,7 @@ onUnmounted(() => (stateStore.rightDrawer = false));
|
||||||
'row-key': 'id',
|
'row-key': 'id',
|
||||||
selection: 'multiple',
|
selection: 'multiple',
|
||||||
}"
|
}"
|
||||||
save-url="Expeditions/crud"
|
save-url="ExpeditionStates/crud"
|
||||||
auto-load
|
auto-load
|
||||||
:expr-builder="
|
:expr-builder="
|
||||||
(param, value) => {
|
(param, value) => {
|
||||||
|
|
Loading…
Reference in New Issue