diff --git a/pc4mobx/hrmSalary/components/excelEditor/components/codeAction.js b/pc4mobx/hrmSalary/components/excelEditor/components/codeAction.js index 1ab26b1f..bca61000 100644 --- a/pc4mobx/hrmSalary/components/excelEditor/components/codeAction.js +++ b/pc4mobx/hrmSalary/components/excelEditor/components/codeAction.js @@ -117,7 +117,7 @@ class CodeAction extends Component { const variableDatalist = _.filter(variableList, it => it.value.indexOf(variableText) !== -1); const funcDatalist = _.map(funcList, it => ({ ...it, - children: _.filter(it.children, child => _.lowerCase(child.name).indexOf(funcText) !== -1) + children: _.filter(it.children, child => _.lowerCase(child.name).indexOf(_.lowerCase(funcText)) !== -1) })); return (
diff --git a/pc4mobx/hrmSalary/pages/salaryItem/formalFormModal.js b/pc4mobx/hrmSalary/pages/salaryItem/formalFormModal.js index af53df43..1dcfce4a 100644 --- a/pc4mobx/hrmSalary/pages/salaryItem/formalFormModal.js +++ b/pc4mobx/hrmSalary/pages/salaryItem/formalFormModal.js @@ -16,6 +16,7 @@ export default class FormalFormModal extends React.Component { validateType: "", returnType: "", value: "", + formula: "", extendParam: { isCustomFunction: "0", sqlReturnKey: "", @@ -66,6 +67,7 @@ export default class FormalFormModal extends React.Component { } this.setState({ value: data.formula, + formula: data.formula, returnType: data.returnType, validateType: data.validateType }); @@ -335,14 +337,13 @@ export default class FormalFormModal extends React.Component { render() { const { salaryItemStore } = this.props; const { searchGroup, searchFields } = salaryItemStore; - const { value, formulaDatasourceList, extendParam, testVisible, showTestVal, groupParams } = this.state; + const { value, formula, formulaDatasourceList, extendParam, testVisible, showTestVal, groupParams } = this.state; const title =
{`${(this.props.valueType == 2 || this.props.valueType === "FORMULA") ? "函数" : "SQL"}公式`}
{ !_.isEmpty(this.parameters) &&