Merge branch 'feature/V2-薪资账套页面重构-1208' into develop

This commit is contained in:
黎永顺 2022-12-16 16:09:17 +08:00
commit 4f0a24fe25
2 changed files with 24 additions and 7 deletions

View File

@ -200,7 +200,15 @@ class LedgerSalaryItem extends Component {
this.setState({
itemGroups: _.map(itemGroups, it => {
if (filed.id === it.id) {
return { ...it, items: data };
return {
...it,
items: _.map(data, (child, childIndex) => {
return {
...child,
sortedIndex: childIndex
};
})
};
}
return { ...it };
})

View File

@ -76,7 +76,7 @@ export default class SalarySendList extends React.Component {
<span>{text}</span>
<div className="salarySobNameTagWrapper">
{
record.sendStatus === 1 &&
record.salaryAcctType === 1 &&
<Tag color="yellow">补发</Tag>
}
<Tag color="blue">{`${record.acctTimes}`}</Tag>
@ -92,15 +92,18 @@ export default class SalarySendList extends React.Component {
title: "操作",
key: "operate",
render: (text, record) => {
const { sendNum, sendTotal } = record;
const { sendNum, sendTotal, salaryAcctType } = record;
return (
<React.Fragment>
<a href="javascript:void(0);" onClick={() => this.handleGrant(record)}
style={{ marginRight: 10 }}>发放</a>
<a href="javascript:void(0);" onClick={() => this.handleShowDetail(record)}
style={{ marginRight: 10 }}>查看详情</a>
{
sendNum !== sendTotal &&
salaryAcctType === 0 &&
<a href="javascript:void(0);" onClick={() => this.handleShowDetail(record)}
style={{ marginRight: 10 }}>查看详情</a>
}
{
sendNum !== sendTotal && salaryAcctType === 0 &&
<a href="javascript:void(0);" onClick={() => this.handleUpdateTemplate(record)}>更新模板</a>
}
</React.Fragment>
@ -114,8 +117,14 @@ export default class SalarySendList extends React.Component {
title: "操作",
key: "operate",
render: (text, record) => {
const { salaryAcctType } = record;
return (
<a href="javascript:void(0);" onClick={() => this.handleShowDetail(record)}>查看详情</a>
<span>
{
salaryAcctType === 0 &&
<a href="javascript:void(0);" onClick={() => this.handleShowDetail(record)}>查看详情</a>
}
</span>
);
}
}