【修改】带出部门
This commit is contained in:
@@ -180,19 +180,32 @@ export default {
|
|||||||
this.getReportDetail()
|
this.getReportDetail()
|
||||||
}else{
|
}else{
|
||||||
this.prcType=4
|
this.prcType=4
|
||||||
|
// 需要给部门带出来
|
||||||
|
if(this.$store.getters.userInfo.orgEOList.length>0){
|
||||||
|
let temp=this.$store.getters.userInfo.orgEOList
|
||||||
|
this.$set(this.processForm,'departmentName',temp[0].orgName)
|
||||||
|
this.$set(this.processForm,'department',temp[0].orgCode)
|
||||||
|
console.log(this.processForm,"wowowwoo")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 查询文件名称
|
||||||
|
getFileName(){
|
||||||
|
this.$api.reportProcess.searchFile({fileId:this.processForm.fileId}).then(res=>{
|
||||||
|
this.$set(this.processForm,'fileName',res.data)
|
||||||
|
})
|
||||||
|
},
|
||||||
// 获取报告详情
|
// 获取报告详情
|
||||||
getReportDetail(){
|
getReportDetail(){
|
||||||
this.$api.report.getReportDetail(this.ids).then(res=>{
|
this.$api.report.getReportDetail(this.ids).then(res=>{
|
||||||
this.processForm=res.data
|
this.processForm=res.data
|
||||||
this.processForm.reportId=this.processForm.id
|
this.processForm.reportId=this.processForm.id
|
||||||
delete this.processForm['id']
|
delete this.processForm['id']
|
||||||
|
if(this.processForm.fileId){
|
||||||
|
this.getFileName()
|
||||||
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleReset() {
|
handleReset() {
|
||||||
@@ -220,7 +233,7 @@ export default {
|
|||||||
twoApprove: ''
|
twoApprove: ''
|
||||||
}
|
}
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.applicationFormRef.clearValidate()
|
|
||||||
this.$refs.assignFormRef.clearValidate()
|
this.$refs.assignFormRef.clearValidate()
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -308,6 +321,7 @@ export default {
|
|||||||
|
|
||||||
let z=this.$refs.basMes.submit()
|
let z=this.$refs.basMes.submit()
|
||||||
if (v && z) {
|
if (v && z) {
|
||||||
|
this.processForm.createUserId=this.userId
|
||||||
//如果不是第一次
|
//如果不是第一次
|
||||||
if (this.initShow) {
|
if (this.initShow) {
|
||||||
let flag=await this.JuggleSub(this.taskId)
|
let flag=await this.JuggleSub(this.taskId)
|
||||||
@@ -320,7 +334,7 @@ export default {
|
|||||||
taskId: this.taskId,
|
taskId: this.taskId,
|
||||||
userId: this.$store.getters.userInfo.usid,
|
userId: this.$store.getters.userInfo.usid,
|
||||||
prcType: this.prcType,
|
prcType: this.prcType,
|
||||||
reportId:''
|
reportId: this.processForm.reportId|| ''
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@@ -351,7 +365,7 @@ export default {
|
|||||||
let dataJson = JSON.stringify(this.processForm)
|
let dataJson = JSON.stringify(this.processForm)
|
||||||
let submitJson = JSON.stringify({...this.assignForm, userId: this.$store.getters.userInfo.usid,approvalOpinion:this.assignForm.remark})
|
let submitJson = JSON.stringify({...this.assignForm, userId: this.$store.getters.userInfo.usid,approvalOpinion:this.assignForm.remark})
|
||||||
this.$api.process.startProcess(form).then(({data}) => {
|
this.$api.process.startProcess(form).then(({data}) => {
|
||||||
this.completeProcess({dataJson, submitJson, taskId: data.result, userId: form.userId, prcType: this.prcType})
|
this.completeProcess({dataJson, submitJson, taskId: data.result, userId: form.userId, prcType: this.prcType, reportId: this.processForm.reportId|| ''})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//获取流程详细信息
|
//获取流程详细信息
|
||||||
|
|||||||
Reference in New Issue
Block a user