Activity Summary
-
- Location :
-
+
+
+
+ Location:
+
+
{`${commentsData?.workItem?.workArea?.floor?.building?.name}`}{" "}
{" "}
- {`${commentsData?.workItem?.workArea?.floor?.floorName} `}{" "}
-
- {`${commentsData?.workItem?.workArea?.areaName}`}
-
- {` ${commentsData?.workItem?.activityMaster?.activityName}`}
-
-
+ {`${commentsData?.workItem?.workArea?.floor?.floorName}`}{" "}
+ {" "}
+ {`${commentsData?.workItem?.workArea?.areaName}`}{" "}
+ {" "}
+ {`${commentsData?.workItem?.activityMaster?.activityName}`}
+
+
-
- Assigned By :
-
- {commentsData?.assignedBy?.firstName +
- " " +
- commentsData?.assignedBy?.lastName}
- {" "}
-
+
+
+ {commentsData?.assignedBy && (
+
+
+ Assigned By:
+
+ {commentsData.assignedBy.firstName}{" "}
+ {commentsData.assignedBy.lastName}
+
+
+ )}
+
-
- Reported By :
-
- {" "}
- -
- {/* {commentsData?.assignedBy?.firstName +
- " " +
- commentsData?.assignedBy?.lastName} */}
- {" "}
-
+
+ {commentsData.reportedBy && (
+
+
+
Reported By:
+
+
+ {commentsData.reportedBy.firstName +
+ " " +
+ commentsData.reportedBy.lastName}
+
+
+ )}
+
+
+
+
+
+
+
+ Planned Work:
+
+ {commentsData?.plannedTask}{" "}
+ {commentsData?.workItem?.activityMaster?.unitOfMeasurement}
+
+
+
+
+
+ {commentsData?.reportedDate != null && (
+
+
+ Completed Work:
+
+ {commentsData?.completedTask}{" "}
+ {commentsData?.workItem?.activityMaster?.unitOfMeasurement}
+
+
+ )}
+
+
+
-
- Planned Work: {commentsData?.plannedTask}{" "}
- {commentsData?.workItem?.activityMaster?.unitOfMeasurement}
-
- {commentsData?.reportedDate != null && (
-
- {" "}
- Completed Work : {commentsData?.completedTask}{" "}
- {commentsData?.workItem?.activityMaster?.unitOfMeasurement}
-
- )}
- {!commentsData?.reportedDate && (
- Completed Work : -
- )}
-
Team :
+
+ Team :
+
{commentsData?.teamMembers?.map((member, idx) => (
@@ -175,50 +252,174 @@ const ReportTaskComments = ({ commentsData, closeModal }) => {
))}
+
-
Note:
-
+
+ Note:
+
+
{commentsData?.description}
- {commentsData?.reportedPreSignedUrls?.length > 0 && (
-
-
Attachment
-
+
+ {commentsData?.approvedBy && (
+ <>
+
+
+
+
+ {commentsData.approvedBy && (
+
+
+
Approved By:
+
+
+ {commentsData.approvedBy.firstName +
+ " " +
+ commentsData.approvedBy.lastName}
+
+
+ )}
+
+
+ {commentsData?.workStatus != null && (
+
+
+ Work Status :
+
+ {commentsData?.workStatus.name}
+ {/* {commentsData?.} */}
+
+
+ )}
+
+
+
+ Total Approved : {commentsData?.completedTask }
+
+ > )}
+
+ {commentsData?.reportedPreSignedUrls?.length > 0 && (
+ <>
+
+ Attachment :
+
+
+
+
+ >
)}
+