Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-pay
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 c99139b7
authored
Dec 04, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
订单-售后
1 parent
6e642c9b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
7 deletions
src/views/orderManage/index.vue
src/views/orderManage/index.vue
View file @
c99139b
...
@@ -24,9 +24,14 @@
...
@@ -24,9 +24,14 @@
</glsx-combi-form>
</glsx-combi-form>
</div>
</div>
<!-- 表格区域 开始 -->
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleTabClick"
>
<el-tab-pane
label=
"全部订单"
name=
"allOrder"
></el-tab-pane>
<el-tab-pane
label=
"售后订单"
name=
"afterOrder"
></el-tab-pane>
</el-tabs>
<!-- 表格区域 - 全部订单/售后订单 - 开始 -->
<GLTable
<GLTable
ref=
"
classify
Ref"
ref=
"
allOrder
Ref"
:getListApi=
"getListApi"
:getListApi=
"getListApi"
:searchForm=
"tableSearchForm"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:tableParams=
"tableParams"
...
@@ -41,7 +46,7 @@
...
@@ -41,7 +46,7 @@
<el-button
v-if=
"scope.scope.orderStatus == 9"
type=
"text"
@
click=
"handleDelete(scope.scope)"
>
确认收货
</el-button>
<el-button
v-if=
"scope.scope.orderStatus == 9"
type=
"text"
@
click=
"handleDelete(scope.scope)"
>
确认收货
</el-button>
</div>
</div>
</GLTable>
</GLTable>
<!-- 表格区域 end -->
<!-- 表格区域
- 全部订单/售后订单 -
end -->
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -54,6 +59,7 @@ export default {
...
@@ -54,6 +59,7 @@ export default {
data
()
{
data
()
{
return
{
return
{
size
:
'small'
,
size
:
'small'
,
activeName
:
'allOrder'
,
oldVal
:
{
oldVal
:
{
orderStatuses
:
[]
orderStatuses
:
[]
},
},
...
@@ -67,7 +73,10 @@ export default {
...
@@ -67,7 +73,10 @@ export default {
deliveryType
:
''
deliveryType
:
''
},
},
tableSearchForm
:
{},
tableSearchForm
:
{},
statisticsInfo
:
{},
statisticsInfo
:
{
orderCount
:
''
,
payPriceTotal
:
''
},
// 搜索
// 搜索
searchFormData
:
[
searchFormData
:
[
{
{
...
@@ -226,6 +235,10 @@ export default {
...
@@ -226,6 +235,10 @@ export default {
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'
params
.
createdEndDateStr
=
new
Date
(
this
.
searchForm
.
createDate
[
1
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
+
' 23:59:59'
params
.
createdEndDateStr
=
new
Date
(
this
.
searchForm
.
createDate
[
1
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
+
' 23:59:59'
}
}
// 售后订单
if
(
this
.
activeName
==
'afterOrder'
)
{
params
.
orderStatusPart
=
1
}
delete
params
.
createDate
delete
params
.
createDate
return
params
return
params
},
},
...
@@ -290,7 +303,7 @@ export default {
...
@@ -290,7 +303,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
||
{}
this
.
statisticsInfo
=
res
||
{
orderCount
:
''
,
payPriceTotal
:
''
}
})
})
},
},
...
@@ -307,7 +320,12 @@ export default {
...
@@ -307,7 +320,12 @@ export default {
},
},
handleSearch
()
{
handleSearch
()
{
this
.
$refs
.
classifyRef
.
refreshTable
()
this
.
$refs
.
allOrderRef
.
refreshTable
()
},
handleTabClick
()
{
this
.
handleSearch
()
this
.
getCount
()
},
},
handleReset
()
{
handleReset
()
{
...
@@ -326,4 +344,12 @@ export default {
...
@@ -326,4 +344,12 @@ export default {
}
}
</
script
>
</
script
>
<
style
scoped
></
style
>
<
style
>
.marketing
.el-tabs__nav-wrap
:after
{
opacity
:
0
;
}
.marketing
.el-tabs__item
{
height
:
20px
!important
;
line-height
:
10px
!important
;
}
</
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