From dc34b3fc42338bcfb6e8044cd24e85edff632c0d Mon Sep 17 00:00:00 2001 From: CHAN-MINATO <898043143@qq.com> Date: Thu, 9 Feb 2023 18:03:44 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E6=94=B9=E5=8F=98=E6=96=B9=E5=BC=8F?= =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E5=9F=BA=E5=9C=B0id=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E5=88=B0=E8=AF=A5=E5=9F=BA=E5=9C=B0=E5=9C=A8=E4=BB=93=E5=BA=93?= =?UTF-8?q?=E5=BD=93=E4=B8=AD=E7=9A=84=E5=BA=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix 改变方式根据基地id获取到该基地在仓库当中的库存 --- pages/purchase/specs.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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})`