diff --git a/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js b/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js index bcadde2e..d0e6522d 100644 --- a/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js +++ b/pc4mobx/hrmSalary/pages/payroll/payrollGrant/index.js @@ -197,8 +197,10 @@ export default class PayrollGrant extends React.Component { const { payrollStore: {grantProxy} } = this.props; grantProxy({ salarySendId: this.state.currentId - }).then(() => { + }).then((data) => { this.getSendBtnStatus(this.state.currentId) + console.log(`/spa/workflow/static4form/index.html#/main/workflow/req?requestid=` + data.requestId) + window.open(`/spa/workflow/static4form/index.html#/main/workflow/req?requestid=` + data.requestId, "_blank"); }) } diff --git a/pc4mobx/hrmSalary/stores/payroll.js b/pc4mobx/hrmSalary/stores/payroll.js index 3afb7bc2..d7f47f0a 100644 --- a/pc4mobx/hrmSalary/stores/payroll.js +++ b/pc4mobx/hrmSalary/stores/payroll.js @@ -555,7 +555,7 @@ export class payrollStore { return new Promise((resolve, reject) => { API.grantProxy(params).then(res => { if (res.status) { - resolve(); + resolve(res.data); } else { reject(); }