iptdevs-design-system 3.1.281 → 3.1.283
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/steps/cod-form-step-five/cod-form-step-five.component.mjs +12 -3
- package/fesm2015/iptdevs-design-system.mjs +12 -3
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +11 -2
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -4529,7 +4529,7 @@ class CodFormStepFiveComponent extends CodFormSteps {
|
|
|
4529
4529
|
multiculturalism_6: [false, []],
|
|
4530
4530
|
multiculturalism_7: [false, []],
|
|
4531
4531
|
health_regimen: ['', [Validators.required]],
|
|
4532
|
-
code_refers: ['
|
|
4532
|
+
code_refers: [''],
|
|
4533
4533
|
code_cod: [''],
|
|
4534
4534
|
document_refers: [{ value: '', disabled: true }],
|
|
4535
4535
|
name_refers: [{ value: '', disabled: true }],
|
|
@@ -4611,7 +4611,15 @@ class CodFormStepFiveComponent extends CodFormSteps {
|
|
|
4611
4611
|
this.codFormStepFive.controls['disability'].setValue(this.initialData.aditional_information?.disability);
|
|
4612
4612
|
this.codFormStepFive.controls['health_regimen'].setValue(this.initialData.aditional_information?.health_regimen);
|
|
4613
4613
|
this.codFormStepFive.controls['observation'].setValue(this.initialData.aditional_information?.observation);
|
|
4614
|
-
this.codFormStepFive.controls['code_refers'].setValue(this.initialData.
|
|
4614
|
+
this.codFormStepFive.controls['code_refers'].setValue(this.initialData.cod_referral?.user_referred.code);
|
|
4615
|
+
if (this.codFormStepFive.get('code_refers')?.value != null) {
|
|
4616
|
+
this.visbleReferred = true;
|
|
4617
|
+
// this.codFormStepFive.controls['code_refers'].setValue(this.initialData.cod_referral?.user_referred.code);
|
|
4618
|
+
this.codFormStepFive.controls['document_refers'].setValue(this.initialData.cod_referral?.user_referred.id_card);
|
|
4619
|
+
this.codFormStepFive.controls['name_refers'].setValue(this.initialData.cod_referral?.user_referred.name);
|
|
4620
|
+
this.codFormStepFive.controls['phone_refers'].setValue(this.initialData.cod_referral?.user_referred.phone_number);
|
|
4621
|
+
this.codFormStepFive.controls['email_refers'].setValue(this.initialData.cod_referral?.user_referred.email);
|
|
4622
|
+
}
|
|
4615
4623
|
this.codFormStepFive.controls['code_cod'].setValue(this.initialData.code);
|
|
4616
4624
|
}
|
|
4617
4625
|
setDataFromUserHistory() {
|
|
@@ -4621,6 +4629,7 @@ class CodFormStepFiveComponent extends CodFormSteps {
|
|
|
4621
4629
|
this.codFormStepFive.controls['health_regimen'].setValue(null);
|
|
4622
4630
|
this.codFormStepFive.controls['observation'].setValue(null);
|
|
4623
4631
|
this.codFormStepFive.controls['code_refers'].setValue(null);
|
|
4632
|
+
this.codFormStepFive.controls['code_cod'].setValue(null);
|
|
4624
4633
|
}
|
|
4625
4634
|
cleanComponent() {
|
|
4626
4635
|
this.resetLocalStorage(this.controls);
|