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

@ -181,7 +181,7 @@ async function fecthlistOthet() {
showLoader();
await http
.get(config.API.otherMain() + `?status=${status.value}`)
.then((res) => {
.then(async (res) => {
let response = res.data.result;
rows.value = response;
rowsData.value = response;
@ -199,6 +199,7 @@ async function fecthlistOthet() {
);
rows2.value = listData;
rows2Data.value = listData;
await onSearch();
})
.catch((e) => {
messageError($q, e);
@ -312,7 +313,7 @@ function nextPage(id: string) {
});
}
function onSearch() {
async function onSearch() {
rows.value = onSearchDataTable(
filterKeyword.value,
rowsData.value,