|
|
@ -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 |
|
|
|