2023-09-15 11:14:39 +08:00
|
|
|
/*
|
|
|
|
|
* Author: 黎永顺
|
|
|
|
|
* name: 薪资核算-列表数据
|
|
|
|
|
* Description:
|
|
|
|
|
* Date: 2023/9/14
|
|
|
|
|
*/
|
|
|
|
|
import React, { Component } from "react";
|
2023-12-06 14:46:36 +08:00
|
|
|
import { WeaLocaleProvider, WeaTools } from "ecCom";
|
2023-09-18 13:37:00 +08:00
|
|
|
import { message, Modal, Spin } from "antd";
|
2023-09-15 11:14:39 +08:00
|
|
|
import { inject, observer } from "mobx-react";
|
2024-10-18 14:26:00 +08:00
|
|
|
import {
|
|
|
|
|
acctResultList,
|
|
|
|
|
updateLockEmpCellStatus,
|
|
|
|
|
updateLockEmpStatus,
|
|
|
|
|
updateLockStatus
|
|
|
|
|
} from "../../../../../apis/calculate";
|
2023-09-18 13:37:00 +08:00
|
|
|
import ProgressModal from "../../../../../components/progressModal";
|
2023-12-06 14:46:36 +08:00
|
|
|
import BatchUpdateSalaryItemValDialog from "./batchUpdateSalaryItemValDialog";
|
2023-09-26 11:03:19 +08:00
|
|
|
import EditSalaryCalcSlide from "./editSalaryCalcSlide";
|
2023-12-06 14:46:36 +08:00
|
|
|
import { batchUpdateConditions } from "./condition";
|
2023-09-15 11:14:39 +08:00
|
|
|
|
|
|
|
|
const getLabel = WeaLocaleProvider.getLabel;
|
2023-12-06 14:46:36 +08:00
|
|
|
const getKey = WeaTools.getKey;
|
2023-09-15 11:14:39 +08:00
|
|
|
|
|
|
|
|
@inject("calculateStore")
|
|
|
|
|
@observer
|
|
|
|
|
class EditCalcTable extends Component {
|
|
|
|
|
constructor(props) {
|
|
|
|
|
super(props);
|
|
|
|
|
this.state = {
|
|
|
|
|
loading: false, pageInfo: { current: 1, pageSize: 10, total: 0 },
|
2023-09-26 11:03:19 +08:00
|
|
|
selectedRowKeys: [], progressVisible: false, progress: 0,
|
2025-02-11 14:17:56 +08:00
|
|
|
salaryCalcSlide: { visible: false, id: "", viewAttr: 2 }, originPayloadData: {},
|
2023-12-06 14:46:36 +08:00
|
|
|
batchUpdateDialog: {
|
2023-12-06 15:55:44 +08:00
|
|
|
visible: false, salaryAcctRecordId: "", idList: [], salaryItemId: "",
|
2023-12-11 13:31:46 +08:00
|
|
|
conditions: [], pattern: 0, dataType: ""
|
2023-12-06 15:55:44 +08:00
|
|
|
}
|
2023-09-15 11:14:39 +08:00
|
|
|
};
|
2023-09-18 13:37:00 +08:00
|
|
|
this.timerLock = null;
|
2023-09-15 11:14:39 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
componentDidMount() {
|
|
|
|
|
window.addEventListener("message", this.handleReceive, false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
handleReceive = async ({ data }) => {
|
|
|
|
|
const { type, payload: { id, params } = {} } = data;
|
|
|
|
|
if (type === "init") {
|
|
|
|
|
this.queryCalcResultList();
|
|
|
|
|
} else if (type === "turn") {
|
|
|
|
|
switch (id) {
|
|
|
|
|
case "PAGEINFO":
|
|
|
|
|
const { size: pageSize, pageNum: current } = params;
|
|
|
|
|
this.setState({ pageInfo: { ...this.state.pageInfo, current, pageSize } }, () => this.queryCalcResultList());
|
|
|
|
|
break;
|
|
|
|
|
case "CHECKBOX":
|
|
|
|
|
const { selectedRowKeys } = params;
|
|
|
|
|
this.setState({ selectedRowKeys });
|
|
|
|
|
break;
|
2023-09-15 16:53:17 +08:00
|
|
|
case "FORMULA":
|
|
|
|
|
const { dataIndex } = params;
|
|
|
|
|
this.props.onShowFormulaTd(dataIndex);
|
|
|
|
|
break;
|
2023-09-18 13:37:00 +08:00
|
|
|
case "LOCKING":
|
2024-05-29 10:32:17 +08:00
|
|
|
const { salaryItemId, lockType } = params;
|
|
|
|
|
if (lockType === "BATCHUPDATE") {
|
2023-12-06 15:55:44 +08:00
|
|
|
this.batchUpdateSalaryItemVal(params);
|
2023-12-06 14:46:36 +08:00
|
|
|
return;
|
|
|
|
|
}
|
2024-05-29 10:32:17 +08:00
|
|
|
this.updateLockStatus({ lockStatus: lockType, salaryItemId });
|
|
|
|
|
break;
|
|
|
|
|
case "LOCKEMP":
|
|
|
|
|
this.updateEmpLockStatus({ ...params });
|
2023-09-18 13:37:00 +08:00
|
|
|
break;
|
2023-09-26 11:03:19 +08:00
|
|
|
case "EDIT":
|
2025-02-11 14:17:56 +08:00
|
|
|
const { id: salaryCalcId, showSee } = params;
|
2023-09-26 11:03:19 +08:00
|
|
|
this.setState({
|
2025-02-11 14:17:56 +08:00
|
|
|
salaryCalcSlide: { visible: true, id: salaryCalcId, viewAttr: showSee ? 1 : 2 }
|
2023-09-26 11:03:19 +08:00
|
|
|
});
|
|
|
|
|
break;
|
2023-10-27 10:43:23 +08:00
|
|
|
case "DIAGRAM":
|
|
|
|
|
const { salarySobId } = this.props;
|
2023-10-27 16:14:59 +08:00
|
|
|
const { salaryItemId: itemid, acctEmpId } = params;
|
|
|
|
|
window.open(`/spa/hrmSalary/static/index.html#/main/hrmSalary/topologyView/${salarySobId}/${itemid}?acctEmpId=${acctEmpId}`, "_blank");
|
2023-10-27 10:43:23 +08:00
|
|
|
break;
|
2023-09-15 11:14:39 +08:00
|
|
|
default:
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
2023-09-18 13:37:00 +08:00
|
|
|
updateLockStatus = (payload) => {
|
2023-10-27 10:43:23 +08:00
|
|
|
const { salarySobId } = this.props;
|
|
|
|
|
const { lockStatus, salaryItemId } = payload;
|
|
|
|
|
if (lockStatus === "DIAGRAM") {
|
2023-10-27 16:14:59 +08:00
|
|
|
window.open(`/spa/hrmSalary/static/index.html#/main/hrmSalary/topologyView/${salarySobId}/${salaryItemId}`, "_blank");
|
2023-10-27 10:43:23 +08:00
|
|
|
return;
|
|
|
|
|
}
|
2023-09-18 13:37:00 +08:00
|
|
|
Modal.confirm({
|
|
|
|
|
title: getLabel(131329, "信息确认"),
|
|
|
|
|
content: <div>
|
|
|
|
|
<div style={{ textAlign: "center" }}>
|
|
|
|
|
{lockStatus === "LOCK" ? getLabel(543554, "确定要批量锁定项目值吗?") : getLabel(543556, "确定要批量解锁项目值吗?")}
|
|
|
|
|
</div>
|
|
|
|
|
<div style={{ textAlign: "center" }}>
|
|
|
|
|
{lockStatus === "LOCK" ? getLabel(543555, "确定后,则项目输入值锁定,项目公式失效;点击核算将按锁定的输入值重新核算!") :
|
|
|
|
|
getLabel(543557, "确定后,则项目公式生效,页面仍显示手动修改的项目值;点击核算将按公式重新核算,不再显示解锁标识!")}
|
|
|
|
|
</div>
|
|
|
|
|
</div>,
|
|
|
|
|
onOk: () => {
|
|
|
|
|
this.setState({
|
|
|
|
|
progressVisible: true
|
|
|
|
|
}, () => {
|
|
|
|
|
this.timerLock = setInterval(() => {
|
|
|
|
|
if (this.state.progress !== 100) {
|
|
|
|
|
this.setState({
|
|
|
|
|
progress: this.state.progress + 1
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
clearInterval(this.timerLock);
|
|
|
|
|
this.setState({
|
|
|
|
|
progressVisible: false,
|
|
|
|
|
progress: 0
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}, 500);
|
|
|
|
|
});
|
|
|
|
|
const { routeParams: { salaryAcctRecordId } } = this.props;
|
2025-10-10 11:05:18 +08:00
|
|
|
updateLockStatus({ ...payload, salaryAcctRecordId, acctEmpIds: this.state.selectedRowKeys })
|
|
|
|
|
.then(({ status, errormsg }) => {
|
|
|
|
|
if (status) {
|
|
|
|
|
clearInterval(this.timerLock);
|
|
|
|
|
this.setState({
|
|
|
|
|
progressVisible: false,
|
|
|
|
|
progress: 0
|
|
|
|
|
}, () => this.queryCalcResultList());
|
|
|
|
|
} else {
|
|
|
|
|
message.error(errormsg);
|
|
|
|
|
}
|
|
|
|
|
});
|
2023-09-18 13:37:00 +08:00
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
};
|
2024-05-29 10:32:17 +08:00
|
|
|
updateEmpLockStatus = (payload) => {
|
2024-10-18 14:26:00 +08:00
|
|
|
const { lockStatus, salaryItemId } = payload;
|
2024-05-29 10:32:17 +08:00
|
|
|
Modal.confirm({
|
|
|
|
|
title: getLabel(131329, "信息确认"),
|
|
|
|
|
content: <div>
|
|
|
|
|
<div style={{ textAlign: "center" }}>
|
2024-06-06 17:25:31 +08:00
|
|
|
{lockStatus === "LOCK" ? getLabel(111, "确定要锁定该人员核算数据吗?") : getLabel(111, "确定要解锁该人员核算数据吗?")}
|
2024-05-29 10:32:17 +08:00
|
|
|
</div>
|
|
|
|
|
<div style={{ textAlign: "center" }}>
|
2024-06-06 17:25:31 +08:00
|
|
|
{lockStatus === "LOCK" ? getLabel(111, "确定后,核算数据锁定,项目公式失效;点击核算将跳过该人员已核算的项目!") :
|
|
|
|
|
getLabel(111, "确定后,则项目公式生效,页面仍显示手动修改的项目值;点击核算将按公式重新核算,不再显示解锁标识!")}
|
2024-05-29 10:32:17 +08:00
|
|
|
</div>
|
|
|
|
|
</div>,
|
|
|
|
|
onOk: () => {
|
|
|
|
|
this.setState({
|
|
|
|
|
progressVisible: true
|
|
|
|
|
}, () => {
|
|
|
|
|
this.timerLock = setInterval(() => {
|
|
|
|
|
if (this.state.progress !== 100) {
|
|
|
|
|
this.setState({
|
|
|
|
|
progress: this.state.progress + 1
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
clearInterval(this.timerLock);
|
|
|
|
|
this.setState({
|
|
|
|
|
progressVisible: false,
|
|
|
|
|
progress: 0
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}, 500);
|
|
|
|
|
});
|
|
|
|
|
const { routeParams: { salaryAcctRecordId } } = this.props;
|
2024-10-18 14:26:00 +08:00
|
|
|
const params = salaryItemId ? payload : { ...payload, salaryAcctRecordId };
|
|
|
|
|
const APIFunction = salaryItemId ? updateLockEmpCellStatus : updateLockEmpStatus;
|
|
|
|
|
APIFunction(params).then(({ status, errormsg }) => {
|
|
|
|
|
clearInterval(this.timerLock);
|
|
|
|
|
this.setState({
|
|
|
|
|
progressVisible: false,
|
|
|
|
|
progress: 0
|
|
|
|
|
});
|
2024-05-29 10:32:17 +08:00
|
|
|
if (status) {
|
2024-10-18 14:26:00 +08:00
|
|
|
this.queryCalcResultList();
|
2024-05-29 10:32:17 +08:00
|
|
|
} else {
|
|
|
|
|
message.error(errormsg);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
};
|
2023-12-06 15:55:44 +08:00
|
|
|
batchUpdateSalaryItemVal = (payload) => {
|
|
|
|
|
Modal.confirm({
|
|
|
|
|
title: getLabel(131329, "信息确认"),
|
|
|
|
|
content: <div>
|
2023-12-11 13:31:46 +08:00
|
|
|
<div style={{ textAlign: "center" }}>{getLabel(111, "确认编辑所有人员(所选人员)薪资核算记录?")}</div>
|
2023-12-06 15:55:44 +08:00
|
|
|
</div>,
|
|
|
|
|
onOk: () => {
|
|
|
|
|
const { salaryItemId, salaryItemName, dataType, pattern } = payload;
|
|
|
|
|
const { routeParams: { salaryAcctRecordId }, calculateStore: { batchUpdateForm } } = this.props;
|
|
|
|
|
const { selectedRowKeys: idList } = this.state;
|
|
|
|
|
this.setState({
|
|
|
|
|
batchUpdateDialog: {
|
|
|
|
|
...this.state.batchUpdateDialog, visible: true, salaryAcctRecordId, salaryItemId,
|
2023-12-11 13:31:46 +08:00
|
|
|
idList, pattern, dataType, conditions: _.map(batchUpdateConditions, item => ({
|
2023-12-06 15:55:44 +08:00
|
|
|
...item, items: _.map(item.items, o => {
|
|
|
|
|
if (getKey(o) === "value") {
|
|
|
|
|
const otherParams = dataType === "number" ? { precision: pattern } : {};
|
|
|
|
|
return {
|
|
|
|
|
...o, ...otherParams, label: getLabel(o.lanId, o.label),
|
|
|
|
|
conditionType: dataType === "number" ? "INPUTNUMBER" : "INPUT"
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
return { ...o, label: getLabel(o.lanId, o.label) };
|
|
|
|
|
})
|
|
|
|
|
}))
|
|
|
|
|
}
|
|
|
|
|
}, () => {
|
|
|
|
|
batchUpdateForm.initFormFields(this.state.batchUpdateDialog.conditions);
|
|
|
|
|
batchUpdateForm.updateFields({ salaryItemName });
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
};
|
2023-09-15 11:14:39 +08:00
|
|
|
|
|
|
|
|
componentWillUnmount() {
|
|
|
|
|
window.removeEventListener("message", this.handleReceive, false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
postMessageToChild = (payload = {}) => {
|
2023-09-18 13:37:00 +08:00
|
|
|
const i18n = {
|
|
|
|
|
"操作": getLabel(30585, "操作"), "编辑": getLabel(501169, "编辑"),
|
2023-09-18 10:40:30 +08:00
|
|
|
"点击锁定所有解锁的项目值": getLabel(543649, "点击锁定所有解锁的项目值"),
|
|
|
|
|
"点击解锁所有锁定的项目值": getLabel(543648, "点击解锁所有锁定的项目值"),
|
|
|
|
|
"锁定的项目值": getLabel(543647, "锁定的项目值"),
|
2024-10-18 16:49:52 +08:00
|
|
|
"当前状态锁定,右击解锁": getLabel(111, "当前状态锁定,右击解锁"),
|
|
|
|
|
"当前状态未锁定,右击锁定": getLabel(111, "当前状态未锁定,右击锁定"),
|
2023-09-18 16:59:21 +08:00
|
|
|
"共": getLabel(18609, "共"), "条": getLabel(18256, "条"),
|
2023-09-18 18:42:27 +08:00
|
|
|
"总计": getLabel(523, "总计"), "批量解锁": getLabel(111, "批量解锁"),
|
2024-01-08 13:44:57 +08:00
|
|
|
"批量锁定": getLabel(111, "批量锁定"), "批量更新": getLabel(111, "批量更新"),
|
2024-05-29 10:32:17 +08:00
|
|
|
"查看拓扑图": getLabel(111, "查看拓扑图"), "锁定": getLabel(111, "锁定"),
|
2025-02-11 14:17:56 +08:00
|
|
|
"解锁": getLabel(111, "解锁"), "查看": getLabel(111, "查看")
|
2023-09-18 13:37:00 +08:00
|
|
|
};
|
2023-12-05 17:15:55 +08:00
|
|
|
this.setState({ originPayloadData: { ...payload, i18n } });
|
2023-09-15 11:14:39 +08:00
|
|
|
const childFrameObj = document.getElementById("atdTable");
|
2023-09-18 13:37:00 +08:00
|
|
|
childFrameObj.contentWindow.postMessage(JSON.stringify({ ...payload, i18n }), "*");
|
2023-09-15 11:14:39 +08:00
|
|
|
};
|
|
|
|
|
queryCalcResultList = () => {
|
2023-12-06 15:55:44 +08:00
|
|
|
const { pageInfo } = this.state;
|
2023-12-08 09:19:43 +08:00
|
|
|
const {
|
|
|
|
|
calculateStore: { ECSearchForm, otherConditions }, routeParams: { salaryAcctRecordId },
|
|
|
|
|
calcDetail = false
|
|
|
|
|
} = this.props;
|
2023-09-15 11:14:39 +08:00
|
|
|
const { subcompanyIds, departmentIds, positionIds, statuses, ...extra } = ECSearchForm.getFormParams();
|
|
|
|
|
const payload = {
|
2023-10-08 10:09:18 +08:00
|
|
|
salaryAcctRecordId, ...pageInfo, ...extra, otherConditions,
|
2023-09-15 11:14:39 +08:00
|
|
|
departmentIds: !_.isEmpty(departmentIds) ? departmentIds.split(",") : [],
|
|
|
|
|
positionIds: !_.isEmpty(positionIds) ? positionIds.split(",") : [],
|
|
|
|
|
subcompanyIds: !_.isEmpty(subcompanyIds) ? subcompanyIds.split(",") : [],
|
|
|
|
|
statuses: !_.isEmpty(statuses) ? statuses.split(",") : []
|
|
|
|
|
};
|
|
|
|
|
this.setState({ loading: true });
|
|
|
|
|
acctResultList(payload).then(({ status, data }) => {
|
|
|
|
|
this.setState({ loading: false });
|
|
|
|
|
if (status) {
|
|
|
|
|
const { columns, pageInfo: list } = data;
|
|
|
|
|
const { list: dataSource, pageNum: current, pageSize, total } = list;
|
|
|
|
|
this.setState({ pageInfo: { ...pageInfo, current, pageSize, total } }, () => {
|
|
|
|
|
const { pageInfo, selectedRowKeys } = this.state;
|
2023-09-18 16:59:21 +08:00
|
|
|
const sumRowlistUrl = this.props.showTotalCell ? "/api/bs/hrmsalary/salaryacct/acctresult/sum" : "";
|
2023-09-15 11:14:39 +08:00
|
|
|
this.postMessageToChild({
|
2023-09-18 16:59:21 +08:00
|
|
|
dataSource, pageInfo, selectedRowKeys, showTotalCell: this.props.showTotalCell, sumRowlistUrl, payload,
|
2025-02-11 14:32:53 +08:00
|
|
|
calcDetail, showSee: calcDetail,
|
2023-12-08 09:19:43 +08:00
|
|
|
columns: _.every(traverse(columns, calcDetail), (it, idx) => !it.fixed) ? _.map(traverse(columns, calcDetail), (it, idx) => ({
|
2023-10-30 08:55:15 +08:00
|
|
|
...it,
|
|
|
|
|
fixed: idx < 2 ? "left" : false
|
2023-12-08 09:19:43 +08:00
|
|
|
})) : traverse(columns, calcDetail)
|
2023-09-15 11:14:39 +08:00
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}).catch(() => this.setState({ loading: false }));
|
|
|
|
|
};
|
2024-08-28 14:57:34 +08:00
|
|
|
handleQuery = () => {
|
|
|
|
|
this.setState({ pageInfo: { ...this.state.pageInfo, current: 1 } }, () => this.queryCalcResultList());
|
|
|
|
|
};
|
2023-12-06 15:55:44 +08:00
|
|
|
handleBatchEditing = () => {
|
2023-12-06 14:46:36 +08:00
|
|
|
};
|
|
|
|
|
|
2023-09-15 11:14:39 +08:00
|
|
|
|
|
|
|
|
render() {
|
2023-12-06 14:46:36 +08:00
|
|
|
const { loading, progressVisible, progress, salaryCalcSlide, batchUpdateDialog } = this.state;
|
2023-09-15 11:14:39 +08:00
|
|
|
return (
|
|
|
|
|
<div className="editCalcTable-layout">
|
|
|
|
|
<Spin spinning={loading}>
|
|
|
|
|
<iframe
|
|
|
|
|
style={{ border: 0, width: "100%", height: "100%" }}
|
2024-10-18 14:26:00 +08:00
|
|
|
// src="http://localhost:7607/#/calcTable"
|
|
|
|
|
src="/spa/hrmSalary/hrmSalaryCalculateDetail/index.html#/calcTable"
|
2023-09-15 11:14:39 +08:00
|
|
|
id="atdTable"
|
|
|
|
|
/>
|
2023-12-06 14:46:36 +08:00
|
|
|
<BatchUpdateSalaryItemValDialog {...batchUpdateDialog}
|
2023-12-06 15:55:44 +08:00
|
|
|
onCancel={(isRefresh) => this.setState({
|
2023-12-06 14:46:36 +08:00
|
|
|
batchUpdateDialog: { ...batchUpdateDialog, visible: false }
|
2023-12-06 15:55:44 +08:00
|
|
|
}, () => isRefresh && this.queryCalcResultList())}
|
2023-12-06 14:46:36 +08:00
|
|
|
/>
|
2023-09-26 11:03:19 +08:00
|
|
|
<EditSalaryCalcSlide {...salaryCalcSlide}
|
|
|
|
|
onClose={(isFresh) => this.setState({
|
2025-02-11 14:17:56 +08:00
|
|
|
salaryCalcSlide: { visible: false, id: "", viewAttr: 2 }
|
2023-09-26 11:03:19 +08:00
|
|
|
}, () => isFresh === "true" && this.queryCalcResultList())}/>
|
2023-09-18 13:37:00 +08:00
|
|
|
{
|
|
|
|
|
progressVisible &&
|
|
|
|
|
<ProgressModal
|
|
|
|
|
title={getLabel(543558, "正在加锁/解锁请稍后")} visible={progressVisible} progress={progress}
|
|
|
|
|
onCancel={() => {
|
|
|
|
|
this.setState({ progressVisible: false, progress: 0 }, () => {
|
|
|
|
|
clearInterval(this.timerLock);
|
|
|
|
|
});
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
}
|
2023-09-15 11:14:39 +08:00
|
|
|
</Spin>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default EditCalcTable;
|
|
|
|
|
|
2023-12-08 09:19:43 +08:00
|
|
|
const traverse = (arr, calcDetail) => {
|
2023-09-15 11:14:39 +08:00
|
|
|
return _.map(arr, item => {
|
|
|
|
|
if (!_.isEmpty(item.children)) {
|
|
|
|
|
return {
|
2024-10-23 09:51:02 +08:00
|
|
|
title: item.text, width: item.width + "px", ellipsis: true, calcDetail,
|
2023-12-08 09:19:43 +08:00
|
|
|
dataIndex: item.column, children: traverse(item.children, calcDetail),
|
2023-12-12 10:41:33 +08:00
|
|
|
fixed: item.fixed || false, dataType: item.dataType, align: "center"
|
2023-09-15 11:14:39 +08:00
|
|
|
};
|
|
|
|
|
} else {
|
|
|
|
|
return {
|
2023-10-30 08:55:15 +08:00
|
|
|
title: item.text, width: item.width + "px", fixed: item.fixed || false,
|
2023-12-29 10:14:39 +08:00
|
|
|
dataIndex: item.column, ellipsis: true, lockStatus: item.lockStatus, calcDetail,
|
2023-12-12 10:41:33 +08:00
|
|
|
pattern: item.pattern, dataType: item.dataType, align: "center"
|
2023-09-15 11:14:39 +08:00
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
});
|
2025-10-10 11:05:18 +08:00
|
|
|
};
|