diff --git a/pages/purchase/specs.vue b/pages/purchase/specs.vue index 33849ca..6282c66 100644 --- a/pages/purchase/specs.vue +++ b/pages/purchase/specs.vue @@ -280,8 +280,11 @@ export default{ } }, async searchStock(id){ - var res=await request("/api/goods/stockShow?goodsSpecificationId",{ - params:{goodsSpecificationId:id} + var res=await request("/api/goods/stockShow",{ + params:{ + goodsSpecificationId:id, + plantBaseInfoId:this.$store.state.plantBaseInfoId, + } }) if(res.data.packing&&res.data.heft){ this.specStr=`${res.data.packing}(${res.data.heft})`