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

修改请款单逻辑

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