fix(03): br id select

This commit is contained in:
puriphatt 2024-07-30 10:42:24 +00:00
parent c6f2dc216d
commit 75a8e43a22
2 changed files with 21 additions and 13 deletions

View file

@ -2133,7 +2133,8 @@ watch(isMainPage, () => {
round
flat
@click.stop="
() => {
async () => {
await fetchListOfOptionBranch();
const { branch, ...payload } = props.row;
currentCustomer = payload;
@ -2928,19 +2929,14 @@ watch(isMainPage, () => {
"
@viewDetail="
async (v, i) => {
await fetchListOfOptionBranch();
currentBranchId = v.id;
statusToggle = v.status === 'INACTIVE' ? false : true;
currentBranch = {
name: v.name,
code: v.code,
};
if (currentCustomer) assignFormData(currentCustomer.id, v, i);
await fetchListOfOptionBranch();
infoDrawerBranch = true;
}
"