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