shish 2 лет назад
Родитель
Сommit
163c2dee81
1 измененных файлов с 4 добавлено и 3 удалено
  1. 4 3
      ghs/src/views/item/list.vue

+ 4 - 3
ghs/src/views/item/list.vue

@@ -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
 			}