Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Fedex
/
EcomWeb
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
feiyue.teng
2025-01-03 18:35:19 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
74a2afb4da5db3f0e22b15593b29f75f85f3fc9d
74a2afb4
1 parent
508f85b8
申报数据管理模块页面导出功能添加条件查询功能
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
7 deletions
src/api/declareData-api.js
src/views/reportingData/index.vue
src/api/declareData-api.js
View file @
74a2afb
...
...
@@ -125,7 +125,7 @@ export function exportDeclareData(data) {
url
:
url
,
method
:
'post'
,
responseType
:
'blob'
,
// 确保响应类型为 blob
data
:
data
.
declareIds
,
data
:
data
,
})
.
then
((
res
)
=>
{
const
aLink
=
document
.
createElement
(
"a"
);
...
...
src/views/reportingData/index.vue
View file @
74a2afb
...
...
@@ -557,13 +557,22 @@ export default {
},
//导出
downloadData() {
if (this.selected.length > 0) {
this.loadings.exportDeclareLoading = true;
let obj = {
declareIds: [],
billNo: this.sreachFormData.billNo,
declareId: [],
logisticsNo: this.sreachFormData.logisticsNo,
orderNo: this.sreachFormData.orderNo,
receiptStatus: this.sreachFormData.receiptStatus,
};
obj.startCreateTime = "";
obj.endCreateTime = "";
if (this.sreachFormData.createTime.length > 0) {
obj.startCreateTime = this.sreachFormData.createTime[0];
obj.endCreateTime = this.sreachFormData.createTime[1];
}
this.selected.forEach((item) => {
obj.declareId
s
.push(item.declareId);
obj.declareId.push(item.declareId);
});
exportDeclareData(obj).then((res)=>{
// if (res.code === "200") {
...
...
@@ -578,9 +587,6 @@ export default {
this.alertErrorMsg(err);
this.loadings.exportDeclareLoading = false;
})
}else {
this.alertWarningMsg("请选择需导出的数据!");
}
},
...
...
Please
register
or
login
to post a comment