From 486ee13cb2c2a00883343ee7289e58f7611a82f3 Mon Sep 17 00:00:00 2001 From: CHAN-MINATO <898043143@qq.com> Date: Thu, 9 Feb 2023 17:31:07 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E9=87=87=E8=B4=AD=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E6=9D=83=E9=99=90=EF=BC=8C=E6=A0=B9=E6=8D=AE?= =?UTF-8?q?=E5=BD=93=E5=89=8D=E5=9F=BA=E5=9C=B0id=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E5=9F=BA=E5=9C=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix 采购记录查看权限,根据当前基地id查询基地 --- pages/purchase/apply.vue | 10 +++++++--- pages/purchase/record.vue | 1 + 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/pages/purchase/apply.vue b/pages/purchase/apply.vue index 626bac8..64b41ad 100644 --- a/pages/purchase/apply.vue +++ b/pages/purchase/apply.vue @@ -150,10 +150,14 @@ export default { }, methods:{ async init(){ - var res=await request("/api/purchase/purchaseUserShow") + var res=await request("/api/purchase/purchaseUserShow",{ + params:{ + plantBaseInfoId:this.$store.getters['userInfo'].plantBaseInfoId, + } + }) if(res.statu){ - this.formData.applicantId=res.data.userId - this.formData.applicantName=res.data.name + this.formData.applicantId=this.$store.getters['userInfo'].id + this.formData.applicantName=this.$store.getters['userInfo'].realname this.formData.applicantTime=new Date().format('yyyy-MM-dd') this.formData.baseName=res.data.baseName this.formData.companyId=this.$store.getters['userInfo'].companyId diff --git a/pages/purchase/record.vue b/pages/purchase/record.vue index de16376..820fa00 100644 --- a/pages/purchase/record.vue +++ b/pages/purchase/record.vue @@ -110,6 +110,7 @@ export default { return{ searchVal:{ goodsName:"", + roleCode:this.$store.getters['userInfo'].roleCode, pageNo:1, pageSize:6, companyId:this.$store.getters['userInfo'].companyId