iptdevs-design-system 3.1.287 → 3.1.288
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 +1 -14
- package/esm2020/lib/cod/steps/cod-form-step-five/cod-form-step-five.component.mjs +1 -2
- package/fesm2015/iptdevs-design-system.mjs +0 -14
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +0 -14
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -4577,7 +4577,6 @@ class CodFormStepFiveComponent extends CodFormSteps {
|
|
|
4577
4577
|
this.codFormStepFive.markAllAsTouched();
|
|
4578
4578
|
if (this.codFormStepFive.invalid || this.termsCheckboxStatus === false)
|
|
4579
4579
|
return;
|
|
4580
|
-
console.log(this.isEditCod);
|
|
4581
4580
|
if (this.userRole == 30 || this.userRole == 31 || this.userRole == 32 ||
|
|
4582
4581
|
this.userRole == 40 || this.userRole == 41 || this.userRole == 42 ||
|
|
4583
4582
|
this.userRole == 50 || this.userRole == 51 || this.userRole == 52 ||
|
|
@@ -4751,7 +4750,6 @@ class CodFormComponent {
|
|
|
4751
4750
|
}
|
|
4752
4751
|
const totalData = [];
|
|
4753
4752
|
this.subscription = this.codFormControls.getControlValues().subscribe((controls) => {
|
|
4754
|
-
console.log(controls);
|
|
4755
4753
|
for (let i = 1; i <= this.formSteps; i++) {
|
|
4756
4754
|
let controlsByStep = controls[i - 1];
|
|
4757
4755
|
controlsByStep.forEach(control => {
|
|
@@ -4803,16 +4801,12 @@ class CodFormComponent {
|
|
|
4803
4801
|
this.subscription.unsubscribe();
|
|
4804
4802
|
}
|
|
4805
4803
|
updateCOD(totalData) {
|
|
4806
|
-
console.log('actualizando COD...');
|
|
4807
|
-
console.log("updateCOD");
|
|
4808
|
-
console.log(totalData);
|
|
4809
4804
|
if (this.codCreationSubscription && !this.codCreationSubscription.closed) {
|
|
4810
4805
|
return;
|
|
4811
4806
|
}
|
|
4812
4807
|
this.isLoading = true;
|
|
4813
4808
|
this.loaderMessage = 'Editando COD, espere un momento';
|
|
4814
4809
|
let request = this.getUpdateCOD(totalData);
|
|
4815
|
-
console.log(request);
|
|
4816
4810
|
this.commercialService.updateCOD(request).subscribe({
|
|
4817
4811
|
next: (response) => {
|
|
4818
4812
|
if (response.message.code === 1) {
|
|
@@ -4859,14 +4853,6 @@ class CodFormComponent {
|
|
|
4859
4853
|
this.codCreationSubscription = null;
|
|
4860
4854
|
}
|
|
4861
4855
|
});
|
|
4862
|
-
// this.commercialService.EditCod(request).subscribe({
|
|
4863
|
-
// next: (response: any) => {
|
|
4864
|
-
// this.isLoading = false;
|
|
4865
|
-
// this.loaderMessage = '';
|
|
4866
|
-
// },
|
|
4867
|
-
// error: (err: any) => {
|
|
4868
|
-
// }
|
|
4869
|
-
// });
|
|
4870
4856
|
}
|
|
4871
4857
|
createCOD(totalData) {
|
|
4872
4858
|
if (this.codCreationSubscription && !this.codCreationSubscription.closed) {
|