Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform-ui
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
youjj
cloud-platform-ui
Commits
b2ffcd23
Commit
b2ffcd23
authored
Jul 27, 2019
by
denghr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提现审核
parent
b50fa712
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
105 additions
and
4 deletions
+105
-4
purseManage.js
src/api/purseManage.js
+13
-1
discountRecord.vue
src/views/purseManage/discountRecord.vue
+92
-3
No files found.
src/api/purseManage.js
View file @
b2ffcd23
...
...
@@ -58,4 +58,16 @@ export function discountList(query) {
method
:
'get'
,
params
:
query
});
}
\ No newline at end of file
}
/**
* 列表审核
* @param query
*/
export
function
editObj
(
obj
)
{
return
fetch
({
url
:
'/api/admin/walletcath/admin/verifyCath'
,
method
:
'post'
,
params
:
obj
});
}
src/views/purseManage/discountRecord.vue
View file @
b2ffcd23
...
...
@@ -49,6 +49,7 @@
<
template
scope=
"scope"
>
<span
v-if=
"scope.row.stauts==0"
>
未到帐
</span>
<span
v-if=
"scope.row.stauts==1"
>
已到账
</span>
<span
v-if=
"scope.row.stauts==2"
>
审核失败
</span>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
label=
"申请时间"
>
...
...
@@ -61,6 +62,11 @@
<span>
{{
scope
.
row
.
finishTimeStr
}}
</span>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
label=
"操作"
>
<
template
scope=
"scope"
>
<el-button
size=
"small"
type=
"primary"
v-if=
"scope.row.stauts==0"
@
click=
"handleUpdate(scope.row)"
>
审核
</el-button>
</
template
>
</el-table-column>
</el-table>
<div
v-show=
"!listLoading"
class=
"pagination-container"
>
<el-pagination
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
...
...
@@ -68,6 +74,24 @@
layout=
"total, sizes, prev, pager, next, jumper"
:total=
"total"
></el-pagination>
</div>
</div>
<el-dialog
title=
"审核"
:visible
.
sync=
"dialogVisible"
>
<el-form
:model=
"dialogFrom"
ref=
"dialogFrom"
label-width=
"80px"
>
<el-form-item
label=
"审核类型"
>
<el-radio
v-model=
"dialogFrom.status"
label=
'1'
>
通过
</el-radio>
<el-radio
v-model=
"dialogFrom.status"
label=
'2'
>
拒绝
</el-radio>
</el-form-item>
<el-form-item
label=
"订单号"
v-if=
"dialogFrom.status==1"
required
>
<el-input
v-model=
"dialogFrom.cono"
placeholder=
"请输入订单号"
></el-input>
</el-form-item>
<el-form-item
label=
"拒绝原因"
v-if=
"dialogFrom.status==2"
required
>
<el-input
type=
"textarea"
v-model=
"dialogFrom.reason"
placeholder=
"拒绝原因"
></el-input>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"cancelHandel"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"edit('dialogFrom')"
>
确 定
</el-button>
</div>
</el-dialog>
</div>
</template>
...
...
@@ -91,7 +115,8 @@
getToken
}
from
'utils/auth'
;
import
{
discountList
discountList
,
editObj
}
from
'api/purseManage'
;
import
Element1
from
"../admin/menu/components/element"
;
import
ElRow
from
"element-ui/packages/row/src/row"
;
...
...
@@ -120,6 +145,7 @@
"val"
:
'1'
},
],
dialogVisible
:
false
,
BASE_API
:
process
.
env
.
BASE_API
,
showLoadingBody
:
false
,
list
:
null
,
...
...
@@ -133,7 +159,12 @@
state
:
''
,
//状态
},
inline
:
true
,
tableKey
:
0
tableKey
:
0
,
dialogFrom
:{
status
:
'1'
,
cono
:
''
,
reason
:
''
},
}
},
created
()
{
...
...
@@ -184,7 +215,65 @@
handleCurrentChange
(
val
)
{
this
.
listQuery
.
page
=
val
;
this
.
getList
();
}
},
cancelHandel
(){
this
.
dialogVisible
=
false
;
},
handleUpdate
(
row
){
this
.
dialogFrom
.
cathId
=
row
.
id
;
this
.
dialogVisible
=
true
;
},
edit
(
formName
)
{
var
that
=
this
;
const
set
=
this
.
$refs
;
set
[
formName
].
validate
(
valid
=>
{
if
(
this
.
dialogFrom
.
status
==
1
){
if
(
this
.
dialogFrom
.
cono
==
''
){
this
.
$notify
({
title
:
'警告'
,
message
:
'请输入订单号'
,
type
:
'warning'
,
duration
:
2000
});
return
false
;
}
}
if
(
this
.
dialogFrom
.
status
==
2
){
if
(
this
.
dialogFrom
.
reason
==
''
){
this
.
$notify
({
title
:
'警告'
,
message
:
'请输入拒绝原因'
,
type
:
'warning'
,
duration
:
2000
});
return
false
;
}
}
if
(
valid
)
{
editObj
(
that
.
dialogFrom
).
then
(
response
=>
{
if
(
response
.
status
===
200
)
{
this
.
dialogVisible
=
false
;
this
.
getList
();
this
.
$notify
({
title
:
'成功'
,
message
:
'审核成功'
,
type
:
'success'
,
duration
:
2000
});
}
else
{
this
.
$notify
({
title
:
'失败'
,
message
:
rsCode
.
msg
[
response
.
code
]
?
rsCode
.
msg
[
response
.
code
]
:
'操作失败!'
,
type
:
'error'
,
duration
:
2000
});
}
});
}
else
{
return
false
;
}
});
},
}
}
</
script
>
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