This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-08-16 10:26:09 +07:00
parent 51707646e7
commit df481043b1
9 changed files with 138 additions and 91 deletions

View file

@ -67,8 +67,13 @@ function fetchOrganization(id: string) {
});
}
/**
* function เลอกตำแหนงทจะใหกษาการ
* @param data อมลตำแหน
*/
async function updateSelected(data: PosMaster) {
posmasterId.value = data.posmasterId;
// function fetch ,fetch
await Promise.all([fetchPosMaster(), fetchListAct()]);
}
@ -165,6 +170,10 @@ function fetchPosMaster() {
});
}
/**
* function แสดงตำแหนงทงหมด
* @param val แสดงตำแหนงทงหมด
*/
function updateIsAll(val: boolean) {
isAll.value = val;
fetchPosMaster();
@ -241,6 +250,7 @@ function onDelete(id: string) {
http
.delete(config.API.orgPosAct + `/${id}`)
.then(async () => {
// function fetch ,fetch
await Promise.all([fetchPosMaster(), fetchListAct()]);
})
.catch((err) => {