diff --git a/pages/purchase/apply.vue b/pages/purchase/apply.vue index 64b41ad..762af56 100644 --- a/pages/purchase/apply.vue +++ b/pages/purchase/apply.vue @@ -152,7 +152,7 @@ export default { async init(){ var res=await request("/api/purchase/purchaseUserShow",{ params:{ - plantBaseInfoId:this.$store.getters['userInfo'].plantBaseInfoId, + plantBaseInfoId:this.$store.state.plantBaseInfoId, } }) if(res.statu){ 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})`