@@ -626,7 +635,7 @@ export default class PayrollGrant extends React.Component {
{
- !_.isEmpty(this.getColumns()) ?
+ !loading ?
}
+ {/*工资单预览*/}
+
this.setState({
+ payrollPreviewDialog: {
+ ...payrollPreviewDialog,
+ visible: false
+ }
+ })}/>
);
}
diff --git a/pc4mobx/hrmSalary/pages/payrollFiles/components/salaryFileAdvanceSearchPannel/index.js b/pc4mobx/hrmSalary/pages/payrollFiles/components/salaryFileAdvanceSearchPannel/index.js
index d7b43cd5..3f164873 100644
--- a/pc4mobx/hrmSalary/pages/payrollFiles/components/salaryFileAdvanceSearchPannel/index.js
+++ b/pc4mobx/hrmSalary/pages/payrollFiles/components/salaryFileAdvanceSearchPannel/index.js
@@ -41,7 +41,7 @@ class salaryFileAdvanceSearchPannel extends Component {
...child,
options: _.map(userStatusList, o => ({ key: String(o.value), showname: o.defaultLabel }))
};
- } else if (getKey(child) === "taxAgentId") {
+ } else if (getKey(child) === "taxAgentIds") {
return {
...child,
options: _.map(taxAgentList, o => ({ key: o.id, showname: o.content }))
diff --git a/pc4mobx/hrmSalary/pages/payrollFiles/config/index.js b/pc4mobx/hrmSalary/pages/payrollFiles/config/index.js
index b51d1ab3..ca402fc7 100644
--- a/pc4mobx/hrmSalary/pages/payrollFiles/config/index.js
+++ b/pc4mobx/hrmSalary/pages/payrollFiles/config/index.js
@@ -324,10 +324,11 @@ export const salaryFileSearchConditions = [
},
{
conditionType: "SELECT",
- domkey: ["taxAgentId"],
+ domkey: ["taxAgentIds"],
fieldcol: 16,
label: getLabel(537996, "个税扣缴义务人"),
labelcol: 8,
+ multiple: true,
options: [],
viewAttr: 2
},
diff --git a/pc4mobx/hrmSalary/pages/reportView/components/condition.js b/pc4mobx/hrmSalary/pages/reportView/components/condition.js
index f0c3b8e6..d6668459 100644
--- a/pc4mobx/hrmSalary/pages/reportView/components/condition.js
+++ b/pc4mobx/hrmSalary/pages/reportView/components/condition.js
@@ -403,8 +403,8 @@ export const mapBarOptions = (params) => ({
},
grid: {
top: "10%",
- right: "0%",
- left: "5%",
+ right: "2%",
+ left: "2%",
bottom: "10%",
containLabel: true
},
@@ -457,8 +457,9 @@ export const mapBarOptions = (params) => ({
series: _.map(params.data, (item, index) => {
return {
name: item.name,
- barWidth: "32",
- barGap: "0%",
+ barMaxWidth: 30,
+ barMinWidth: 10,
+ barGap: 0,
data: _.map(item.data, (it) => it.replace(/,/g, "")),
type: "bar",
itemStyle: {
@@ -484,6 +485,10 @@ export const mapBarOptions = (params) => ({
];
}
},
+ textStyle: {
+ textShadowColor: "transparent",
+ color: "#fff"
+ },
rich: {
a: {
fontWeight: "bold",
@@ -501,8 +506,9 @@ export const mapBarOptions = (params) => ({
}),
dataZoom: [
{
- type: "inside"
-
+ type: "inside",
+ start: params.xAxis.length <= 7 ? 0 : 25,
+ end: params.xAxis.length <= 7 ? 100 : 75,
},
{
type: "slider",
diff --git a/pc4mobx/hrmSalary/pages/reportView/components/reportContent.js b/pc4mobx/hrmSalary/pages/reportView/components/reportContent.js
index a7808410..7509d3df 100644
--- a/pc4mobx/hrmSalary/pages/reportView/components/reportContent.js
+++ b/pc4mobx/hrmSalary/pages/reportView/components/reportContent.js
@@ -5,8 +5,8 @@
* Date: 2023/4/21
*/
import React, { Component } from "react";
-import { Spin } from "antd";
-import { WeaEchart } from "ecCom";
+import { message, Spin } from "antd";
+import { WeaEchart, WeaLocaleProvider } from "ecCom";
import RightOptions from "./rightOptions";
import ChartsRangeSettingsModal from "./chartsRangeSettingsModal";
import { mapBarOptions, mapLineOptions, mapPieOptions } from "./condition";
@@ -15,6 +15,8 @@ import PovitpivotChartModal from "./povitpivotChartModal";
import { getSalaryMonthValue } from "./statisticalMicroSettingsSlide";
import "../index.less";
+const getLabel = WeaLocaleProvider.getLabel;
+
class ReportContent extends Component {
constructor(props) {
super(props);
@@ -33,7 +35,8 @@ class ReportContent extends Component {
rangSet: {
visible: false, reportId: "",
rangeVal: {}
- }
+ },
+ pageInfo: { current: 1, pageSize: 10, total: 0 }
};
}
@@ -56,9 +59,9 @@ class ReportContent extends Component {
handleReceive = ({ data }) => {
const { type, payload: { id, params } = {} } = data;
if (type === "init") {
- const { columns, countResult, dataSource } = this.state;
+ const { columns, countResult, dataSource, pageInfo } = this.state;
this.postMessageToChild({
- columns, countResult, dataSource,
+ columns, countResult, dataSource, pageInfo,
showSum: !_.isEmpty(countResult)
});
} else if (type === "turn") {
@@ -72,30 +75,38 @@ class ReportContent extends Component {
visible: true, id: pivotId, dimensionId, dimensionValue, isShare
}
});
+ } else if (id === "PAGEINFO_REPORT") {
+ this.setState({ pageInfo: { ...this.state.pageInfo, ...params } }, () => this.reportStatisticsReportGetData(this.props.report));
}
}
};
postMessageToChild = (payload) => {
+ const i18n = {
+ "共": getLabel(18609, "共"), "条": getLabel(18256, "条"),
+ "总计": getLabel(523, "总计")
+ };
const childFrameObj = document.getElementById("atdTable");
- const { dataSource, columns, showSum, countResult } = payload;
+ const { dataSource, columns, showSum, countResult, pageInfo } = payload;
childFrameObj && childFrameObj.contentWindow.postMessage(JSON.stringify({
- dataSource, columns, showSum, countResult
+ dataSource, columns, showSum, countResult, i18n, pageInfo
}), "*");
};
reportStatisticsReportGetData = (params) => {
- const { id, dimensionId, isShare, timeType, salaryEndMonth: end, salaryStartMonth: start } = params;
+ const { pageInfo } = this.state;
+ const { id, dimension, dimensionId, isShare, timeType, salaryEndMonth: end, salaryStartMonth: start } = params;
const [salaryStartMonth, salaryEndMonth] = getSalaryMonthValue(timeType);
const payload = {
- id, dimensionId, isShare,
+ id, dimensionId, isShare, ...pageInfo,
salaryStartMonth: (salaryStartMonth || start) + "-01", salaryEndMonth: (salaryEndMonth || end) + "-01"
};
this.setState({ loading: true });
reportStatisticsReportGetData(payload).then(({ status, data }) => {
this.setState({ loading: false });
if (status && id.toString() === data.reportId.toString()) {
- const { countResult, columns, pageInfo: { list } } = data;
+ const { countResult, columns, pageInfo: { list, pageNum, pageSize, total } } = data;
this.setState({
- countResult,
+ countResult, dataSource: list || [],
+ pageInfo: dimension === getLabel(111, "人员") ? { ...pageInfo, current: pageNum, pageSize, total } : null,
columns: _.map(columns, it => ({
...it,
dataIndex: it.column, width: it.width ? it.width + "px" : 150,
@@ -105,12 +116,11 @@ class ReportContent extends Component {
dataIndex: child.column, width: child.width ? child.width + "px" : 150,
title: child.text, align: "center"
})) : []
- })),
- dataSource: list || []
+ }))
}, () => {
this.postMessageToChild({
columns: this.state.columns, countResult: this.state.countResult,
- dataSource: this.state.dataSource,
+ dataSource: this.state.dataSource, pageInfo: this.state.pageInfo,
showSum: !_.isEmpty(this.state.countResult)
});
});
@@ -195,6 +205,11 @@ class ReportContent extends Component {
}).catch(() => this.setState({ loading: false }));
};
handleChangeChartOpts = (chartsType, viewType) => {
+ const { loading } = this.state;
+ if (loading) {
+ message.info(getLabel(111, "列表正在加载中,请稍后"));
+ return;
+ }
this.setState({ chartsInfo: {} });
if (this.refs.chart && viewType !== "setting" && viewType !== "dataView" && !this.state.rangSet.visible) this.refs.chart.clear();
const { report: { id: reportId } } = this.props;
diff --git a/pc4mobx/hrmSalary/pages/reportView/components/statisticalMicroSettingsSlide.js b/pc4mobx/hrmSalary/pages/reportView/components/statisticalMicroSettingsSlide.js
index 6b2e496c..a3da8363 100644
--- a/pc4mobx/hrmSalary/pages/reportView/components/statisticalMicroSettingsSlide.js
+++ b/pc4mobx/hrmSalary/pages/reportView/components/statisticalMicroSettingsSlide.js
@@ -412,7 +412,10 @@ const StatisticalScopePicker = (props) => {
{
- return current && endDate && current.getTime() > new Date(endDate).getTime();
+ if (!current || !endDate) return false;
+ const start = moment(startDate || endDate).subtract(11, "months").format("YYYY-MM");
+ const end = moment(startDate).add(12, "months").format("YYYY-MM");
+ return current.getTime() < new Date(start).getTime() || current.getTime() > new Date(endDate || end).getTime();
}}
format="YYYY-MM"
onChange={(val) => onChange([val, endDate], timeType)}
@@ -422,7 +425,11 @@ const StatisticalScopePicker = (props) => {
{
- return current && startDate && current.getTime() < new Date(startDate).getTime();
+ if (!current || !startDate) return false;
+ const start = moment(endDate).subtract(12, "months").format("YYYY-MM");
+ const end = moment(endDate || startDate).add(12, "months").format("YYYY-MM");
+
+ return current.getTime() > new Date(end).getTime() || current.getTime() < new Date(startDate || start).getTime();
}}
format="YYYY-MM"
viewAttr={viewAttr}
diff --git a/pc4mobx/hrmSalary/pages/reportView/index.js b/pc4mobx/hrmSalary/pages/reportView/index.js
index 82f935e5..4d01e7c0 100644
--- a/pc4mobx/hrmSalary/pages/reportView/index.js
+++ b/pc4mobx/hrmSalary/pages/reportView/index.js
@@ -6,13 +6,12 @@
*/
import React, { Component } from "react";
import { inject, observer } from "mobx-react";
-import { WeaLeftRightLayout, WeaLocaleProvider, WeaSelect, WeaTop } from "ecCom";
+import { WeaLeftRightLayout, WeaLoadingGlobal, WeaLocaleProvider, WeaSelect, WeaTop } from "ecCom";
import { message, Modal } from "antd";
import LeftTab from "./components/leftTab";
import ReportContent from "./components/reportContent";
import StatisticalMicroSettingsSlide, { getSalaryMonthValue } from "./components/statisticalMicroSettingsSlide";
-import { reportGetForm, reportStatisticsReportSave } from "../../apis/ruleconfig";
-import { convertToUrlString } from "../../util/url";
+import { exportDataReport, reportGetForm, reportStatisticsReportSave } from "../../apis/ruleconfig";
import TopBtns from "./components/topBtns";
import "./index.less";
@@ -92,6 +91,10 @@ class Index extends Component {
* Date: 2023/4/24
*/
exportData = () => {
+ if (this.reportRef.state.loading) {
+ message.info(getLabel(111, "列表正在加载中,请稍后"));
+ return;
+ }
const { report } = this.state;
const { id, dimensionId, isShare, timeType, salaryEndMonth: end, salaryStartMonth: start } = report;
const [salaryStartMonth, salaryEndMonth] = getSalaryMonthValue(timeType);
@@ -99,7 +102,8 @@ class Index extends Component {
id, dimensionId, isShare,
salaryStartMonth: (salaryStartMonth || start) + "-01", salaryEndMonth: (salaryEndMonth || end) + "-01"
};
- window.open(`${window.location.origin}/api/bs/hrmsalary/report/statistics/report/exportData?${convertToUrlString(payload)}`, "_blank");
+ WeaLoadingGlobal.start();
+ const promise = exportDataReport(payload);
};
render() {
diff --git a/pc4mobx/hrmSalary/pages/ruleConfig/form.js b/pc4mobx/hrmSalary/pages/ruleConfig/form.js
index c1308ec4..9b17f248 100644
--- a/pc4mobx/hrmSalary/pages/ruleConfig/form.js
+++ b/pc4mobx/hrmSalary/pages/ruleConfig/form.js
@@ -1,7 +1,9 @@
import React from "react";
-import { WeaFormItem, WeaSearchGroup } from "ecCom";
+import { WeaFormItem, WeaSearchGroup, WeaTools } from "ecCom";
import { WeaSwitch } from "comsMobx";
+const getKey = WeaTools.getKey;
+
export const renderRuleForm = (form, condition, onChange) => {
const { isFormInit } = form;
const formParams = form.getFormParams();
@@ -15,7 +17,11 @@ export const renderRuleForm = (form, condition, onChange) => {
label={`${fields.label}`} labelCol={{ span: `${fields.labelcol}` }}
wrapperCol={{ span: `${fields.fieldcol}` }} error={form.getError(fields)}
tipPosition="bottom">
-
+ getKey(fields) !== "salaryAcctFixedColumns" && onChange(v)}
+ onBlur={(v) => getKey(fields) === "salaryAcctFixedColumns" && onChange({ salaryAcctFixedColumns: { value: v } })}
+ />
),
colSpan: 1,
hide: fields.hide
diff --git a/pc4mobx/hrmSalary/pages/ruleConfig/ruleConfig.js b/pc4mobx/hrmSalary/pages/ruleConfig/ruleConfig.js
index efda13dd..3f24a0d6 100644
--- a/pc4mobx/hrmSalary/pages/ruleConfig/ruleConfig.js
+++ b/pc4mobx/hrmSalary/pages/ruleConfig/ruleConfig.js
@@ -25,6 +25,7 @@ class RuleConfig extends Component {
super(props);
this.state = { conditions: [], sysinfo: {}, progressVisible: false, progress: 50 };
this.timer = null;
+ this.handleDebounce = null;
}
componentDidMount() {
@@ -116,16 +117,22 @@ class RuleConfig extends Component {
case "taxAgentShowStatus":
case "salaryShowStatus":
case "adjustShowStatus":
- const confTitle = {
- welBaseDiffByPerAndCom: getLabel(111, "福利档案基数区分个人和公司"),
- welBaseAutoAdjust: getLabel(111, "福利档案导入基数不符合要求时自动调整为上限/下限"),
- salaryAcctFixedColumns: getLabel(545791, "薪资核算固定列头数"),
- extEmpsWitch: getLabel(544097, "开启非系统人员"),
- taxAgentShowStatus: getLabel(111, "显示【个税扣缴义务人】信息"),
- salaryShowStatus: getLabel(111, "显示工资单页签"),
- adjustShowStatus: getLabel(111, "显示调薪记录页签")
- };
- this.unifiedSettings(key, confTitle[key]);
+ if (!this.handleDebounce) {
+ this.handleDebounce = _.debounce(() => {
+ const confTitle = {
+ welBaseDiffByPerAndCom: getLabel(111, "福利档案基数区分个人和公司"),
+ welBaseAutoAdjust: getLabel(111, "福利档案导入基数不符合要求时自动调整为上限/下限"),
+ salaryAcctFixedColumns: getLabel(545791, "薪资核算固定列头数"),
+ extEmpsWitch: getLabel(544097, "开启非系统人员"),
+ taxAgentShowStatus: getLabel(111, "显示【个税扣缴义务人】信息"),
+ salaryShowStatus: getLabel(111, "显示工资单页签"),
+ adjustShowStatus: getLabel(111, "显示调薪记录页签")
+ };
+ this.unifiedSettings(key, confTitle[key]);
+ this.handleDebounce = null;
+ }, 500);
+ }
+ this.handleDebounce();
break;
default:
break;
diff --git a/pc4mobx/hrmSalary/pages/salary/components/taxAgentTable.js b/pc4mobx/hrmSalary/pages/salary/components/taxAgentTable.js
index 8783090b..c21d1d41 100644
--- a/pc4mobx/hrmSalary/pages/salary/components/taxAgentTable.js
+++ b/pc4mobx/hrmSalary/pages/salary/components/taxAgentTable.js
@@ -6,6 +6,7 @@
*/
import React, { Component } from "react";
import { WeaLocaleProvider, WeaTable } from "ecCom";
+import { Dropdown, Menu } from "antd";
import * as API from "../../../apis/taxAgent";
import "./index.less";
@@ -114,6 +115,17 @@ class TaxAgentTable extends Component {
onOperate("delete", record.id)}>{getLabel(535052, "删除")}
}
+
+
+ onOperate("log", record.id)}>{getLabel(545781, "操作日志")}
+
+
+ }>
+
+
}
]}
diff --git a/pc4mobx/hrmSalary/pages/salary/index.less b/pc4mobx/hrmSalary/pages/salary/index.less
index 8373a244..de04ce9f 100644
--- a/pc4mobx/hrmSalary/pages/salary/index.less
+++ b/pc4mobx/hrmSalary/pages/salary/index.less
@@ -37,7 +37,7 @@
.ant-col-10 {
span:nth-child(2) {
- margin-top: -6px;
+ //margin-top: -6px;
}
}
}
diff --git a/pc4mobx/hrmSalary/pages/salary/taxAgent.js b/pc4mobx/hrmSalary/pages/salary/taxAgent.js
index 4cd931fc..4ab69a82 100644
--- a/pc4mobx/hrmSalary/pages/salary/taxAgent.js
+++ b/pc4mobx/hrmSalary/pages/salary/taxAgent.js
@@ -7,6 +7,7 @@ import ComHint from "./components/comHint";
import TaxAgentTable from "./components/taxAgentTable";
import TaxAgentSlide from "./components/taxAgentSlide";
import * as API from "../../apis/taxAgent";
+import LogDialog from "../../components/logViewModal";
import "./index.less";
const { getLabel } = WeaLocaleProvider;
@@ -24,7 +25,9 @@ class TaxAgent extends Component {
taxAgentSlideProps: {
isEdit: false, visible: false, title: getLabel(543629, "新增个税扣缴义务人"),
taxAgentId: "", current: 0, salaryOn: true
- }
+ },
+ logDialogVisible: false,
+ filterConditions: "[]"
};
this.taxAgentTableRef = null;
}
@@ -165,6 +168,12 @@ class TaxAgent extends Component {
}
});
break;
+ case "log":
+ this.setState({
+ logDialogVisible: true,
+ filterConditions: itemId ? `[{\"connectCondition\":\"AND\",\"columIndex\":\"targetid\",\"type\":\"=\",\"value\":\"${itemId}\"}]` : "[]"
+ });
+ break;
default:
break;
}
@@ -173,7 +182,7 @@ class TaxAgent extends Component {
render() {
const {
searchValue, decentralization, taxAgentSlideProps,
- permission, syncLoading
+ permission, syncLoading, logDialogVisible, filterConditions
} = this.state;
const btns = [
{
@@ -226,6 +242,9 @@ class TaxAgent extends Component {
onOk={() => this.taxAgentTableRef.getTaxAgentList()}
onCancel={(isUpdate = false) => this.handelResetSlide(isUpdate)}
/>
+ {/*操作日志*/}
+ this.setState({ logDialogVisible: false })}/>
);
diff --git a/pc4mobx/hrmSalary/pages/salaryItem/columns.js b/pc4mobx/hrmSalary/pages/salaryItem/columns.js
index e34b5431..b2cae4bd 100644
--- a/pc4mobx/hrmSalary/pages/salaryItem/columns.js
+++ b/pc4mobx/hrmSalary/pages/salaryItem/columns.js
@@ -128,13 +128,14 @@ export const salaryItemFields = [
viewAttr: 2,
tip: ""
},
- // {
- // key: "defaultValue",
- // label: "默认值",
- // type: "INPUT",
- // viewAttr: 2,
- // tip: ""
- // },
+ {
+ key: "defaultValue",
+ label: "默认值",
+ type: "INPUT",
+ viewAttr: 2,
+ precision: 2,
+ tip: ""
+ },
{
key: "formulaContent",
label: "公式",
diff --git a/pc4mobx/hrmSalary/pages/salaryItem/index.js b/pc4mobx/hrmSalary/pages/salaryItem/index.js
index 4be1e225..09875add 100644
--- a/pc4mobx/hrmSalary/pages/salaryItem/index.js
+++ b/pc4mobx/hrmSalary/pages/salaryItem/index.js
@@ -2,7 +2,7 @@ import React from "react";
import { inject, observer } from "mobx-react";
import { Button, Dropdown, Menu, message, Modal, Switch } from "antd";
import { WeaInputSearch, WeaLocaleProvider, WeaNewScroll, WeaSlideModal, WeaTop } from "ecCom";
-import { renderLoading } from "../../util";
+import { renderLoading, toDecimal_n } from "../../util";
import CustomTab from "../../components/customTab";
import SystemSalaryItemModal from "./systemSalaryItemModal";
import { columns } from "./columns";
@@ -314,16 +314,21 @@ export default class SalaryItem extends React.Component {
});
return;
}
- saveItem(payload, continueFlag).then(() => {
- getTableDatas({ ...this.state.searchParams }).then(res => {
- this.setState({
- searchParams: {
- ...this.state.searchParams,
- total: res.total
- }
+ const { pattern, defaultValue, dataType, ...extra } = payload;
+ saveItem({
+ ...extra, pattern, dataType,
+ defaultValue: dataType === "number" ? toDecimal_n(defaultValue, parseInt(pattern)) : defaultValue
+ }, continueFlag)
+ .then(() => {
+ getTableDatas({ ...this.state.searchParams }).then(res => {
+ this.setState({
+ searchParams: {
+ ...this.state.searchParams,
+ total: res.total
+ }
+ });
});
});
- });
};
const renderCustomOperate = () => {
diff --git a/pc4mobx/hrmSalary/pages/salaryItem/options.js b/pc4mobx/hrmSalary/pages/salaryItem/options.js
index 7dbd51b4..58e64e3e 100644
--- a/pc4mobx/hrmSalary/pages/salaryItem/options.js
+++ b/pc4mobx/hrmSalary/pages/salaryItem/options.js
@@ -71,6 +71,16 @@ export const patternOptions = [
key: "8",
showname: "8",
selected: false
+ },
+ {
+ key: "9",
+ showname: "9",
+ selected: false
+ },
+ {
+ key: "10",
+ showname: "10",
+ selected: false
}
];
diff --git a/pc4mobx/hrmSalary/pages/salaryItem/salaryItemForm.js b/pc4mobx/hrmSalary/pages/salaryItem/salaryItemForm.js
index 47d48a73..4a1ed275 100644
--- a/pc4mobx/hrmSalary/pages/salaryItem/salaryItemForm.js
+++ b/pc4mobx/hrmSalary/pages/salaryItem/salaryItemForm.js
@@ -51,7 +51,7 @@ class SalaryItemForm extends Component {
return {
...item,
label: getLabel(item.lanId, item.label),
- display: ((!isLedger && key === "width") || key === "sortedIndex")
+ display: !isLedger
};
case "useInEmployeeSalary":
return {
@@ -88,7 +88,7 @@ class SalaryItemForm extends Component {
return {
...item,
type: dataType === "number" ? "INPUTNUMBER" : "INPUT",
- display: valueType && valueType.toString() === "1",
+ display: valueType && valueType.toString() === "1" && useInEmployeeSalary == 0,
viewAttr: (isLedger && record.canEdit) || (editable && record.canEdit) || isAdd ? 2 : 1
};
case "formulaContent":
@@ -122,6 +122,8 @@ class SalaryItemForm extends Component {
return { ...item, type: v === "number" ? "INPUTNUMBER" : "INPUT" };
} else if (key === "valueType" && item.key === "defaultValue") {
return { ...item, display: v === "1" };
+ } else if (key === "pattern" && item.key === "defaultValue") {
+ return { ...item, precision: parseInt(v) };
} else if (key === "valueType" && (item.key === "originSqlContent" || item.key === "originFormulaContent")) {
return {
...item,
@@ -133,11 +135,11 @@ class SalaryItemForm extends Component {
return { ...item };
})
}, () => {
- // if (key === "valueType" && !this.props.isLedger) {
- // onChangeFieldsItem({ formulaContent: "", formulaId: 0, valueType: v });
- // } else {
- onChangeFieldsItem({ [key]: (key === "useDefault" || key === "useInEmployeeSalary" || key === "hideDefault") ? Number(v) : v });
- // }
+ if (key === "dataType") {
+ onChangeFieldsItem({ [key]: v, defaultValue: "" });
+ } else {
+ onChangeFieldsItem({ [key]: (key === "useDefault" || key === "useInEmployeeSalary" || key === "hideDefault") ? Number(v) : v });
+ }
});
};
@@ -148,7 +150,7 @@ class SalaryItemForm extends Component {