From 28b34fa112fce3000138be5242748a96b022d8f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com> Date: Fri, 16 Dec 2022 16:07:04 +0800 Subject: [PATCH] =?UTF-8?q?=E8=96=AA=E8=B5=84=E8=B4=A6=E5=A5=97=E4=B8=AD?= =?UTF-8?q?=E8=96=AA=E8=B5=84=E9=A1=B9=E7=9B=AE=E8=B0=83=E6=8D=A2=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE=E4=BF=9D=E5=AD=98=E4=B8=8D=E7=94=9F=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ledgerPage/components/ledgerSalaryItem.js | 10 ++++++++- .../hrmSalary/pages/payroll/SalarySendList.js | 21 +++++++++++++------ 2 files changed, 24 insertions(+), 7 deletions(-) diff --git a/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSalaryItem.js b/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSalaryItem.js index 6af6af3a..cc6444fb 100644 --- a/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSalaryItem.js +++ b/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSalaryItem.js @@ -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 }; }) diff --git a/pc4mobx/hrmSalary/pages/payroll/SalarySendList.js b/pc4mobx/hrmSalary/pages/payroll/SalarySendList.js index 060feaf6..6e7d0a52 100644 --- a/pc4mobx/hrmSalary/pages/payroll/SalarySendList.js +++ b/pc4mobx/hrmSalary/pages/payroll/SalarySendList.js @@ -76,7 +76,7 @@ export default class SalarySendList extends React.Component { {text}
{ - record.sendStatus === 1 && + record.salaryAcctType === 1 && 补发 } {`第${record.acctTimes}次`} @@ -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 ( this.handleGrant(record)} style={{ marginRight: 10 }}>发放 - this.handleShowDetail(record)} - style={{ marginRight: 10 }}>查看详情 { - sendNum !== sendTotal && + salaryAcctType === 0 && + this.handleShowDetail(record)} + style={{ marginRight: 10 }}>查看详情 + } + { + sendNum !== sendTotal && salaryAcctType === 0 && this.handleUpdateTemplate(record)}>更新模板 } @@ -114,8 +117,14 @@ export default class SalarySendList extends React.Component { title: "操作", key: "operate", render: (text, record) => { + const { salaryAcctType } = record; return ( - this.handleShowDetail(record)}>查看详情 + + { + salaryAcctType === 0 && + this.handleShowDetail(record)}>查看详情 + } + ); } }