Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
op-web-service
Project
Project
Details
Activity
Releases
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
bp
op-web-service
Commits
99de2d0e
Commit
99de2d0e
authored
Aug 12, 2021
by
pengyunqian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:流水列表
parent
bc73d18f
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
148 additions
and
241 deletions
+148
-241
withdrawal.js
server/controllers/withdrawal.js
+11
-0
router.js
server/router.js
+1
-0
index.vue
src/pages/Withdrawal/Examine/index.vue
+5
-0
flowRecord.vue
src/pages/Withdrawal/walletAccount/flowRecord.vue
+64
-23
index.vue
src/pages/Withdrawal/walletAccount/index.vue
+60
-218
withdrawal.js
src/service/Withdrawal/withdrawal.js
+7
-0
No files found.
server/controllers/withdrawal.js
View file @
99de2d0e
...
...
@@ -70,6 +70,7 @@ exports.getApplyDetail = async ctx => {
}
ctx
.
body
=
await
req
(
ctx
,
opts
)
}
// 提现审核迭代
// 获取钱包账户列表
exports
.
getAccountList
=
async
ctx
=>
{
...
...
@@ -81,6 +82,16 @@ exports.getAccountList = async ctx => {
}
ctx
.
body
=
await
req
(
ctx
,
opts
)
}
// 获取钱包账户流水列表
exports
.
getRecordList
=
async
ctx
=>
{
const
url
=
`
${
WITHDRAWAL_URI
}
/wallet/background/record_list`
;
const
opts
=
{
url
,
method
:
"GET"
,
qs
:
ctx
.
request
.
query
}
ctx
.
body
=
await
req
(
ctx
,
opts
)
}
const
getUserPermission
=
async
(
ctx
)
=>
{
const
url
=
`
${
WITHDRAWAL_URI
}
/merchant/authority/get_role_list`
;
...
...
server/router.js
View file @
99de2d0e
...
...
@@ -89,5 +89,6 @@ router.post(`${API_VERSION}/get_freezing_fund`, withdrawal.getFreezingFund)
router
.
get
(
`
${
API_VERSION
}
/get_apply_detail`
,
withdrawal
.
getApplyDetail
)
// 钱包账户
router
.
get
(
`
${
API_VERSION
}
/get_account_list`
,
withdrawal
.
getAccountList
)
router
.
get
(
`
${
API_VERSION
}
/get_record_list`
,
withdrawal
.
getRecordList
)
module
.
exports
=
router
;
src/pages/Withdrawal/Examine/index.vue
View file @
99de2d0e
...
...
@@ -62,6 +62,11 @@
prop=
"city_name"
align=
"center"
></el-table-column>
<el-table-column
label=
"登录地点"
prop=
"withdraw_address"
align=
"center"
></el-table-column>
<el-table-column
label=
"提现金额"
prop=
"amount"
...
...
src/pages/Withdrawal/walletAccount/flowRecord.vue
View file @
99de2d0e
...
...
@@ -2,56 +2,55 @@
<el-card
class=
"role_management"
>
<!-- 检索区域 -->
<div
class=
"creatRole"
>
<el-form
:model=
"searchForm"
>
<el-form>
<el-form-item
label=
"用户Id"
>
<span>
</span>
<span>
{{
user_id
}}
</span>
</el-form-item>
<el-form-item
label=
"交易类型"
>
<el-select
v-model=
"
searchForm
"
>
<el-option
label=
"
提现
"
:value=
"1"
></el-option>
<el-option
label=
"
转账
"
:value=
"2"
></el-option>
<el-option
label=
"
退款"
:value=
"2
"
></el-option>
<el-select
v-model=
"
type"
clearable
@
change=
"getRecordList
"
>
<el-option
label=
"
充值
"
:value=
"1"
></el-option>
<el-option
label=
"
提现
"
:value=
"2"
></el-option>
<el-option
label=
"
转账"
:value=
"3
"
></el-option>
</el-select>
</el-form-item>
</el-form>
</div>
<!-- 用户搜索列表 -->
<el-table
border
:data=
"
management
List"
>
<el-table
border
:data=
"
record
List"
>
<el-table-column
label=
"流水号"
width=
"200px"
prop=
"
role
_id"
prop=
"
wallet_record
_id"
align=
"center"
></el-table-column>
<el-table-column
label=
"更新时间"
prop=
"
role_na
me"
prop=
"
create_ti
me"
align=
"center"
></el-table-column>
<el-table-column
label=
"金额"
prop=
"
update_time
"
prop=
"
amount
"
align=
"center"
></el-table-column>
<el-table-column
label=
"可用余额"
prop=
"
update_user_nam
e"
prop=
"
balanc
e"
align=
"center"
></el-table-column>
<el-table-column
label=
"交易类型"
prop=
"update_user_name"
align=
"center"
></el-table-column>
<el-table-column
label=
"状态"
width=
"200px"
:formatter=
"hasStatusFormat"
prop=
"trade_type"
align=
"center"
>
<template
#
default=
"scope"
>
{{
getTradeType
(
scope
.
row
.
trade_type
)
}}
</
template
>
</el-table-column>
<el-table-column
label=
"状态"
width=
"200px"
prop=
"status"
align=
"center"
>
</el-table-column>
<el-table-column
label=
"说明"
align=
"center"
>
<el-table-column
label=
"说明"
align=
"center"
prop=
"third_order_desc"
>
</el-table-column>
</el-table>
<page
:totalNum=
"totalNum"
@
update=
"update"
/>
...
...
@@ -59,15 +58,57 @@
</template>
<
script
>
import
page
from
"../../../components/Pagination"
;
import
{
getRecordList
}
from
"@/service/Withdrawal/withdrawal"
;
const
tradeType
=
{
1
:
"充值"
,
2
:
"提现"
,
3
:
"转账"
};
export
default
{
name
:
"flowRecord"
,
components
:{
page
},
data
()
{
return
{};
return
{
user_id
:
""
,
wallet_id
:
""
,
type
:
""
,
recordList
:
[],
params
:
{
page
:
1
,
page_size
:
20
,
},
};
},
mounted
()
{},
created
()
{
this
.
user_id
=
this
.
$route
.
query
.
user_id
this
.
wallet_id
=
this
.
$route
.
query
.
wallet_id
this
.
getRecordList
();
},
methods
:
{},
methods
:
{
update
(
obj
)
{
Object
.
assign
(
this
.
params
,
obj
);
this
.
getRecordList
();
},
//获取账户流水列表
getRecordList
()
{
this
.
recordList
=
[];
let
{
page
,
page_size
}
=
this
.
params
;
let
{
wallet_id
,
type
}
=
this
;
let
params_list
=
{
wallet_id
,
page
,
page_size
,
type
,
};
getRecordList
(
params_list
).
then
((
res
)
=>
{
this
.
recordList
=
res
.
result
.
list
;
this
.
totalNum
=
res
.
result
.
count
;
});
},
// 获取交易类型
getTradeType
(
code
)
{
return
tradeType
[
code
]
},
},
};
</
script
>
...
...
src/pages/Withdrawal/walletAccount/index.vue
View file @
99de2d0e
This diff is collapsed.
Click to expand it.
src/service/Withdrawal/withdrawal.js
View file @
99de2d0e
...
...
@@ -55,3 +55,10 @@ export async function getAccountList(params) {
});
return
res
;
}
// 获取账户流水列表
export
async
function
getRecordList
(
params
)
{
const
res
=
await
axios
.
get
(
"/api/v1/get_record_list"
,
{
params
:
getParams
(
params
)
});
return
res
;
}
\ No newline at end of file
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