根据提供的代码,我注意到在 submitForm() 函数中,只有当 this.form.personId 不为 null 时,才会将 this.form.reportingPeriodDate 设置为 this.collection。在修改提交的情况下,this.form.personId 可能为 null,因此 this.form.reportingPeriodDate 可能没有被正确设置。

你可以尝试在 if (this.form.personId != null) 条件块之前,添加以下代码,将 this.form.reportingPeriodDate 设置为 this.collection

this.form.reportingPeriodDate = this.collection;

这样,无论 this.form.personId 是否为 null,this.form.reportingPeriodDate 都将被设置为 this.collection。同时,请确保 this.collection 的值是正确的所得期间时间。

如何修改所得期间时间并提交?

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

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