Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
前端-吴智勇
jinfa-platform
Commits
2119b15e
Commit
2119b15e
authored
Dec 16, 2020
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 进货单查询支付方式问题
parent
fadff86f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
index.tsx
src/pages/lxMall/purchaseOrder/index.tsx
+10
-4
No files found.
src/pages/lxMall/purchaseOrder/index.tsx
View file @
2119b15e
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment