From 69961a6c1574f0d06692d18f3ae6bdc34d90b099 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com>
Date: Mon, 9 Jan 2023 15:02:26 +0800
Subject: [PATCH] =?UTF-8?q?=E5=BA=94=E7=94=A8=E8=AE=BE=E7=BD=AE=E9=A1=B5?=
=?UTF-8?q?=E9=9D=A2=E6=96=B0=E5=A2=9E=E4=BF=AE=E6=94=B9=E9=A1=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pc4mobx/hrmSalary/pages/appConfig/index.js | 49 +++++++++++++++++++---
1 file changed, 43 insertions(+), 6 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/appConfig/index.js b/pc4mobx/hrmSalary/pages/appConfig/index.js
index 97054546..ec4dc5a5 100644
--- a/pc4mobx/hrmSalary/pages/appConfig/index.js
+++ b/pc4mobx/hrmSalary/pages/appConfig/index.js
@@ -5,16 +5,28 @@
* Date: 2022-09-27 18:17:02
*/
import React, { Component } from "react";
-import { WeaCheckbox, WeaDatePicker, WeaFormItem, WeaSearchGroup, WeaTop } from "ecCom";
+import { WeaCheckbox, WeaDatePicker, WeaFormItem, WeaInput, WeaSearchGroup, WeaTop } from "ecCom";
import * as API from "../../apis/ruleconfig";
import { Button, message } from "antd";
+const Input = (props) => {
+ const { label, value } = props;
+ return (
+
+
+
+ );
+};
+
class AppConfig extends Component {
constructor(props) {
super(props);
this.state = {
openAcctResultSum: "0",
displayEmpInfoReport: "0",
+ isLog: "0",
+ openFormulaForcedEditing: "0",
+ version: "",
loading: false
};
}
@@ -26,8 +38,13 @@ class AppConfig extends Component {
queryAppsetting = () => {
API.queryAppsetting().then(({ status, data }) => {
if (status) {
- const { openAcctResultSum, displayEmpInfoReport } = data;
- this.setState({ openAcctResultSum, displayEmpInfoReport });
+ const { openAcctResultSum, displayEmpInfoReport, isLog, openFormulaForcedEditing, version } = data;
+ this.setState({
+ openAcctResultSum, displayEmpInfoReport,
+ isLog: isLog === "true" ? "1" : "0",
+ openFormulaForcedEditing: openFormulaForcedEditing === "true" ? "1" : "0",
+ version
+ });
}
});
};
@@ -46,9 +63,15 @@ class AppConfig extends Component {
};
render() {
- const { openAcctResultSum, displayEmpInfoReport, loading } = this.state;
+ const { openAcctResultSum, displayEmpInfoReport, loading, openFormulaForcedEditing, isLog, version } = this.state;
const btns = [];
const items = [
+ {
+ com: Input({
+ label: "版本号",
+ value: version
+ })
+ },
{
com: CheckBox({
label: "显示薪资核算结果合计列",
@@ -66,6 +89,20 @@ class AppConfig extends Component {
this.setState({ displayEmpInfoReport });
}
})
+ },
+ {
+ com: CheckBox({
+ label: "是否输出日志",
+ disabled: true,
+ value: isLog
+ })
+ },
+ {
+ com: CheckBox({
+ label: "是否可编辑系统公式",
+ disabled: true,
+ value: openFormulaForcedEditing
+ })
}
];
return (
@@ -85,10 +122,10 @@ class AppConfig extends Component {
export default AppConfig;
export const CheckBox = payload => {
- const { label, onChange, value } = payload;
+ const { label, onChange, value, disabled = false } = payload;
return (
-
+
);
};