fix: เเก้ไข code ของ สำนักงานใหญ่ ไม่แสดง
This commit is contained in:
parent
721a6c035b
commit
372b13a82d
1 changed files with 4 additions and 2 deletions
|
|
@ -260,8 +260,6 @@ async function triggerEdit(
|
||||||
openDrawer();
|
openDrawer();
|
||||||
}
|
}
|
||||||
|
|
||||||
formTypeBranch.value = typeBranch;
|
|
||||||
|
|
||||||
const currentRecord = branchData.value.result.find((x) => x.id === id);
|
const currentRecord = branchData.value.result.find((x) => x.id === id);
|
||||||
|
|
||||||
if (!currentRecord) return;
|
if (!currentRecord) return;
|
||||||
|
|
@ -278,7 +276,11 @@ async function triggerEdit(
|
||||||
if (currentRecordHead) {
|
if (currentRecordHead) {
|
||||||
currentHq.value.id = currentRecordHead.id;
|
currentHq.value.id = currentRecordHead.id;
|
||||||
currentHq.value.code = currentRecordHead.code;
|
currentHq.value.code = currentRecordHead.code;
|
||||||
|
} else {
|
||||||
|
currentHq.value = currentEdit.value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
formTypeBranch.value = typeBranch;
|
||||||
}
|
}
|
||||||
|
|
||||||
function triggerDelete(id: string) {
|
function triggerDelete(id: string) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue