custom/西部信托0401

This commit is contained in:
lys 2025-11-20 14:39:45 +08:00
parent 4838542492
commit 5c8ada33d8
2 changed files with 9 additions and 6 deletions

View File

@ -24,6 +24,9 @@ class SecondaryVerify extends Component {
super(props); super(props);
this.state = { notSetting: false }; this.state = { notSetting: false };
} }
componentWillMount() {
this.setState({ notSetting: false }, () => form.resetForm());
}
componentDidMount() { componentDidMount() {
API.getSecondAuthForm({ mouldCode: "HRM", itemCode: "SALARY" }, this.props.salaryBillToken) API.getSecondAuthForm({ mouldCode: "HRM", itemCode: "SALARY" }, this.props.salaryBillToken)

View File

@ -12,6 +12,10 @@ const getLabel = WeaLocaleProvider.getLabel;
class Index extends Component { class Index extends Component {
handleViewSalary = (it) => {
window.location.href = `/spa/hrmSalary/static/index.html#/main/hrmSalary/mobilepayroll?id=${it.id}&salaryCode=${it.salaryCode}&type=phone`;
};
render() { render() {
const { dataSource, isMore, loading } = this.props; const { dataSource, isMore, loading } = this.props;
return ( return (
@ -27,11 +31,7 @@ class Index extends Component {
<span>{getLabel(111, "发放时间")}</span> <span>{getLabel(111, "发放时间")}</span>
<span>{moment(it.sendTime).format("YYYY-MM")}</span> <span>{moment(it.sendTime).format("YYYY-MM")}</span>
</div> </div>
<a <a onClick={() => this.handleViewSalary(it)}>{`${getLabel(33564, "查看")}>`}</a>
href={`/spa/hrmSalary/static/index.html#/main/hrmSalary/mobilepayroll?id=${it.id}&salaryCode=${it.salaryCode}&type=phone`}
target="_blank">
{`${getLabel(33564, "查看")}>`}
</a>
</li>; </li>;
}) })
} }
@ -46,4 +46,4 @@ class Index extends Component {
} }
} }
export default Index; export default Index;