From 154d69d850a22413ffd3dcb96d27d9d1c53aa000 Mon Sep 17 00:00:00 2001 From: lys <971387674@qq.com> Date: Wed, 27 Nov 2024 14:49:03 +0800 Subject: [PATCH] release/2.17.1.2411.01 --- .../pages/variableSalary/components/salaryFileDialog/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pc4mobx/hrmSalary/pages/variableSalary/components/salaryFileDialog/index.js b/pc4mobx/hrmSalary/pages/variableSalary/components/salaryFileDialog/index.js index 90cc4633..8e9d740e 100644 --- a/pc4mobx/hrmSalary/pages/variableSalary/components/salaryFileDialog/index.js +++ b/pc4mobx/hrmSalary/pages/variableSalary/components/salaryFileDialog/index.js @@ -123,7 +123,7 @@ class Index extends Component { const [__, fields] = this.state.conditions, { items } = fields; _.forEach(items, o => { if (getKey(o) === key && o.dataType === "number") { - if (_.isNaN(Number(value))) { + if (_.isNaN(Number(value)) || value.indexOf(" ") !== -1) { const { baseTableStore: { VSSalaryFileForm } } = this.props; message.warning(getLabel(111, "数值类型有误!")); VSSalaryFileForm.updateFields({ [getKey(o)]: { value: "" } });