|
@@ -275,6 +275,7 @@
|
|
|
isAdmin: false,
|
|
|
isKjsz:false,
|
|
|
isZj:false,
|
|
|
+ isZjbry:false,
|
|
|
}
|
|
|
},
|
|
|
reimbursementApprovalService: null,
|
|
@@ -345,6 +346,11 @@
|
|
|
console.log('this.isZj',this.isZj)
|
|
|
})
|
|
|
},
|
|
|
+ checkIsZjbry(){
|
|
|
+ userService.isZjbry().then((data)=>{
|
|
|
+ this.isZjbry = data
|
|
|
+ })
|
|
|
+ },
|
|
|
viewContract (id) {
|
|
|
this.$refs.contractNameForm.init('view', id)
|
|
|
},
|
|
@@ -374,7 +380,27 @@
|
|
|
}
|
|
|
})
|
|
|
})
|
|
|
- }else {
|
|
|
+ }else if (this.isZjbry) {
|
|
|
+ taskService.getTaskDef({ procDefId: this.processDefinitionIdZjb,
|
|
|
+ status: 'startAndHold'}).then((data) => {
|
|
|
+ this.$router.push({
|
|
|
+ path: '/flowable/task/TaskForm',
|
|
|
+ query: {
|
|
|
+ ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
|
|
|
+ procDefId: this.processDefinitionIdZjb,
|
|
|
+ procDefKey: this.procDefKeyZjb,
|
|
|
+ status: 'startAndHold',
|
|
|
+ title: tabTitle,
|
|
|
+ formType: data.formType,
|
|
|
+ formUrl: data.formUrl,
|
|
|
+ formTitle: processTitle,
|
|
|
+ businessId: 'false',
|
|
|
+ isShow: false,
|
|
|
+ routePath: '/cw/reimbursementApproval/info/InfoList'
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ } else {
|
|
|
taskService.getTaskDef({ procDefId: this.processDefinitionId,
|
|
|
status: 'startAndHold'}).then((data) => {
|
|
|
this.$router.push({
|
|
@@ -438,6 +464,30 @@
|
|
|
}
|
|
|
})
|
|
|
})
|
|
|
+ }else if(this.isZjbry){
|
|
|
+ taskService.getTaskDef({ procDefId: this.processDefinitionIdZjb,
|
|
|
+ businessId: row.id,
|
|
|
+ businessTable: 'cw_reimbursement_info',
|
|
|
+ status: status
|
|
|
+ }).then((data) => {
|
|
|
+ this.$router.push({
|
|
|
+ path: '/flowable/task/TaskForm',
|
|
|
+ query: {
|
|
|
+ ...pick(data, 'formType', 'formUrl', 'procDefKey', 'taskDefKey', 'procInsId', 'procDefId', 'taskId', 'status', 'title'),
|
|
|
+ procDefId: this.processDefinitionIdZjb,
|
|
|
+ procDefKey: this.procDefKeyZjb,
|
|
|
+ status: status,
|
|
|
+ title: tabTitle,
|
|
|
+ formType: data.formType,
|
|
|
+ formUrl: data.formUrl,
|
|
|
+ formTitle: processTitle,
|
|
|
+ businessTable: 'cw_reimbursement_info',
|
|
|
+ businessId: row.id,
|
|
|
+ isShow: false,
|
|
|
+ routePath: '/cw/reimbursementApproval/info/InfoList'
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
}else {
|
|
|
taskService.getTaskDef({ procDefId: this.processDefinitionId,
|
|
|
businessId: row.id,
|
|
@@ -508,6 +558,7 @@
|
|
|
this.checkIsAdmin()
|
|
|
this.checkIsKjsz()
|
|
|
this.checkIsZj()
|
|
|
+ this.checkIsZjbry()
|
|
|
processService.getByName('会计-报销审批').then((data) => {
|
|
|
if (!this.commonJS.isEmpty(data.id)) {
|
|
|
this.processDefinitionId = data.id
|
|
@@ -535,6 +586,12 @@
|
|
|
this.procDefKeySzbxInvoice = data.key
|
|
|
}
|
|
|
})
|
|
|
+ processService.getByName('会计-总经办报销').then((data) => {
|
|
|
+ if (!this.commonJS.isEmpty(data.id)) {
|
|
|
+ this.processDefinitionIdZjb = data.id
|
|
|
+ this.procDefKeyZjb = data.key
|
|
|
+ }
|
|
|
+ })
|
|
|
|
|
|
},
|
|
|
// 删除
|
|
@@ -570,6 +627,8 @@
|
|
|
this.procDefId = this.processDefinitionIdSzbx
|
|
|
}
|
|
|
}
|
|
|
+ }else if (this.isZjbry){
|
|
|
+ this.procDefId = this.processDefinitionIdZjb
|
|
|
}else {
|
|
|
if (row.reimbursementType === '1') {
|
|
|
this.procDefId = this.processDefinitionIdInvoice
|