FSM v1.3 ULB Admin - FSM Registry - Vehicle Tab
Objectives
Introducing complete new FSM Registry UI for an Admin Employee to create, update and delete the respective Vendor, Driver and Vehicle.
Once the user logs in with “FSM_ADMIN" Roles, the user will get the option for FSM Registry in the FSM Card in home screen.
File Path:
FSM Registry:
When clicked on the FSM Registry button, the Registry page is rendered.
FSM Registry Inbox Page consists of a Vendor tab, Vehicle tab and Driver tab with functionality to add, edit and update the respective vendor, vehicle or driver. File Path: https://github.com/egovernments/DIGIT-Dev/blob/master/frontend/micro-ui/web/micro-ui-internals/packages/modules/fsm/src/pages/employee/FSMRegistry/index.js
FSM Registry Component: https://github.com/egovernments/DIGIT-Dev/blob/master/frontend/micro-ui/web/micro-ui-internals/packages/modules/fsm/src/components/RegistryInbox.js
Vehicle Tab:
In the Vehicle tab, Admin employees can see a list of all active/inactive vehicle numbers, dates of creation & assigned vendor name information.
Here are a few of the functionality that can be performed under the FSM registry inbox:
Admin can search the vehicle by vehicle number in the search bar.
Admin can enable/disable the vendor by using the switch icon for the respective vehicle.
Admin can add a new vehicle by clicking on the “plus icon” in the top right corner.
When clicking on Vehicle, add new vehicle screen will render.
The payload sent to the "/vehicle/v1/_create
" endpoint looks like the following:
{
“tenantId”: “pb.amritsar”,
“registrationNumber”: “AS 12 AS 9871",
“model”: “MAHINDRA”,
“type”: “MAHINDRA.BOLERO_PICKUP”,
“tankCapacity”: “5000",
“suctionType”: “SEWER_SUCTION_MACHINE”,
“pollutionCertiValidTill”: 1671753600000,
“InsuranceCertValidTill”: null,
“fitnessValidTill”: null,
“roadTaxPaidTill”: null,
“gpsEnabled”: true,
“source”: “Municipal records”,
“owner”: {
“tenantId”: “pb”,
“name”: “EDEDED”,
“fatherOrHusbandName”: “EDEDED”,
“relationship”: “OTHER”,
“gender”: “OTHERS”,
“dob”: -19800000,
“emailId”: “abc@egov.com”,
“correspondenceAddress”: “”,
“mobileNumber”: “7878787878”
},
“additionalDetails”: {
“description”: “”
}
}
To view specific vehicle detail, click on the vehicle number and you’ll land on the vehicle details page.
ULB admin also have the options to assign th respective vehicle to any vendor by clicking add new vendor option or change/remove the vendor if already added.
Once Vendor is assigned to the vehicle, It will reflect in details page.
ULB admin also have the options to edit or delete vehicle under take action button.
Edit screen page will render when admin click on edit option.
Delete pop up confirmation screen will render when click on delete option.
File path render in FSM Registry are below
Page | File Path |
---|---|
FSM Registry Inbox | |
Add New Vehicle | |
View Vehicle | |
Edit Vehicle |
New Components added in FSM for FSM registry
Components | File Path |
---|---|
Registry Inbox | |
Toogle Switch | |
Registry Search |
Hooks | File Path |
---|---|
| |
| |
|
Role Action Mapping:
API | ROLES | ACTION ID | |
---|---|---|---|
1 |
|
| 954 |
2 |
|
| 2050 |
3 |
|
| 2053 |
4 |
|
| 2340 |
5 |
|
| 2051 |