Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-app-operator-master
Commits
781638df
Commit
781638df
authored
Mar 11, 2023
by
TIAN.DESHENG
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导出
parent
a01bf7f0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
134 additions
and
11 deletions
+134
-11
order.js
src/api/ecw/order.js
+86
-1
index.vue
src/views/ecw/order/index.vue
+48
-10
No files found.
src/api/ecw/order.js
View file @
781638df
...
...
@@ -570,4 +570,89 @@ export function orderExportDeptSearch(params){
responseType
:
'
arraybuffer
'
,
params
})
}
\ No newline at end of file
}
// 参数搜索导出异常订单统计 Excel
export
function
exportAbnormal
(
params
){
return
request
({
url
:
'
/ecw/order/export/export-exception
'
,
method
:
'
get
'
,
params
:
params
,
responseType
:
'
blob
'
})
}
// 参数搜索导出重货单统计 Excel
export
function
exportHeavyOrder
(
params
){
return
request
({
url
:
'
/ecw/order/export-heavyOrder
'
,
method
:
'
get
'
,
params
:
params
,
responseType
:
'
blob
'
})
}
// 参数搜索导出退仓单统计统计 Excel
export
function
exportReturnOrder
(
params
){
return
request
({
url
:
'
/ecw/order-exception/export-returnOrder
'
,
method
:
'
get
'
,
params
:
params
,
responseType
:
'
blob
'
})
}
// 参数搜索导出售后赔偿金额统计 Excel
export
function
exportSaleRepay
(
params
){
return
request
({
url
:
'
/ecw/order-exception/export-saleRepay
'
,
method
:
'
get
'
,
params
:
params
,
responseType
:
'
blob
'
})
}
// 参数搜索导出报关数统计 Excel
export
function
exportCustomsDatas
(
params
){
return
request
({
url
:
'
/ecw/order-exception/export-customDatas
'
,
method
:
'
get
'
,
params
:
params
,
responseType
:
'
blob
'
})
}
// 参数搜索导出客户出货量统计 Excel
export
function
exportShippingDatas
(
params
){
return
request
({
url
:
'
/ecw/order-exception/export-shipDatas
'
,
method
:
'
get
'
,
params
:
params
,
responseType
:
'
blob
'
})
}
// 参数搜索导出预付运费统计 Excel
export
function
exportShipFee
(
params
){
return
request
({
url
:
'
/ecw/order-exception/export-shipFee
'
,
method
:
'
get
'
,
params
:
params
,
responseType
:
'
blob
'
})
}
// 参数搜索导出卸货费统计 Excel
export
function
exportUnload
(
params
){
return
request
({
url
:
'
/ecw/order-exception/export-excel
'
,
method
:
'
get
'
,
params
:
params
,
responseType
:
'
blob
'
})
}
src/views/ecw/order/index.vue
View file @
781638df
...
...
@@ -133,15 +133,14 @@
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-item
v-hasPermi=
"[exportPermiString]"
@
click.native=
"exportChecked"
>
导出勾选
</el-dropdown-item>
<el-dropdown-item
v-hasPermi=
"[exportPermiString]"
@
click.native=
"exportSearch"
>
导出搜索
</el-dropdown-item>
<template
v-if=
"isAll"
v-hasPermi=
"['ecw:order:export:other']"
>
<el-dropdown-item
@
click.native=
"$message('// TODO')"
>
异常单统计
</el-dropdown-item>
<el-dropdown-item
@
click.native=
"$message('// TODO')"
>
重货单统计
</el-dropdown-item>
<el-dropdown-item
@
click.native=
"$message('// TODO')"
>
退仓单统计
</el-dropdown-item>
<el-dropdown-item
@
click.native=
"$message('// TODO')"
>
售后赔偿金额统计
</el-dropdown-item>
<el-dropdown-item
@
click.native=
"$message('// TODO')"
>
报关数据统计
</el-dropdown-item>
<el-dropdown-item
@
click.native=
"$message('// TODO')"
>
客户出货量统计
</el-dropdown-item>
<el-dropdown-item
@
click.native=
"$message('// TODO')"
>
预付运费统计
</el-dropdown-item>
<el-dropdown-item
@
click.native=
"$message('// TODO')"
>
卸货费统计
</el-dropdown-item>
<template
v-if=
"isAll"
>
<el-dropdown-item
hasPermi=
"[exportPermiString]"
@
click.native=
"exportAbnormal"
>
异常单统计
</el-dropdown-item>
<el-dropdown-item
hasPermi=
"[exportPermiString]"
@
click.native=
"exportHeavyOrder"
>
重货单统计
</el-dropdown-item>
<el-dropdown-item
hasPermi=
"[exportPermiString]"
@
click.native=
"exportReturnOrder"
>
退仓单统计
</el-dropdown-item>
<el-dropdown-item
hasPermi=
"[exportPermiString]"
@
click.native=
"exportSaleRepay"
>
售后赔偿金额统计
</el-dropdown-item>
<el-dropdown-item
hasPermi=
"[exportPermiString]"
@
click.native=
"exportCustomsDatas"
>
报关数据统计
</el-dropdown-item>
<el-dropdown-item
hasPermi=
"[exportPermiString]"
@
click.native=
"exportShippingDatas"
>
客户出货量统计
</el-dropdown-item>
<el-dropdown-item
hasPermi=
"[exportPermiString]"
@
click.native=
"exportShipFee"
>
预付运费统计
</el-dropdown-item>
</
template
>
</el-dropdown-menu>
</el-dropdown>
...
...
@@ -469,7 +468,15 @@ import {
orderDeptStatistics
,
orderExportSearch
,
orderExportMySearch
,
orderExportDeptSearch
orderExportDeptSearch
,
exportAbnormal
,
exportHeavyOrder
,
exportReturnOrder
,
exportSaleRepay
,
exportCustomsDatas
,
exportShippingDatas
,
exportShipFee
,
exportUnload
}
from
"
@/api/ecw/order
"
;
/* import { getDictDatas, DICT_TYPE } from '@/utils/dict'; */
import
PrintTag
from
'
./components/PrintTag
'
...
...
@@ -648,6 +655,37 @@ export default {
exportSearch
(){
return
this
.
exportExcel
(
this
.
getExportFunc
(),
this
.
combinedQueryParams
,
this
.
$t
(
"
导出搜索
"
))
},
// 导出异常单
exportAbnormal
(){
return
this
.
exportExcel
(
exportAbnormal
,
this
.
combinedQueryParams
,
this
.
$t
(
"
异常单统计
"
))
},
// 退仓单统计
exportReturnOrder
(){
return
this
.
exportExcel
(
exportReturnOrder
,
this
.
combinedQueryParams
,
this
.
$t
(
"
退仓单统计
"
))
},
// 售后赔偿金额统计
exportSaleRepay
(){
return
this
.
exportExcel
(
exportSaleRepay
,
this
.
combinedQueryParams
,
this
.
$t
(
"
售后赔偿金额统计
"
))
},
// 报关数据统计
exportCustomsDatas
(){
return
this
.
exportExcel
(
exportCustomsDatas
,
this
.
combinedQueryParams
,
this
.
$t
(
"
报关数据统计
"
))
},
// 客户出货量统计
exportShippingDatas
(){
return
this
.
exportExcel
(
exportShippingDatas
,
this
.
combinedQueryParams
,
this
.
$t
(
"
客户出货量统计
"
))
},
// 预付运费统计
exportShipFee
(){
return
this
.
exportExcel
(
exportShipFee
,
this
.
combinedQueryParams
,
this
.
$t
(
"
预付运费统计
"
))
},
// 卸货费统计
exportUnload
(){
return
this
.
exportExcel
(
exportUnload
,
this
.
combinedQueryParams
,
this
.
$t
(
"
卸货费统计
"
))
},
// 通用导出函数
exportExcel
(
func
,
params
,
fileName
=
null
){
this
.
exportLoading
=
true
;
...
...
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