|
|
|
|
@ -312,7 +312,8 @@ export class HomeComponent implements OnInit {
|
|
|
|
|
arrayToFilter = this.newWorkListResponse.filter((workList) => {
|
|
|
|
|
return workList.ITEM_TYPE === filter;
|
|
|
|
|
});
|
|
|
|
|
this.showFormattedData = this.categorizeData(arrayToFilter);
|
|
|
|
|
const sortData = this.sortArray(arrayToFilter);
|
|
|
|
|
this.showFormattedData = this.categorizeData(sortData);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -417,12 +418,12 @@ export class HomeComponent implements OnInit {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
openNotificationDetail(obj) {
|
|
|
|
|
this.common.sharedService.setSharedData(obj[0], HomeComponent.NOTIFICATION_DATA);
|
|
|
|
|
this.common.sharedService.setSharedData(obj, HomeComponent.NOTIFICATION_DATA);
|
|
|
|
|
if (obj.REQUEST_TYPE === 'PR') {
|
|
|
|
|
this.common.openWorklistMainPRPage();
|
|
|
|
|
} else if (obj[0].REQUEST_TYPE === 'PO') {
|
|
|
|
|
} else if (obj.REQUEST_TYPE === 'PO') {
|
|
|
|
|
this.common.openWorklistMainPOPage();
|
|
|
|
|
} else if (obj[0].REQUEST_TYPE === 'MO') {
|
|
|
|
|
} else if (obj.REQUEST_TYPE === 'MO') {
|
|
|
|
|
this.common.openWorklistMainMRPage();
|
|
|
|
|
} else {
|
|
|
|
|
this.common.openWorklistMainPage();
|
|
|
|
|
|