Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Objectives

It allows 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 FSMCard and the home screen.

File Path:

Card: https://github.com/egovernments/DIGIT-Dev/blob/cdb6444a0e9c4aefa9f12844b98576dc371d484c/frontend/micro-ui/web/micro-ui-internals/packages/modules/fsm/src/components/FsmCard.js

ULB 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, 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/ca37076023a5af9a3635d3e275e69b93df15e55a/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 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 can search the driver by driver name in the search bar.

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

  • 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 payload sent to the "/vendor/driver/v1/_create" endpoint looks like the following:

{
    "tenantId": "pb.amritsar",
    "name": "NEW DRIVER",
    "licenseNumber": "7878787878",
    "status": "ACTIVE",
    "owner": {
        "tenantId": "pb",
        "name": "NEW DRIVER",
        "fatherOrHusbandName": "NEW DRIVER",
        "relationship": "OTHER",
        "gender": "MALE",
        "dob": -19800000,
        "emailId": "abc@egov.com",
        "mobileNumber": "7979797979"
    },
    "vendorDriverStatus": "INACTIVE"
}

To view specific driver detail, click on the driver name and you’ll land on the driver details page.

Admin can also add/update new vendor from the Add new Vendor plus icon.

List of Vendors shown in select vendor dropdown

ULB admin also have the options to edit or delete driver 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

New Components added in FSM for FSM registry

New CSS added

New Icon Added

Custom Hooks Added

Role Action Mapping:

 

 

API

ROLES

ACTION ID

1

/egov-mdms-service/v1/_search

FSM_ADMIN

954

2

/vendor/driver/v1/_create

FSM_ADMIN

2354

3

/vendor/driver/v1/_update

FSM_ADMIN

2355

4

/vendor/v1/_search

FSM_ADMIN

2053

5

/vendor/driver/v1/_search

FSM_ADMIN

2356

 

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.