Cleanup
This commit is contained in:
parent
7be79529df
commit
153278d579
1 changed files with 0 additions and 29 deletions
|
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue