Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
peizhen-vue
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PeiZhen-Java
peizhen-vue
Commits
56fa471c
Commit
56fa471c
authored
Sep 20, 2023
by
‘巴博尔’
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
ba2bf9e9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
103 additions
and
28 deletions
+103
-28
src/api/financialManagement/userRefund.js
+28
-19
src/views/financialManagement/income/index.vue
+15
-1
src/views/financialManagement/userRefund/index.vue
+59
-8
vue.config.js
+1
-0
No files found.
src/api/financialManagement/userRefund.js
View file @
56fa471c
import
request
from
'@/utils/request'
import
request
from
"@/utils/request"
;
// 查询用户退款列表
// 查询用户退款列表
export
function
listUserRefund
(
query
)
{
export
function
listUserRefund
(
query
)
{
return
request
({
return
request
({
url
:
'/system/userRefund/list'
,
url
:
"/system/userRefund/list"
,
method
:
'get'
,
method
:
"get"
,
params
:
query
params
:
query
,
})
})
;
}
}
// 查询用户退款详细
// 查询用户退款详细
export
function
getUserRefund
(
id
)
{
export
function
getUserRefund
(
id
)
{
return
request
({
return
request
({
url
:
'/system/userRefund/'
+
id
,
url
:
"/system/userRefund/"
+
id
,
method
:
'get'
method
:
"get"
,
})
})
;
}
}
// 新增用户退款
// 新增用户退款
export
function
addUserRefund
(
data
)
{
export
function
addUserRefund
(
data
)
{
return
request
({
return
request
({
url
:
'/system/userRefund'
,
url
:
"/system/userRefund"
,
method
:
'post'
,
method
:
"post"
,
data
:
data
data
:
data
,
})
})
;
}
}
// 修改用户退款
// 修改用户退款
export
function
updateUserRefund
(
data
)
{
export
function
updateUserRefund
(
data
)
{
return
request
({
return
request
({
url
:
'/system/userRefund'
,
url
:
"/system/userRefund"
,
method
:
'put'
,
method
:
"put"
,
data
:
data
data
:
data
,
})
})
;
}
}
// 删除用户退款
// 删除用户退款
export
function
delUserRefund
(
id
)
{
export
function
delUserRefund
(
id
)
{
return
request
({
return
request
({
url
:
'/system/userRefund/'
+
id
,
url
:
"/system/userRefund/"
+
id
,
method
:
'delete'
method
:
"delete"
,
})
});
}
// 通过/拒绝
export
function
refundPUT
(
data
)
{
return
request
({
url
:
"/system/userRefund/refund"
,
method
:
"put"
,
data
:
data
,
});
}
}
src/views/financialManagement/income/index.vue
View file @
56fa471c
...
@@ -154,7 +154,10 @@
...
@@ -154,7 +154,10 @@
:show-overflow-tooltip=
"true"
:show-overflow-tooltip=
"true"
>
>
<
template
slot-scope=
"{ row }"
>
<
template
slot-scope=
"{ row }"
>
<span
v-if=
"row.status == 0"
>
待审核
</span>
<template
v-if=
"row.status == 0"
>
<el-button
type=
"text"
@
click=
"clickBH(row, 1)"
>
通过
</el-button>
<el-button
type=
"text"
@
click=
"clickBH(row, 2)"
>
拒绝
</el-button>
</
template
>
<span
v-if=
"row.status == 1"
>
成功提现
</span>
<span
v-if=
"row.status == 1"
>
成功提现
</span>
<span
v-if=
"row.status == 2"
>
拒绝提现
</span>
<span
v-if=
"row.status == 2"
>
拒绝提现
</span>
</template>
</template>
...
@@ -293,6 +296,17 @@ export default {
...
@@ -293,6 +296,17 @@ export default {
this
.
getList
();
this
.
getList
();
},
},
methods
:
{
methods
:
{
clickBH
(
row
,
status
)
{
updateIncome
({
id
:
row
.
id
,
status
,
amount
:
row
.
amount
,
}).
then
((
response
)
=>
{
const
{
msg
}
=
response
;
this
.
$modal
.
msgSuccess
(
msg
);
this
.
getList
();
});
},
/** 查询陪诊员/商户提现列表 */
/** 查询陪诊员/商户提现列表 */
getList
()
{
getList
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
...
...
src/views/financialManagement/userRefund/index.vue
View file @
56fa471c
...
@@ -111,14 +111,53 @@
...
@@ -111,14 +111,53 @@
>
>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
<el-table-column
label=
"ID"
align=
"center"
prop=
"id"
key=
"id"
/>
<el-table-column
label=
"ID"
align=
"center"
prop=
"id"
key=
"id"
/>
<el-table-column
label=
"订单"
align=
"center"
prop=
"orderSn"
key=
"orderSn"
:show-overflow-tooltip=
"true"
/>
<el-table-column
<el-table-column
label=
"订单类型"
align=
"center"
prop=
"bname"
key=
"bname"
:show-overflow-tooltip=
"true"
/>
label=
"订单"
<el-table-column
label=
"应退金额"
align=
"center"
prop=
"payMoney"
key=
"payMoney"
:show-overflow-tooltip=
"true"
/>
align=
"center"
<el-table-column
label=
"退款理由"
align=
"center"
prop=
"remark"
key=
"remark"
:show-overflow-tooltip=
"true"
/>
prop=
"orderSn"
<el-table-column
label=
"联系手机"
align=
"center"
prop=
"phone"
key=
"phone"
:show-overflow-tooltip=
"true"
/>
key=
"orderSn"
<el-table-column
label=
"退款状态"
align=
"center"
prop=
"status"
:show-overflow-tooltip=
"true"
>
:show-overflow-tooltip=
"true"
<template
slot-scope=
"
{row}">
/>
<span
v-if=
"row.status == 0"
>
待审核
</span>
<el-table-column
label=
"订单类型"
align=
"center"
prop=
"bname"
key=
"bname"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"应退金额"
align=
"center"
prop=
"payMoney"
key=
"payMoney"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"退款理由"
align=
"center"
prop=
"remark"
key=
"remark"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"联系手机"
align=
"center"
prop=
"phone"
key=
"phone"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"退款状态"
align=
"center"
prop=
"status"
:show-overflow-tooltip=
"true"
>
<template
slot-scope=
"
{ row }">
<template
v-if=
"row.status == 0"
>
<el-button
type=
"text"
@
click=
"clickBH(row, 1)"
>
通过
</el-button>
<el-button
type=
"text"
@
click=
"clickBH(row, 2)"
>
拒绝
</el-button>
</
template
>
<span
v-if=
"row.status == 1"
>
退款成功
</span>
<span
v-if=
"row.status == 1"
>
退款成功
</span>
<span
v-if=
"row.status == 2"
>
取消退款
</span>
<span
v-if=
"row.status == 2"
>
取消退款
</span>
</template>
</template>
...
@@ -208,6 +247,7 @@ import {
...
@@ -208,6 +247,7 @@ import {
delUserRefund
,
delUserRefund
,
addUserRefund
,
addUserRefund
,
updateUserRefund
,
updateUserRefund
,
refundPUT
,
}
from
"@/api/financialManagement/userRefund"
;
}
from
"@/api/financialManagement/userRefund"
;
export
default
{
export
default
{
...
@@ -257,6 +297,17 @@ export default {
...
@@ -257,6 +297,17 @@ export default {
this
.
getList
();
this
.
getList
();
},
},
methods
:
{
methods
:
{
async
clickBH
(
row
,
status
)
{
const
data_back
=
await
refundPUT
({
id
:
row
.
id
,
status
,
});
const
{
code
,
msg
}
=
data_back
;
if
(
code
===
200
)
{
this
.
$message
.
success
(
msg
);
this
.
getList
();
}
},
/** 查询用户退款列表 */
/** 查询用户退款列表 */
getList
()
{
getList
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
...
...
vue.config.js
View file @
56fa471c
...
@@ -38,6 +38,7 @@ module.exports = {
...
@@ -38,6 +38,7 @@ module.exports = {
// target: `http://localhost:8089`,
// target: `http://localhost:8089`,
target
:
`https://peizheng.shanpeikj.com/api`
,
target
:
`https://peizheng.shanpeikj.com/api`
,
// target: `http://192.168.0.169:8089`,
// target: `http://192.168.0.169:8089`,
// target: `http://192.168.0.137:8089`,
// target: `http://192.168.0.170:8089`,
// target: `http://192.168.0.170:8089`,
changeOrigin
:
true
,
changeOrigin
:
true
,
pathRewrite
:
{
pathRewrite
:
{
...
...
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