iptdevs-design-system 3.1.148 → 3.1.150
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 +3 -1
- package/esm2020/lib/cod/steps/cod-form-step-four/cod-form-step-four.component.mjs +9 -4
- package/esm2020/lib/core/models/cod/cod-rq.model.mjs +1 -1
- package/fesm2015/iptdevs-design-system.mjs +10 -3
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +10 -3
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/lib/core/models/cod/cod-rq.model.d.ts +1 -0
- package/package.json +1 -1
|
@@ -3971,6 +3971,8 @@ class CodFormStepFourComponent extends CodFormSteps {
|
|
|
3971
3971
|
quota_times: ['', [Validators.required]],
|
|
3972
3972
|
total_price: [{ value: '', disabled: true }, [Validators.required]],
|
|
3973
3973
|
paid_level: ['', [Validators.required]],
|
|
3974
|
+
quota_price: ['', [Validators.required]],
|
|
3975
|
+
fee_number: ['', [Validators.required]],
|
|
3974
3976
|
});
|
|
3975
3977
|
this.listenPaymentMethodField();
|
|
3976
3978
|
}
|
|
@@ -4047,11 +4049,10 @@ class CodFormStepFourComponent extends CodFormSteps {
|
|
|
4047
4049
|
// quotaTimes: this.codPrices.filter(codPrice => codPrice.code === Number(this.codFormStepFour.controls['quota_times'].value))[0].fee_number,
|
|
4048
4050
|
// totalPrice: this.codFormStepFour.controls['total_price'].value,
|
|
4049
4051
|
// }
|
|
4050
|
-
const quotaValues = this.codPrices.filter(codPrice => codPrice.code === Number(this.codFormStepFour.controls['quota_times'].value))[0].quota_price;
|
|
4051
4052
|
let params = {
|
|
4052
4053
|
date: new Date(this.codFormStepFour.controls['payment_date'].value),
|
|
4053
|
-
quotaValues,
|
|
4054
|
-
quotaTimes:
|
|
4054
|
+
quotaValues: Number(this.codFormStepFour.controls['quota_price'].value),
|
|
4055
|
+
quotaTimes: Number(this.codFormStepFour.controls['fee_number'].value),
|
|
4055
4056
|
totalPrice: this.codFormStepFour.controls['total_price'].value,
|
|
4056
4057
|
};
|
|
4057
4058
|
console.log(params);
|
|
@@ -4136,6 +4137,8 @@ class CodFormStepFourComponent extends CodFormSteps {
|
|
|
4136
4137
|
this.codFormStepFour.controls['total_price'].setValue(dataPayment.enrollment);
|
|
4137
4138
|
this.codFormStepFour.controls['program_price'].setValue(dataPayment.financed_price);
|
|
4138
4139
|
this.codFormStepFour.controls['paid_level'].setValue(dataPayment.paid_level - 1);
|
|
4140
|
+
this.codFormStepFour.controls['fee_number'].setValue(dataPayment.fee_number);
|
|
4141
|
+
this.codFormStepFour.controls['quota_price'].setValue(dataPayment.quota_price);
|
|
4139
4142
|
this.updateValueAndValidity();
|
|
4140
4143
|
}
|
|
4141
4144
|
else if (this.codFormStepFour.get('payment_method')?.value == 2) {
|
|
@@ -4143,6 +4146,8 @@ class CodFormStepFourComponent extends CodFormSteps {
|
|
|
4143
4146
|
this.codFormStepFour.controls['total_price'].setValue(dataPayment.enrollment);
|
|
4144
4147
|
this.codFormStepFour.controls['program_price'].setValue(dataPayment.normal_price);
|
|
4145
4148
|
this.codFormStepFour.controls['paid_level'].setValue(dataPayment.paid_level - 1);
|
|
4149
|
+
this.codFormStepFour.controls['fee_number'].setValue(dataPayment.fee_number);
|
|
4150
|
+
this.codFormStepFour.controls['quota_price'].setValue(dataPayment.quota_price);
|
|
4146
4151
|
this.updateValueAndValidity();
|
|
4147
4152
|
}
|
|
4148
4153
|
}
|
|
@@ -4614,6 +4619,7 @@ class CodFormComponent {
|
|
|
4614
4619
|
payment_dates: this.financingData,
|
|
4615
4620
|
program_price: data.filter(data => data.control === 'program_price')[0].value,
|
|
4616
4621
|
total_price: data.filter(data => data.control === 'total_price')[0].value,
|
|
4622
|
+
paid_level: data.filter(data => data.control === 'paid_level')[0].value,
|
|
4617
4623
|
terms: data.filter(data => data.control === 'terms')[0].value,
|
|
4618
4624
|
re_password: data.filter(data => data.control === 're_password')[0].value,
|
|
4619
4625
|
age: data.filter(data => data.control === 'age')[0].value,
|
|
@@ -4622,6 +4628,7 @@ class CodFormComponent {
|
|
|
4622
4628
|
academic_plan: data.filter(data => data.control === 'academic_plan')[0].value,
|
|
4623
4629
|
code_refers: data.filter(data => data.control === 'code_refers')[0].value,
|
|
4624
4630
|
};
|
|
4631
|
+
console.log(request);
|
|
4625
4632
|
return request;
|
|
4626
4633
|
}
|
|
4627
4634
|
changeStep(step) {
|