Browse Source

fix 采购记录查看权限,根据当前基地id查询基地

fix 采购记录查看权限,根据当前基地id查询基地
master
陈港 2 years ago
parent
commit
486ee13cb2
  1. 10
      pages/purchase/apply.vue
  2. 1
      pages/purchase/record.vue

10
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

1
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

Loading…
Cancel
Save