Updated
This commit is contained in:
parent
659b5ad32a
commit
3391e4ff87
1 changed files with 9 additions and 22 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue