+ | {item} |
+ {nameList()[index]} |
+
+
+ {
+ await getopdetails('electrical', item)
+ }}
+ >
+
+ {item}
+
+
+
+ Name of Applicant:
+ {nameList()[index]}
+
+
+
+ Location:
+ {location()}
+
+
+
+ Type:
+ {type().toUpperCase()}
+
+
+
+ Assessed By:
+ {assessor()}
+
+
+
+ Date Assessed:
+ {dateOp().toUpperCase()}
+
+
+
+ Total Fee:
+
+ {PESO} {totalOp().toFixed(2)}
+
+
+
+
+
+
Click anywhere to cancel
diff --git a/src/pages/MainPage/Main.tsx b/src/pages/MainPage/Main.tsx
index 8f2722a..cb55ecf 100644
--- a/src/pages/MainPage/Main.tsx
+++ b/src/pages/MainPage/Main.tsx
@@ -2,7 +2,6 @@ import './Main.sass'
import { Logo, Link, Page, Row, Padding, ModalButton, Box, Button, Modal, Column, Clickable } from '../../components/'
import { FiLogOut } from 'solid-icons/fi'
import { Tabs } from '@kobalte/core/tabs'
-import { ofetch } from 'ofetch'
import { onMount, createSignal } from 'solid-js'
import dayjs from 'dayjs'
import { checkConnection, getApi, getApiMulti, postApi } from '../../utils/functions'
@@ -13,7 +12,6 @@ import { _applicationNo, _date, _optn, _name, _location, _type, _assessor, _feeL
import { VsRefresh } from 'solid-icons/vs'
import { BiRegularErrorAlt } from 'solid-icons/bi'
-const API = import.meta.env.VITE_BACKEND
const PESO = import.meta.env.VITE_PESO
const ID = import.meta.env.VITE_HEADID
// const NAME = import.meta.env.VITE_HEAD
@@ -265,10 +263,7 @@ export default () => {
const formattedDatewithTime = dayjs(today).format('YYYY-MM-DD HH:mm:ss')
for (let i = 0; i < response.result.length; i++) {
- await ofetch(API + 'post-pops', {
- method: 'POST',
- body: { data: application, data2: formattedDate, data3: customerid, data4: customerName, data5: location, data6: codeList[i], data7: amountList[i], data8: assessor(), data9: formattedDatewithTime, data10: lguList[i], data11: dpwhList[i], data12: boList[i], data13: PUBLICIP },
- })
+ await postApi('post-pops', { data: application, data2: formattedDate, data3: customerid, data4: customerName, data5: location, data6: codeList[i], data7: amountList[i], data8: assessor(), data9: formattedDatewithTime, data10: lguList[i], data11: dpwhList[i], data12: boList[i], data13: PUBLICIP })
}
}
@@ -335,10 +330,7 @@ export default () => {
const today = new Date()
const formatedDate = dayjs(today).format('YYYY-MM-DD HH:mm:ss')
- await ofetch(API + 'post-esigntransaction', {
- method: 'POST',
- body: { data: parseInt(id), data2: approvedApplication(), data3: formatedDate },
- })
+ await postApi('post-esigntransaction', { data: parseInt(id), data2: approvedApplication(), data3: formatedDate })
}
const updateDocflow = async (division: string, applicationid: number, status: string) => {
|