fantasy-ngzorro 2.1.5 → 2.1.6

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.
@@ -3972,7 +3972,7 @@
3972
3972
  formGroupObj[item.selectOption.label] = _this.fb.control(formLinesDataItem[item.selectOption.label] || null, []);
3973
3973
  }
3974
3974
  }));
3975
- formGroupObj.lineIndex = _this.fb.control(((/** @type {?} */ (tmpValidateHdFormLines.get("lines")))).controls.length, []);
3975
+ formGroupObj.lineIndex = _this.fb.control(((/** @type {?} */ (tmpValidateHdFormLines.get("lines")))).controls.length + 1, []);
3976
3976
  /** @type {?} */
3977
3977
  var formGroupTmp = _this.fb.group(formGroupObj);
3978
3978
  _this.formLines.forEach((/**
@@ -4351,7 +4351,7 @@
4351
4351
  }
4352
4352
  }));
4353
4353
  }
4354
- formGroupObj.lineIndex = this.fb.control(this.linesFormArray.controls.length, []);
4354
+ formGroupObj.lineIndex = this.fb.control(this.linesFormArray.controls.length + 1, []);
4355
4355
  formGroupObj.isHdFormLineSearchAdd = this.fb.control(this.isFilterData, []);
4356
4356
  /** @type {?} */
4357
4357
  var formGroupSubmit = this.fb.group(formGroupObj);
@@ -4418,6 +4418,7 @@
4418
4418
  function (formLinesDataItem) {
4419
4419
  _this.linesFormArray.insert(_this.linesFormArray.controls.length, _this.createLineFromValues(formLinesDataItem));
4420
4420
  }));
4421
+ this.calculateLineNumber();
4421
4422
  this.tableLoading = false;
4422
4423
  this.showForm = true;
4423
4424
  };