- {{qcStatus}} +
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-report/pd-report.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-report/pd-report.component.ts index d7ad19799..f9a6d5d2d 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-report/pd-report.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-report/pd-report.component.ts @@ -179,9 +179,9 @@ export class PdReportComponent implements OnInit { - reportReview(): void { + reportReview(status): void { const dialogRef = this.dialog.open(QcReviewComponent, { - data: { startId : this.startPD }, + data: { startId : this.startPD, data_status: status }, disableClose: true }); dialogRef.afterClosed() diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-report/qc-review/qc-review.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-report/qc-review/qc-review.component.html index c67d819ea..4c2fe1a30 100644 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-report/qc-review/qc-review.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-report/qc-review/qc-review.component.html @@ -1,23 +1,49 @@ -

QC Completed Review

- - -
-
-
- - Remarks - - -
-
- +
+

QC Complete

+ + +
+

+ Because you've marked the document as QC Complete, you can't edit this document. +

- -
- - - - - +
+
+
+ +
+
+ + Remarks + + +
+
+
+ + + + + + +
- +
+

QC Remarks

+ +
+
+
+ + Remarks + + +
+
+
+
+ + + + +
\ No newline at end of file diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-report/qc-review/qc-review.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-report/qc-review/qc-review.component.ts index e87e9c5a0..c054a5d7c 100644 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-report/qc-review/qc-review.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-report/qc-review/qc-review.component.ts @@ -17,10 +17,12 @@ import { }) export class QcReviewComponent implements OnInit { + conformation: Boolean = false; @Input() questionId: number; ngForm: FormGroup; recordData: any; showForm: Boolean; + showStatus : any; /** * Notifier service */ @@ -31,7 +33,7 @@ export class QcReviewComponent implements OnInit { private dialogRef: MatDialogRef, @Inject(MAT_DIALOG_DATA) public data: any) { this.notifier = notifier; - + this.showStatus = this.data.data_status; // this.mycontent = `

My html content

`; } @@ -40,19 +42,39 @@ export class QcReviewComponent implements OnInit { } getQcCompleteReviewStatus() { - this.pdTrigerService.getQCReportFinalReviewDetails(this.data.startId, "QC").subscribe(data => { - if(data['dataStatus']){ - this.recordData = data.records[0]; - this.ngForm = this._formBuilder.group({ - qc_remarks: [this.recordData.qc_remarks], - qc_rating: [Number(this.recordData.qc_rating)], - pd_status: [this.recordData.pd_status], - }) - this.showForm = true; - } - },err => { + let type ; ''; + if( this.showStatus === 'REMARKS'){ + type = 'QC_REMARKS'; + this.pdTrigerService.getQCReportFinalReviewDetails(this.data.startId, type).subscribe(data => { + if(data['dataStatus']){ + this.recordData = data.records[0]; + this.ngForm = this._formBuilder.group({ + qc_remarks: [this.recordData.qc_remarks], + pd_status: [this.recordData.pd_status] + }) + this.showForm = true; + } + },err => { - }); + }); + } else if(this.showStatus === 'COMPLETE') { + type = 'QC'; + this.pdTrigerService.getQCReportFinalReviewDetails(this.data.startId, type).subscribe(data => { + if(data['dataStatus']){ + this.recordData = data.records[0]; + this.ngForm = this._formBuilder.group({ + qc_feedback: [this.recordData.qc_feedback], + qc_rating: [Number(this.recordData.qc_rating)], + pd_status: ["QC_COMPLETED"], + }) + this.showForm = true; + } + },err => { + + }); + } else { + } + } onChange($event: any): void { diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.html index 8c26e9ebf..87a3a1ddf 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.html @@ -13,7 +13,7 @@ - +
@@ -175,6 +175,23 @@
+
+ +
+
QC Remarks
+
+

+ {{ pdMasterData[0].qc_remarks}}

+

+ {{ pdMasterData[0]?.qc_feedback}}

+
+

+ +

+
+ +
+