|
|
@@ -110,7 +110,8 @@
|
|
|
</template>
|
|
|
|
|
|
<template #slot-download-price-btn>
|
|
|
- <el-button type="primary" size="mini" @click="downloadPrice()">下载价格表</el-button>
|
|
|
+ <el-button type="primary" size="mini" @click="downloadPrice(1)">批发价格表</el-button>
|
|
|
+ <el-button type="primary" size="mini" @click="downloadPrice(0)">零售价格表</el-button>
|
|
|
</template>
|
|
|
|
|
|
<template #slot-add-goods-btn>
|
|
|
@@ -379,8 +380,8 @@ export default {
|
|
|
this.init();
|
|
|
},
|
|
|
methods: {
|
|
|
- downloadPrice(){
|
|
|
- this.$service.product.generatePriceTable({}).then(res => {
|
|
|
+ downloadPrice(level){
|
|
|
+ this.$service.product.generatePriceTable({level:level}).then(res => {
|
|
|
if(res.file){
|
|
|
window.location.href = res.file
|
|
|
}
|