iptdevs-design-system 2.7.69 → 2.7.71

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.
@@ -2964,7 +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);
2967
+ // this.codFormStepTwo.controls['grade'].setValue(this.adicinfoData.grade);
2968
+ // this.codFormStepTwo.controls['student_occupation'].setValue(this.adicinfoData.occupation);
2968
2969
  this.codFormStepTwo.controls['nickname'].setValue(this.initialData.student.nick_name);
2969
2970
  this.codFormStepTwo.controls['student_phone_indicative'].setValue(this.initialData.student.phone_indicative);
2970
2971
  this.codFormStepTwo.controls['student_phone_number'].setValue(this.initialData.student.phone_number);
@@ -3203,16 +3204,12 @@ class CodFormStepThreeComponent extends CodFormSteps {
3203
3204
  this.controls = new CodFormControls().controls[2];
3204
3205
  }
3205
3206
  ngOnInit() {
3206
- if (this.parentData != null) {
3207
- console.log('parent data');
3208
- }
3209
- if (this.adicinfoData) {
3210
- console.log('adicional info');
3211
- }
3212
3207
  this.getParameters();
3213
3208
  this.initForm();
3214
3209
  this.startLocalStorageWork();
3215
3210
  this.validateErrors();
3211
+ if (this.parentData != null) {
3212
+ }
3216
3213
  }
3217
3214
  validateErrors() {
3218
3215
  this.codFormStepThree.valueChanges.subscribe(changes => {
@@ -3300,6 +3297,15 @@ class CodFormStepThreeComponent extends CodFormSteps {
3300
3297
  this.codFormControls.changeValue(3, control.name, false);
3301
3298
  });
3302
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
+ }
3303
3309
  updateValueAndValidity() {
3304
3310
  this.codFormStepThree.controls['parent_id_card_type'].updateValueAndValidity();
3305
3311
  this.codFormStepThree.controls['parent_id_card'].updateValueAndValidity();
@@ -3899,21 +3905,17 @@ class CodFormComponent {
3899
3905
  this.subscription.unsubscribe();
3900
3906
  }
3901
3907
  getAditionalInfoCod(codeAdicI) {
3902
- let request = {
3903
- adic_info: codeAdicI
3904
- };
3908
+ let request = { adic_info: codeAdicI };
3905
3909
  this.commercialService.getAdicInfoByCode(request).subscribe((response) => {
3906
- console.log(response.data);
3907
- this.dataAdicInfo = response.data;
3910
+ console.log(response.data[0]);
3911
+ this.dataAdicInfo = response.data[0];
3908
3912
  });
3909
3913
  }
3910
3914
  getDataParent(codeParent) {
3911
- let request = {
3912
- parent_code: codeParent
3913
- };
3915
+ let request = { parent_code: codeParent };
3914
3916
  this.commercialService.getCodParentByCode(request).subscribe((response) => {
3915
- console.log(response.data);
3916
- this.dataParent = response.data;
3917
+ console.log(response.data[0]);
3918
+ this.dataParent = response.data[0];
3917
3919
  });
3918
3920
  }
3919
3921
  updateCOD(totalData) {