From f0139232855bb2926d4f395bf44abbbce8f22360 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com> Date: Tue, 3 Jan 2023 10:36:13 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E8=96=AA=E8=B5=84=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E5=85=AC=E5=BC=8F=E6=B7=BB=E5=8A=A0=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pc4mobx/hrmSalary/pages/salaryItem/formalFormModal.js | 8 ++++++-- pc4mobx/hrmSalary/pages/salaryItem/index.less | 6 ++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/pc4mobx/hrmSalary/pages/salaryItem/formalFormModal.js b/pc4mobx/hrmSalary/pages/salaryItem/formalFormModal.js index bfad58ff..a7e697af 100644 --- a/pc4mobx/hrmSalary/pages/salaryItem/formalFormModal.js +++ b/pc4mobx/hrmSalary/pages/salaryItem/formalFormModal.js @@ -64,7 +64,7 @@ export default class FormalFormModal extends React.Component { let groupParams = {}; if (this.referenceType == "sql") { groupParams = { "referenceType": "sql" }; - }else{ + } else { groupParams = this.props.backCalcType === "issuedItems" ? { "referenceType": "backCalc" } : {}; } salaryAcctImportTemplateParam(groupParams); @@ -257,9 +257,13 @@ export default class FormalFormModal extends React.Component { const { salaryItemStore } = this.props; const { searchGroup, searchFields } = salaryItemStore; const { value, formulaDatasourceList, extendParam } = this.state; + const title =
+
{`${(this.props.valueType == 2 || this.props.valueType === "FORMULA") ? "函数" : "SQL"}公式`}
+ +
; return ( Date: Wed, 4 Jan 2023 09:46:20 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E8=96=AA=E8=B5=84=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/salaryItem/formalFormModal.js | 12 +++- pc4mobx/hrmSalary/pages/salaryItem/index.less | 31 +++++++++- .../hrmSalary/pages/salaryItem/testModal.js | 58 +++++++++++++++++++ 3 files changed, 95 insertions(+), 6 deletions(-) create mode 100644 pc4mobx/hrmSalary/pages/salaryItem/testModal.js diff --git a/pc4mobx/hrmSalary/pages/salaryItem/formalFormModal.js b/pc4mobx/hrmSalary/pages/salaryItem/formalFormModal.js index a7e697af..e86155d5 100644 --- a/pc4mobx/hrmSalary/pages/salaryItem/formalFormModal.js +++ b/pc4mobx/hrmSalary/pages/salaryItem/formalFormModal.js @@ -3,6 +3,7 @@ import { Button, Col, Icon, Modal, Row } from "antd"; import { WeaCheckbox, WeaDialog, WeaFormItem, WeaHelpfulTip, WeaInput, WeaSelect, WeaTextarea } from "ecCom"; import { inject, observer } from "mobx-react"; import "./index.less"; +import TestModal from "./testModal"; @inject("salaryItemStore") @observer @@ -21,7 +22,8 @@ export default class FormalFormModal extends React.Component { } }, returnValue: "", - formulaDatasourceList: [] + formulaDatasourceList: [], + testVisible: false }; this.group = {}; this.field = {}; @@ -256,10 +258,14 @@ export default class FormalFormModal extends React.Component { render() { const { salaryItemStore } = this.props; const { searchGroup, searchFields } = salaryItemStore; - const { value, formulaDatasourceList, extendParam } = this.state; + const { value, formulaDatasourceList, extendParam, testVisible } = this.state; const title =
{`${(this.props.valueType == 2 || this.props.valueType === "FORMULA") ? "函数" : "SQL"}公式`}
- + { + value && + } + {/*公式测试*/} + this.setState({ testVisible: false })}/>
; return (