fix fetch ช้อมูลรายการออกคำสั่ง

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-07-18 16:43:51 +07:00
parent 5fb8c24263
commit f1c056fc8d
31 changed files with 69 additions and 32 deletions

View file

@ -247,7 +247,7 @@ async function fecthlistappointment() {
showLoader();
await http
.get(config.API.appointmentMain() + `?status=${status.value}`)
.then((res) => {
.then(async (res) => {
let response = res.data.result;
listRecevice.value = response;
rows.value = response;
@ -267,6 +267,7 @@ async function fecthlistappointment() {
);
rows2.value = listData;
rows2Data.value = listData;
await onSearch();
})
.catch((e) => {
messageError($q, e);
@ -367,7 +368,7 @@ function clickClose() {
modal.value = false;
}
function onSearch() {
async function onSearch() {
rows.value = onSearchDataTable(
filterKeyword.value,
rowsData.value,