From 4164c8b06a5802f5dffcc111d0b069ac75db926b Mon Sep 17 00:00:00 2001
From: liyongshun <971387674@qq.com>
Date: Wed, 29 Jun 2022 17:24:30 +0800
Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E5=B7=A5=E8=B5=84=E5=8D=95?=
=?UTF-8?q?=E5=8F=91=E6=94=BE=E6=9D=83=E9=99=90=E9=98=BF=E7=89=9B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../pages/payroll/payrollGrant/index.js | 51 +------------------
1 file changed, 2 insertions(+), 49 deletions(-)
diff --git a/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js b/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js
index 3c5508a3..1e837409 100644
--- a/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js
+++ b/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js
@@ -21,11 +21,7 @@ export default class PayrollGrant extends React.Component {
selectedRowKeys: [],
payrollGrantVisible: false,
payrollWithdrawVisible: false,
- currentId: "",
- btnStatus: {
- can_send: true,
- show_workflow_status: false
- }
+ currentId: ""
};
this.pageInfo = { current: 1, pageSize: 10 };
}
@@ -36,7 +32,6 @@ export default class PayrollGrant extends React.Component {
const {
payrollStore: { getPayrollInfo, getInfoList, getPaySa }
} = this.props;
- this.getSendBtnStatus(id);
getPayrollInfo(id);
getInfoList({
salarySendId: id
@@ -44,20 +39,6 @@ export default class PayrollGrant extends React.Component {
getPaySa();
}
- getSendBtnStatus(id) {
- const { payrollStore: { getSendBtnStatus } } = this.props;
- getSendBtnStatus({ id })
- .then(data => {
- this.setState({
- btnStatus: {
- can_send: data.can_send,
- show_workflow_status: data.show_workflow_status
- }
- });
- })
- .catch(() => {});
- }
-
// 撤回
handleWithdraw(record) {
const { payrollStore } = this.props;
@@ -187,19 +168,9 @@ export default class PayrollGrant extends React.Component {
style={{ marginRight: "10px" }}
onClick={() => {
this.handleGrantAll();
- }}
- disabled={!this.state.btnStatus.can_send}>
+ }}>
全部发放
- {this.state.btnStatus.show_workflow_status &&
- }