From ae665fb72dbb99e89fc08061e78967f463c98fff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com> Date: Thu, 15 Aug 2024 16:01:00 +0800 Subject: [PATCH] =?UTF-8?q?feature/2.15.1.2407.01-=E6=B5=AE=E5=8A=A8?= =?UTF-8?q?=E8=96=AA=E9=85=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pc4mobx/hrmSalary/pages/variableSalary/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pc4mobx/hrmSalary/pages/variableSalary/index.js b/pc4mobx/hrmSalary/pages/variableSalary/index.js index 0e7fae1d..115aa93e 100644 --- a/pc4mobx/hrmSalary/pages/variableSalary/index.js +++ b/pc4mobx/hrmSalary/pages/variableSalary/index.js @@ -72,7 +72,12 @@ class Index extends Component { case "export": const columns = _.map(_.filter(toJS(SFTableStore.columns), (item) => item.display === "true"), it => it.dataIndex); const { salaryMonth, taxAgentIds } = this.state; - const payload = { salaryMonth, taxAgentIds, columns, ...VSalryForm.getFormParams() }; + const payload = { + ...VSalryForm.getFormParams(), + taxAgentIds: !_.isEmpty(taxAgentIds) ? taxAgentIds.split(",") : [], + departmentIds: !_.isEmpty(VSalryForm.getFormParams().taxAgentIds) ? VSalryForm.getFormParams().taxAgentIds.split(",") : [], + salaryMonth, columns + }; WeaLoadingGlobal.start(); const promise = API.exportVariableSalary(payload); break;