Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xinrenli-admin
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
郑云飞
xinrenli-admin
Commits
e2fbabc6
Commit
e2fbabc6
authored
2 years ago
by
zhangmengjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
23.4.11
parent
ea6214c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
28 deletions
+39
-28
src/views/orderform/index.vue
+39
-28
No files found.
src/views/orderform/index.vue
View file @
e2fbabc6
...
...
@@ -73,10 +73,10 @@
</el-table-column>
<el-table-column
label=
"操作"
width=
"150"
>
<
template
slot-scope=
"scope"
>
<el-button
v-if=
"scope.row.status == 0
"
@
click=
"imageCaption(scope.row, '4')
"
type=
"text"
size=
"small"
>
生成支付订单
</el-button>
<el-button
v-if=
"scope.row.status == 5"
@
click=
"imageCaption(scope.row, '9')
"
type=
"text"
size=
"small"
>
生成退款订单
</el-button>
<el-button
v-if=
"scope.row.status == 0
"
@
click=
"imageCaption(scope.row, '4')"
type=
"text
"
size=
"small"
>
生成支付订单
</el-button>
<el-button
v-if=
"scope.row.status == 5"
@
click=
"imageCaption(scope.row, '9')"
type=
"text
"
size=
"small"
>
生成退款订单
</el-button>
<el-button
v-if=
"scope.row.status == 0"
type=
"text"
size=
"small"
@
click=
"imageCaption(scope.row, '5')"
>
驳回
</el-button>
<el-button
v-if=
"scope.row.status == 0 || scope.row.status == 2"
type=
"text"
size=
"small"
...
...
@@ -99,7 +99,7 @@
<
script
>
import
comindex
from
'./components/index'
import
commodify
from
'./components/modify'
import
{
listGET
,
createPayPOST
,
refundGET
}
from
'@/api/orderform/index'
import
{
listGET
,
createPayPOST
,
refundGET
}
from
'@/api/orderform/index'
export
default
{
name
:
"orderform"
,
filters
:
{
...
...
@@ -291,7 +291,7 @@ export default {
this
.
control
=
val
this
.
dialogVisible
=
true
break
;
case
'9'
:
case
'9'
:
this
.
id
=
sta
.
id
this
.
control
=
val
this
.
dialogVisible
=
true
...
...
@@ -318,7 +318,8 @@ export default {
},
// 其他 弹窗关闭
visivie
()
{
this
.
$refs
[
'refIndex'
].
form
.
money
=
''
this
.
$refs
[
'refIndex'
].
form
.
name
=
''
this
.
dialogVisible
=
false
},
// 其他 确认
...
...
@@ -337,30 +338,40 @@ export default {
}
})
}
else
if
(
this
.
control
==
'4'
)
{
var
params
=
{
actualAmount
:
this
.
$refs
[
'refIndex'
].
form
.
money
,
status
:
2
,
id
:
this
.
id
}
createPayPOST
(
params
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
this
.
$refs
[
'refIndex'
].
form
.
money
=
''
this
.
dialogVisible
=
false
this
.
listth
()
if
(
this
.
$refs
[
'refIndex'
].
form
.
money
)
{
var
params
=
{
actualAmount
:
this
.
$refs
[
'refIndex'
].
form
.
money
,
status
:
2
,
id
:
this
.
id
}
})
}
else
if
(
this
.
control
==
'9'
)
{
var
params
=
{
refundeAmount
:
this
.
$refs
[
'refIndex'
].
form
.
money
,
orderId
:
this
.
id
createPayPOST
(
params
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
this
.
$refs
[
'refIndex'
].
form
.
money
=
''
this
.
dialogVisible
=
false
this
.
listth
()
}
})
}
else
{
this
.
$message
.
error
(
'请输入沟通后金额'
);
}
refundGET
(
params
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
this
.
$refs
[
'refIndex'
].
form
.
money
=
''
this
.
dialogVisible
=
false
this
.
listth
()
}
else
if
(
this
.
control
==
'9'
)
{
if
(
this
.
$refs
[
'refIndex'
].
form
.
money
)
{
var
params
=
{
refundeAmount
:
this
.
$refs
[
'refIndex'
].
form
.
money
,
orderId
:
this
.
id
}
})
refundGET
(
params
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
this
.
$refs
[
'refIndex'
].
form
.
money
=
''
this
.
dialogVisible
=
false
this
.
listth
()
}
})
}
else
{
this
.
$message
.
error
(
'请输入沟通后金额'
);
}
}
},
// 详情 修改 弹窗关闭
...
...
This diff is collapsed.
Click to expand it.
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