Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Objectives

It allows an Admin Employee An admin employee is able to create, update, and delete the respective Vendorvendor, driver, Driver and VehicleOnce and vehicle records. When the user logs in with “FSMthe 'FSM_ADMIN" Roles' roles, the user will get the option for accessing the FSM Registry in will be available on the FSMCard and the home screen.

...

File Path:

Card: https://github.com/egovernments/DIGIT-Dev/blob/cdb6444a0e9c4aefa9f12844b98576dc371d484cdevelop/frontend/micro-ui/web/micro-ui-internals/packages/modules/fsm/src/components/FsmCard.jsULB HomePage: https://github.com/egovernments/DIGIT-Dev/blob/3821b6587020259f8c4daf5447215eddd27b94db/frontend/micro-ui/web/micro-ui-internals/packages/modules/fsm/src/pages/employee/index.js

FSM Registry:

When clicked on the 'FSM Registry' button is clicked, the Registry page is rendered and the vendor tab is selected by default.

...

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/ca37076023a5af9a3635d3e275e69b93df15e55adevelop/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/develop/frontend/micro-ui/web/micro-ui-internals/packages/modules/fsm/src/components/RegistryInbox.js

Driver Tab:

In the Driver tab, Admin FSM_ADMIN employees can see a list of all active/inactive driver name, dates of creation & assigned vendor name information.

...

Here are a few of the functionality that can be performed under the FSM registry inbox:

  • Admin FSM_ADMIN can search the driver by driver name in the search bar.

  • Admin FSM_ADMIN can enable/disable the driver by using the switch icon for the respective driver.

  • Admin FSM_ADMIN can add a new driver by clicking on the “plus icon” in the top right corner.

...

When clicking on Driver, add new driver screen will render.

...

the 'Driver' option is selected, the 'Add New Driver' screen will be displayed/rendered.

...

Add New Driver Create:

An FSM_ADMIN is able to add driver details, wherein the fields for Driver Name, Driver License Number, Gender, and Driver Phone Number are marked as mandatory.

Info

The payload sent to the "/vendor/driver/v1/_create" endpoint looks like the following:

Code Block
languagejsjson
{
 
  "tenantId": "pb.amritsar",

   "name": "NEW DRIVERTest New Driver for Tech doc",
    "licenseNumber": "7878787878AS11001123456",

   "status": "ACTIVE",
    "owner": {
        "tenantId": "pb",
 
      "name": "NEWTest DRIVER",New Driver for Tech doc",
    "fatherOrHusbandName": "NEWTest DRIVER",New Driver for Tech doc",
    "relationship": "OTHER",

       "gender": "MALE",
        "dob": -19800000,
 
      "emailId": "abc@egov.com",
        "mobileNumber": "79797979797002159324"

   },
    "vendorDriverStatus": "INACTIVE"
}

After the driver details have been added, a toast message will appear indicating the successful addition of the driver, and the user will be redirected to the FSM Registry inbox.

...

To view a specific driver detail's details, click on the driver's name and you’ll land on , and you will be directed to the driver details page.

...

An FSM_ADMIN can also add /or update a new vendor from by clicking on the 'Add new New Vendor' plus icon.

...

List of Vendors shown in select vendor dropdown

...

ULB admin FSM_ADMIN also have the options to edit or delete driver under take action button.

...

Edit The edit screen page will render when admin click on edit option.

...

Delete pop be displayed when an FSM_ADMIN clicks on the edit option.

...

An FSM_ADMIN can update the Driver's License Number, Gender, Date of Birth (DOB), and Email.After an FSM_ADMIN updates the fields, a toast message will be displayed indicating the successful update of the fields.

...

The delete pop-up confirmation screen will render be displayed when click on the delete option is clicked.

...

Info

File path render in FSM Registry are below

...

Role Action Mapping:

 

 

API

ROLES

ACTION ID

1

/egov-mdms-service/v1/_searchFSM_ADMIN

LOA_CREATOR,WO_CREATOR,AE_CREATOR,WORKS_MASTER_CREATOR,UC_EMP,SUPERUSER

954

2

/vendor/driver/v1/_create

FSM_ADMIN,FSM_CREATOR_EMP,FSM_DSO,FSM_EDITOR_EMP,FSM_VIEW_EMP,FSM_EMP_FSTPO

2354

3

/vendor/driver/v1/_update

FSM_ADMIN,FSM_CREATOR_EMP,FSM_DSO,FSM_EDITOR_EMP,FSM_VIEW_EMP,FSM_EMP_FSTPO

2355

4

/vendor/v1/_search

FSM_CREATOR_EMP,FSM_ADMIN,FSM_DSO,FSM_EDITOR_EMP,FSM_VIEW_EMP,FSM_EMP_FSTPO,CITIZEN

2053

5

/vendor/driver/v1/_search

FSM_CREATOR_EMP,FSM_DSO,FSM_ADMIN,FSM_EDITOR_EMP,FSM_VIEW_EMP,FSM_EMP_FSTPO

2356