shish %!s(int64=2) %!d(string=hai) anos
pai
achega
163c2dee81
Modificáronse 1 ficheiros con 4 adicións e 3 borrados
  1. 4 3
      ghs/src/views/item/list.vue

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

@@ -110,7 +110,8 @@
 		</template>
 		</template>
 
 
       <template #slot-download-price-btn>
       <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>
 
 
       <template #slot-add-goods-btn>
       <template #slot-add-goods-btn>
@@ -379,8 +380,8 @@ export default {
     this.init();
     this.init();
   },
   },
   methods: {
   methods: {
-	  downloadPrice(){
-		this.$service.product.generatePriceTable({}).then(res => {
+	  downloadPrice(level){
+		this.$service.product.generatePriceTable({level:level}).then(res => {
 			if(res.file){
 			if(res.file){
 				window.location.href = res.file
 				window.location.href = res.file
 			}
 			}