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="{
|
||||
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) => {
|
||||
|
|
Loading…
Reference in New Issue