Commit 2119b15e authored by GuanHua's avatar GuanHua

fix: 进货单查询支付方式问题

parent fadff86f
......@@ -464,20 +464,22 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
* 获取支付方式
* @param memberId
*/
const getPayWayListByMemberId = (memberId: number) => {
const getPayWayListByMemberId = (memberId: number, memberRoleId: number) => {
return new Promise((resolve, reject) => {
if (!memberId) {
resolve([])
return
}
const param: any = {
memberId
memberId,
memberRoleId
}
PublicApi.getPayPayWayList(param).then(res => {
if (res.code === 1000) {
resolve(initPayWayList(res.data))
} else {
resolve([])
message.error(res.message)
reject()
}
})
})
......@@ -593,7 +595,11 @@ const PurchaseOrder: React.FC<PurchaseOrderPropsType> = (props) => {
orderList: buyOrderlist
}]
}
buyOrderInfo.payWayList = await getPayWayListByMemberId(selectItem.memberId)
try {
buyOrderInfo.payWayList = await getPayWayListByMemberId(selectItem.memberId, selectItem.memberRoleId)
} catch (error) {
return
}
const param: any = {
productIds,
......
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