awf-test-lib 0.0.51 → 0.0.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/shared/contact-support/contact-support.component.mjs +4 -2
- package/esm2020/lib/shared/maintenance-list/maintenance-list.component.mjs +42 -6
- package/fesm2015/awf-test-lib.mjs +44 -6
- package/fesm2015/awf-test-lib.mjs.map +1 -1
- package/fesm2020/awf-test-lib.mjs +44 -6
- package/fesm2020/awf-test-lib.mjs.map +1 -1
- package/package.json +1 -1
@@ -733,10 +733,12 @@ class ContactSupportComponent {
|
|
733
733
|
this.displayNumber = false;
|
734
734
|
}
|
735
735
|
sendContactMeEmailMethode() {
|
736
|
+
console.log(this.form.value.reason);
|
737
|
+
console.log(this.reasonContact);
|
736
738
|
this.detailedPmJob.name = this.form.value.name;
|
737
739
|
this.detailedPmJob.phone = this.form.value.phone;
|
738
740
|
this.detailedPmJob.email = this.form.value.email;
|
739
|
-
this.detailedPmJob.reason = (this.reasonContact === ReasonContact.MoreDatesFormPm) ? this.reasons[0].
|
741
|
+
this.detailedPmJob.reason = (this.reasonContact === ReasonContact.MoreDatesFormPm) ? this.reasons[0].code : this.form.value.reason.code;
|
740
742
|
this.detailedPmJob.comment = this.form.value.message;
|
741
743
|
this.detailedPmJob.reasonContact = this.reasonContact;
|
742
744
|
this.detailedPmJob.futureStatus = this.slectsFutureStatus(this.form.value.reason.code);
|
@@ -1030,18 +1032,53 @@ class MaintenanceListComponent {
|
|
1030
1032
|
closeConfirmDialogContact(confirm) {
|
1031
1033
|
this.displayConfirmDialogContact = false;
|
1032
1034
|
if (confirm) {
|
1035
|
+
console.log("hello world");
|
1033
1036
|
this.emailTypes = [];
|
1034
|
-
if (this.
|
1035
|
-
this.
|
1036
|
-
this.
|
1037
|
+
if (this.maintenanceSelected.reason === "MPM") {
|
1038
|
+
this.maintenanceSelected.pmJob.customObject = {};
|
1039
|
+
this.maintenanceSelected.pmJob.customObject.customerWaiting = StingBoolean.YES;
|
1040
|
+
this.maintenanceSelected.futureStatus = PmJobStatus.WAITING;
|
1041
|
+
this.emailTypes.push(EmailType.SendNewDates_Clients);
|
1042
|
+
this.emailTypes.push(EmailType.SendNewDates_CSC);
|
1037
1043
|
}
|
1038
|
-
else if (this.
|
1044
|
+
else if (this.maintenanceSelected.reason === "RPM") {
|
1045
|
+
this.maintenanceSelected.pmJob.customObject = {};
|
1046
|
+
this.maintenanceSelected.pmJob.customObject.customerWaiting = StingBoolean.YES;
|
1047
|
+
this.maintenanceSelected.futureStatus = PmJobStatus.WAITING;
|
1048
|
+
this.emailTypes.push(EmailType.ReportDate_Clients);
|
1049
|
+
this.emailTypes.push(EmailType.ReportDate_CSC);
|
1050
|
+
}
|
1051
|
+
else if (this.maintenanceSelected.reason === "CPM") {
|
1039
1052
|
this.maintenanceSelected.pmJob.customObject = {};
|
1040
1053
|
this.maintenanceSelected.pmJob.customObject.customerWaiting = StingBoolean.YES;
|
1041
1054
|
this.maintenanceSelected.futureStatus = PmJobStatus.WAITING;
|
1042
|
-
this.emailTypes.push(EmailType.CancelPM_CSC);
|
1043
1055
|
this.emailTypes.push(EmailType.CancelPM_Clients);
|
1056
|
+
this.emailTypes.push(EmailType.CancelPM_CSC);
|
1044
1057
|
}
|
1058
|
+
else if (this.maintenanceSelected.reason === "SDI") {
|
1059
|
+
this.emailTypes.push(EmailType.ContactMe_Clients);
|
1060
|
+
this.emailTypes.push(EmailType.ContactMe_CSC);
|
1061
|
+
}
|
1062
|
+
else if (this.maintenanceSelected.reason === "OTH") {
|
1063
|
+
this.emailTypes.push(EmailType.ContactMe_Clients);
|
1064
|
+
this.emailTypes.push(EmailType.ContactMe_CSC);
|
1065
|
+
}
|
1066
|
+
/*if(this.reasonContact === ReasonContact.ContactFormPm )
|
1067
|
+
{
|
1068
|
+
|
1069
|
+
this.emailTypes.push(EmailType.ContactMe_Clients);
|
1070
|
+
this.emailTypes.push(EmailType.ContactMe_CSC);
|
1071
|
+
|
1072
|
+
}
|
1073
|
+
else if(this.reasonContact === ReasonContact.CancelFormPm )
|
1074
|
+
{
|
1075
|
+
this.maintenanceSelected.pmJob.customObject= {};
|
1076
|
+
this.maintenanceSelected.pmJob.customObject.customerWaiting =StingBoolean.YES ;
|
1077
|
+
this.maintenanceSelected.futureStatus = PmJobStatus.WAITING ;
|
1078
|
+
this.emailTypes.push(EmailType.CancelPM_CSC);
|
1079
|
+
this.emailTypes.push(EmailType.CancelPM_Clients);
|
1080
|
+
|
1081
|
+
}*/
|
1045
1082
|
else {
|
1046
1083
|
this.maintenanceSelected.pmJob.customObject = {};
|
1047
1084
|
this.maintenanceSelected.pmJob.customObject.customerWaiting = StingBoolean.YES;
|
@@ -1074,6 +1111,7 @@ class MaintenanceListComponent {
|
|
1074
1111
|
this.callApiToUpdate();
|
1075
1112
|
}
|
1076
1113
|
closeContactSupport(event) {
|
1114
|
+
console.log("hello world");
|
1077
1115
|
this.displaycontactSupport = false;
|
1078
1116
|
this.showDate = false;
|
1079
1117
|
this.reasonContact = "";
|