iptdevs-design-system 2.7.68 → 2.7.70
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/cod/cod-form/cod-form.component.mjs +9 -9
- package/esm2020/lib/cod/steps/cod-form-step-three/cod-form-step-three.component.mjs +12 -7
- package/esm2020/lib/cod/steps/cod-form-step-two/cod-form-step-two.component.mjs +3 -1
- package/fesm2015/iptdevs-design-system.mjs +21 -14
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +21 -14
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/lib/cod/steps/cod-form-step-three/cod-form-step-three.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -2964,6 +2964,8 @@ class CodFormStepTwoComponent extends CodFormSteps {
|
|
|
2964
2964
|
// this.codFormStepTwo.controls['state'].setValue(this.initialData.student.id_card);
|
|
2965
2965
|
// this.codFormStepTwo.controls['city'].setValue(this.initialData.student.city);
|
|
2966
2966
|
this.codFormStepTwo.controls['gender'].setValue(this.initialData.student.gender);
|
|
2967
|
+
this.codFormStepTwo.controls['grade'].setValue(this.adicinfoData.grade);
|
|
2968
|
+
this.codFormStepTwo.controls['student_occupation'].setValue(this.adicinfoData.occupation);
|
|
2967
2969
|
this.codFormStepTwo.controls['nickname'].setValue(this.initialData.student.nick_name);
|
|
2968
2970
|
this.codFormStepTwo.controls['student_phone_indicative'].setValue(this.initialData.student.phone_indicative);
|
|
2969
2971
|
this.codFormStepTwo.controls['student_phone_number'].setValue(this.initialData.student.phone_number);
|
|
@@ -3202,16 +3204,12 @@ class CodFormStepThreeComponent extends CodFormSteps {
|
|
|
3202
3204
|
this.controls = new CodFormControls().controls[2];
|
|
3203
3205
|
}
|
|
3204
3206
|
ngOnInit() {
|
|
3205
|
-
if (this.parentData != null) {
|
|
3206
|
-
console.log('parent data');
|
|
3207
|
-
}
|
|
3208
|
-
if (this.adicinfoData) {
|
|
3209
|
-
console.log('adicional info');
|
|
3210
|
-
}
|
|
3211
3207
|
this.getParameters();
|
|
3212
3208
|
this.initForm();
|
|
3213
3209
|
this.startLocalStorageWork();
|
|
3214
3210
|
this.validateErrors();
|
|
3211
|
+
if (this.parentData != null) {
|
|
3212
|
+
}
|
|
3215
3213
|
}
|
|
3216
3214
|
validateErrors() {
|
|
3217
3215
|
this.codFormStepThree.valueChanges.subscribe(changes => {
|
|
@@ -3299,6 +3297,15 @@ class CodFormStepThreeComponent extends CodFormSteps {
|
|
|
3299
3297
|
this.codFormControls.changeValue(3, control.name, false);
|
|
3300
3298
|
});
|
|
3301
3299
|
}
|
|
3300
|
+
setValueStepThree() {
|
|
3301
|
+
this.codFormStepThree.controls['parent_id_card_type'].setValue(this.parentData.id_card_type);
|
|
3302
|
+
this.codFormStepThree.controls['parent_id_card'].setValue(this.parentData.id_card);
|
|
3303
|
+
this.codFormStepThree.controls['parent_last_name'].setValue(this.parentData.last_name);
|
|
3304
|
+
this.codFormStepThree.controls['parent_name'].setValue(this.parentData.name);
|
|
3305
|
+
this.codFormStepThree.controls['parent_phone_indicative'].setValue(this.parentData.phone_indicative);
|
|
3306
|
+
this.codFormStepThree.controls['parent_occupation'].setValue(this.adicinfoData.parent_occupation);
|
|
3307
|
+
this.codFormStepThree.controls['parent_phone_number'].setValue(this.parentData.phone_number);
|
|
3308
|
+
}
|
|
3302
3309
|
updateValueAndValidity() {
|
|
3303
3310
|
this.codFormStepThree.controls['parent_id_card_type'].updateValueAndValidity();
|
|
3304
3311
|
this.codFormStepThree.controls['parent_id_card'].updateValueAndValidity();
|
|
@@ -3812,6 +3819,8 @@ class CodFormComponent {
|
|
|
3812
3819
|
if (changes['codCode']) {
|
|
3813
3820
|
this.formTitle = 'Formulario para verificar información del COD';
|
|
3814
3821
|
this.getCodbyCode();
|
|
3822
|
+
this.getAditionalInfoCod(this.dataFromPreviusCodData.aditional_information);
|
|
3823
|
+
this.getDataParent(this.dataFromPreviusCodData.parent);
|
|
3815
3824
|
}
|
|
3816
3825
|
else {
|
|
3817
3826
|
this.formTitle = 'Formulario para creación del COD';
|
|
@@ -3896,19 +3905,17 @@ class CodFormComponent {
|
|
|
3896
3905
|
this.subscription.unsubscribe();
|
|
3897
3906
|
}
|
|
3898
3907
|
getAditionalInfoCod(codeAdicI) {
|
|
3899
|
-
let request = {
|
|
3900
|
-
adic_info: codeAdicI
|
|
3901
|
-
};
|
|
3908
|
+
let request = { adic_info: codeAdicI };
|
|
3902
3909
|
this.commercialService.getAdicInfoByCode(request).subscribe((response) => {
|
|
3903
|
-
console.log(response.data);
|
|
3910
|
+
console.log(response.data[0]);
|
|
3911
|
+
this.dataAdicInfo = response.data[0];
|
|
3904
3912
|
});
|
|
3905
3913
|
}
|
|
3906
3914
|
getDataParent(codeParent) {
|
|
3907
|
-
let request = {
|
|
3908
|
-
parent_code: codeParent
|
|
3909
|
-
};
|
|
3915
|
+
let request = { parent_code: codeParent };
|
|
3910
3916
|
this.commercialService.getCodParentByCode(request).subscribe((response) => {
|
|
3911
|
-
console.log(response.data);
|
|
3917
|
+
console.log(response.data[0]);
|
|
3918
|
+
this.dataParent = response.data[0];
|
|
3912
3919
|
});
|
|
3913
3920
|
}
|
|
3914
3921
|
updateCOD(totalData) {
|