diff --git a/src/views/statisticalAnalysis/warehouseAnalysis/inventorySummary.vue b/src/views/statisticalAnalysis/warehouseAnalysis/inventorySummary.vue index c6a0d13..71287b3 100644 --- a/src/views/statisticalAnalysis/warehouseAnalysis/inventorySummary.vue +++ b/src/views/statisticalAnalysis/warehouseAnalysis/inventorySummary.vue @@ -623,7 +623,11 @@ export default { this.$message.error('请先选择数据') return } - window.open(window.WARE_MATERIAL_STOCK+'?id='+this.selectionList.map(item => item.id).join(',')); + if(this.selectionList.length > 1){ + this.$message.error('请选择一条数据') + return + } + window.open(window.WARE_MATERIAL_STOCK+'?id='+this.selectionList[0].id); // getPrint({id:this.selectionList[0].id}).then(res =>{ // console.log('res--------------',res)