Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
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 6f1adaa7
authored
Jan 07, 2022
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
订单管理
1 parent
cae4117f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
81 additions
and
27 deletions
src/common/constant.js
src/views/orderManage/index.vue
src/common/constant.js
View file @
6f1adaa
...
@@ -78,27 +78,31 @@ function exportFn(url) {
...
@@ -78,27 +78,31 @@ function exportFn(url) {
// }
// }
const
orderManageStatusList
=
[
const
orderManageStatusList
=
[
{
confId
:
'1'
,
confName
:
'未支付'
},
{
confId
:
'1'
,
confName
:
'待付款'
},
{
confId
:
'2'
,
confName
:
'已支付'
},
{
confId
:
'3'
,
confName
:
'已失效'
},
{
confId
:
'3'
,
confName
:
'已失效'
},
{
confId
:
'4'
,
confName
:
'已发货'
},
{
confId
:
'4'
,
confName
:
'待收货(待核销)'
},
{
confId
:
'5'
,
confName
:
'已收货'
},
{
confId
:
'5'
,
confName
:
'已收货(已核销)'
},
{
confId
:
'6'
,
confName
:
'待审核'
},
{
confId
:
'6'
,
confName
:
'待发货'
},
{
confId
:
'7'
,
confName
:
'审核成功'
},
{
confId
:
'7'
,
confName
:
'待核销'
},
{
confId
:
'8'
,
confName
:
'审核失败'
},
{
confId
:
'8'
,
confName
:
'已核销'
},
{
confId
:
'9'
,
confName
:
'待确认'
},
{
confId
:
'9'
,
confName
:
'售后中'
},
{
confId
:
'10'
,
confName
:
'退款中'
},
{
confId
:
'10'
,
confName
:
'售后完成'
}
{
confId
:
'11'
,
confName
:
'已退款'
},
]
{
confId
:
'12'
,
confName
:
'退款失败'
},
{
confId
:
'13'
,
confName
:
'待发货'
},
const
afterSaleStatusList
=
[
{
confId
:
'14'
,
confName
:
'待安装'
},
{
confId
:
'1'
,
confName
:
'待审核'
},
{
confId
:
'15'
,
confName
:
'已安装'
}
{
confId
:
'2'
,
confName
:
'审核成功'
},
{
confId
:
'3'
,
confName
:
'审核失败'
},
{
confId
:
'4'
,
confName
:
'待确认'
},
{
confId
:
'5'
,
confName
:
'退款中'
},
{
confId
:
'6'
,
confName
:
'已退款'
},
{
confId
:
'7'
,
confName
:
'退款失败'
},
]
]
const
orderSourceList
=
[
const
orderSourceList
=
[
{
confId
:
'1'
,
confName
:
'商城订单'
},
{
confId
:
'1'
,
confName
:
'商城订单'
},
{
confId
:
'2'
,
confName
:
'直播订单'
},
{
confId
:
'2'
,
confName
:
'直播订单'
},
{
confId
:
'3'
,
confName
:
'
活动
订单'
}
{
confId
:
'3'
,
confName
:
'
秒杀
订单'
}
]
]
const
deliveryTypeList
=
[
const
deliveryTypeList
=
[
...
@@ -201,6 +205,7 @@ export {
...
@@ -201,6 +205,7 @@ export {
exportFn
,
exportFn
,
// aToExport,
// aToExport,
orderManageStatusList
,
orderManageStatusList
,
afterSaleStatusList
,
orderSourceList
,
orderSourceList
,
deliveryTypeList
,
deliveryTypeList
,
statusList
,
statusList
,
...
...
src/views/orderManage/index.vue
View file @
6f1adaa
...
@@ -9,6 +9,8 @@
...
@@ -9,6 +9,8 @@
<span
class=
"red-txt"
>
{{
statisticsInfo
.
orderCount
||
0
}}
</span>
<span
class=
"red-txt"
>
{{
statisticsInfo
.
orderCount
||
0
}}
</span>
项 累计订单总额:
项 累计订单总额:
<span
class=
"red-txt"
>
{{
statisticsInfo
.
payPriceTotal
||
0
}}
</span>
<span
class=
"red-txt"
>
{{
statisticsInfo
.
payPriceTotal
||
0
}}
</span>
元 累计退款总额:
<span
class=
"red-txt"
>
{{
statisticsInfo
.
refundTotal
||
0
}}
</span>
元
元
</span>
</span>
</div>
</div>
...
@@ -112,7 +114,7 @@
...
@@ -112,7 +114,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
{
orderManageStatusList
,
orderSourceList
,
deliveryTypeList
,
exportFn
}
from
'@/common/constant'
import
{
orderManageStatusList
,
afterSaleStatusList
,
orderSourceList
,
deliveryTypeList
,
exportFn
}
from
'@/common/constant'
export
default
{
export
default
{
name
:
'orderManage'
,
name
:
'orderManage'
,
data
()
{
data
()
{
...
@@ -123,11 +125,13 @@ export default {
...
@@ -123,11 +125,13 @@ export default {
isEdit
:
true
,
isEdit
:
true
,
orderCode
:
''
,
orderCode
:
''
,
oldVal
:
{
oldVal
:
{
orderStatuses
:
[]
orderStatuses
:
[],
afterSaleStatuses
:
[]
},
},
searchForm
:
{
searchForm
:
{
orderCode
:
''
,
orderCode
:
''
,
orderStatuses
:
[],
orderStatuses
:
[],
afterSaleStatuses
:
[],
merchantName
:
''
,
merchantName
:
''
,
customerName
:
''
,
customerName
:
''
,
createDate
:
[],
createDate
:
[],
...
@@ -137,7 +141,8 @@ export default {
...
@@ -137,7 +141,8 @@ export default {
tableSearchForm
:
{},
tableSearchForm
:
{},
statisticsInfo
:
{
statisticsInfo
:
{
orderCount
:
''
,
orderCount
:
''
,
payPriceTotal
:
''
payPriceTotal
:
''
,
refundTotal
:
''
},
},
// 搜索
// 搜索
searchFormData1
:
[
searchFormData1
:
[
...
@@ -154,7 +159,7 @@ export default {
...
@@ -154,7 +159,7 @@ export default {
optionList
:
[],
optionList
:
[],
optionId
:
'confId'
,
optionId
:
'confId'
,
optionLabel
:
'confName'
,
optionLabel
:
'confName'
,
optionsName
:
'
o
rderStatusList'
,
optionsName
:
'
searchO
rderStatusList'
,
changeAttr
:
(
value
,
targetItem
)
=>
{
changeAttr
:
(
value
,
targetItem
)
=>
{
var
isAdd
=
value
.
length
>
this
.
oldVal
.
orderStatuses
.
length
var
isAdd
=
value
.
length
>
this
.
oldVal
.
orderStatuses
.
length
var
targetVal
=
value
[
value
.
length
-
1
]
var
targetVal
=
value
[
value
.
length
-
1
]
...
@@ -179,13 +184,45 @@ export default {
...
@@ -179,13 +184,45 @@ export default {
}
}
},
},
{
{
label
:
'售后状态'
,
name
:
'afterSaleStatuses'
,
type
:
'select'
,
multiple
:
true
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confName'
,
optionsName
:
'searchAfterSaleStatusList'
,
changeAttr
:
(
value
,
targetItem
)
=>
{
var
isAdd
=
value
.
length
>
this
.
oldVal
.
afterSaleStatuses
.
length
var
targetVal
=
value
[
value
.
length
-
1
]
if
(
!
isAdd
)
{
for
(
var
i
=
0
;
i
<
this
.
oldVal
.
afterSaleStatuses
.
length
;
i
++
)
{
if
(
!
value
.
includes
(
this
.
oldVal
.
afterSaleStatuses
[
i
]))
{
targetVal
=
this
.
oldVal
.
afterSaleStatuses
[
i
]
break
}
}
}
!
targetVal
&&
(
this
.
searchForm
.
afterSaleStatuses
=
isAdd
?
this
.
searchFormData1
[
2
].
optionList
.
map
(
item
=>
item
.
confId
)
:
[])
if
(
targetVal
)
{
var
idx
=
value
.
findIndex
(
item
=>
item
==
''
)
if
(
idx
!=
-
1
&&
this
.
searchForm
.
afterSaleStatuses
.
length
<
this
.
searchFormData1
[
2
].
optionList
.
length
)
{
this
.
searchForm
.
afterSaleStatuses
.
splice
(
idx
,
1
)
}
else
if
(
idx
==
-
1
&&
this
.
searchForm
.
afterSaleStatuses
.
length
==
this
.
searchFormData1
[
2
].
optionList
.
length
-
1
)
{
this
.
searchForm
.
afterSaleStatuses
.
push
(
''
)
}
}
this
.
oldVal
.
afterSaleStatuses
=
this
.
$common
.
utils
.
deepClone
(
this
.
searchForm
.
afterSaleStatuses
)
}
}
],
searchFormData2
:
[
{
label
:
'门店'
,
label
:
'门店'
,
name
:
'merchantName'
,
name
:
'merchantName'
,
type
:
'input'
,
type
:
'input'
,
labelWidth
:
56
labelWidth
:
56
}
},
],
searchFormData2
:
[
{
{
label
:
'客户姓名'
,
label
:
'客户姓名'
,
name
:
'customerName'
,
name
:
'customerName'
,
...
@@ -197,7 +234,9 @@ export default {
...
@@ -197,7 +234,9 @@ export default {
type
:
'datePicker'
,
type
:
'datePicker'
,
isClear
:
true
,
isClear
:
true
,
pickerOptions
:
'beforeRangePickerOptions'
pickerOptions
:
'beforeRangePickerOptions'
},
}
],
searchFormData3
:
[
{
{
label
:
'订单类型'
,
label
:
'订单类型'
,
name
:
'orderSource'
,
name
:
'orderSource'
,
...
@@ -206,9 +245,7 @@ export default {
...
@@ -206,9 +245,7 @@ export default {
optionId
:
'confId'
,
optionId
:
'confId'
,
optionLabel
:
'confName'
,
optionLabel
:
'confName'
,
optionsName
:
'orderSourceList'
optionsName
:
'orderSourceList'
}
},
],
searchFormData3
:
[
{
{
label
:
'结算方式'
,
label
:
'结算方式'
,
name
:
'deliveryType'
,
name
:
'deliveryType'
,
...
@@ -357,6 +394,14 @@ export default {
...
@@ -357,6 +394,14 @@ export default {
}
}
},
},
{
{
label
:
'售后状态'
,
prop
:
'afterSaleStatus'
,
width
:
'80'
,
formatter
:
cellValue
=>
{
return
this
.
baseData
.
afterSaleStatusList
.
map
(
item
=>
item
.
confId
).
includes
(
cellValue
.
afterSaleStatus
+
''
)
?
this
.
baseData
.
afterSaleStatusList
.
find
(
item
=>
item
.
confId
==
cellValue
.
afterSaleStatus
).
confName
:
'-'
}
},
{
label
:
'结算方式'
,
label
:
'结算方式'
,
prop
:
'deliveryType'
,
prop
:
'deliveryType'
,
width
:
'80'
,
width
:
'80'
,
...
@@ -369,7 +414,10 @@ export default {
...
@@ -369,7 +414,10 @@ export default {
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'currentPage'
,
totalCount
:
'total'
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'currentPage'
,
totalCount
:
'total'
},
// 基本数据
// 基本数据
baseData
:
{
baseData
:
{
searchOrderStatusList
:
orderManageStatusList
.
filter
(
item
=>
[
'1'
,
'3'
,
'4'
,
'5'
,
'6'
,
'9'
].
includes
(
item
.
confId
)),
searchAfterSaleStatusList
:
afterSaleStatusList
.
filter
(
item
=>
[
'1'
,
'6'
,
'7'
].
includes
(
item
.
confId
)),
orderStatusList
:
orderManageStatusList
,
orderStatusList
:
orderManageStatusList
,
afterSaleStatusList
:
afterSaleStatusList
,
orderSourceList
:
orderSourceList
,
orderSourceList
:
orderSourceList
,
deliveryTypeList
:
deliveryTypeList
,
deliveryTypeList
:
deliveryTypeList
,
refundTypeList
:
[
refundTypeList
:
[
...
@@ -462,7 +510,7 @@ export default {
...
@@ -462,7 +510,7 @@ export default {
var
params
=
this
.
getParams
()
var
params
=
this
.
getParams
()
delete
params
.
createDate
delete
params
.
createDate
this
.
$apis
.
orderManage
.
getCountApi
(
params
).
then
(
res
=>
{
this
.
$apis
.
orderManage
.
getCountApi
(
params
).
then
(
res
=>
{
this
.
statisticsInfo
=
res
||
{
orderCount
:
''
,
payPriceTotal
:
''
}
this
.
statisticsInfo
=
res
||
{
orderCount
:
''
,
payPriceTotal
:
''
,
refundTotal
:
''
}
})
})
},
},
...
@@ -662,6 +710,7 @@ export default {
...
@@ -662,6 +710,7 @@ export default {
this
.
searchForm
=
{
this
.
searchForm
=
{
orderCode
:
''
,
orderCode
:
''
,
orderStatuses
:
[],
orderStatuses
:
[],
afterSaleStatuses
:
[],
merchantName
:
''
,
merchantName
:
''
,
customerName
:
''
,
customerName
:
''
,
createDate
:
[],
createDate
:
[],
...
...
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