This commit is contained in:
Patrick Alvin Alcala 2025-10-30 19:26:59 +08:00
parent 659b5ad32a
commit 3391e4ff87

View file

@ -53,19 +53,6 @@ export default () => {
}
}
// const handleFilterChange = (value: string) => {
// // setFilter(value)
// if (value.trim() === '') {
// setApplicationList(fullIDList())
// setNameList(fullNameList())
// } else {
// const filteredApplications = fullIDList().filter((app) => app.toLowerCase().includes(value.toLowerCase()))
// const filteredNames = fullNameList().slice(0, filteredApplications.length)
// setApplicationList(filteredApplications)
// setNameList(filteredNames)
// }
// }
const getPrintDetails = async (id: number) => {
const response = await ofetch(API + 'get-printdetails-electrical/' + id)
const applicationno = response.result
@ -320,15 +307,15 @@ export default () => {
}
}
const getEmployeeId = async (name: string) => {
try {
const response = await ofetch(API + 'get-employeeid/' + name, { parseResponse: JSON.parse })
const result = response.result
return parseInt(result)
} catch (error) {
return 0
}
}
// const getEmployeeId = async (name: string) => {
// try {
// const response = await ofetch(API + 'get-employeeid/' + name, { parseResponse: JSON.parse })
// const result = response.result
// return parseInt(result)
// } catch (error) {
// return 0
// }
// }
const refresh = async () => {
await getListForPrinting()