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
65891de3
Commit
65891de3
authored
Oct 12, 2023
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商品和价格导出改异步
parent
df21715e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
7 deletions
+6
-7
box.js
src/api/ecw/box.js
+0
-1
product.js
src/api/ecw/product.js
+1
-2
productPrice.js
src/api/ecw/productPrice.js
+0
-1
index.vue
src/views/ecw/product/index.vue
+2
-1
index.vue
src/views/ecw/productPrice/index.vue
+3
-2
No files found.
src/api/ecw/box.js
View file @
65891de3
...
...
@@ -389,7 +389,6 @@ export function exportSettlementExcel(params) {
return
request
({
url
:
"
/shipment/box/export-shipment-summary
"
,
method
:
"
get
"
,
responseType
:
"
blob
"
,
params
,
});
}
src/api/ecw/product.js
View file @
65891de3
...
...
@@ -66,8 +66,7 @@ export function exportProductExcel(query) {
return
request
({
url
:
'
/ecw/product/export-excel
'
,
method
:
'
get
'
,
params
:
query
,
responseType
:
'
blob
'
params
:
query
})
}
...
...
src/api/ecw/productPrice.js
View file @
65891de3
...
...
@@ -50,7 +50,6 @@ export function exportProductPriceExcel(query) {
method
:
'
get
'
,
timeout
:
3
*
60
*
1000
,
params
:
query
,
responseType
:
'
blob
'
})
}
...
...
src/views/ecw/product/index.vue
View file @
65891de3
...
...
@@ -671,7 +671,8 @@ export default {
this
.
exportLoading
=
true
;
return
exportProductExcel
(
params
);
}).
then
(
response
=>
{
this
.
$download
.
excel
(
response
,
'
商品.xlsx
'
);
// this.$download.excel(response, '商品.xlsx');
this
.
$message
.
success
(
this
.
$t
(
'
已加入导出队列,请稍后在下载日志中下载
'
))
this
.
exportLoading
=
false
;
}).
catch
(()
=>
{
});
},
...
...
src/views/ecw/productPrice/index.vue
View file @
65891de3
...
...
@@ -548,7 +548,7 @@ export default {
//
}
// 价格列表 跟 商品的价格列表,有时候商品价格列表的路由变动会导致价格列表也执行此处代码,所以做一个判断排除
// https://zentao.test.jdshangmen.com/bug-view-4928.html
if
(
this
.
$route
.
path
!=
this
.
entryPath
)
return
if
(
this
.
$route
.
path
!=
this
.
entryPath
)
return
let
productId
=
this
.
product
?.
id
if
(
this
.
$route
.
name
===
'
ProductPrice
'
){
...
...
@@ -847,8 +847,9 @@ export default {
this
.
exportLoading
=
true
;
return
exportProductPriceExcel
(
params
);
}
).
then
(
response
=>
{
this
.
$download
.
excel
(
response
,
'
路线价格.xlsx
'
);
//
this.$download.excel(response, '路线价格.xlsx');
this
.
exportLoading
=
false
;
this
.
$message
.
success
(
this
.
$t
(
'
已加入导出队列,请稍后在下载日志中下载
'
))
}
).
catch
(()
=>
{
this
.
exportLoading
=
false
;
}
);
...
...
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