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 &&
- }