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 }}
</q-td>
{{ console.log(props.row) }}
<q-td>
<KebabAction
:status="props.row.status"
@ -1721,7 +1720,12 @@ watch(currentHq, () => {
@update:toggle-status="
async (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 });
}
"