hotfix/2.14.2.2406.02
This commit is contained in:
parent
230aea8d62
commit
5a2ecefa6f
|
|
@ -1,7 +1,9 @@
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { WeaFormItem, WeaSearchGroup } from "ecCom";
|
import { WeaFormItem, WeaSearchGroup, WeaTools } from "ecCom";
|
||||||
import { WeaSwitch } from "comsMobx";
|
import { WeaSwitch } from "comsMobx";
|
||||||
|
|
||||||
|
const getKey = WeaTools.getKey;
|
||||||
|
|
||||||
export const renderRuleForm = (form, condition, onChange) => {
|
export const renderRuleForm = (form, condition, onChange) => {
|
||||||
const { isFormInit } = form;
|
const { isFormInit } = form;
|
||||||
const formParams = form.getFormParams();
|
const formParams = form.getFormParams();
|
||||||
|
|
@ -15,7 +17,11 @@ export const renderRuleForm = (form, condition, onChange) => {
|
||||||
label={`${fields.label}`} labelCol={{ span: `${fields.labelcol}` }}
|
label={`${fields.label}`} labelCol={{ span: `${fields.labelcol}` }}
|
||||||
wrapperCol={{ span: `${fields.fieldcol}` }} error={form.getError(fields)}
|
wrapperCol={{ span: `${fields.fieldcol}` }} error={form.getError(fields)}
|
||||||
tipPosition="bottom">
|
tipPosition="bottom">
|
||||||
<WeaSwitch fieldConfig={fields} form={form} formParams={formParams} onChange={onChange}/>
|
<WeaSwitch
|
||||||
|
fieldConfig={fields} form={form} formParams={formParams}
|
||||||
|
onChange={v => getKey(fields) !== "salaryAcctFixedColumns" && onChange(v)}
|
||||||
|
onBlur={(v) => getKey(fields) === "salaryAcctFixedColumns" && onChange({ salaryAcctFixedColumns: { value: v } })}
|
||||||
|
/>
|
||||||
</WeaFormItem>),
|
</WeaFormItem>),
|
||||||
colSpan: 1,
|
colSpan: 1,
|
||||||
hide: fields.hide
|
hide: fields.hide
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,7 @@ class RuleConfig extends Component {
|
||||||
super(props);
|
super(props);
|
||||||
this.state = { conditions: [], sysinfo: {}, progressVisible: false, progress: 50 };
|
this.state = { conditions: [], sysinfo: {}, progressVisible: false, progress: 50 };
|
||||||
this.timer = null;
|
this.timer = null;
|
||||||
|
this.handleDebounce = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
|
|
@ -116,16 +117,22 @@ class RuleConfig extends Component {
|
||||||
case "taxAgentShowStatus":
|
case "taxAgentShowStatus":
|
||||||
case "salaryShowStatus":
|
case "salaryShowStatus":
|
||||||
case "adjustShowStatus":
|
case "adjustShowStatus":
|
||||||
const confTitle = {
|
if (!this.handleDebounce) {
|
||||||
welBaseDiffByPerAndCom: getLabel(111, "福利档案基数区分个人和公司"),
|
this.handleDebounce = _.debounce(() => {
|
||||||
welBaseAutoAdjust: getLabel(111, "福利档案导入基数不符合要求时自动调整为上限/下限"),
|
const confTitle = {
|
||||||
salaryAcctFixedColumns: getLabel(545791, "薪资核算固定列头数"),
|
welBaseDiffByPerAndCom: getLabel(111, "福利档案基数区分个人和公司"),
|
||||||
extEmpsWitch: getLabel(544097, "开启非系统人员"),
|
welBaseAutoAdjust: getLabel(111, "福利档案导入基数不符合要求时自动调整为上限/下限"),
|
||||||
taxAgentShowStatus: getLabel(111, "显示【个税扣缴义务人】信息"),
|
salaryAcctFixedColumns: getLabel(545791, "薪资核算固定列头数"),
|
||||||
salaryShowStatus: getLabel(111, "显示工资单页签"),
|
extEmpsWitch: getLabel(544097, "开启非系统人员"),
|
||||||
adjustShowStatus: getLabel(111, "显示调薪记录页签")
|
taxAgentShowStatus: getLabel(111, "显示【个税扣缴义务人】信息"),
|
||||||
};
|
salaryShowStatus: getLabel(111, "显示工资单页签"),
|
||||||
this.unifiedSettings(key, confTitle[key]);
|
adjustShowStatus: getLabel(111, "显示调薪记录页签")
|
||||||
|
};
|
||||||
|
this.unifiedSettings(key, confTitle[key]);
|
||||||
|
this.handleDebounce = null;
|
||||||
|
}, 500);
|
||||||
|
}
|
||||||
|
this.handleDebounce();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue