This commit is contained in:
Patrick Alvin Alcala 2025-10-01 16:33:41 +08:00
parent 7be79529df
commit 153278d579

View file

@ -32,36 +32,7 @@ export default () => {
} }
} }
// const getListOfReadyForApprovalFiltered = async (list: number[]) => {
// let newList: number[] = []
// for (let i = 0; i < list.length; i++) {
// const response = await ofetch(API + 'get-laststatus-electrical/' + list[i], { parseResponse: JSON.parse })
// if (response.result === 'FOR ELECTRICAL ORDER OF PAYMENT APPROVAL') {
// newList.push(list[i])
// }
// }
// return [...newList]
// }
// const getApplicationById = async (list: number[]) => {
// let applicationList: string[] = []
// for (let i = 0; i < list.length; i++) {
// const response = await ofetch(API + 'get-applicationbyid-electrical/' + list[i], { parseResponse: JSON.parse })
// applicationList.push(response.result)
// }
// setUpdatedList([...applicationList])
// }
const load = async () => { const load = async () => {
// const listForApproval = await getListForApproval()
// const listOfReadyForApprovalFiltered = await getListOfReadyForApprovalFiltered(listForApproval)
// await getApplicationById(listOfReadyForApprovalFiltered)
// console.log(listOfReadyForApprovalFiltered)
await getListForApproval() await getListForApproval()
} }