Commit 78960ee6 authored by 前端-许佳敏's avatar 前端-许佳敏

修改请款单逻辑

parent 94213803
...@@ -291,25 +291,13 @@ const Add = () => { ...@@ -291,25 +291,13 @@ const Add = () => {
} }
const _handleMemberOk = (record: any) => { const _handleMemberOk = (record: any) => {
const _params = { const _dataSource = { ...dataSource };
memberId: record.memberId, _dataSource.payee = record.name;
memberRoleId: record.roleId _dataSource.vendorMemberId = record.memberId;
} _dataSource.vendorRoleId = record.roleId;
getSettleAccountsCorporateAccountConfig(_params).then((res) => { form.setFieldsValue({ payee: record.name })
if (res.code === 1000) { setDataSource(_dataSource)
const data = res.data; setMemberDrawerVisible(false)
const _dataSource = { ...dataSource };
_dataSource.payee = record.name;
_dataSource.vendorMemberId = record.memberId;
_dataSource.vendorRoleId = record.roleId;
_dataSource.accountName = data.name;
_dataSource.bankDeposit = data.bankDeposit;
_dataSource.bankAccount = data.bankAccount;
form.setFieldsValue({ payee: record.name })
setDataSource(_dataSource)
setMemberDrawerVisible(false)
}
})
} }
......
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