From 3cdabd71e1bef43bf3bae3c51fe2b10b9bf65a04 Mon Sep 17 00:00:00 2001 From: CHAN-MINATO <898043143@qq.com> Date: Thu, 9 Feb 2023 17:40:45 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix=20=E6=A0=B9=E6=8D=AE=E5=9F=BA=E5=9C=B0i?= =?UTF-8?q?d=E5=8F=98=E5=8C=96=E9=80=89=E6=8B=A9=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E5=9F=BA=E5=9C=B0=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix 根据基地id变化选择获取基地名称 --- pages/purchase/apply.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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){ 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 2/2] =?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})`