Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-ordermanage
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 3a2da5db
authored
Apr 24, 2023
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
众筹订单
1 parent
27d217f6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1492 additions
and
1036 deletions
package-lock.json
src/api/modules/order.js
src/assets/css/public.scss
src/config/env.development.js
src/views/orderManage/components/crowdfunding.vue
src/views/orderManage/orderDetail.vue
package-lock.json
View file @
3a2da5d
...
@@ -1960,7 +1960,7 @@
...
@@ -1960,7 +1960,7 @@
}
}
},
},
"vue-loader-v16"
:
{
"vue-loader-v16"
:
{
"version"
:
"npm:vue-loader@16.8.3"
,
"version"
:
"npm:vue-loader
-v16
@16.8.3"
,
"resolved"
:
"https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz"
,
"resolved"
:
"https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz"
,
"integrity"
:
"sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA=="
,
"integrity"
:
"sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA=="
,
"dev"
:
true
,
"dev"
:
true
,
...
...
src/api/modules/order.js
View file @
3a2da5d
...
@@ -93,4 +93,48 @@ const getListApi = params => {
...
@@ -93,4 +93,48 @@ const getListApi = params => {
})
})
}
}
export
default
{
getList
,
getOrderDetail
,
getOrderCount
,
shopmallOrderList
,
goodsOrderDetail
,
getServiceStore
,
getListApi
}
/** 获取众筹活动名称&门店 */
const
getCrowdfundingParams
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.crowdfunding.activity.parameter.list'
/** 1秒杀 2直播间活动 3众筹 4膨胀金 */
params
.
marketingType
=
3
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
getCountApi
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.order.noSessionCount'
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
/**众筹导出 */
const
orderExportApi
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.order.noSessionExport'
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
const
getOrderDetailApi
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.order.noSessionDetail'
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
export
default
{
getList
,
getOrderDetail
,
getOrderCount
,
shopmallOrderList
,
goodsOrderDetail
,
getServiceStore
,
getListApi
,
getCrowdfundingParams
,
getCountApi
,
orderExportApi
,
getOrderDetailApi
}
src/assets/css/public.scss
View file @
3a2da5d
...
@@ -32,3 +32,876 @@ cursor: pointer;
...
@@ -32,3 +32,876 @@ cursor: pointer;
background-size
:
100%
100%
;
background-size
:
100%
100%
;
margin-right
:
4px
;
margin-right
:
4px
;
}
}
.el-form-item__content
{
width
:
284px
;
.el-input__inner
{
height
:
32px
!
important
;
line-height
:
32px
!
important
;
}
}
.flex
{
display
:
flex
;
align-items
:
center
;
}
.flex-between
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
}
.text-hide
{
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
}
.text-two-line
{
overflow
:
hidden
;
text-overflow
:
ellipsis
;
-webkit-line-clamp
:
2
;
display
:
-
webkit-box
;
-webkit-box-orient
:
vertical
;
word-break
:
break-all
;
}
.text-center
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
.x-center
{
position
:
absolute
;
left
:
50%
;
transform
:
translateX
(
-50%
);
}
.y-center
{
position
:
absolute
;
top
:
50%
;
transform
:
translateY
(
-50%
);
}
.activity
.container
{
background
:
#ffffff
;
padding
:
16px
20px
;
}
.activity
.m-b-20
{
margin-bottom
:
20px
;
}
.word
{
word-wrap
:
break-all
;
}
.fwt-4
{
font-weight
:
400
;
}
.font-12
{
font-size
:
12px
;
}
.font-14
{
font-size
:
14px
;
}
.color6
{
color
:
#666666
;
}
.color3
{
color
:
#333333
;
}
.color58
{
color
:
#5850ff
;
}
.m-r-4
{
margin-right
:
4px
;
}
.m-l-4
{
margin-left
:
4px
;
}
.m-b-10
{
margin-bottom
:
10px
;
}
.activity.p-t-20
{
padding-top
:
20px
;
}
.line-20
{
line-height
:
20px
;
}
.el-tooltip__popper
{
position
:
absolute
;
background
:
#fff
;
min-width
:
150px
;
border-radius
:
4px
;
border
:
1px
solid
#ebeef5
!
important
;
padding
:
12px
;
z-index
:
2000
;
color
:
#606266
;
line-height
:
1
.4
;
text-align
:
justify
;
font-size
:
14px
;
word-break
:
break-all
;
}
.el-range-editor.is-active
,
.el-range-editor.is-active
:hover
{
border-color
:
#5850ff
;
// width: 215px;
}
.marketing
.container
{
background
:
#ffffff
;
// box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
padding
:
20px
;
}
.marketing.edit-box
.container
{
padding
:
0
0
20px
;
}
.live-room
.container
{
background
:
#ffffff
;
// margin: 20px 0;
padding
:
15px
20px
;
box-shadow
:
0
1px
5px
0
rgba
(
38
,
38
,
38
,
0
.1
);
}
.fr-mr0
{
float
:
right
;
margin-right
:
0
!
important
;
}
//输入框后置文字(如 “元”)
.suffix-label
{
font-size
:
14px
;
font-weight
:
400
;
color
:
#333333
;
margin-right
:
5px
;
}
// 单行省略
.ellipsis-1
{
overflow
:
hidden
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
-o-text-overflow
:
ellipsis
;
/* for Opera */
}
// 我这里以两行为例,该方法基本兼容市场上面所有主流浏览器。
.ellipsis-2
{
overflow
:
hidden
;
height
:
40px
;
line-height
:
20px
;
position
:
relative
;
display
:
-
webkit-box
;
-webkit-box-orient
:
vertical
;
-webkit-line-clamp
:
2
;
/*显示的行数*/
}
.ellipsis-2-text
:after
{
content
:
'...'
;
position
:
absolute
;
bottom
:
0
;
right
:
15px
;
padding-left
:
20px
;
background
:
-webkit-linear-gradient
(
left
,
transparent
,
#fff
55%
);
/*我在Safari上测试时发现透明到白色中间会有一个黑色的过渡后来我就写成-webkit-linear-gradient(left,rgba(255,255,255,0),rgba(255,255,255,1) 55%)*/
background
:
-o-linear-gradient
(
left
,
transparent
,
#fff
55%
);
background
:
-moz-linear-gradient
(
left
,
transparent
,
#fff
55%
);
background
:
linear-gradient
(
to
right
,
transparent
,
#fff
55%
);
}
.marketing
.list-tips
{
font-size
:
14px
;
color
:
rgba
(
0
,
0
,
0
,
0
.65
);
padding
:
10px
16px
;
height
:
20px
;
line-height
:
20px
;
background-color
:
#e6e9ff
;
border
:
1px
solid
#5850ff
;
margin-bottom
:
20px
;
border-radius
:
4px
;
}
.marketing
.list-tips
.tips-img
{
vertical-align
:
middle
;
margin
:
-2px
8px
0
0
;
}
.marketing
.list-tips
.red-txt
{
color
:
#eb4e4e
;
}
.marketing
.red-txt
{
color
:
#eb4e4e
;
}
.marketing
.wechat-container
{
width
:
290px
;
margin-left
:
32px
;
background
:
#ffffff
;
position
:
relative
;
}
.marketing
.w-100-per
,
.marketing
.w-100-percent
{
width
:
100%
!
important
;
}
.marketing
.wechat-container
.wechat-box
{
width
:
290px
;
}
.marketing
.edit-container
{
// margin-bottom: 84px;
// min-height: calc(100vh - 156px);
margin-bottom
:
16px
;
}
.marketing
.approval-container
{
margin-bottom
:
10px
;
}
.marketing
.edit-form-container
{
margin-top
:
20px
;
}
.marketing
.form-sub-block
{
// width: 686px;
background
:
#f9f9f9
;
padding
:
20px
80px
20px
20px
;
}
.marketing
.f-right
{
float
:
right
;
}
.marketing
.footer-btns
{
float
:
right
;
margin-bottom
:
18px
;
}
.marketing
.color-transparent
{
background-color
:
transparent
;
}
.marketing
.default-blue-btn
{
color
:
#5850ff
;
border-color
:
#5850ff
;
height
:
32px
;
background-color
:
transparent
;
}
.el-scrollbar__bar.is-horizontal
{
height
:
10px
!
important
;
left
:
10px
;
}
.base-container-right
.el-main-scroll
.el-scrollbar__thumb
{
background-color
:
rgba
(
144
,
147
,
153
,
0
.5
)
!
important
;
}
.marketing
.table-title
{
line-height
:
32px
;
}
.marketing
.table-circle
{
display
:
inline-block
;
width
:
6px
;
height
:
6px
;
border-radius
:
4px
;
}
.marketing
.back-orange
{
background-color
:
#fdb757
;
}
.marketing
.back-blue
{
background-color
:
#5850ff
;
}
.marketing
.back-grey
{
background-color
:
#999999
;
}
.marketing
.back-green
{
background-color
:
#2cca74
;
}
.marketing
.back-red
{
background-color
:
#eb4e4e
;
}
.marketing
.el-table
.cell
{
line-height
:
17px
;
padding
:
0
16px
!
important
;
}
.marketing
.table-btns
.el-button
:first-child
{
padding
:
0
;
border
:
0
;
}
.table-popover-block
{
position
:
relative
;
height
:
160px
!
important
;
overflow
:
hidden
;
border-width
:
0
!
important
;
padding
:
0
!
important
;
margin-bottom
:
10px
!
important
;
}
.table-popover-block.el-popper
.popper__arrow
{
display
:
none
!
important
;
}
.table-popover-img
{
width
:
100%
;
position
:
absolute
;
top
:
50%
;
left
:
50%
;
transform
:
translate
(
-50%
,
-50%
);
}
.img-circle
{
border-radius
:
50%
;
}
.marketing
.pointer
{
cursor
:
pointer
;
}
.marketing
.img-36
{
width
:
36px
;
height
:
36px
;
}
.marketing
.img-60
{
width
:
60px
;
height
:
60px
;
}
.marketing
.img-100
{
width
:
100px
;
height
:
100px
;
}
.marketing
.img-120
{
width
:
120px
;
height
:
120px
;
}
.marketing
.w-150
{
width
:
150px
;
}
.marketing
.w-320
{
width
:
320px
;
}
.marketing
.m-t-8
{
margin-top
:
8px
;
}
.marketing
.m-t-10
{
margin-top
:
10px
;
}
.marketing
.m-t-20
{
margin-top
:
20px
;
}
.marketing
.m-b-8
{
margin-bottom
:
8px
;
}
.marketing
.m-b-10
{
margin-bottom
:
10px
;
}
.marketing
.m-b-20
{
margin-bottom
:
20px
;
}
.marketing
.m-b-60
{
margin-bottom
:
60px
;
}
.marketing
.m-r-8
{
margin-right
:
8px
;
}
.marketing
.m-r-10
{
margin-right
:
10px
;
}
.marketing
.m-r-20
{
margin-right
:
20px
;
}
.marketing
.m-l-10
{
margin-left
:
10px
!
important
;
}
.marketing
.m-l-20
{
margin-left
:
20px
;
}
.marketing
.p-20
{
padding
:
20px
;
}
.marketing.p-t-10
,
.marketing
.p-t-10
{
padding-top
:
10px
;
}
.marketing.p-t-20
,
.marketing
.p-t-20
{
padding-top
:
20px
;
}
.marketing
.p-l-40
{
padding-left
:
40px
;
}
.marketing
.p-0
{
padding
:
0
;
}
.marketing
.circle
{
display
:
inline-block
;
width
:
6px
;
height
:
6px
;
border-radius
:
6px
;
margin-bottom
:
3px
;
background-color
:
#5850ff
;
}
.marketing
.grey
{
background-color
:
#999999
;
}
.marketing
.txt-green
{
color
:
#61cc43
;
}
.marketing
.txt-orange
{
color
:
#fb8f28
;
}
.marketing
.txt-blue
{
color
:
#5850ff
;
}
.marketing
.txt-grey
{
color
:
#999999
;
}
.marketing
.text-e8
{
color
:
#eb4e4e
!
important
;
}
.marketing
.txt-center
{
text-align
:
center
;
}
.marketing
.cursor-pointer
{
cursor
:
pointer
;
color
:
#5850ff
;
}
.marketing
.edit-tips
{
line-height
:
20px
;
font-size
:
12px
;
color
:
#999999
;
}
.marketing
.p-relative
{
position
:
relative
;
}
.marketing
.footer
{
position
:
fixed
;
bottom
:
0
;
width
:
100%
;
height
:
64px
;
/* left: 220px; */
text-align
:
center
;
line-height
:
64px
;
background
:
#ffffff
;
z-index
:
999
;
}
.marketing
.flex-default
{
display
:
flex
;
}
.marketing
.flex
{
display
:
flex
;
justify-content
:
space-between
;
}
.marketing
.flex-wrap
{
display
:
flex
;
flex-wrap
:
wrap
;
}
.marketing
.flex-align
{
display
:
flex
;
align-items
:
center
;
}
.marketing
.flex-top
{
display
:
flex
;
align-items
:
flex-start
;
}
.marketing
.flex-center
{
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
}
.marketing
.flex-between
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
}
.marketing
.flex-grow
{
flex
:
1
;
}
.marketing
.edit-title
{
font-size
:
16px
;
font-weight
:
600
;
height
:
58px
;
line-height
:
58px
;
border-bottom
:
1px
solid
#e7eaec
;
margin
:
0
0
;
padding
:
0
0
0
20px
;
}
// .marketing .edit-sub-title::before {
// position: absolute;
// display: inline-block;
// content: '';
// height: 18px;
// width: 4px;
// top: 2px;
// left: 0;
// background-color: #0947C6;
// }
.marketing
.edit-sub-title
{
position
:
relative
;
font-size
:
13px
;
font-weight
:
700
;
height
:
32px
;
line-height
:
32px
;
color
:
#333333
;
margin-bottom
:
20px
;
padding-left
:
8px
;
background-color
:
rgba
(
242
,
242
,
242
,
1
);
}
.message-Z-zinde
,
.marketing
.message-Z-zinde
{
z-index
:
9999
!
important
;
}
.marketing
.txt-red
{
color
:
red
;
}
.one-line-ellipsis
{
display
:
-
webkit-box
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
-webkit-line-clamp
:
1
;
-webkit-box-orient
:
vertical
;
}
.marketing
.table-img
.el-table--medium
td
.el-table__cell
{
padding
:
2px
0
!
important
;
}
::-webkit-scrollbar
{
/*滚动条整体样式*/
width
:
6px
;
height
:
4px
;
}
::-webkit-scrollbar-thumb
{
/*滚动条里面小方块*/
border-radius
:
4px
;
background-color
:
rgba
(
144
,
147
,
153
,
0
.3
);
}
.el-tag
{
color
:
#666
!
important
;
font-size
:
14px
!
important
;
}
.el-tag.el-tag--info
{
background
:
transparent
!
important
;
border
:
1px
solid
#e8e8ea
!
important
;
border-radius
:
4px
;
color
:
#666
;
}
.el-tag.el-tag--info.el-tag--plain
{
background
:
transparent
!
important
;
}
/* tab */
.marketing
.el-tabs__nav-wrap
:after
{
opacity
:
0
;
}
.marketing
.el-tabs__item
{
height
:
20px
!
important
;
line-height
:
10px
!
important
;
}
.marketing
.el-tabs__item
{
box-sizing
:
border-box
;
width
:
120px
;
height
:
48px
!
important
;
line-height
:
48px
!
important
;
font-size
:
14px
;
text-align
:
center
;
border
:
0
!
important
;
color
:
#666666
;
background
:
#fafafa
;
border-radius
:
4px
4px
0px
0px
;
border
:
1px
solid
#eeedff
;
padding
:
0
;
margin-right
:
1px
;
}
.marketing
.el-tabs__active-bar
{
display
:
none
;
}
.marketing
.el-tabs__header
{
margin
:
0
!
important
;
}
.marketing
.el-tabs__item.is-active
{
color
:
#5850ff
;
background
:
#ffffff
!
important
;
border-radius
:
4px
4px
0px
0px
;
border
:
1px
solid
#eeedff
!
important
;
}
.marketing
.tips-icon
{
display
:
inline-block
;
width
:
14px
;
height
:
14px
;
margin-right
:
12px
;
vertical-align
:
middle
;
cursor
:
pointer
;
}
.el-message--info
{
height
:
40px
;
background
:
#e6e9ff
;
border
:
1px
solid
#5850ff
;
border-radius
:
4px
;
font-size
:
14px
;
color
:
rgba
(
0
,
0
,
0
,
0
.65
);
}
.el-message
.el-icon-info
{
color
:
#5850ff
;
font-size
:
16px
;
}
.marketing
.text-10
{
font-size
:
10px
;
}
.marketing
.text-14
{
font-size
:
14px
;
}
.marketing
.text-16
{
font-size
:
16px
;
}
.marketing
.color-3
{
color
:
#333333
;
}
.marketing
.line-20
{
line-height
:
20px
;
}
.marketing
.weight-6
{
font-weight
:
600
;
}
.marketing
.weight-5
{
font-weight
:
500
;
}
.marketing
.weight-4
{
font-weight
:
400
;
}
.marketing
.mt-10
{
margin-top
:
10px
;
}
.el-tooltip__popper.is-light
{
background
:
#ffffff
;
box-shadow
:
0px
4px
12px
0px
rgba
(
0
,
0
,
0
,
0
.08
);
border
:
1px
solid
#e4e7ed
!
important
;
width
:
177px
;
box-sizing
:
border-box
;
}
.el-tooltip__popper
[
x-placement
^=
'top'
]
.popper__arrow
{
border-top-color
:
#e4e7ed
!
important
;
}
.el-tooltip__popper
[
x-placement
^=
'top'
]
.popper__arrow
:after
{
border-top-color
:
#e4e7ed
!
important
;
}
/* tab */
.myMessage
{
z-index
:
4000
!
important
;
}
.dot
{
display
:
inline-flex
;
align-items
:
center
;
div
{
display
:
inline-block
;
width
:
6px
;
height
:
6px
;
border-radius
:
50%
;
margin-right
:
8px
;
}
.normal
{
background-color
:
#2cca74
;
}
.draft
{
background-color
:
#fdb757
;
}
.dot1
{
background-color
:
#fdb757
;
}
.dot2
{
background-color
:
#2cca74
;
}
.dot3
{
background-color
:
#999999
;
}
.dot4
{
background-color
:
#eb4e4e
;
}
.dot5
{
background-color
:
#fdb757
;
}
}
.loadingClass
{
.el-icon-loading
{
font-size
:
22px
;
}
.el-icon-loading
,
.el-loading-text
{
color
:
#5850ff
!
important
;
}
}
.scrm-box-f
{
background
:
#ffffff
;
}
.circleStatusRed
{
width
:
6px
;
height
:
6px
;
border-radius
:
50%
;
background
:
#eb4e4e
;
display
:
inline-block
;
vertical-align
:
middle
;
margin-right
:
8px
;
}
.circleStatusGray
{
width
:
6px
;
height
:
6px
;
border-radius
:
50%
;
background
:
#999999
;
display
:
inline-block
;
vertical-align
:
middle
;
margin-right
:
8px
;
}
.circleStatusGreen
{
width
:
6px
;
height
:
6px
;
border-radius
:
50%
;
background
:
#2cca74
;
display
:
inline-block
;
vertical-align
:
middle
;
margin-right
:
8px
;
}
.circleStatusYellow
{
width
:
6px
;
height
:
6px
;
border-radius
:
50%
;
background
:
#fdb757
;
display
:
inline-block
;
vertical-align
:
middle
;
margin-right
:
8px
;
}
.circleStatusPurple
{
width
:
6px
;
height
:
6px
;
border-radius
:
50%
;
background
:
#5850ff
;
display
:
inline-block
;
vertical-align
:
middle
;
margin-right
:
8px
;
}
ul
li
{
padding
:
0
;
margin
:
0
;
list-style
:
none
;
}
\ No newline at end of file
\ No newline at end of file
src/config/env.development.js
View file @
3a2da5d
...
@@ -18,8 +18,8 @@ module.exports = {
...
@@ -18,8 +18,8 @@ module.exports = {
code_message_map
:
{}
code_message_map
:
{}
},
},
request
:
{
request
:
{
//
baseURL: 'http://scrm.test.glsx.com.cn/',
baseURL
:
'http://scrm.test.glsx.com.cn/'
,
baseURL
:
'http://192.168.2.42:8064/'
,
//
baseURL: 'http://192.168.2.42:8064/',
// 设置超时时间
// 设置超时时间
timeout
:
180000
,
timeout
:
180000
,
// 携带凭证
// 携带凭证
...
...
src/views/orderManage/components/crowdfunding.vue
View file @
3a2da5d
...
@@ -4,29 +4,37 @@
...
@@ -4,29 +4,37 @@
<div
class=
"container"
>
<div
class=
"container"
>
<template
v-if=
"showTable"
>
<template
v-if=
"showTable"
>
<div
class=
"sticky"
>
<div
class=
"sticky"
>
<GLCombiForm
ref=
"showSearch"
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:rowNumber=
"1"
:formObj=
"searchForm"
:formObj=
"searchForm"
:formData=
"searchFormData"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
@
handleRest=
"handleReset"
></GLCombiForm>
<div
class=
"flex"
>
<div
class=
"flex"
>
<div
class=
"flex-default tabs"
>
<div
class=
"flex-default tabs"
>
<el-tabs
v-model=
"searchForm.requestSource"
<el-tabs
@
tab-click=
"handleTabClick"
>
v-model=
"searchForm.requestSource"
<el-tab-pane
:label=
"i"
@
tab-click=
"handleTabClick"
>
<el-tab-pane
:label=
"i"
:name=
"index"
:name=
"index"
:key=
"index"
:key=
"index"
v-for=
"(i,index) in requestSourceList"
></el-tab-pane>
v-for=
"(i,index) in requestSourceList"
></el-tab-pane>
</el-tabs>
</el-tabs>
</div>
</div>
<div
class=
"btn-group"
>
<div
class=
"btn-group"
>
<template
v-if=
"!hideStatus"
>
<template
v-if=
"!hideStatus"
>
<el-button
class=
"default-blue-btn"
<el-button
class=
"default-blue-btn"
:size=
"size"
:size=
"size"
type=
"default"
type=
"default"
@
click=
"handleExport"
>
导出
</el-button>
@
click=
"handleExport"
>
导出
</el-button>
</
template
>
</
template
>
</div>
</div>
</div>
</div>
...
@@ -40,7 +48,8 @@
...
@@ -40,7 +48,8 @@
累计退款总额:{{ statisticsInfo.refundTotal || 0 }} 元
累计退款总额:{{ statisticsInfo.refundTotal || 0 }} 元
</div>
</div>
</div>
</div>
<GLTable
ref=
"allOrderRef"
<GLTable
ref=
"allOrderRef"
:getListApi=
"getListApi"
:getListApi=
"getListApi"
:noDataImg=
"url"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:searchForm=
"tableSearchForm"
...
@@ -48,71 +57,101 @@
...
@@ -48,71 +57,101 @@
:pageConf=
"pageConf"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
@
setTableFinishFun=
"setTableFinishFun"
@
selectionTable=
"selectionTable"
>
@
selectionTable=
"selectionTable"
<div
slot=
"weChatName"
>
<div
slot=
"weChatName"
class=
"flex-align"
class=
"flex-align"
slot-scope=
"scope"
>
slot-scope=
"scope"
<img
v-if=
"scope.scope.weChatImageUrl"
>
<img
v-if=
"scope.scope.weChatImageUrl"
class=
"img-36 pointer img-circle"
class=
"img-36 pointer img-circle"
:src=
"scope.scope.weChatImageUrl"
/>
:src=
"scope.scope.weChatImageUrl"
/>
<span
class=
"m-l-10"
>
{{ scope.scope.weChatName }}
</span>
<span
class=
"m-l-10"
>
{{ scope.scope.weChatName }}
</span>
<span
v-if=
"!scope.scope.shareAvatar && !scope.scope.weChatName"
>
-
</span>
<span
v-if=
"!scope.scope.shareAvatar && !scope.scope.weChatName"
>
-
</span>
</div>
</div>
<
template
slot=
"vinNo"
<
template
slot-scope=
"scope"
>
slot=
"vinNo"
slot-scope=
"scope"
>
{{
Array
.
isArray
(
scope
.
scope
.
vinNo
)
?
scope
.
scope
.
vinNo
[
0
]
:
scope
.
scope
.
vinNo
}}
{{
Array
.
isArray
(
scope
.
scope
.
vinNo
)
?
scope
.
scope
.
vinNo
[
0
]
:
scope
.
scope
.
vinNo
}}
<el-popover
popper-class=
"order-table-popover"
<el-popover
popper-class=
"order-table-popover"
placement=
"right-start"
placement=
"right-start"
trigger=
"click"
>
trigger=
"click"
<p
v-for=
"(item, index) in scope.scope.vinNo"
>
:key=
"index"
>
{{
item
}}
</p>
<p
<span
class=
"car-no"
v-for=
"(item, index) in scope.scope.vinNo"
:key=
"index"
>
{{
item
}}
</p>
<span
class=
"car-no"
slot=
"reference"
slot=
"reference"
v-show=
"Array.isArray(scope.scope.vinNo)"
>
...(
{{
scope
.
scope
.
vinNo
.
length
-
1
}}
)
</span>
v-show=
"Array.isArray(scope.scope.vinNo)"
>
...(
{{
scope
.
scope
.
vinNo
.
length
-
1
}}
)
</span>
</el-popover>
</el-popover>
</
template
>
</
template
>
<div
slot=
"orderStatus"
<div
slot-scope=
"scope"
>
slot=
"orderStatus"
<span
slot-scope=
"scope"
:class=
"['table-circle', 'm-r-8', [2, 10, 22].includes(scope.scope.orderStatus) ? 'back-green' : [9].includes(scope.scope.orderStatus) ? 'back-blue' : [1, 21, 6].includes(scope.scope.orderStatus) ? 'back-orange' : 'back-grey']"
></span>
>
<span
:class=
"['table-circle', 'm-r-8', [2, 10, 22].includes(scope.scope.orderStatus) ? 'back-green' : [9].includes(scope.scope.orderStatus) ? 'back-blue' : [1, 21, 6].includes(scope.scope.orderStatus) ? 'back-orange' : 'back-grey']"
></span>
<span>
{{ baseData.orderStatusList.map(item => item.confId).includes(scope.scope.orderStatus + '') ? baseData.orderStatusList.find(item => item.confId == scope.scope.orderStatus).confName : '-' }}
</span>
<span>
{{ baseData.orderStatusList.map(item => item.confId).includes(scope.scope.orderStatus + '') ? baseData.orderStatusList.find(item => item.confId == scope.scope.orderStatus).confName : '-' }}
</span>
</div>
</div>
<div
slot=
"shareStaffName"
<div
slot=
"shareStaffName"
class=
"table-image"
class=
"table-image"
slot-scope=
"scope"
>
slot-scope=
"scope"
>
<div>
<div>
<img
v-if=
"scope.scope.shareStaffImageUrl"
<img
v-if=
"scope.scope.shareStaffImageUrl"
class=
"img-36 pointer img-circle"
class=
"img-36 pointer img-circle"
style=
"vertical-align: middle"
style=
"vertical-align: middle"
slot=
"reference"
slot=
"reference"
:src=
"scope.scope.shareStaffImageUrl"
/>
:src=
"scope.scope.shareStaffImageUrl"
/>
<span
class=
"m-l-10"
>
<span
class=
"m-l-10"
>
<span>
{{ scope.scope.shareStaffName }}
</span>
<span>
{{ scope.scope.shareStaffName }}
</span>
<span
class=
"txt-green"
<span
v-if=
"scope.scope.shareStaffSource == 1"
>
@个微
</span>
class=
"txt-green"
<span
class=
"txt-orange"
v-if=
"scope.scope.shareStaffSource == 1"
v-if=
"scope.scope.shareStaffSource == 2"
>
@企微
</span>
>
@个微
</span>
<span
class=
"txt-blue"
<span
v-if=
"scope.scope.shareStaffSource == 3"
>
@员工
</span>
class=
"txt-orange"
v-if=
"scope.scope.shareStaffSource == 2"
>
@企微
</span>
<span
class=
"txt-blue"
v-if=
"scope.scope.shareStaffSource == 3"
>
@员工
</span>
</span>
</span>
</div>
</div>
<span
v-if=
"!scope.scope.shareStaffImageUrl && !scope.scope.shareStaffName"
>
-
</span>
<span
v-if=
"!scope.scope.shareStaffImageUrl && !scope.scope.shareStaffName"
>
-
</span>
</div>
</div>
<div
slot=
"assignName"
<div
slot-scope=
"scope"
>
slot=
"assignName"
slot-scope=
"scope"
>
<div
class=
"flex-align"
>
<div
class=
"flex-align"
>
<
template
v-if=
"scope.scope.assignStaffName"
>
<
template
v-if=
"scope.scope.assignStaffName"
>
<img
class=
"img-36 pointer img-circle"
<img
class=
"img-36 pointer img-circle"
v-if=
"scope.scope.assignStaffImageUrl"
v-if=
"scope.scope.assignStaffImageUrl"
:src=
"scope.scope.assignStaffImageUrl"
/>
:src=
"scope.scope.assignStaffImageUrl"
/>
<span
class=
"m-l-10"
>
<span
class=
"m-l-10"
>
<span>
{{
scope
.
scope
.
assignStaffName
}}
</span>
<span>
{{
scope
.
scope
.
assignStaffName
}}
</span>
</span>
</span>
</
template
>
</
template
>
<
template
v-else-if=
"scope.scope.shareStaffName"
>
<
template
v-else-if=
"scope.scope.shareStaffName"
>
<img
class=
"img-36 pointer img-circle"
<img
class=
"img-36 pointer img-circle"
v-if=
"scope.scope.shareStaffImageUrl"
v-if=
"scope.scope.shareStaffImageUrl"
:src=
"scope.scope.shareStaffImageUrl"
/>
:src=
"scope.scope.shareStaffImageUrl"
/>
<span
class=
"m-l-10"
>
<span
class=
"m-l-10"
>
<span>
{{
scope
.
scope
.
shareStaffName
}}
</span>
<span>
{{
scope
.
scope
.
shareStaffName
}}
</span>
</span>
</span>
...
@@ -120,23 +159,26 @@
...
@@ -120,23 +159,26 @@
<
template
v-else
>
<
template
v-else
>
<span>
{{
scope
.
scope
.
assignStaffName
||
scope
.
scope
.
shareStaffName
||
'-'
}}
</span>
<span>
{{
scope
.
scope
.
assignStaffName
||
scope
.
scope
.
shareStaffName
||
'-'
}}
</span>
</
template
>
</
template
>
<span
@
click=
"handlerAssign(scope.scope)"
class=
"assignLabel"
>
指派
</span>
</div>
</div>
</div>
</div>
<div
slot=
"orderType"
<!-- <div
slot-scope=
"scope"
>
slot="orderType"
<el-switch
:value=
"scope.scope.orderType == 1 ? true : false"
slot-scope="scope"
>
<el-switch
:value="scope.scope.orderType == 1 ? true : false"
class="switchStyle"
class="switchStyle"
@change="changeOrderType(scope.scope)"
@change="changeOrderType(scope.scope)"
active-text="是"
active-text="是"
inactive-text=
"否"
></el-switch>
inactive-text="否"
</div>
></el-switch>
<div
slot=
"marketingStatus"
</div> -->
slot-scope=
"scope"
>
<div
slot=
"marketingStatus"
slot-scope=
"scope"
>
<
template
v-if=
"scope.scope.marketingStatus"
>
<
template
v-if=
"scope.scope.marketingStatus"
>
<span
<span
:class=
"['table-circle', 'm-r-8', [1, 2].includes(scope.scope.marketingStatus) ? 'back-green' : 'back-grey']"
></span>
:class=
"['table-circle', 'm-r-8', [1, 2].includes(scope.scope.marketingStatus) ? 'back-green' : 'back-grey']"
></span>
</
template
>
</
template
>
<span>
{{ scope.scope.marketingStatus ?{
<span>
{{ scope.scope.marketingStatus ?{
1:'已完结',
1:'已完结',
...
@@ -145,12 +187,16 @@
...
@@ -145,12 +187,16 @@
4:'已取消'
4:'已取消'
}[scope.scope.marketingStatus]: '-' }}
</span>
}[scope.scope.marketingStatus]: '-' }}
</span>
</div>
</div>
<div
class=
"table-btns"
<div
class=
"table-btns"
slot=
"auth-button"
slot=
"auth-button"
slot-scope=
"scope"
>
slot-scope=
"scope"
<GLTableButton
:buttonList=
"tableButtonList"
>
<GLTableButton
:buttonList=
"tableButtonList"
:buttonItem=
"scope.scope"
:buttonItem=
"scope.scope"
:buttonNum=
"3"
></GLTableButton>
:buttonNum=
"3"
></GLTableButton>
</div>
</div>
</GLTable>
</GLTable>
</div>
</div>
...
@@ -163,7 +209,7 @@
...
@@ -163,7 +209,7 @@
<
script
>
<
script
>
import
*
as
dayjs
from
'dayjs'
import
*
as
dayjs
from
'dayjs'
import
url
from
'@/assets/empty.png'
import
url
from
'@/assets/empty.png'
import
{
Util
}
from
'@/common/util
'
import
{
utils
}
from
'glsx-common
'
import
{
businessType
,
orderManageStatusList
,
afterSaleStatusList
,
orderSourceList
,
deliveryTypeList
,
exportFn
}
from
'@/common/constant'
import
{
businessType
,
orderManageStatusList
,
afterSaleStatusList
,
orderSourceList
,
deliveryTypeList
,
exportFn
}
from
'@/common/constant'
const
userInfo
=
[
const
userInfo
=
[
{
{
...
@@ -192,35 +238,13 @@ export default {
...
@@ -192,35 +238,13 @@ export default {
components
:
{
components
:
{
},
},
data
()
{
data
()
{
return
{
return
{
userInfo
,
userInfo
,
isCancelVisible
:
false
,
cancelForm
:
{
reasonsForFailure
:
''
},
cancelRules
:
{
reasonsForFailure
:
[
{
required
:
true
,
validator
:
(
rule
,
value
,
callback
)
=>
{
if
(
!
value
||
(
value
&&
!
value
.
trim
()))
{
return
callback
(
new
Error
(
'请输入审批不通过说明'
))
}
else
{
return
callback
()
}
},
trigger
:
'change'
}
]
},
isStaffVisible
:
false
,
size
:
'small'
,
size
:
'small'
,
url
:
url
,
url
:
url
,
isEdit
:
true
,
orderCode
:
''
,
orderCode
:
''
,
merchantId
:
''
,
merchantId
:
''
,
approvalInfo
:
{},
oldVal
:
{
oldVal
:
{
orderStatuses
:
[],
orderStatuses
:
[],
afterSaleStatuses
:
[]
afterSaleStatuses
:
[]
...
@@ -251,93 +275,6 @@ export default {
...
@@ -251,93 +275,6 @@ export default {
},
},
// 搜索
// 搜索
searchFormData
:
[],
searchFormData
:
[],
// 快递信息
isExpressVisible
:
false
,
writeOffApprovalVisible
:
false
,
editChildRef
:
'editChildRef'
,
expressForm
:
{
deliveryCompany
:
''
,
deliveryNumber
:
''
},
expressRules
:
{
deliveryCompany
:
[{
required
:
true
,
message
:
'快递公司是必填项'
,
trigger
:
'change'
}],
deliveryNumber
:
[{
required
:
true
,
message
:
'快递单号是必填项'
,
trigger
:
'change'
}]
},
expressFormData
:
[
{
label
:
'快递公司'
,
name
:
'deliveryCompany'
,
type
:
'input'
,
maxlength
:
20
},
{
label
:
'快递单号'
,
name
:
'deliveryNumber'
,
type
:
'input'
,
maxlength
:
20
}
],
// 订单核销
writeOffForm
:
{
verificationCode
:
''
},
writeOffRules
:
{
verificationCode
:
[{
required
:
true
,
message
:
'核销码是必填项'
,
trigger
:
'change'
}]
},
writeOffFormData
:
[
{
label
:
'核销码'
,
name
:
'verificationCode'
,
type
:
'input'
,
maxlength
:
32
}
],
// 退款审核
isExamineVisible
:
false
,
orderInfo
:
{},
examineForm
:
{
isAllowed
:
'1'
,
contactAddress
:
''
,
contactName
:
''
,
contactPhone
:
''
},
examineRules
:
{
contactAddress
:
[{
required
:
true
,
message
:
'退货地址是必填项'
,
trigger
:
'change'
}],
contactName
:
[{
required
:
true
,
message
:
'联系人是必填项'
,
trigger
:
'change'
}],
contactPhone
:
[
{
required
:
true
,
message
:
'手机号是必填项'
,
trigger
:
'change'
},
{
validator
:
(
rule
,
value
,
callback
)
=>
{
let
phoneReg
=
/^
(
13
[
0-9
]
|15
[
0-9
]
|16
[
0-9
]
|17
[
0-9
]
|18
[
0-9
]
|19
[
0-9
]
|14
[
0-9
])[
0-9
]{8}
$/
return
phoneReg
.
refundType
(
value
)
?
callback
()
:
callback
(
new
Error
(
'请输入正确的联系号码'
))
},
trigger
:
'blur'
}
]
},
examineFormData
:
[
{
label
:
'退货地址'
,
name
:
'contactAddress'
,
type
:
'input'
,
maxlength
:
50
},
{
label
:
'联系人'
,
name
:
'contactName'
,
type
:
'input'
,
maxlength
:
10
},
{
label
:
'手机号'
,
name
:
'contactPhone'
,
type
:
'input'
,
maxlength
:
11
}
],
// 确认收获
isReceivingVisible
:
false
,
// 表格按钮
// 表格按钮
tableButtonList
:
[
tableButtonList
:
[
{
{
...
@@ -351,113 +288,10 @@ export default {
...
@@ -351,113 +288,10 @@ export default {
click
:
this
.
handleDetail
click
:
this
.
handleDetail
}
}
},
},
{
type
:
'GLButton'
,
name
:
'退款'
,
attrs
:
{
type
:
'text'
,
fn
:
'退款'
},
condition
:
row
=>
{
// return row.orderSource == 4 && [2, 6, 21, 22].includes(+row.orderStatus) && row.isOffline != 0
return
row
.
showRefund
==
1
//是否展示退款按钮 1:是 0:否
},
listeners
:
{
click
:
row
=>
{
if
(
row
.
paymentModel
==
3
)
{
this
.
refundVisible
=
true
this
.
refundParams
=
{
orderCode
:
row
.
orderCode
,
afterSaleType
:
'2'
}
}
else
this
.
secondConfirm
(
'退款'
,
'请确定是否发起退款?'
,
'orderManage'
,
'crowdFundRefundApi'
,
{
orderCode
:
row
.
orderCode
,
afterSaleType
:
'1'
},
()
=>
{
},
this
.
searchForm
.
requestSource
!=
0
)
}
}
},
{
type
:
'GLButton'
,
name
:
'订单核销'
,
attrs
:
{
type
:
'text'
,
fn
:
'订单核销'
},
condition
:
row
=>
{
// return (row.deliveryType == 1 && row.orderStatus == 21) || (row.afterSaleType == 2 && [2, 4, 5, 6, 7, 9, 10].includes(row.orderStatus))
return
row
.
showVerf
==
1
//是否展示核销按钮 1:是 0:否
},
listeners
:
{
click
:
this
.
handleWriteOff
}
},
{
type
:
'GLButton'
,
// name: '输入快递信息',
name
:
'商品发货'
,
attrs
:
{
type
:
'text'
,
fn
:
'商品发货'
},
condition
:
row
=>
{
return
row
.
deliveryType
==
2
&&
row
.
orderStatus
==
6
},
listeners
:
{
click
:
this
.
handleExpressInfo
}
},
{
type
:
'GLButton'
,
name
:
'退款审核'
,
attrs
:
{
type
:
'text'
,
fn
:
'退款审核'
},
condition
:
row
=>
{
return
row
.
afterSaleStatus
==
1
},
listeners
:
{
click
:
this
.
handleExamine
}
},
{
type
:
'el-button'
,
name
:
'确认收货'
,
attrs
:
{
type
:
'text'
},
condition
:
row
=>
{
return
row
.
afterSaleStatus
==
4
},
listeners
:
{
click
:
this
.
handleReceiving
}
},
{
type
:
'el-button'
,
name
:
'设为已完结'
,
attrs
:
{
type
:
'text'
},
condition
:
row
=>
{
return
row
.
marketingStatus
&&
row
.
marketingStatus
==
3
},
listeners
:
{
click
:
row
=>
{
this
.
secondConfirm
(
'设为已完结'
,
'请确定将此订单营销状态设为已完结?'
,
'orderManage'
,
'finishOrderStatus'
,
{
subOrderCode
:
row
.
orderCode
},
false
)
}
}
},
],
],
// 表格
// 表格
getListApi
:
this
.
$apis
.
order
.
getListApi
,
getListApi
:
this
.
$apis
.
order
.
getListApi
,
tableParams
:
{
tableParams
:
{
mutiSelectName
:
'table'
,
mutiSelectUniqueKey
:
'orderCode'
,
// checkSelectKey: 'orderStatus',
// checkSelectVal: [9, 10, 11, 22],
checkSelectable
:
row
=>
{
// return [9, 10, 11, 22].indexOf(row.orderStatus) == -1 && row.isOffline != '0' && row?.paymentModel != 3
return
row
.
showRefund
==
1
&&
row
?.
paymentModel
!=
3
//v3.6.0修改批量退款
},
listName
:
'list'
,
listName
:
'list'
,
tableOption
:
true
,
tableOption
:
true
,
tableColumns
:
[]
tableColumns
:
[]
...
@@ -494,11 +328,22 @@ export default {
...
@@ -494,11 +328,22 @@ export default {
{
confId
:
'0'
,
confName
:
'是'
},
{
confId
:
'0'
,
confName
:
'是'
},
{
confId
:
'1'
,
confName
:
'否'
}
{
confId
:
'1'
,
confName
:
'否'
}
],
],
businessTypeList
:
Util
.
deepClone
(
businessType
),
businessTypeList
:
utils
.
deepClone
(
businessType
),
marketingStatusList
:
[
marketingStatusList
:
[
{
confId
:
'1'
,
confName
:
'已完结'
},
{
confId
:
'1'
,
confName
:
'已完结'
},
{
confId
:
'3'
,
confName
:
'未完结'
},
{
confId
:
'3'
,
confName
:
'未完结'
},
{
confId
:
'4'
,
confName
:
'已取消'
}
{
confId
:
'4'
,
confName
:
'已取消'
}
],
tailOrderStatusList
:
[
{
confId
:
"0"
,
confName
:
"待支付"
},
{
confId
:
"1"
,
confName
:
"已支付"
},
{
confId
:
"2"
,
confName
:
"已退款"
}
],
ledgerStatusList
:
[
{
confId
:
"0"
,
confName
:
"未分账"
},
{
confId
:
"1"
,
confName
:
"待确认"
},
{
confId
:
"2"
,
confName
:
"待分账"
},
{
confId
:
"3"
,
confName
:
"已分账"
}
]
]
},
},
requestSourceList
:
[
'全部订单'
,
'已付款'
,
'未付款'
,
'已退款'
,
'售后订单'
,
'待审批'
],
requestSourceList
:
[
'全部订单'
,
'已付款'
,
'未付款'
,
'已退款'
,
'售后订单'
,
'待审批'
],
...
@@ -544,23 +389,17 @@ export default {
...
@@ -544,23 +389,17 @@ export default {
]
]
},
},
importVisible
:
false
,
file
:
{
fileName
:
''
,
fileType
:
''
},
showTable
:
false
,
//显示隐藏表格
showTable
:
false
,
//显示隐藏表格
hideStatus
:
true
hideStatus
:
true
}
}
},
},
mounted
()
{
mounted
()
{
this
.
getCrowdfundingOrderConfig
()
this
.
getCrowdfundingOrderConfig
()
// this.getCount()
},
},
methods
:
{
methods
:
{
async
getCrowdfundingOrderConfig
()
{
async
getCrowdfundingOrderConfig
()
{
let
tableColumns
=
[
let
tableColumns
=
[
{
{
label
:
'客户名称'
,
label
:
'客户名称'
,
...
@@ -713,7 +552,9 @@ export default {
...
@@ -713,7 +552,9 @@ export default {
label
:
'测试单'
,
label
:
'测试单'
,
prop
:
'orderType'
,
prop
:
'orderType'
,
width
:
'100'
,
width
:
'100'
,
addHtml
:
'orderType'
formatter
:
(
cellValue
)
=>
{
return
{
0
:
"否"
,
1
:
"是"
}[
cellValue
.
orderType
]
||
"-"
}
},
},
{
{
label
:
'退款类型'
,
label
:
'退款类型'
,
...
@@ -757,7 +598,39 @@ export default {
...
@@ -757,7 +598,39 @@ export default {
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
outTradeNo
||
'-'
return
cellValue
.
outTradeNo
||
'-'
}
}
},
{
label
:
'尾款状态'
,
prop
:
'tailOrderStatus'
,
width
:
100
,
formatter
:
(
cellValue
)
=>
{
return
{
0
:
'待支付'
,
1
:
'已支付'
,
2
:
'已退款'
}[
cellValue
.
tailOrderStatus
]
||
'-'
}
}
},
{
label
:
'交易参考号'
,
prop
:
'transactionReferenceId'
,
width
:
'160'
,
formatter
:
(
cellValue
)
=>
{
return
cellValue
.
transactionReferenceId
||
'-'
}
},
{
label
:
'分账状态'
,
prop
:
'ledgerStatus'
,
width
:
100
,
formatter
:
(
cellValue
)
=>
{
return
{
0
:
'未分账'
,
1
:
'待确认'
,
2
:
'待分账'
,
3
:
'已分账'
}[
cellValue
.
ledgerStatus
]
||
'-'
}
},
{
label
:
'尾款金额'
,
prop
:
'finalPaymentAmount'
,
width
:
'160'
,
formatter
:
(
cellValue
)
=>
{
return
cellValue
.
finalPaymentAmount
?
cellValue
.
finalPaymentAmount
/
100
:
'-'
}
},
],
],
searchFormData
=
[
searchFormData
=
[
{
{
...
@@ -833,20 +706,6 @@ export default {
...
@@ -833,20 +706,6 @@ export default {
}
}
},
},
{
{
label
:
'门店'
,
name
:
'merchantNames'
,
type
:
'select'
,
labelWidth
:
56
,
multiple
:
true
,
attrs
:
{
multipleLimit
:
10
,
},
noFilter
:
false
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confName'
,
},
{
label
:
'客户姓名'
,
label
:
'客户姓名'
,
name
:
'customerName'
,
name
:
'customerName'
,
type
:
'input'
type
:
'input'
...
@@ -988,6 +847,29 @@ export default {
...
@@ -988,6 +847,29 @@ export default {
optionId
:
'confId'
,
optionId
:
'confId'
,
optionLabel
:
'confName'
,
optionLabel
:
'confName'
,
optionsName
:
'marketingStatusList'
optionsName
:
'marketingStatusList'
},
{
label
:
"尾款状态"
,
name
:
"tailOrderStatus"
,
type
:
"select"
,
optionList
:
[],
optionId
:
"confId"
,
optionLabel
:
"confName"
,
optionsName
:
"tailOrderStatusList"
},
{
label
:
"交易参考号"
,
name
:
"transactionReferenceId"
,
type
:
"input"
},
{
label
:
"分账状态"
,
name
:
"ledgerStatus"
,
type
:
"select"
,
optionList
:
[],
optionId
:
"confId"
,
optionLabel
:
"confName"
,
optionsName
:
"ledgerStatusList"
}
}
],
],
hideStatus
=
false
hideStatus
=
false
...
@@ -1020,7 +902,7 @@ export default {
...
@@ -1020,7 +902,7 @@ export default {
this
.
getOptionsList
(
'searchFormData'
)
this
.
getOptionsList
(
'searchFormData'
)
this
.
getCrowdfundingParams
()
this
.
getCrowdfundingParams
()
},
},
getParams
()
{
getParams
()
{
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
var
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
if
(
this
.
searchForm
.
createDate
?.
length
)
{
if
(
this
.
searchForm
.
createDate
?.
length
)
{
params
.
createdStartDateStr
=
new
Date
(
this
.
searchForm
.
createDate
[
0
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
+
' 00:00:00'
params
.
createdStartDateStr
=
new
Date
(
this
.
searchForm
.
createDate
[
0
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
+
' 00:00:00'
...
@@ -1031,7 +913,7 @@ export default {
...
@@ -1031,7 +913,7 @@ export default {
return
params
return
params
},
},
beforeSearchFn
()
{
beforeSearchFn
()
{
return
new
Promise
(
resolve
=>
{
return
new
Promise
(
resolve
=>
{
this
.
tableSearchForm
=
this
.
getParams
()
this
.
tableSearchForm
=
this
.
getParams
()
delete
this
.
tableSearchForm
.
createDate
delete
this
.
tableSearchForm
.
createDate
...
@@ -1039,7 +921,7 @@ export default {
...
@@ -1039,7 +921,7 @@ export default {
})
})
},
},
getOptionsList
(
formName
,
hasAll
=
true
,
refreshSigle
)
{
getOptionsList
(
formName
,
hasAll
=
true
,
refreshSigle
)
{
if
(
refreshSigle
)
{
if
(
refreshSigle
)
{
var
item
=
this
[
formName
].
find
(
k
=>
k
.
name
==
refreshSigle
)
var
item
=
this
[
formName
].
find
(
k
=>
k
.
name
==
refreshSigle
)
var
index
=
this
[
formName
].
findIndex
(
k
=>
k
.
name
==
refreshSigle
)
var
index
=
this
[
formName
].
findIndex
(
k
=>
k
.
name
==
refreshSigle
)
...
@@ -1068,79 +950,12 @@ export default {
...
@@ -1068,79 +950,12 @@ export default {
})
})
}
}
},
},
//取消弹框,如果没有凭证,直接关闭
secondConfirm
(
title
,
txt
,
apiModule
,
apiName
,
apiParams
,
fn
,
isResetPage
=
true
)
{
handleApprovalClose
()
{
if
(
this
.
approvalInfo
.
verificationVoucher
)
{
this
.
openPassDialog
()
}
else
{
this
.
writeOffApprovalVisible
=
false
}
},
// 确认不通过审批
confirmNoPass
()
{
this
.
$refs
?.
cancelRef
?.
validate
(
valid
=>
{
if
(
valid
)
this
.
handleApprovalConfirm
(
1
)
})
},
// 确认通过审批
handleApprovalConfirm
(
type
)
{
let
params
=
{
orderCode
:
this
.
orderCode
}
if
(
type
==
1
)
{
params
.
reasonsForFailure
=
this
.
cancelForm
.
reasonsForFailure
params
.
failureflag
=
true
}
this
.
$apis
.
orderManage
.
orderVerfication
(
params
).
then
(
result
=>
{
this
.
writeOffApprovalVisible
=
false
this
.
closePassDialog
()
this
.
handleSearch
()
})
},
//关闭不通过弹窗
closePassDialog
()
{
this
.
isCancelVisible
=
false
this
.
cancelForm
=
{
reasonsForFailure
:
''
}
},
// 打开不通过弹窗
openPassDialog
()
{
this
.
$refs
?.
cancelRef
?.
clearValidate
()
this
.
writeOffApprovalVisible
=
false
this
.
isCancelVisible
=
true
},
// 订单指派
handlerAssign
(
item
)
{
// this.
console
.
log
(
item
)
this
.
merchantId
=
item
.
merchantId
this
.
orderCode
=
item
.
orderCode
this
.
isStaffVisible
=
true
},
// 改变订单类型
changeOrderType
(
item
)
{
console
.
log
(
item
)
let
params
=
{
subOrderCode
:
item
.
orderCode
,
orderType
:
item
.
orderType
?
0
:
1
}
this
.
secondConfirm
(
'测试单'
,
'测试单数据不纳入对应战报和喜报的排名展示'
,
'orderManage'
,
'updateOrderType'
,
params
,
false
)
// return
// this.$apis.orderManage
// .updateOrderType(params)
// .then(result => {
// this.handleSearch()
// })
// .catch(err => {
// console.log(err)
// })
},
secondConfirm
(
title
,
txt
,
apiModule
,
apiName
,
apiParams
,
fn
,
isResetPage
=
true
)
{
this
.
$confirm
(
txt
,
title
,
{
this
.
$confirm
(
txt
,
title
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
type
:
'warning'
,
callback
:
Util
.
debounce
((
action
)
=>
{
callback
:
utils
.
debounce
((
action
)
=>
{
if
(
action
==
'confirm'
)
{
if
(
action
==
'confirm'
)
{
this
.
$apis
[
apiModule
][
apiName
](
apiParams
).
then
(
res
=>
{
this
.
$apis
[
apiModule
][
apiName
](
apiParams
).
then
(
res
=>
{
this
.
$message
({
this
.
$message
({
...
@@ -1158,16 +973,16 @@ export default {
...
@@ -1158,16 +973,16 @@ export default {
})
})
},
},
getCount
()
{
getCount
()
{
var
params
=
this
.
getParams
()
var
params
=
this
.
getParams
()
delete
params
.
createDate
delete
params
.
createDate
// if(params.orderStatuses.includes('3')) return
// if(params.orderStatuses.includes('3')) return
this
.
$apis
.
order
Manage
.
getCountApi
(
params
).
then
(
res
=>
{
this
.
$apis
.
order
.
getCountApi
(
params
).
then
(
res
=>
{
this
.
statisticsInfo
=
res
||
{
orderCount
:
''
,
payPriceTotal
:
''
,
refundTotal
:
''
}
this
.
statisticsInfo
=
res
||
{
orderCount
:
''
,
payPriceTotal
:
''
,
refundTotal
:
''
}
})
})
},
},
handleDetail
(
row
)
{
handleDetail
(
row
)
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/orderManage/orderDetail'
,
path
:
'/orderManage/orderDetail'
,
query
:
{
query
:
{
...
@@ -1176,181 +991,9 @@ export default {
...
@@ -1176,181 +991,9 @@ export default {
})
})
},
},
// 输入快递信息 - start
handleExpressClose
()
{
this
.
isExpressVisible
=
!
this
.
isExpressVisible
this
.
orderCode
=
''
this
.
expressForm
=
{
deliveryCompany
:
''
,
deliveryNumber
:
''
}
},
handleExpressConfirm
()
{
this
.
$refs
.
expressRef
.
$refs
[
this
.
editChildRef
].
validate
(
valid
=>
{
if
(
valid
)
{
var
params
=
this
.
$common
.
utils
.
deepClone
(
this
.
expressForm
)
params
.
orderCode
=
this
.
orderCode
this
.
$apis
.
orderManage
.
addDeliveryApi
(
params
).
then
(
res
=>
{
this
.
$message
({
message
:
res
.
code
==
'0'
?
'操作成功'
:
'操作失败'
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
,
customClass
:
'message-Z-zinde'
})
if
(
res
.
code
==
'0'
)
{
this
.
handleExpressClose
()
this
.
handleSearch
()
}
})
}
})
},
handleExpressInfo
(
row
)
{
this
.
isExpressVisible
=
!
this
.
isExpressVisible
this
.
orderCode
=
row
.
orderCode
},
// 输入快递信息 - end
// 订单核销 - start
handleWriteOffClose
()
{
this
.
isWriteOffVisible
=
!
this
.
isWriteOffVisible
this
.
orderCode
=
''
this
.
writeOffForm
=
{
verificationCode
:
''
}
},
handleWriteOffConfirm
()
{
this
.
$refs
.
writeOffRef
.
$refs
[
this
.
editChildRef
].
validate
(
valid
=>
{
if
(
valid
)
{
var
params
=
this
.
$common
.
utils
.
deepClone
(
this
.
writeOffForm
)
params
.
orderCode
=
this
.
orderCode
this
.
$apis
.
orderManage
.
writeOffApi
(
params
).
then
(
res
=>
{
this
.
$message
({
message
:
res
.
code
==
'0'
?
'操作成功'
:
'操作失败'
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
,
customClass
:
'message-Z-zinde'
})
if
(
res
.
code
==
'0'
)
{
this
.
handleWriteOffClose
()
this
.
searchForm
.
requestSource
==
0
?
this
.
$refs
.
allOrderRef
.
refreshTable
(
false
)
:
this
.
handleSearch
()
}
})
}
})
},
handleStaffClose
()
{
console
.
log
(
'dialogVisible'
)
this
.
isStaffVisible
=
!
this
.
isStaffVisible
},
handleDialogConfirm
()
{
this
.
handleStaffClose
()
this
.
handleSearch
()
},
handleWriteOff
(
row
)
{
if
(
row
.
orderSource
==
4
)
{
this
.
secondConfirm
(
'订单核销'
,
'请确定是否核销此订单?'
,
'orderManage'
,
'crowdFundWriteOffApi'
,
{
orderCode
:
row
.
orderCode
},
()
=>
{
},
this
.
searchForm
.
requestSource
!=
0
)
return
true
}
this
.
isWriteOffVisible
=
!
this
.
isWriteOffVisible
this
.
orderCode
=
row
.
orderCode
},
// 订单核销 - end
// 退款审核 - start
handleExamineClose
()
{
this
.
isExamineVisible
=
!
this
.
isExamineVisible
this
.
orderCode
=
''
this
.
orderInfo
=
{}
this
.
examineForm
=
{
isAllowed
:
'1'
,
contactAddress
:
''
,
contactName
:
''
,
contactPhone
:
''
}
},
submitExamine
(
params
)
{
this
.
$apis
.
orderManage
.
examineAllowApi
(
params
).
then
(
res
=>
{
this
.
$message
({
message
:
res
.
code
==
'0'
?
'操作成功'
:
res
.
message
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
,
customClass
:
'message-Z-zinde'
})
if
(
res
.
code
==
'0'
)
{
this
.
handleExamineClose
()
this
.
searchForm
.
requestSource
==
0
?
this
.
$refs
.
allOrderRef
.
refreshTable
(
false
)
:
this
.
handleSearch
()
}
})
},
handleExamineConfirm
()
{
var
params
=
{
id
:
this
.
orderInfo
.
id
}
if
(
this
.
orderInfo
.
refundType
==
1
&&
this
.
examineForm
.
isAllowed
==
'1'
)
{
this
.
$refs
.
examineRef
.
$refs
[
this
.
editChildRef
].
validate
(
valid
=>
{
if
(
valid
)
{
params
=
this
.
$common
.
utils
.
deepClone
(
this
.
examineForm
)
params
.
id
=
this
.
orderInfo
.
id
params
.
isAllowed
=
true
this
.
submitExamine
(
params
)
}
})
}
else
{
params
.
isAllowed
=
this
.
examineForm
.
isAllowed
==
'1'
this
.
submitExamine
(
params
)
}
},
handleExamine
(
row
)
{
this
.
orderCode
=
row
.
orderCode
this
.
$apis
.
orderManage
.
examineDetailApi
({
orderCode
:
row
.
orderCode
}).
then
(
res
=>
{
this
.
orderInfo
=
res
||
{}
this
.
orderInfo
.
refundTypeName
=
[
1
,
2
,
3
].
includes
(
this
.
orderInfo
.
refundType
)
?
this
.
baseData
.
refundTypeList
.
find
(
item
=>
item
.
confId
==
this
.
orderInfo
.
refundType
+
''
).
confName
:
'-'
this
.
orderInfo
.
createdDateStr
=
this
.
orderInfo
.
createdDate
?
dayjs
(
this
.
orderInfo
.
createdDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
'-'
this
.
isExamineVisible
=
!
this
.
isExamineVisible
})
},
// 退款审核 - end
// 确认收货 - start
handleReceivingClose
()
{
this
.
isReceivingVisible
=
!
this
.
isReceivingVisible
this
.
orderCode
=
''
this
.
orderInfo
=
{}
},
handleReceivingConfirm
()
{
var
params
=
{
id
:
this
.
orderInfo
.
id
}
this
.
$apis
.
orderManage
.
confirmReceiptGoodsApi
(
params
).
then
(
res
=>
{
this
.
$message
({
message
:
res
.
code
==
'0'
?
'操作成功'
:
'操作失败'
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
,
customClass
:
'message-Z-zinde'
})
if
(
res
.
code
==
'0'
)
{
this
.
handleReceivingClose
()
this
.
handleSearch
()
}
})
},
handleReceiving
(
row
)
{
this
.
$apis
.
orderManage
.
examineDetailApi
({
orderCode
:
row
.
orderCode
}).
then
(
res
=>
{
this
.
orderInfo
=
res
||
{}
this
.
orderInfo
.
refundTypeName
=
[
1
,
2
,
3
].
includes
(
this
.
orderInfo
.
refundType
)
?
this
.
baseData
.
refundTypeList
.
find
(
item
=>
item
.
confId
==
this
.
orderInfo
.
refundType
+
''
).
confName
:
'-'
this
.
orderInfo
.
createdDateStr
=
this
.
orderInfo
.
createdDate
?
dayjs
(
this
.
orderInfo
.
createdDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
'-'
this
.
isReceivingVisible
=
!
this
.
isReceivingVisible
})
},
// 确认收货 - end
setTableFinishFun
()
{
setTableFinishFun
()
{
this
.
$refs
.
allOrderRef
.
data
.
forEach
(
item
=>
{
this
.
$refs
.
allOrderRef
.
data
.
forEach
(
item
=>
{
item
.
vinNo
=
item
.
vin
?
(
item
.
vin
.
split
(
','
).
length
>
1
?
item
.
vin
.
split
(
','
)
:
item
.
vin
)
:
'-'
item
.
vinNo
=
item
.
vin
?
(
item
.
vin
.
split
(
','
).
length
>
1
?
item
.
vin
.
split
(
','
)
:
item
.
vin
)
:
'-'
})
})
...
@@ -1360,41 +1003,33 @@ export default {
...
@@ -1360,41 +1003,33 @@ export default {
},
},
handleSearch
()
{
handleSearch
()
{
// this.$refs.allOrderRef.refreshTable(true, false)
// this.$refs.allOrderRef.refreshTable(true, false)
this
.
$refs
.
allOrderRef
.
refreshTable
()
this
.
$refs
.
allOrderRef
.
refreshTable
()
},
},
handleTabClick
()
{
handleTabClick
()
{
this
.
handleSearch
()
this
.
handleSearch
()
},
},
handleExport
(
row
)
{
handleExport
(
row
)
{
var
params
=
this
.
getParams
()
var
params
=
this
.
getParams
()
this
.
$apis
.
order
Manage
.
orderExportApi
(
params
).
then
(
res
=>
{
this
.
$apis
.
order
.
orderExportApi
(
params
).
then
(
res
=>
{
exportFn
(
res
)
exportFn
(
res
)
})
})
},
},
handleReset
()
{
handleReset
()
{
this
.
searchForm
=
this
.
$options
.
data
.
call
(
this
).
searchForm
this
.
searchForm
=
this
.
$options
.
data
.
call
(
this
).
searchForm
this
.
handleSearch
()
this
.
handleSearch
()
},
},
selectionTable
(
selectList
)
{
selectionTable
(
selectList
)
{
this
.
selectList
=
selectList
.
filter
(
e
=>
e
.
orderCode
)
this
.
selectList
=
selectList
.
filter
(
e
=>
e
.
orderCode
)
},
},
async
refundFun
()
{
async
getCrowdfundingParams
()
{
let
{
refundParams
}
=
this
const
res
=
this
.
$apis
.
orderManage
.
crowdFundRefundApi
(
refundParams
)
this
.
refundVisible
=
false
this
.
searchForm
.
requestSource
!=
0
?
this
.
handleSearch
()
:
this
.
$refs
.
allOrderRef
.
refreshTable
(
false
)
},
async
getCrowdfundingParams
()
{
/**参数类型 1:众筹活动名称(返回类型String),2:众筹活动门店 */
/**参数类型 1:众筹活动名称(返回类型String),2:众筹活动门店 */
const
activity
=
await
this
.
$apis
.
seckillActivity
.
getCrowdfundingParams
({
const
activity
=
await
this
.
$apis
.
order
.
getCrowdfundingParams
({
parameterType
:
1
parameterType
:
1
})
})
let
activityNameList
=
[]
let
activityNameList
=
[]
...
@@ -1408,104 +1043,7 @@ export default {
...
@@ -1408,104 +1043,7 @@ export default {
}
}
const
activityNamesIndex
=
this
.
searchFormData
.
findIndex
(
e
=>
e
.
name
==
'activityNames'
)
const
activityNamesIndex
=
this
.
searchFormData
.
findIndex
(
e
=>
e
.
name
==
'activityNames'
)
this
.
$set
(
this
.
searchFormData
[
activityNamesIndex
],
'optionList'
,
this
.
$common
.
utils
.
deepClone
(
activityNameList
))
this
.
$set
(
this
.
searchFormData
[
activityNamesIndex
],
'optionList'
,
this
.
$common
.
utils
.
deepClone
(
activityNameList
))
const
merchant
=
await
this
.
$apis
.
seckillActivity
.
getCrowdfundingParams
({
parameterType
:
2
})
let
merchantNameList
=
[]
if
(
merchant
?.
parameters
&&
merchant
.
parameters
.
length
)
{
merchant
.
parameters
.
map
(
e
=>
{
merchantNameList
.
push
({
confId
:
e
,
confName
:
e
})
})
}
const
merchantNamesIndex
=
this
.
searchFormData
.
findIndex
(
e
=>
e
.
name
==
'merchantNames'
)
this
.
$set
(
this
.
searchFormData
[
merchantNamesIndex
],
'optionList'
,
this
.
$common
.
utils
.
deepClone
(
merchantNameList
))
},
},
async
batchRefundOrder
()
{
let
{
selectList
}
=
this
,
orderCodes
=
[]
console
.
table
(
selectList
)
selectList
.
map
(
e
=>
orderCodes
.
push
(
e
.
orderCode
))
const
res
=
await
this
.
$apis
.
orderManage
.
batchRefundOrder
({
orderCodes
,
refundType
:
1
})
console
.
log
(
res
)
this
.
batchRefundVisible
=
false
if
(
res
)
{
this
.
$message
({
message
:
res
.
code
==
'0'
?
'操作成功'
:
'操作失败'
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
,
customClass
:
'message-Z-zinde'
})
this
.
searchForm
.
requestSource
!=
0
?
this
.
handleSearch
()
:
this
.
$refs
.
allOrderRef
.
refreshTable
(
false
)
}
},
handleXlsxChange
(
e
)
{
let
[
file
]
=
e
.
srcElement
.
files
,
reader
=
new
FileReader
()
if
(
!
file
)
return
this
.
$notify
({
title
:
'提示'
,
message
:
'文件上传中,请稍后'
})
// 默认1MB
this
.
file
.
fileName
=
file
.
name
reader
.
readAsDataURL
(
file
)
reader
.
onload
=
el
=>
{
const
imgFile
=
el
.
target
.
result
const
arrBase64
=
imgFile
.
split
(
','
)
const
splitStr
=
file
.
name
.
split
(
'.'
)
this
.
file
.
fileType
=
splitStr
[
splitStr
.
length
-
1
]
+
'@'
+
arrBase64
[
1
]
this
.
$notify
({
title
:
'提示'
,
message
:
'文件上传成功'
,
type
:
'success'
})
}
},
importFun
()
{
let
{
file
:
{
fileType
,
fileName
}
}
=
this
if
(
fileType
)
this
.
$apis
.
orderManage
.
importCrowdFundingOrder
({
file
:
fileType
}).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
)
{
this
.
$notify
({
title
:
'提示'
,
message
:
'订单导入成功'
,
type
:
'success'
})
this
.
visibleImportDialog
()
this
.
searchForm
.
requestSource
!=
0
?
this
.
handleSearch
()
:
this
.
$refs
.
allOrderRef
.
refreshTable
(
false
)
}
})
else
this
.
$message
.
error
(
fileName
?
'文件上传中,请稍后'
:
'请上传文件后,在点击确定'
)
},
downloadXlsx
()
{
var
alink
=
document
.
createElement
(
'a'
)
alink
.
href
=
'//img02.glsx.com.cn/weapp/resource/saas/scrm/xlsx/订单导入模板.xlsx'
alink
.
setAttribute
(
'target'
,
'_blank'
)
alink
.
download
=
'订单导入模板.xlsx'
alink
.
click
()
alink
.
remove
()
},
visibleImportDialog
(
val
=
false
)
{
if
(
this
.
$refs
?.
uploadInput
)
this
.
$refs
.
uploadInput
.
value
=
null
this
.
file
=
{
fileName
:
''
,
fileType
:
''
}
this
.
importVisible
=
val
}
}
}
}
}
</
script
>
</
script
>
...
@@ -1524,7 +1062,7 @@ export default {
...
@@ -1524,7 +1062,7 @@ export default {
color
:
#333333
;
color
:
#333333
;
display
:
flex
;
display
:
flex
;
&-text
{
&-text
{
padding
-top
:
12
px
;
padding
:
12px
0
10
px
;
}
}
}
}
.car-no
{
.car-no
{
...
@@ -1660,11 +1198,42 @@ export default {
...
@@ -1660,11 +1198,42 @@ export default {
cursor
:
pointer
!important
;
cursor
:
pointer
!important
;
}
}
}
}
.import-input
{
opacity
:
0
;
position
:
absolute
;
right
:
0
;
top
:
0
;
width
:
98px
;
height
:
36px
;
cursor
:
pointer
;
font-size
:
0
;
}
.download-btn
{
.download-btn
{
position
:
absolute
;
position
:
absolute
;
top
:
110%
;
top
:
110%
;
right
:
0
;
right
:
0
;
}
}
.import-btn
{
position
:
relative
;
}
.import-input
{
opacity
:
0
;
position
:
absolute
;
right
:
0
;
top
:
0
;
width
:
98px
;
height
:
36px
;
cursor
:
pointer
;
font-size
:
0
;
}
.import-template
{
position
:
absolute
;
height
:
20px
;
top
:
50px
;
left
:
0
;
}
}
}
.btn-group
{
.btn-group
{
.el-button
+
.el-button
{
.el-button
+
.el-button
{
...
...
src/views/orderManage/orderDetail.vue
View file @
3a2da5d
<!-- 订单详情 -->
<!-- 订单详情 -->
<
template
>
<
template
>
<d2-container
class=
"order-detail"
>
<div
class=
"order-detail marketing"
>
<div
class=
"d2-container-content"
>
<div
class=
"edit-box"
>
<!--
<p
class=
"edit-title"
>
<div
class=
"container m-b-20"
>
订单详情
<p
class=
"edit-title"
>
订单信息
</p>
</p>
-->
<el-form
<div
class=
"form_gp"
>
label-width=
"100px"
<p
class=
"edit-sub-title"
>
:inline=
"true"
订单详情
>
</p>
<el-row
<el-form
class=
"edit-sub-block"
v-for=
"(item, index) in detailFormDataRow"
:inline=
"true"
>
:key=
"index"
<el-form-item
label=
"订单单号:"
>
>
{{
detail
.
orderCode
}}
<el-form-item
</el-form-item>
v-for=
"(subItem, subIndex) in item.rowList"
<el-form-item
label=
"订单状态:"
>
:key=
"subIndex"
{{
statusOpts
[
detail
.
status
]
}}
:label=
"subItem.label"
</el-form-item>
class=
"row-item"
<el-form-item
label=
"订单来源:"
>
v-if=
"!specialAccout"
>
<span
{{
detail
.
source
==
7
?
'系统导入'
:
'小程序订单'
}}
class=
"detail-txt ellipsis-1"
</el-form-item>
:title=
"detailForm[subItem.name]"
>
{{
detailForm
[
subItem
.
name
]
?
detailForm
[
subItem
.
name
]
+
(
subItem
.
suffix
||
''
)
:
'-'
}}
</span>
<el-form-item
style=
"width:400px"
label=
"交易流水:"
>
{{
detail
.
outTradeNo
}}
</el-form-item>
<el-form-item
v-if=
"detail.source==7"
label=
"订单导入时间:"
>
{{
detail
.
createdDate
}}
</el-form-item>
<el-form-item
label=
"支付方式:"
>
{{
detail
.
upgradeFlag
==
'N'
?
'战败'
:
payTypeOpts
[
detail
.
payType
]
}}
</el-form-item>
<el-form-item
label=
"施工状态:"
>
{{
constructioOpts
[
detail
.
constructionFlag
]
}}
</el-form-item>
<el-form-item
label=
"支付状态:"
>
{{
detail
.
upgradeFlag
==
'N'
?
'战败'
:
payStatusOpts
[
detail
.
payStatus
]
}}
</el-form-item>
<el-form-item
label=
"收款凭证:"
>
<img
v-if=
"detail.payVoucher"
class=
"order-img"
:src=
"detail.payVoucher"
@
click=
"handleEnlargeImg"
>
<span
v-else
>
无
</span>
</el-form-item>
<el-form-item
label=
"退款订单:"
v-if=
"detail.status == 12"
>
{{
detail
.
refundRemark
}}
</el-form-item>
</el-form-item>
</el-row>
<template
v-if=
"detailForm.formDescribe"
>
<el-form-item
label=
"其他信息"
>
{{
detailForm
.
formDescribe
}}
</el-form-item>
</
template
>
</el-form>
</el-form>
</div>
</div>
<div
class=
"form_gp"
>
<div
:class=
"['container', orderRefund ? 'm-b-20' : 'edit-container']"
>
<p
class=
"edit-sub-title"
>
<p
class=
"edit-title"
>
发货信息
</p>
用户信息
<el-form
</p>
label-width=
"100px"
<el-form
class=
"edit-sub-block"
:inline=
"true"
:inline=
"true"
>
>
<el-form-item
label=
"用户姓名:"
>
<el-form-item
label=
"物流信息"
>
{{
detail
.
customerName
}}
<span>
{{ detailForm.deliveryCompany }}
{{ detailForm.deliveryNumber }}
</span>
</el-form-item>
<!--
<el-form-item
label=
"车架号:"
>
{{
detail
.
standNo
}}
</el-form-item>
-->
<el-form-item
label=
"评价:"
>
{{
detail
.
customerComment
}}
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<div
v-if=
"orderGoods.length"
class=
"p-l-40"
>
<table
class=
"show-table"
>
<tbody>
<tr
v-for=
"(item, index) in orderGoods"
:key=
"index"
style=
"height: 70px;"
>
<td><img
:src=
"item.goodsImage"
class=
"img-60"
/></td>
<td>
{{ item.goodsName }}
</td>
<td>
{{ item.specificationData }}
</td>
<td>
{{ item.activityPrice ? item.activityPrice : item.retailPrice }}元 * {{ item.goodsNumber }}
</td>
</tr>
<tr
v-if=
"detailForm.subOrderCoupon"
style=
"height: 40px;"
>
<td
style=
"text-align: left;"
colspan=
"3"
>
优惠券
</td>
<td>
{{ detailForm.subOrderCoupon.discountAmount }}元
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div
class=
"form_gp"
>
<p
class=
"edit-sub-title"
>
关联信息
</p>
<el-form
class=
"edit-sub-block"
:inline=
"true"
>
<el-form-item
label=
"流量来源:"
>
{{
detail
.
merchantName
}}
</el-form-item>
<el-form-item
label=
"推荐人:"
>
{{
detail
.
employeeName
}}
</el-form-item>
<el-form-item
label=
"技师:"
v-if=
"detail.sceneType == 1"
>
{{
detail
.
technicianName
}}
</el-form-item>
<div>
<!--
<el-form-item
label=
"园区店:"
>
-->
<el-form-item
label=
"服务对接:"
>
{{
detail
.
sellerMerchantName
}}
</el-form-item>
<el-form-item
label=
"转化员:"
>
{{
detail
.
sellerName
}}
</el-form-item>
<el-form-item
label=
"门店地址:"
>
{{
detail
.
sellerMerchantAddress
}}
</el-form-item>
</div>
</div>
<div>
<div
<!-- 审计特殊字段 -->
class=
"container edit-container"
<el-form-item
label=
"二级流量方:"
v-if=
"orderRefund"
v-if=
"detail.subShopMerchantName"
>
>
{{
detail
.
subShopMerchantName
}}
<p
class=
"edit-title"
>
售后信息
</p>
<el-form
label-width=
"100px"
:inline=
"true"
>
<el-row
v-for=
"(item, index) in afterInfoDataRow"
:key=
"index"
>
<el-form-item
v-for=
"(subItem, subIndex) in item.rowList"
:key=
"subIndex"
:label=
"subItem.label"
>
<span
class=
"detail-txt ellipsis-1"
:title=
"orderRefund[subItem.name]"
>
{{ orderRefund[subItem.name] || '-' }}
</span>
</el-form-item>
</el-form-item>
</el-row>
</el-form>
<div
class=
"form-img"
>
<el-form
label-width=
"100px"
:inline=
"true"
>
<el-form-item
label=
"售后凭证"
>
<div
class=
"flex"
>
<span
v-for=
"(item, index) in orderRefund.imgUrls"
:key=
"index"
>
<el-image
class=
"img-60 comment-img"
:src=
"item"
:preview-src-list=
"[item]"
></el-image>
</span>
</div>
</div>
</el-form-item>
</el-form>
</el-form>
</div>
</div>
<div
class=
"form_table_gp"
>
<p
class=
"edit-sub-title"
>
订单商品
</p>
<el-table
:data=
"detail.subOrderList"
border
:header-cell-style=
"
{'text-align':'center', 'background-color':'#fafafa'}"
show-summary
:summary-method="getSummaries"
style="width: 100%">
<!--
<el-table-column
:prop=
"detail.upgradeFlag === 'Y' ? 'upgradeGoodsCommodityCode' : 'baseGoodsCommodityCode'"
--
>
<el-table-column
:prop=
"'upgradeGoodsCommodityCode'"
align=
"center"
label=
"商品ID"
width=
"180px"
/>
<el-table-column
:prop=
"'upgradeGoodsName'"
align=
"center"
label=
"商品名称"
/>
<el-table-column
:prop=
"'upgradeGoodsAlias'"
align=
"center"
label=
"商品别名"
/>
<el-table-column
:prop=
"'upgradeGoodsTypeName' "
align=
"center"
label=
"商品分类"
/>
<el-table-column
:prop=
"'upgradeBrandMerchantName'"
align=
"center"
label=
"品牌商"
/>
<el-table-column
:prop=
"'upgradePrice'"
align=
"center"
label=
"商品售价"
/>
<!--
<el-table-column
prop=
"upgradeDiscount"
align=
"center"
label=
"优惠折扣"
>
<template
slot-scope=
"scope"
>
<span
v-if=
"detail.upgradeFlag === 'Y'"
>
{{
scope
.
row
.
upgradeDiscount
===
'10'
?
'无'
:
scope
.
row
.
upgradeDiscount
}}
</span>
<span
v-else
>
0
</span>
</
template
>
</el-table-column>
-->
<el-table-column
prop=
"upgradeWarrantyPeriod"
align=
"center"
label=
"质保年限"
>
<span
slot-scope=
"scope"
>
{{ scope.row.upgradeWarrantyPeriod ? (scope.row.upgradeWarrantyPeriod + '年') : '无' }}
</span>
</el-table-column>
<el-table-column
prop=
"cardCode"
align=
"center"
label=
"质保条形码"
>
<span
slot-scope=
"scope"
>
{{ scope.row.cardCode ? (scope.row.cardCode) : '无' }}
</span>
</el-table-column>
<el-table-column
prop=
"nums"
align=
"center"
label=
"数量(件)"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
number
}}
件
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"totalPrice"
align=
"center"
label=
"支付金额"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"detail.upgradeFlag === 'Y'"
>
¥
{{
scope
.
row
.
totalPrice
||
0
}}
</span>
<span
v-else
>
0
</span>
</
template
>
</el-table-column>
</el-table>
</div>
</div>
<div
class=
"form_table_gp"
>
<p
class=
"edit-sub-title"
>
订单进度
</p>
<!-- header-cell-style="text-align:center; background-color:#fafafa" -->
<el-table
:data=
"detail.accessLogs"
border
:header-cell-style=
"{'text-align':'center','background-color':'#fafafa'}"
style=
"width: 100%"
>
<el-table-column
prop=
"createdDateStr"
align=
"center"
label=
"时间"
/>
<el-table-column
prop=
"logContent"
align=
"center"
label=
"当前进度"
/>
<el-table-column
prop=
"userName"
align=
"center"
label=
"关联操作员"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"detail.payType == 1 && scope.row.logType == 3"
>
用户 微信支付
</span>
<span
v-else
>
{{
logType
[
scope
.
row
.
logType
]
}}
{{
scope
.
row
.
userName
}}
</span>
</
template
>
</el-table-column>
</el-table>
</div>
</div>
<!-- <p style="text-align:left; padding-left: 30px; margin: 0 0 16px 0;"
>
<GLFooter
>
<el-button type="primary"
<el-button
@click="handleClose">
@
click=
"handleCancel"
返回
size=
"medium"
</el-button>
>
取消
</el-button>
</p> --
>
</GLFooter
>
</div>
</div>
<el-dialog
:visible=
"imgVisible"
:before-close=
"handleEnlargeImg"
>
<img
width=
"100%"
:src=
"detail.payVoucher"
alt=
"图片"
>
</el-dialog>
</d2-container>
</template>
</template>
<
script
>
<
script
>
import
{
mapActions
}
from
'vuex'
import
*
as
dayjs
from
'dayjs'
import
{
deepClone
}
from
'@/common/util'
import
{
orderManageStatusList
,
orderSourceList
,
deliveryTypeList
}
from
'@/common/constant'
import
{
payType
}
from
'@/common/constant.js'
import
dayjs
from
'dayjs'
// import { getList, goodsOrderDetail } from '@api/order'
export
default
{
export
default
{
name
:
'OrderDetail'
,
name
:
'orderDetail'
,
components
:
{
data
()
{
},
data
()
{
return
{
return
{
// userInfo: this.$store.state.d2admin.user.info
,
size
:
'small'
,
imgVisible
:
false
,
title
:
'查看订单'
,
detail
:
{
editChildRef
:
'editChildRef'
,
orderCode
:
''
,
routeInfo
:
{
subOrderList
:
[]
orderCode
:
''
},
},
statusOpts
:
{
detailForm
:
{},
1
:
'待升级'
,
orderRefund
:
null
,
2
:
'战败'
,
orderGoods
:
[],
3
:
'待支付'
,
// 订单信息
4
:
'已支付'
,
detailFormDataRow
:
[],
// 5: '已退款',
detailFormData
:
[],
6
:
'已评价'
,
// 售后信息
9
:
'已撤销'
,
afterInfoDataRow
:
[],
10
:
'已关闭'
,
afterInfoData
:
[
11
:
'错误订单'
,
{
12
:
'已退款'
label
:
'售后类型'
,
name
:
'refundTypeName'
},
},
payStatusOpts
:
{
{
1
:
'未支付
'
,
label
:
'申请金额
'
,
2
:
'已支付
'
name
:
'refundPrice
'
},
},
payTypeOpts
:
deepClone
(
payType
),
{
// {
label
:
'申请时间'
,
// '1': '微信支付',
name
:
'createdDateStr'
// '2': '4S店支付',
// '3': 'POS机收款'
// },
logType
:
{
1
:
'预录员'
,
2
:
'转化员'
,
3
:
'转化员'
,
4
:
'用户'
,
5
:
'管理员'
},
constructioOpts
:
{
Y
:
'已施工'
,
N
:
'未施工'
},
},
productList
:
[{
{
name
:
'xx'
label
:
'申请描述'
,
},
{
name
:
'remark'
}],
progressList
:
[],
signRefundVisible
:
false
,
// signRefundFlag: false,
page
:
{
pageNum
:
1
,
pageSize
:
20
}
}
},
},
computed
:
{
{
// specialAccout() {
label
:
'快递公司'
,
// return this.userInfo?.loginAccount?.loginAccout == '18123663366'
name
:
'deliveryCompany'
// }
},
},
mounted
()
{
{
this
.
detail
=
this
.
$route
.
query
label
:
'快递单号'
,
console
.
log
(
'this.detail'
,
this
.
detail
);
name
:
'deliveryNumber'
// this.signRefundFlag = this.$route.params.signRefundFlag
if
(
this
.
detail
.
source
==
7
)
{
this
.
detail
.
createdDate
=
dayjs
(
this
.
detail
.
createdDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
}
}
this
.
getGoodsOrderDetail
()
// {
},
// label: '售后凭证',
// name: ''
methods
:
{
...
mapActions
({
close
:
'd2admin/page/close'
}),
// arraySpanMethod({ row, column, rowIndex, columnIndex }) {
// if (rowIndex === 1) {
// if (columnIndex === 0) {
// return [1, 6]
// } else {
// return [1, 1]
// }
// }
// }
// },
],
// getTotalNums() {
// 基本数据
// return this.detail.subOrderList.reduce((prev, item) => prev + item.nums, 0)
baseData
:
{
// },
orderStatusList
:
orderManageStatusList
,
handleEnlargeImg
()
{
orderSourceList
:
orderSourceList
,
this
.
imgVisible
=
!
this
.
imgVisible
deliveryTypeList
:
deliveryTypeList
,
refundTypeList
:
[
{
confId
:
'1'
,
confName
:
'退款退货'
},
{
confId
:
'2'
,
confName
:
'退款不退货'
},
{
confId
:
'3'
,
confName
:
'众筹订单退款'
}
],
shareStaffTypeList
:
[
{
confId
:
'1'
,
confName
:
'个微'
},
{
confId
:
'2'
,
confName
:
'企微'
}
]
},
},
getSummaries
(
param
)
{
hideStatus
:
false
const
{
columns
}
=
param
const
sums
=
[]
columns
.
forEach
((
column
,
index
)
=>
{
if
(
index
===
0
)
{
sums
[
index
]
=
'总价'
column
.
align
=
'is-left'
column
.
colSpan
=
6
return
}
}
},
if
(
index
===
1
)
{
created
()
{
},
const
numberList
=
this
.
detail
.
subOrderList
.
map
(
item
=>
item
.
number
)
sums
[
index
]
=
(
numberList
.
length
?
numberList
.
reduce
((
preVal
,
curVal
)
=>
{
return
preVal
+
curVal
})
:
'0'
)
+
'件'
return
}
if
(
index
===
2
)
{
mounted
()
{
sums
[
index
]
=
this
.
detail
.
upgradeFlag
===
'Y'
?
`¥
${
this
.
detail
.
totalPrice
}
`
:
'¥0'
this
.
getCrowdfundingOrderConfig
()
}
},
})
return
sums
methods
:
{
async
getCrowdfundingOrderConfig
()
{
let
detailFormData
=
[
{
label
:
'订单编号'
,
name
:
'orderCode'
},
},
handleClose
()
{
{
if
(
this
.
$route
.
params
.
from
)
{
// 从待补录订单列表跳转
label
:
'商户订单号'
,
this
.
close
({
tagName
:
'/orderSupplement'
})
name
:
'outTradeNo'
this
.
$router
.
push
({
name
:
'orderSupplement'
})
}
else
{
// 从订单列表跳转
this
.
close
({
tagName
:
'/orderList'
})
this
.
$router
.
push
({
name
:
'orderList'
})
}
this
.
close
({
tagName
:
'/orderDetail'
})
},
},
{
refund
()
{
label
:
'订单时间'
,
this
.
signRefundVisible
=
!
this
.
signRefundVisible
name
:
'createdDateStr'
},
},
{
dialogClose
(
flag
)
{
label
:
'手机号码'
,
this
.
signRefundVisible
=
!
this
.
signRefundVisible
name
:
'customerPhone'
if
(
flag
)
{
},
this
.
getGoodsOrderDetail
()
{
label
:
'推荐人'
,
name
:
'shareStaffName'
},
{
label
:
'推荐人ID'
,
name
:
'shareStaffId'
},
{
label
:
'推荐人类型'
,
name
:
'shareStaffTypeName'
},
{
label
:
'车架号'
,
name
:
'vin'
},
{
label
:
'门店信息'
,
name
:
'merchantName'
},
{
label
:
'客户名称'
,
name
:
'customerName'
},
{
label
:
'分润比例'
,
name
:
'takeFee'
,
suffix
:
'%'
},
{
label
:
'订单类型'
,
name
:
'orderSourceName'
},
{
label
:
'订单状态'
,
name
:
'orderStatusName'
},
{
label
:
'支付定金'
,
name
:
'payPrice'
},
{
label
:
'尾款'
,
name
:
'crowdFundingPrice'
},
{
label
:
'发货地址'
,
name
:
'shipAddress'
},
{
label
:
'微信名称'
,
name
:
'weChatName'
},
{
label
:
'活动名称'
,
name
:
'activityName'
},
{
label
:
'商品名称'
,
name
:
'goodsName'
}
}
]
this
.
detailFormData
=
detailFormData
this
.
routeInfo
=
this
.
$route
.
query
this
.
getInfo
()
this
.
formToRow
(
'afterInfoData'
)
},
},
formToRow
(
formName
,
numOfRow
=
3
)
{
getGoodsOrderDetail
()
{
var
rowNum
=
Math
.
ceil
(
this
[
formName
].
length
/
numOfRow
)
this
.
$apis
.
order
.
goodsOrderDetail
({
orderCode
:
this
.
detail
.
orderCode
}).
then
(
res
=>
{
for
(
var
i
=
0
;
i
<
rowNum
;
i
++
)
{
this
.
detail
=
res
for
(
var
j
=
0
;
j
<
numOfRow
;
j
++
)
{
})
if
(
j
==
0
)
{
this
[
formName
+
'Row'
][
i
]
=
{
rowList
:
[]
}
}
}
}
}
if
(
i
*
numOfRow
+
j
<
this
[
formName
].
length
)
{
this
[
formName
+
'Row'
][
i
].
rowList
.
push
(
this
[
formName
][
i
*
numOfRow
+
j
])
</
script
>
<
style
lang=
"scss"
>
.order-detail
{
.d2-container-content
{
margin-top
:
0
!important
;
}
}
.edit-title
{
//
padding-left
:
0
;
}
}
.form_gp
{
color
:
#333333
;
padding
:
20px
30px
;
border-bottom
:
1px
solid
#eee
;
//
h4{
//
margin
:
0
0
10px
;
//
}
.edit-sub-title
{
font-weight
:
bold
;
margin-bottom
:
10px
;
}
}
},
.edit-sub-block
{
getInfo
()
{
padding
:
0
16px
;
this
.
$apis
.
order
.
getOrderDetailApi
({
orderCode
:
this
.
routeInfo
.
orderCode
}).
then
(
res
=>
{
this
.
detailForm
=
res
this
.
orderRefund
=
res
.
orderRefund
||
null
this
.
detailForm
.
createdDateStr
=
dayjs
(
this
.
detailForm
.
createdDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
if
(
this
.
orderRefund
)
{
this
.
orderRefund
.
refundTypeName
=
this
.
baseData
.
refundTypeList
.
map
(
item
=>
item
.
confId
).
includes
(
res
.
orderRefund
.
refundType
+
''
)
?
this
.
baseData
.
refundTypeList
.
find
(
item
=>
item
.
confId
==
res
.
orderRefund
.
refundType
).
confName
:
'-'
this
.
orderRefund
.
createdDateStr
=
dayjs
(
this
.
orderRefund
.
createdDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
this
.
orderRefund
.
refundPrice
=
this
.
orderRefund
.
refundPrice
+
'元'
}
}
if
(
this
.
detailForm
.
shareStaffType
)
{
.el-form-item
{
this
.
detailForm
.
shareStaffTypeName
=
this
.
baseData
.
shareStaffTypeList
.
map
(
item
=>
item
.
confId
).
includes
(
this
.
detailForm
.
shareStaffType
+
''
)
?
this
.
baseData
.
shareStaffTypeList
.
find
(
item
=>
item
.
confId
==
this
.
detailForm
.
shareStaffType
).
confName
:
'-'
width
:
300px
;
margin-bottom
:
0px
;
}
}
.order-img
{
if
(
this
.
detailForm
.
subOrderCoupon
)
{
width
:
80px
;
this
.
detailForm
.
subOrderCoupon
.
discountAmount
=
(
this
.
detailForm
.
subOrderCoupon
.
discountAmount
/
100
).
toFixed
(
2
)
height
:
80px
;
cursor
:
pointer
;
}
}
this
.
orderGoods
=
res
.
orderGoods
||
[]
this
.
detailForm
.
crowdFundingPrice
=
(
res
.
crowdFundingPrice
-
res
.
payPrice
).
toFixed
(
2
)
+
'元'
this
.
detailForm
.
payPrice
=
res
.
payPrice
?
res
.
payPrice
+
'元'
:
'0元'
this
.
detailForm
.
orderSourceName
=
this
.
baseData
.
orderSourceList
.
map
(
item
=>
item
.
confId
).
includes
(
res
.
orderSource
+
''
)
?
this
.
baseData
.
orderSourceList
.
find
(
item
=>
item
.
confId
==
res
.
orderSource
).
confName
:
'-'
this
.
detailForm
.
orderStatusName
=
this
.
baseData
.
orderStatusList
.
map
(
item
=>
item
.
confId
).
includes
(
res
.
orderStatus
+
''
)
?
this
.
baseData
.
orderStatusList
.
find
(
item
=>
item
.
confId
==
res
.
orderStatus
).
confName
:
'-'
if
(
!
this
.
detailForm
.
takeFee
)
{
var
takeFeeIdx
=
this
.
detailFormData
.
findIndex
(
item
=>
item
.
name
==
'takeFee'
)
this
.
detailFormData
.
splice
(
takeFeeIdx
,
1
)
}
}
// 其他信息
.form_table_gp
{
if
(
!
this
.
hideStatus
)
{
padding
:
20px
30px
;
var
formDescribeObj
=
{
margin-bottom
:
20px
;
label
:
'其他信息'
,
name
:
'formDescribe'
,
contentName
:
'formContent'
,
attrList
:
[
'First'
,
'Second'
]
}
}
}
this
.
detailForm
[
formDescribeObj
.
name
]
=
''
.signRefundBtn
{
this
.
detailForm
[
formDescribeObj
.
name
]
=
this
.
detailForm
.
plateNo
?
'车牌号:'
+
this
.
detailForm
.
plateNo
+
' '
:
''
margin-left
:
10px
;
this
.
detailForm
[
formDescribeObj
.
name
]
+=
this
.
detailForm
.
vehicleType
?
'品牌车型:'
+
this
.
detailForm
.
vehicleType
+
' '
:
''
.signRefundIcon
{
formDescribeObj
.
attrList
.
forEach
(
item
=>
{
width
:
12px
;
let
label
=
this
.
detailForm
[
formDescribeObj
.
name
+
item
]
margin-right
:
5px
;
let
value
=
this
.
detailForm
[
formDescribeObj
.
contentName
+
item
]
if
(
label
)
{
this
.
detailForm
[
formDescribeObj
.
name
]
+=
label
+
':'
+
value
+
' '
}
})
}
// 商品名称
this
.
detailForm
.
goodsName
=
this
.
detailForm
.
orderGoods
.
length
?
this
.
detailForm
.
orderGoods
.
map
(
item
=>
item
.
goodsName
).
join
(
','
)
:
'-'
console
.
log
(
this
.
detailForm
)
this
.
formToRow
(
'detailFormData'
)
})
},
handleCancel
()
{
this
.
$router
.
push
({
path
:
'/orderManage/index'
})
}
}
span
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
}
}
}
</
script
>
<
style
>
.marketing.order-detail
.el-form--inline
.el-form-item
{
margin
:
0
;
}
.marketing.order-detail
.el-form--inline
.el-form-item__content
{
height
:
30px
;
}
.marketing.order-detail
.form-img
.el-form--inline
.el-form-item__content
{
height
:
auto
!important
;
}
.marketing.order-detail
.flex
{
justify-content
:
flex-start
;
}
.marketing.order-detail
.row-item
{
width
:
33%
;
}
.detail-txt
{
display
:
inline-block
;
width
:
220px
;
}
.marketing.order-detail
.show-table
>
tbody
>
tr
>
td
{
text-align
:
center
;
vertical-align
:
middle
;
}
.marketing.order-detail
.show-table
td
{
padding-right
:
20px
;
}
.order-detail
.comment-img
{
margin-top
:
10px
;
margin-right
:
20px
;
}
</
style
>
</
style
>
Write
Preview
Markdown
is supported
Attach a file
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 post a comment