refactor: header can't edit branch is INACTIVE

This commit is contained in:
Net 2024-09-09 13:41:44 +07:00
parent e72e2497de
commit 426a486ef9

View file

@ -1276,7 +1276,6 @@ watch(currentHq, () => {
> >
{{ props.row.address }} {{ props.row.address }}
</q-td> </q-td>
{{ console.log(props.row) }}
<q-td> <q-td>
<KebabAction <KebabAction
:status="props.row.status" :status="props.row.status"
@ -1721,7 +1720,12 @@ watch(currentHq, () => {
@update:toggle-status=" @update:toggle-status="
async (v) => { async (v) => {
const res = await triggerChangeStatus(currentId, v); const res = await triggerChangeStatus(currentId, v);
if (res) formData.status = res.status; if (res) {
undo();
formData.status = res.status;
formType = 'view';
}
await branchStore.fetchList({ pageSize: 99999 }); await branchStore.fetchList({ pageSize: 99999 });
} }
" "