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
ea6214c4
Commit
ea6214c4
authored
Apr 11, 2023
by
zhangmengjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
23.4.11
parent
5dfcc466
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
76 additions
and
26 deletions
+76
-26
src/api/orderform/index.js
+10
-2
src/views/dynamic/components/modify.vue
+5
-3
src/views/dynamic/index.vue
+13
-7
src/views/orderform/components/index.vue
+12
-2
src/views/orderform/index.vue
+36
-12
No files found.
src/api/orderform/index.js
View file @
ea6214c4
...
...
@@ -8,14 +8,22 @@ export function listGET(query) {
params
:
query
})
}
//
订单列表驳回
//
生成支付订单
export
function
createPayPOST
(
data
)
{
return
request
({
url
:
'/xinrenli/order/
refund
'
,
url
:
'/xinrenli/order/
createPay
'
,
method
:
'post'
,
data
:
data
})
}
// 生成退款订单
export
function
refundGET
(
query
)
{
return
request
({
url
:
'/xinrenli/order/refund'
,
method
:
'get'
,
params
:
query
})
}
// 订单列表详情
export
function
particularsGET
(
query
)
{
return
request
({
...
...
src/views/dynamic/components/modify.vue
View file @
ea6214c4
...
...
@@ -16,7 +16,7 @@
</el-form-item>
<!--
<quillEditor></quillEditor>
-->
</el-form>
<el-button
type=
"primary"
:disabled=
"disabled"
@
click=
"onSubmit"
>
确认修改
</el-button>
<el-button
type=
"primary"
@
click=
"onSubmit"
>
{{
btn
}}
</el-button>
</el-dialog>
</div>
</
template
>
...
...
@@ -37,6 +37,9 @@ export default {
title
:
{
type
:
String
},
btn
:
{
type
:
String
},
disabled
:{
type
:
Boolean
,
default
:
false
...
...
@@ -59,8 +62,7 @@ export default {
currentInfo
:{},
rules
:
{
title
:
[
{
required
:
true
,
message
:
'请输入活动名称'
,
trigger
:
'blur'
},
{
min
:
3
,
max
:
5
,
message
:
'长度在 3 到 5 个字符'
,
trigger
:
'blur'
}
{
required
:
true
,
message
:
'请输入活动名称'
,
trigger
:
'blur'
}
],
content
:
[
{
required
:
true
,
message
:
'请填写活动形式'
,
trigger
:
'blur'
}
...
...
src/views/dynamic/index.vue
View file @
ea6214c4
...
...
@@ -49,7 +49,7 @@
<!-- 其他 -->
<comindex
:dialogVisibl=
"dialogVisible"
@
visivie=
'visivie'
:control=
"control"
></comindex>
<!-- 修改 详情 -->
<commodify
ref=
"refModify"
:disabled=
"disabled"
:title=
"title"
:dialogVisibl=
"dialogVi"
@
diaisibl=
"diaisibl"
<commodify
ref=
"refModify"
:disabled=
"disabled"
:title=
"title"
:
btn=
"btn"
:
dialogVisibl=
"dialogVi"
@
diaisibl=
"diaisibl"
@
onSubmit=
"onSubmit"
>
</commodify>
<pagination
v-show=
"total > 0"
:total=
"total"
:page
.
sync=
"queryParams.pageNum"
:limit
.
sync=
"queryParams.pageSize"
...
...
@@ -71,7 +71,8 @@ export default {
control
:
''
,
total
:
0
,
value1
:
''
,
title
:
'修改订单'
,
title
:
'动态发布'
,
btn
:
'确认发布'
,
options
:
[{
value
:
'选项1'
,
label
:
'黄金糕'
...
...
@@ -181,16 +182,19 @@ export default {
// 修改详情
modify
(
sta
,
val
)
{
if
(
val
==
'1'
)
{
this
.
title
=
'修改订单'
this
.
title
=
'动态修改'
this
.
btn
=
'确定修改'
this
.
$refs
[
'refModify'
].
articles
(
sta
.
id
)
this
.
disabled
=
false
}
else
if
(
val
==
'2'
)
{
this
.
$refs
[
'refModify'
].
articles
(
sta
.
id
)
this
.
disabled
=
true
this
.
title
=
'订单详情'
this
.
title
=
'动态详情'
this
.
btn
=
'返回'
}
else
if
(
val
==
'3'
)
{
this
.
$refs
[
'refModify'
].
form
=
{}
this
.
title
=
'新增订单'
this
.
title
=
'动态发布'
this
.
btn
=
'确认发布'
}
this
.
dialogVi
=
true
...
...
@@ -216,7 +220,7 @@ export default {
onSubmit
(
val
)
{
console
.
log
(
val
,
'val========='
)
console
.
log
(
this
.
title
,
'ppppppppppppppp'
)
if
(
this
.
title
==
'
新增订单
'
)
{
if
(
this
.
title
==
'
动态发布
'
)
{
articlePOST
({
...
this
.
$refs
[
'refModify'
].
form
}).
then
((
res
)
=>
{
this
.
$refs
[
'refModify'
].
form
.
content
=
''
this
.
$refs
[
'refModify'
].
form
.
title
=
''
...
...
@@ -224,7 +228,7 @@ export default {
this
.
dialogVi
=
false
this
.
artic
()
})
}
else
if
(
this
.
title
==
'
修改订单
'
)
{
}
else
if
(
this
.
title
==
'
动态修改
'
)
{
articlePUT
({
...
this
.
$refs
[
'refModify'
].
form
}).
then
((
res
)
=>
{
this
.
$refs
[
'refModify'
].
form
.
content
=
''
this
.
$refs
[
'refModify'
].
form
.
title
=
''
...
...
@@ -232,6 +236,8 @@ export default {
this
.
dialogVi
=
false
this
.
artic
()
})
}
else
if
(
this
.
title
==
'动态详情'
){
this
.
dialogVi
=
false
}
}
}
...
...
src/views/orderform/components/index.vue
View file @
ea6214c4
...
...
@@ -13,7 +13,7 @@
</audio>
</div>
<!-- 沟通后金额 -->
<div
v-if=
"control == '4'"
>
<div
v-if=
"control == '4'
|| control == '9'
"
>
<el-form
:model=
"form"
>
<el-form-item
label=
"沟通后金额"
>
<el-input
class=
"delInput"
type=
'number'
v-model=
"form.money"
placeholder=
"请输入沟通后金额"
></el-input>
...
...
@@ -28,7 +28,7 @@
</el-form-item>
</el-form>
</div>
<span
v-if=
"control == '4' || control == '5'"
slot=
"footer"
class=
"dialog-footer"
>
<span
v-if=
"control == '4' || control == '5'
|| control == '9'
"
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"clickDialog"
>
确 定
</el-button>
</span>
</el-dialog>
...
...
@@ -89,6 +89,16 @@ export default {
this
.
title
=
''
}
else
if
(
st
==
'5'
)
{
this
.
title
=
'订单驳回'
}
else
if
(
st
==
'9'
){
this
.
title
=
'生成退款订单'
if
(
self
.
dialogVisibl
)
{
this
.
bindex
.
forEach
(
element
=>
{
if
(
self
.
idt
==
element
.
id
){
self
.
form
.
money
=
element
.
dataName
console
.
log
(
self
.
form
.
money
,
element
.
dataName
,
'element.dataName'
)
}
});
}
}
},
bindex
(
st
,
old
)
{
...
...
src/views/orderform/index.vue
View file @
ea6214c4
...
...
@@ -73,8 +73,10 @@
</el-table-column>
<el-table-column
label=
"操作"
width=
"150"
>
<
template
slot-scope=
"scope"
>
<el-button
v-if=
"scope.row.status == 0
|| scope.row.status == 5
"
@
click=
"imageCaption(scope.row, '4')"
<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"
...
...
@@ -97,26 +99,28 @@
<
script
>
import
comindex
from
'./components/index'
import
commodify
from
'./components/modify'
import
{
listGET
,
createPayPOST
}
from
'@/api/orderform/index'
import
{
listGET
,
createPayPOST
,
refundGET
}
from
'@/api/orderform/index'
export
default
{
name
:
"orderform"
,
filters
:
{
filtersList
(
val
)
{
switch
(
val
)
{
case
0
:
return
'
已发布
'
return
'
待审核
'
case
1
:
return
'已驳回'
case
2
:
return
'
待支付
'
return
'
已通过
'
case
3
:
return
'
已接单
'
return
'
待完成
'
case
4
:
return
'已完成'
case
5
:
return
'
退款中
'
return
'
待退款
'
case
6
:
return
'已退款'
case
7
:
return
'已取消'
}
}
},
...
...
@@ -130,25 +134,28 @@ export default {
title
:
'修改订单'
,
options
:
[{
value
:
'0'
,
label
:
'
已发布
'
label
:
'
待审核
'
},
{
value
:
'1'
,
label
:
'已驳回'
},
{
value
:
'2'
,
label
:
'
待支付
'
label
:
'
已通过
'
},
{
value
:
'3'
,
label
:
'
已接单
'
label
:
'
待完成
'
},
{
value
:
'4'
,
label
:
'已完成'
},
{
value
:
'5'
,
label
:
'
退款中
'
label
:
'
待退款
'
},
{
value
:
'6'
,
label
:
'已退款'
},
{
value
:
'7'
,
label
:
'已取消'
}],
disabled
:
false
,
particulars
:
{},
...
...
@@ -250,7 +257,7 @@ export default {
this
.
control
=
val
break
;
case
'2'
:
if
(
sta
.
row
.
videoList
&&
sta
.
row
.
videoList
.
length
)
{
if
(
sta
.
row
.
videoList
&&
sta
.
row
.
videoList
.
length
)
{
self
.
id
=
sta
.
row
.
videoList
[
0
].
url
self
.
dialogVisible
=
true
}
else
{
...
...
@@ -262,7 +269,7 @@ export default {
this
.
control
=
val
break
;
case
'3'
:
if
(
sta
.
row
.
voiceList
&&
sta
.
row
.
voiceList
.
length
)
{
if
(
sta
.
row
.
voiceList
&&
sta
.
row
.
voiceList
.
length
)
{
self
.
id
=
sta
.
row
.
voiceList
[
0
].
url
self
.
dialogVisible
=
true
}
else
{
...
...
@@ -284,6 +291,11 @@ export default {
this
.
control
=
val
this
.
dialogVisible
=
true
break
;
case
'9'
:
this
.
id
=
sta
.
id
this
.
control
=
val
this
.
dialogVisible
=
true
break
;
}
},
cc
(
index
)
{
...
...
@@ -337,6 +349,18 @@ export default {
this
.
listth
()
}
})
}
else
if
(
this
.
control
==
'9'
)
{
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
()
}
})
}
},
// 详情 修改 弹窗关闭
...
...
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