Updated assessor page

This commit is contained in:
Patrick Alvin Alcala 2025-12-02 19:05:22 +08:00
parent 87218df558
commit b482c23f6a

View file

@ -196,7 +196,11 @@ export default () => {
// if (division === 'occupancy') op = await getApiMulti('get-opdetails-occupancy', applicationNo) // if (division === 'occupancy') op = await getApiMulti('get-opdetails-occupancy', applicationNo)
// if (division === 'electrical') op = await getApiMulti('get-opdetails-electrical', applicationNo) // if (division === 'electrical') op = await getApiMulti('get-opdetails-electrical', applicationNo)
const additionalResult = await getApi('check-bldgadditional-printing', applicationNo) let additionalResult
if (selectedType() === 'Print') {
additionalResult = await getApi('check-bldgadditional-printing', applicationNo)
} else additionalResult = await getApi('check-bldgadditional-reprinting', applicationNo)
bldgadditional = additionalResult > 0 bldgadditional = additionalResult > 0
const op = await getApiMulti(`get-opdetails-${division}`, applicationNo) const op = await getApiMulti(`get-opdetails-${division}`, applicationNo)
@ -579,7 +583,7 @@ export default () => {
<Row content="split"> <Row content="split">
<Input value={filter()} onChange={setFilter} placeholder="Filter Application Number" /> <Input value={filter()} onChange={setFilter} placeholder="Filter Application Number" />
<Row> <Row>
<Combobox options={listType} value={selectedType()} onChange={setSelectedType} placeholder="Select Type" /> <Combobox options={listType} value={selectedType()} onChange={setSelectedType} placeholder="Select Type" width='200px' />
<Button label="Refresh Data" edges="curved" design="bo-primary" icon={VsRefresh} onClick={refresh}></Button> <Button label="Refresh Data" edges="curved" design="bo-primary" icon={VsRefresh} onClick={refresh}></Button>
</Row> </Row>
</Row> </Row>
@ -673,7 +677,7 @@ export default () => {
<Row content="split"> <Row content="split">
<Input value={filter()} onChange={setFilter} placeholder="Filter Application Number" /> <Input value={filter()} onChange={setFilter} placeholder="Filter Application Number" />
<Row> <Row>
<Combobox options={listType} value={selectedType()} onChange={setSelectedType} placeholder="Select Type" /> <Combobox options={listType} value={selectedType()} onChange={setSelectedType} placeholder="Select Type" width='200px' />
<Button label="Refresh Data" edges="curved" design="bo-primary" icon={VsRefresh} onClick={refresh}></Button> <Button label="Refresh Data" edges="curved" design="bo-primary" icon={VsRefresh} onClick={refresh}></Button>
</Row> </Row>
</Row> </Row>