|
|
@@ -134,6 +134,7 @@
|
|
|
<template #slot-download-price-btn>
|
|
|
<el-button type="primary" size="mini" @click="downloadPrice(1)">批发价格表</el-button>
|
|
|
<el-button type="primary" size="mini" @click="downloadPrice(0)">零售价格表</el-button>
|
|
|
+ <el-button type="primary" size="mini" @click="downloadStock()">下载库存表</el-button>
|
|
|
</template>
|
|
|
|
|
|
<template #slot-add-goods-btn>
|
|
|
@@ -555,6 +556,13 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ downloadStock(){
|
|
|
+ this.$service.product.generateStockTable().then(res => {
|
|
|
+ if(res.file){
|
|
|
+ window.location.href = res.file
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
copyProduct(id){
|
|
|
this.$message({message: '开发中',type: 'warning'});
|
|
|
return;
|