To resolve the issue and pass the 'acTaxPiIncomeReportingDetail' value to the API, you need to make the following changes in your code:

  1. In the 'submitForm()' method, before calling the API, assign the value of 'acTaxPiIncomeReportingDetail' to 'this.form.acTaxPiIncomeReportingDetail' using 'Object.assign()' or direct assignment:
this.form.acTaxPiIncomeReportingDetail = Object.assign({}, acTaxPiIncomeReportingDetail);

or

this.form.acTaxPiIncomeReportingDetail = acTaxPiIncomeReportingDetail;
  1. Then, pass 'this.form' as the first argument to the API method, instead of passing 'this.form' and 'acTaxPiIncomeReportingDetail' separately:
updateReportingEquityIncentive(this.form).then((response) => {
  // Rest of the code
});

// or

addReportingEquityIncentive(this.form).then((response) => {
  // Rest of the code
});

By doing this, the 'acTaxPiIncomeReportingDetail' value will be included in the 'this.form' object passed to the API, and the API will receive the correct value.

解决 acTaxPiIncomeReportingDetail 未传递给接口的问题

原文地址: https://www.cveoy.top/t/topic/peMB 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录