Commit ab3dd248 authored by XieZhiXiong's avatar XieZhiXiong

feat:新增对公账户接口角色id参数

parent f527e8f9
...@@ -180,7 +180,7 @@ class IntroduceRow extends React.Component<IntroduceRowProps, IntroduceRowState> ...@@ -180,7 +180,7 @@ class IntroduceRow extends React.Component<IntroduceRowProps, IntroduceRowState>
id: `${id}`, id: `${id}`,
}).then(res => { }).then(res => {
this.setState({ billInfo: res }); this.setState({ billInfo: res });
this.getSettleAccountsCorporateAccountConfig(res.memberId); this.getSettleAccountsCorporateAccountConfig(res.memberId, res.memberRoleId);
}).finally(() => { }).finally(() => {
this.setState({ billInfoLoading: false }); this.setState({ billInfoLoading: false });
}); });
...@@ -188,12 +188,13 @@ class IntroduceRow extends React.Component<IntroduceRowProps, IntroduceRowState> ...@@ -188,12 +188,13 @@ class IntroduceRow extends React.Component<IntroduceRowProps, IntroduceRowState>
}; };
// 获取对公账户信息 // 获取对公账户信息
getSettleAccountsCorporateAccountConfig = (payee: number) => { getSettleAccountsCorporateAccountConfig = (memberId: number, memberRoleId: number) => {
if (!payee) { if (!memberId || !memberRoleId) {
return; return;
} }
PublicApi.getSettleAccountsCorporateAccountConfig({ PublicApi.getSettleAccountsCorporateAccountConfig({
memberId: `${payee}`, memberId: `${memberId}`,
memberRoleId: `${memberRoleId}`,
}).then(res => { }).then(res => {
if (res.code === 1000) { if (res.code === 1000) {
this.setState({ this.setState({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment