{getLabel(543475, "考勤取值周期")}
diff --git a/pc4mobx/hrmSalary/stores/attendanceStore.js b/pc4mobx/hrmSalary/stores/attendanceStore.js
index 142caa6d..40dcf875 100644
--- a/pc4mobx/hrmSalary/stores/attendanceStore.js
+++ b/pc4mobx/hrmSalary/stores/attendanceStore.js
@@ -22,6 +22,9 @@ export class AttendanceStore {
@observable extensionForm = new WeaForm(); //扩展属性
@action("报表查看-扩展属性表单初始化")
initExtensionForm = () => this.extensionForm = new WeaForm();
+ @observable tempForm = new WeaForm(); //扩展属性
+ @action("薪资明细-模板设置表单初始化")
+ initTempForm = () => this.tempForm = new WeaForm();
@action("报表查看-分享报表表单初始化")
initShareForm = () => this.shareForm = new WeaForm();
From bd81fe44b27c5876ca64be7949c6617353b73b15 Mon Sep 17 00:00:00 2001
From: lys <971387674@qq.com>
Date: Thu, 7 Nov 2024 16:15:45 +0800
Subject: [PATCH 110/141] =?UTF-8?q?release/2.16.1.2410.01=20=E8=96=AA?=
=?UTF-8?q?=E8=B5=84=E6=A1=A3=E6=A1=88=E6=B7=BB=E5=8A=A0=E8=B0=83=E8=96=AA?=
=?UTF-8?q?=E6=97=A5=E6=9C=9F=E7=9A=84=E6=B3=9B=E5=BE=AE=E9=80=89=E6=8B=A9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pc4mobx/hrmSalary/pages/payrollFiles/config/index.js | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/pc4mobx/hrmSalary/pages/payrollFiles/config/index.js b/pc4mobx/hrmSalary/pages/payrollFiles/config/index.js
index e1ee1288..ce378ee6 100644
--- a/pc4mobx/hrmSalary/pages/payrollFiles/config/index.js
+++ b/pc4mobx/hrmSalary/pages/payrollFiles/config/index.js
@@ -358,6 +358,15 @@ export const salaryFileSearchConditions = [
labelcol: 8,
value: "",
viewAttr: 2
+ },
+ {
+ conditionType: "RANGEPICKER",
+ domkey: ["adjustSalaryStartDate", "adjustSalaryEndDate"],
+ fieldcol: 16,
+ label: getLabel(111, "调薪日期"),
+ labelcol: 8,
+ value: "",
+ viewAttr: 2
}
],
defaultshow: true,
From 641c5f367f43fbc80a3522062064b2c773e9f706 Mon Sep 17 00:00:00 2001
From: lys <971387674@qq.com>
Date: Fri, 8 Nov 2024 10:02:24 +0800
Subject: [PATCH 111/141] =?UTF-8?q?feature/2.16.1.2410.01-=E8=96=AA?=
=?UTF-8?q?=E9=85=AC=E7=BB=9F=E8=AE=A1=E6=8A=A5=E8=A1=A8=E8=96=AA=E8=B5=84?=
=?UTF-8?q?=E6=98=8E=E7=BB=86=E6=B7=BB=E5=8A=A0=E6=A8=A1=E6=9D=BF=E5=88=87?=
=?UTF-8?q?=E6=8D=A2=E5=92=8C=E6=A8=A1=E6=9D=BF=E5=88=9B=E5=BB=BA=E5=8A=9F?=
=?UTF-8?q?=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/salaryDetails.js | 27 +++++++++++++------
.../pages/analysisOfSalaryStatistics/index.js | 15 +++++++----
.../analysisOfSalaryStatistics/index.less | 4 +++
.../hrmSalary/pages/ruleConfig/conditions.js | 10 +++++++
.../hrmSalary/pages/ruleConfig/ruleConfig.js | 13 +++++++--
5 files changed, 54 insertions(+), 15 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/salaryDetails.js b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/salaryDetails.js
index f49bf4ac..6b3826c2 100644
--- a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/salaryDetails.js
+++ b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/salaryDetails.js
@@ -5,6 +5,7 @@
* Date: 2024/3/26
*/
import React, { Component } from "react";
+import { toJS } from "mobx";
import { inject, observer } from "mobx-react";
import { WeaTableNew } from "comsMobx";
import { WeaLoadingGlobal, WeaLocaleProvider, WeaSelect } from "ecCom";
@@ -131,28 +132,34 @@ class SalaryDetails extends Component {
}).catch(() => this.setState({ loading: false }));
};
handleExportSalaryList = (key) => {
- let { selectedRowKeys, payload, columns } = this.state;
+ const { attendanceStore: { tableStore }, salaryDetailShowType } = this.props;
+ let { selectedRowKeys, payload, columns: tempCols } = this.state;
+ const customCols = _.filter(toJS(tableStore.columns), (item) => item.display === "true" && item.dataIndex !== "acctTimes");
+ const columns = salaryDetailShowType === "1" ? _.filter(tempCols, o => o.column !== "acctTimes") : customCols;
if (key === "SELECTED" && selectedRowKeys.length === 0) {
message.warning(getLabel(543345, "请选择需要导出的数据!"));
return;
}
WeaLoadingGlobal.start();
const promise = API.exportSalaryList({
- ...payload, ids: key === "SELECTED" ? selectedRowKeys : [], columns: _.map(columns, o => o.column)
+ ...payload, ids: key === "SELECTED" ? selectedRowKeys : [], columns: _.map(columns, o => o.column || o.dataIndex)
});
};
getColumns = () => {
+ const { attendanceStore: { tableStore }, salaryDetailShowType } = this.props;
const {
- columns, dataSource, pageInfo, selectedRowKeys, showTotalCell, payload, updateSum, transferDialog
+ columns: tempCols, dataSource, pageInfo, selectedRowKeys, showTotalCell, payload, updateSum, transferDialog
} = this.state;
+ const customCols = _.filter(toJS(tableStore.columns), (item) => item.display === "true" && item.dataIndex !== "acctTimes");
const sumRowlistUrl = showTotalCell ? "/api/bs/hrmsalary/report/statistics/employee/salaryListSum" : "";
+ const columns = salaryDetailShowType === "1" ? _.filter(tempCols, o => o.column !== "acctTimes") : customCols;
if (!_.isEmpty(columns) && !transferDialog.visible && !transferDialog.cancel) {
this.postMessageToChild({
dataSource, pageInfo, selectedRowKeys, showTotalCell, calcDetail: true, tableScrollHeight: 154,
sumRowlistUrl, payload: { ...payload, updateSum },
columns: _.map(columns, (it, idx) => ({
- dataIndex: it.column, title: it.text, calcDetail: true,
- width: (it.dataIndex === "taxAgent" || it.dataIndex === "salarySob") ? 176 : it.width,
+ dataIndex: it.column || it.dataIndex, title: it.text || it.title, calcDetail: true,
+ width: (it.dataIndex === "taxAgent" || it.dataIndex === "salarySob") ? 176 : (it.width || it.oldWidth),
fixed: (idx === 1 || idx === 0 || idx === 2) ? "left" : "",
ellipsis: true
}))
@@ -219,11 +226,15 @@ class SalaryDetails extends Component {
render() {
const { loading, dataSource, transferDialog, tempDialog, tempPageList, templateId } = this.state;
- const { attendanceStore: { tableStore }, dateRange, showSearchAd } = this.props;
+ const { attendanceStore: { tableStore }, dateRange, showSearchAd, salaryDetailShowType } = this.props;
return (
-
+ {
+ salaryDetailShowType === "1" &&
+
+ }
this.setState({
transferDialog: { ...this.state.transferDialog, cancel: true }
diff --git a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.js b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.js
index cb624a06..3b68a2b3 100644
--- a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.js
+++ b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.js
@@ -9,7 +9,7 @@ import { inject, observer } from "mobx-react";
import { WeaDatePicker, WeaInputSearch, WeaLocaleProvider, WeaReqTop } from "ecCom";
import { Button, Dropdown, Menu } from "antd";
import { condition, reportCondition } from "./components/conditions";
-import { commonEnumList, reportGetForm } from "../../apis/ruleconfig";
+import { commonEnumList, reportGetForm, sysinfo } from "../../apis/ruleconfig";
import { dimensionGetForm } from "../../apis/statistics";
import EmployeeDetails from "./components/employeeDetails";
import SalaryDetails from "./components/salaryDetails";
@@ -50,12 +50,16 @@ class Index extends Component {
title: "", visible: false,
typeKey: "", id: ""
},
- logDialogVisible: false, filterConditions: "[]"
+ logDialogVisible: false, filterConditions: "[]",
+ salaryDetailShowType: "0" //薪资明细列表显示方式
};
}
componentDidMount() {
this.initReportFormCondition();
+ sysinfo().then(({ status, data }) => {
+ if (status) this.setState({ salaryDetailShowType: data.SALARY_DETAILS_REPORT_SHOW_TYPE });
+ });
}
initReportFormCondition = (payload = {}) => {
@@ -277,7 +281,7 @@ class Index extends Component {
const {
selectedKey, modalReq, slideReq, conditions, reportConditions,
reportName, keyword, year, logDialogVisible, filterConditions,
- dateRange, showSearchAd, isQuery
+ dateRange, showSearchAd, isQuery, salaryDetailShowType
} = this.state;
const buttons = selectedKey === "statistics" ? [
,
@@ -336,8 +340,8 @@ class Index extends Component {
iconBgcolor="#F14A2D" tabDatas={tabs} className="xc_tj_fx_wrapper"
buttons={(!statisticsReportBtn && selectedKey === "statistics") ? buttons.slice(-1) : buttons} buttonSpace={10}
onChange={selectedKey => this.setState({ selectedKey }, () => this.state.selectedKey === "statistics" && this.initReportFormCondition())}
- showDropIcon={selectedKey !== "detail"} onDropMenuClick={this.onDropMenuClick}
- dropMenuDatas={dropMenuDatas}>
+ showDropIcon={(selectedKey === "statistics") || (selectedKey === "salaryDetail" && salaryDetailShowType !== "1")}
+ onDropMenuClick={this.onDropMenuClick} dropMenuDatas={dropMenuDatas}>
{
selectedKey === "statistics" ?
this.onDropMenuClick(type, targetid)}
/> : this.salaryRef = dom} dateRange={dateRange} isQuery={isQuery}
+ salaryDetailShowType={salaryDetailShowType}
showSearchAd={showSearchAd} handleOpenAdvanceSearch={this.handleOpenAdvanceSearch}
handleAdvanceSearch={this.handleAdvanceSearch} onAdSearch={this.onAdSearch}
onCancel={() => this.setState({ showSearchAd: false })}
diff --git a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.less b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.less
index 1243b949..a2fa2079 100644
--- a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.less
+++ b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/index.less
@@ -5,6 +5,10 @@
width: 220px;
}
+ .ant-btn-group {
+ margin-right: 10px;
+ }
+
.employeeYearWrapper {
display: flex;
align-items: center;
diff --git a/pc4mobx/hrmSalary/pages/ruleConfig/conditions.js b/pc4mobx/hrmSalary/pages/ruleConfig/conditions.js
index bb22f65e..6bc04d8c 100644
--- a/pc4mobx/hrmSalary/pages/ruleConfig/conditions.js
+++ b/pc4mobx/hrmSalary/pages/ruleConfig/conditions.js
@@ -196,6 +196,16 @@ export const conditions = [
options: [],
labelcol: 8,
viewAttr: 2
+ },
+ {
+ conditionType: "SELECT",
+ domkey: ["SALARY_DETAILS_REPORT_SHOW_TYPE"],
+ fieldcol: 10,
+ label: "薪资明细显示模式",
+ lanId: 111,
+ options: [],
+ labelcol: 8,
+ viewAttr: 2
}
],
title: "薪资报表",
diff --git a/pc4mobx/hrmSalary/pages/ruleConfig/ruleConfig.js b/pc4mobx/hrmSalary/pages/ruleConfig/ruleConfig.js
index 8c56b847..8504f501 100644
--- a/pc4mobx/hrmSalary/pages/ruleConfig/ruleConfig.js
+++ b/pc4mobx/hrmSalary/pages/ruleConfig/ruleConfig.js
@@ -51,6 +51,13 @@ class RuleConfig extends Component {
{ key: "1", showname: getLabel(111, "实时组织信息"), selected: false }
]
};
+ } else if (getKey(o) === "SALARY_DETAILS_REPORT_SHOW_TYPE") {
+ return {
+ ...o, options: [
+ { key: "0", showname: getLabel(111, "定制列"), selected: true },
+ { key: "1", showname: getLabel(111, "模板"), selected: false }
+ ]
+ };
} else if (getKey(o) === "OPEN_APPLICATION_ENCRYPT") {
return { ...o, viewAttr: sysinfo.showEncryptOperationButton === "true" ? 2 : 1 };
} else if (getKey(o) === "taxDeclarationFunction") {
@@ -78,7 +85,7 @@ class RuleConfig extends Component {
form.updateFields({ [item]: { value: sysinfo["salaryAcctEmployeeRule"] || "" } });
} else if (item === "taxDeclarationFunction") {
form.updateFields({ [item]: { value: sysinfo[item] === "0" ? "0" : (sysinfo[item] || "1") } });
- } else if (item === "REPORT_ORGANIZATIN_TYPE") {
+ } else if (item === "REPORT_ORGANIZATIN_TYPE" || item === "SALARY_DETAILS_REPORT_SHOW_TYPE") {
form.updateFields({ [item]: { value: sysinfo[item] === "0" ? "0" : (sysinfo[item] || "0") } });
} else if (item === "taxAgentShowStatus" || item === "salaryShowStatus" || item === "adjustShowStatus") {
form.updateFields({ [item]: { value: sysinfo[item] || "1" } });
@@ -128,6 +135,7 @@ class RuleConfig extends Component {
case "salaryShowStatus":
case "adjustShowStatus":
case "REPORT_ORGANIZATIN_TYPE":
+ case "SALARY_DETAILS_REPORT_SHOW_TYPE":
if (!this.handleDebounce) {
this.handleDebounce = _.debounce(() => {
const confTitle = {
@@ -138,7 +146,8 @@ class RuleConfig extends Component {
taxAgentShowStatus: getLabel(111, "显示【个税扣缴义务人】信息"),
salaryShowStatus: getLabel(111, "显示工资单页签"),
adjustShowStatus: getLabel(111, "显示调薪记录页签"),
- REPORT_ORGANIZATIN_TYPE: getLabel(111, "组织信息")
+ REPORT_ORGANIZATIN_TYPE: getLabel(111, "组织信息"),
+ SALARY_DETAILS_REPORT_SHOW_TYPE: getLabel(111, "薪资明细显示模式")
};
this.unifiedSettings(key, confTitle[key]);
this.handleDebounce = null;
From 5abe35ca603fc1eab8908dc0043635a367694352 Mon Sep 17 00:00:00 2001
From: lys <971387674@qq.com>
Date: Fri, 8 Nov 2024 10:27:47 +0800
Subject: [PATCH 112/141] =?UTF-8?q?feature/2.16.1.2410.01-=E8=96=AA?=
=?UTF-8?q?=E9=85=AC=E7=BB=9F=E8=AE=A1=E6=8A=A5=E8=A1=A8=E8=96=AA=E8=B5=84?=
=?UTF-8?q?=E6=98=8E=E7=BB=86=E6=B7=BB=E5=8A=A0=E6=A8=A1=E6=9D=BF=E5=88=87?=
=?UTF-8?q?=E6=8D=A2=E5=92=8C=E6=A8=A1=E6=9D=BF=E5=88=9B=E5=BB=BA=E5=8A=9F?=
=?UTF-8?q?=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../analysisOfSalaryStatistics/components/salaryDetails.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/salaryDetails.js b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/salaryDetails.js
index 6b3826c2..b5e9acc5 100644
--- a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/salaryDetails.js
+++ b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/salaryDetails.js
@@ -74,7 +74,7 @@ class SalaryDetails extends Component {
if (status) {
this.setState({
tempPageList: _.map(data, o => ({ key: String(o.id), showname: o.name })),
- templateId: String(_.find(data, o => !!o.checked).id)
+ templateId: !_.isEmpty(_.find(data, o => !!o.checked)) ? String(_.find(data, o => !!o.checked).id) : ""
});
}
});
From 3fbe08ab2ef63091814d691ecc80e8a1c52386a2 Mon Sep 17 00:00:00 2001
From: lys <971387674@qq.com>
Date: Fri, 8 Nov 2024 15:16:09 +0800
Subject: [PATCH 113/141] =?UTF-8?q?feature/2.16.1.2410.01-=E8=96=AA?=
=?UTF-8?q?=E9=85=AC=E7=BB=9F=E8=AE=A1=E6=8A=A5=E8=A1=A8=E8=96=AA=E8=B5=84?=
=?UTF-8?q?=E6=98=8E=E7=BB=86=E6=B7=BB=E5=8A=A0=E6=A8=A1=E6=9D=BF=E5=88=87?=
=?UTF-8?q?=E6=8D=A2=E5=92=8C=E6=A8=A1=E6=9D=BF=E5=88=9B=E5=BB=BA=E5=8A=9F?=
=?UTF-8?q?=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/salaryDetails.js | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/salaryDetails.js b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/salaryDetails.js
index b5e9acc5..e9108e3d 100644
--- a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/salaryDetails.js
+++ b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/salaryDetails.js
@@ -183,8 +183,7 @@ class SalaryDetails extends Component {
const { transferDialog, tempDialog } = this.state, { type } = transferDialog;
if (type === "temp") {
this.setState({
- tempDialog: { ...tempDialog, visible: true, setting: _.map(values, o => o.id) },
- transferDialog: { ...this.state.transferDialog, visible: false, cancel: true, type: "default" }
+ tempDialog: { ...tempDialog, visible: true, setting: _.map(values, o => o.id) }
});
return;
}
@@ -273,7 +272,11 @@ class SalaryDetails extends Component {
{/*薪资明细模板设置*/}
this.setState({
- tempDialog: { ...tempDialog, visible: false, setting: [] }
+ tempDialog: { ...tempDialog, visible: false, setting: [] },
+ transferDialog: {
+ ...this.state.transferDialog,
+ visible: false, cancel: true, type: "default"
+ }
}, () => callback && callback())}/>
From 7063732d6f3e1e3fa8793d907ad2f51b862ee699 Mon Sep 17 00:00:00 2001
From: lys <971387674@qq.com>
Date: Fri, 8 Nov 2024 16:01:18 +0800
Subject: [PATCH 114/141] =?UTF-8?q?feature/2.16.1.2410.01-=E8=96=AA?=
=?UTF-8?q?=E9=85=AC=E7=BB=9F=E8=AE=A1=E6=8A=A5=E8=A1=A8=E8=96=AA=E8=B5=84?=
=?UTF-8?q?=E6=98=8E=E7=BB=86=E6=B7=BB=E5=8A=A0=E6=A8=A1=E6=9D=BF=E5=88=87?=
=?UTF-8?q?=E6=8D=A2=E5=92=8C=E6=A8=A1=E6=9D=BF=E5=88=9B=E5=BB=BA=E5=8A=9F?=
=?UTF-8?q?=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/salaryDetails.js | 13 +++++--------
1 file changed, 5 insertions(+), 8 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/salaryDetails.js b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/salaryDetails.js
index e9108e3d..565a87bd 100644
--- a/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/salaryDetails.js
+++ b/pc4mobx/hrmSalary/pages/analysisOfSalaryStatistics/components/salaryDetails.js
@@ -74,7 +74,8 @@ class SalaryDetails extends Component {
if (status) {
this.setState({
tempPageList: _.map(data, o => ({ key: String(o.id), showname: o.name })),
- templateId: !_.isEmpty(_.find(data, o => !!o.checked)) ? String(_.find(data, o => !!o.checked).id) : ""
+ templateId: !_.isEmpty(_.find(data, o => !!o.checked)) ? String(_.find(data, o => !!o.checked).id) : "",
+ transferDialog: { ...this.state.transferDialog, visible: false, cancel: true, type: "default" }
});
}
});
@@ -271,13 +272,9 @@ class SalaryDetails extends Component {
})}/>
{/*薪资明细模板设置*/}
this.setState({
- tempDialog: { ...tempDialog, visible: false, setting: [] },
- transferDialog: {
- ...this.state.transferDialog,
- visible: false, cancel: true, type: "default"
- }
- }, () => callback && callback())}/>
+ onCancel={() => this.setState({
+ tempDialog: { ...tempDialog, visible: false, setting: [] }
+ })}/>
);
From 3654e2a3785c2cb6e7a0bc063817594fc3333f63 Mon Sep 17 00:00:00 2001
From: lys <971387674@qq.com>
Date: Mon, 11 Nov 2024 14:43:17 +0800
Subject: [PATCH 115/141] =?UTF-8?q?feature/2.16.1.2410.01-=E8=96=AA?=
=?UTF-8?q?=E9=85=AC=E7=BB=9F=E8=AE=A1=E6=8A=A5=E8=A1=A8=E8=96=AA=E8=B5=84?=
=?UTF-8?q?=E6=98=8E=E7=BB=86=E6=B7=BB=E5=8A=A0=E6=A8=A1=E6=9D=BF=E5=88=87?=
=?UTF-8?q?=E6=8D=A2=E5=92=8C=E6=A8=A1=E6=9D=BF=E5=88=9B=E5=BB=BA=E5=8A=9F?=
=?UTF-8?q?=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/customBrowserMutiRight.js | 25 +++-
.../components/customTransferDialog.js | 1 +
.../components/salaryDetails.js | 112 ++++++++++--------
.../components/salaryDetailsTempDialog.js | 12 +-
.../analysisOfSalaryStatistics/index.less | 24 +++-
5 files changed, 117 insertions(+), 57 deletions(-)
diff --git a/pc4mobx/hrmSalary/components/CustomBrowser/components/customBrowserMutiRight.js b/pc4mobx/hrmSalary/components/CustomBrowser/components/customBrowserMutiRight.js
index ed56dd09..a77e6e4d 100644
--- a/pc4mobx/hrmSalary/components/CustomBrowser/components/customBrowserMutiRight.js
+++ b/pc4mobx/hrmSalary/components/CustomBrowser/components/customBrowserMutiRight.js
@@ -66,6 +66,26 @@ class CustomBrowserMutiRight extends Component {
clearTimeout(timeout);
this.props.onDoubleClick && this.props.onDoubleClick(key);
};
+ onDragStart = (obj) => {
+ clearTimeout(timeout);
+ this.props.checkedCb && this.props.checkedCb([]);
+ };
+ onDrop = (obj) => {
+ const dragNodes = obj.dragNodesKeys;
+ const targetNode = obj.node.props.eventKey;
+ const result = [];
+ this.nodeIds.filter((item) => {
+ return dragNodes.indexOf(item) === -1;
+ }).forEach((id) => {
+ if (id === targetNode) {
+ dragNodes.forEach((drag) => {
+ result.push(this.nodeObj[drag]);
+ });
+ }
+ result.push(this.nodeObj[id]);
+ });
+ this.props.onDrag && this.props.onDrag(result);
+ };
render() {
const { height, checkedKeys } = this.props;
@@ -76,9 +96,8 @@ class CustomBrowserMutiRight extends Component {