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

@ -150,6 +150,7 @@ async function fetchData() {
const data = await res.data.result;
rows.value = data;
dataTransfer.value = data;
onSearch();
})
.catch((e) => {
messageError($q, e);

View file

@ -230,6 +230,7 @@ async function fecthlistRecevice() {
rows.value = data;
rowsData.value = data;
filters.value = data;
onSearch();
})
.catch((e) => {
messageError($q, e);

View file

@ -187,6 +187,7 @@ async function getData() {
const data = await res.data.result;
rows.value = data;
rowsData.value = data;
await onSearch();
})
.catch((e) => {
messageError($q, e);
@ -249,7 +250,7 @@ function closeModal() {
filterKeyword2.value = "";
}
function onSearch() {
async function onSearch() {
rows.value = onSearchDataTable(
filterKeyword.value,
rowsData.value,

View file

@ -31,7 +31,7 @@ const {
hideLoader,
success,
dialogRemove,
findPosMasterNoOld,
onSearchDataTable,
} = useCounterMixin();
@ -166,6 +166,7 @@ async function getData() {
const data = await res.data.result;
rows.value = data;
rowsData.value = data;
onSearch();
})
.catch((e) => {
messageError($q, e);

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,

View file

@ -256,6 +256,7 @@ async function fecthlistappointment() {
);
rows2.value = listData;
rows2Data.value = listData;
await onSearch();
})
.catch((e) => {
messageError($q, e);
@ -356,7 +357,7 @@ async function onSave(data: FormDataAppoint) {
});
}
function onSearch() {
async function onSearch() {
rows.value = onSearchDataTable(
filterKeyword.value,
rowsData.value,

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,