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
f795462d
Commit
f795462d
authored
Dec 18, 2022
by
wanglianghe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
价格导出
parent
2440020a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
productPrice.js
src/api/ecw/productPrice.js
+1
-0
index.vue
src/views/ecw/productPrice/index.vue
+9
-4
No files found.
src/api/ecw/productPrice.js
View file @
f795462d
...
@@ -48,6 +48,7 @@ export function exportProductPriceExcel(query) {
...
@@ -48,6 +48,7 @@ export function exportProductPriceExcel(query) {
return
request
({
return
request
({
url
:
'
/ecw/product-price/export-excel
'
,
url
:
'
/ecw/product-price/export-excel
'
,
method
:
'
get
'
,
method
:
'
get
'
,
timeout
:
3
*
60
*
1000
,
params
:
query
,
params
:
query
,
responseType
:
'
blob
'
responseType
:
'
blob
'
})
})
...
...
src/views/ecw/productPrice/index.vue
View file @
f795462d
...
@@ -77,6 +77,9 @@
...
@@ -77,6 +77,9 @@
<el-button
v-if=
"!$route.query.product_id"
type=
"primary"
plain
icon=
"el-icon-setting"
size=
"mini"
@
click=
"batchBlock"
:disabled=
"multiple"
>
{{
$t
(
'
批量加入黑名单
'
)
}}
</el-button>
<el-button
v-if=
"!$route.query.product_id"
type=
"primary"
plain
icon=
"el-icon-setting"
size=
"mini"
@
click=
"batchBlock"
:disabled=
"multiple"
>
{{
$t
(
'
批量加入黑名单
'
)
}}
</el-button>
<el-button
v-if=
"!$route.query.product_id"
type=
"primary"
plain
icon=
"el-icon-setting"
size=
"mini"
@
click=
"batchOff"
:disabled=
"multiple"
>
{{
$t
(
'
批量下架
'
)
}}
</el-button>
<el-button
v-if=
"!$route.query.product_id"
type=
"primary"
plain
icon=
"el-icon-setting"
size=
"mini"
@
click=
"batchOff"
:disabled=
"multiple"
>
{{
$t
(
'
批量下架
'
)
}}
</el-button>
<el-button
type=
"warning"
plain
icon=
"el-icon-download"
size=
"mini"
@
click=
"handleExport"
:loading=
"exportLoading"
>
{{
$t
(
'
导出
'
)
}}
</el-button>
</el-col>
<!--指定商品-->
<!--指定商品-->
<el-button
v-if=
"$route.query.product_id"
type=
"primary"
plain
icon=
"el-icon-setting"
size=
"mini"
@
click=
"batchSetSingleProductPrice"
>
{{
$t
(
'
批量设置单个商品的路线
'
)
}}
</el-button>
<el-button
v-if=
"$route.query.product_id"
type=
"primary"
plain
icon=
"el-icon-setting"
size=
"mini"
@
click=
"batchSetSingleProductPrice"
>
{{
$t
(
'
批量设置单个商品的路线
'
)
}}
</el-button>
</el-col>
</el-col>
...
@@ -711,14 +714,16 @@ export default {
...
@@ -711,14 +714,16 @@ export default {
params
.
pageNo
=
undefined
;
params
.
pageNo
=
undefined
;
params
.
pageSize
=
undefined
;
params
.
pageSize
=
undefined
;
this
.
addBeginAndEndTime
(
params
,
this
.
dateRangeCreateTime
,
'
createTime
'
);
this
.
addBeginAndEndTime
(
params
,
this
.
dateRangeCreateTime
,
'
createTime
'
);
//
执行导出
//
c
this
.
$modal
.
confirm
(
this
.
$t
(
'
是否确认导出所有
产品价格
数据项?
'
)).
then
(()
=>
{
this
.
$modal
.
confirm
(
this
.
$t
(
'
是否确认导出所有数据项?
'
)).
then
(()
=>
{
this
.
exportLoading
=
true
;
this
.
exportLoading
=
true
;
return
exportProductPriceExcel
(
params
);
return
exportProductPriceExcel
(
params
);
}).
then
(
response
=>
{
}).
then
(
response
=>
{
this
.
$download
.
excel
(
response
,
'
${table.classComment}.xls
'
);
this
.
$download
.
excel
(
response
,
'
路线价格.xlsx
'
);
this
.
exportLoading
=
false
;
this
.
exportLoading
=
false
;
}).
catch
(()
=>
{});
}).
catch
(()
=>
{
this
.
exportLoading
=
false
;
});
},
},
// 表格多选
// 表格多选
handleSelectionChange
(
selection
)
{
handleSelectionChange
(
selection
)
{
...
...
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