hotfix/2.9.42311.02
This commit is contained in:
parent
ff870c110c
commit
7dfd328aae
|
|
@ -114,7 +114,7 @@ class Index extends Component {
|
|||
}
|
||||
};
|
||||
}
|
||||
return { ...o, width };
|
||||
return { ...o, width, render: (txt) => (<span title={txt}>{txt}</span>) };
|
||||
})
|
||||
});
|
||||
}
|
||||
|
|
@ -142,7 +142,7 @@ class Index extends Component {
|
|||
};
|
||||
return (
|
||||
<WeaTable
|
||||
rowKey="id"
|
||||
rowKey="id" scroll={{ y: "calc(100vh - 152px)" }}
|
||||
dataSource={dataSource} loading={loading}
|
||||
pagination={pagination} columns={columns}
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -75,7 +75,6 @@
|
|||
.calculate-body {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
padding: 16px;
|
||||
overflow-y: auto;
|
||||
|
||||
.wea-new-table {
|
||||
|
|
@ -84,10 +83,12 @@
|
|||
|
||||
.ant-table-tbody {
|
||||
td {
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
span {
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -114,6 +114,7 @@ class FieldTable extends Component {
|
|||
pagination={pagination}
|
||||
loading={loading}
|
||||
columns={this.getColumns()}
|
||||
scroll={{ y: "calc(100vh - 152px)" }}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -195,6 +195,7 @@ class LedgerTable extends Component {
|
|||
pagination={pagination}
|
||||
loading={loading}
|
||||
columns={this.getColumns()}
|
||||
scroll={{ y: "calc(100vh - 152px)" }}
|
||||
/>
|
||||
<CopyLedgerModal
|
||||
{...copyLedgerModal}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
* Date: 2023/9/4
|
||||
*/
|
||||
import React, { Component } from "react";
|
||||
import { WeaDialog, WeaLocaleProvider, WeaSearchGroup, WeaTableEdit, WeaTools } from "ecCom";
|
||||
import { WeaDialog, WeaInput, WeaInputNumber, WeaLocaleProvider, WeaSearchGroup, WeaTableEdit, WeaTools } from "ecCom";
|
||||
import { Button, message, Spin } from "antd";
|
||||
import {
|
||||
editSingleSalaryItem,
|
||||
|
|
@ -59,7 +59,13 @@ class SalaryArchiveEditAdjLogRecordDialog extends Component {
|
|||
const { salaryArchiveItemForm, salaryArchiveItemDetail, canOperator } = data;
|
||||
const { adjustReasonList } = salaryArchiveItemForm;
|
||||
this.setState({
|
||||
canOperator, salaryArchiveItemDetail,
|
||||
canOperator,
|
||||
salaryArchiveItemDetail: {
|
||||
...salaryArchiveItemDetail,
|
||||
list: _.map(salaryArchiveItemDetail.list, o => ({
|
||||
...o, dataType: _.find(salaryArchiveItemDetail.salaryItemList, g => g.id === o.salaryItem).dataType
|
||||
}))
|
||||
},
|
||||
conditions: _.map(adjCondition, item => {
|
||||
return {
|
||||
...item,
|
||||
|
|
@ -100,7 +106,10 @@ class SalaryArchiveEditAdjLogRecordDialog extends Component {
|
|||
...salaryArchiveItemDetail,
|
||||
list: _.map(list, o => {
|
||||
if (o.salaryItem === salaryItemId) {
|
||||
return { ...o, salaryBefore: data };
|
||||
return {
|
||||
...o, salaryBefore: data,
|
||||
dataType: _.find(salaryArchiveItemDetail.salaryItemList, g => g.id === salaryItemId).dataType
|
||||
};
|
||||
}
|
||||
return { ...o };
|
||||
})
|
||||
|
|
@ -109,6 +118,23 @@ class SalaryArchiveEditAdjLogRecordDialog extends Component {
|
|||
}
|
||||
});
|
||||
};
|
||||
handleChangeAdjustAfter = (record, v) => {
|
||||
const { salaryArchiveItemDetail } = this.state;
|
||||
const { list } = salaryArchiveItemDetail;
|
||||
this.setState({
|
||||
salaryArchiveItemDetail: {
|
||||
...salaryArchiveItemDetail,
|
||||
list: _.map(list, o => {
|
||||
if (o.salaryItem === record.salaryItem) {
|
||||
return {
|
||||
...o, adjustAfter: v
|
||||
};
|
||||
}
|
||||
return { ...o };
|
||||
})
|
||||
}
|
||||
});
|
||||
};
|
||||
save = () => {
|
||||
const { salaryFileStore: { adjForm, fetchSingleSalaryItemList, getArchiveForm } } = this.props;
|
||||
const { pass } = this.tableEdit.refs.edit.doRequiredCheck();
|
||||
|
|
@ -201,13 +227,31 @@ class SalaryArchiveEditAdjLogRecordDialog extends Component {
|
|||
<WeaSearchGroup title={getLabel(543333, "调薪明细")} showGroup needTigger={false}>
|
||||
<WeaTableEdit
|
||||
ref={dom => this.tableEdit = dom} deleteConfirm
|
||||
columns={adjColumns} datas={list} showCopy={false}
|
||||
showAdd={!id} showDelete={!id}
|
||||
datas={list} showCopy={false} showAdd={!id} showDelete={!id}
|
||||
onChange={o => this.setState({
|
||||
salaryArchiveItemDetail: {
|
||||
...salaryArchiveItemDetail, list: o
|
||||
...salaryArchiveItemDetail, list: _.map(o, it => ({ ...it, dataType: "" }))
|
||||
}
|
||||
})}
|
||||
})} columns={_.map(adjColumns, o => {
|
||||
if (o.dataIndex === "adjustAfter") {
|
||||
return {
|
||||
...o, render: (__, record) => {
|
||||
if (record.dataType === "number") {
|
||||
return <WeaInputNumber
|
||||
precision={3} viewAttr={3} value={record["adjustAfter"]}
|
||||
onChange={v => this.handleChangeAdjustAfter(record, v)}
|
||||
/>;
|
||||
} else {
|
||||
return <WeaInput
|
||||
value={record["adjustAfter"]} viewAttr={3}
|
||||
onChange={v => this.handleChangeAdjustAfter(record, v)}
|
||||
/>;
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
return { ...o };
|
||||
})}
|
||||
/>
|
||||
</WeaSearchGroup>
|
||||
</React.Fragment> : <div className="empty"><Spin/></div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue