|
@@ -276,6 +276,7 @@
|
|
|
isKjsz:false,
|
|
|
isZj:false,
|
|
|
isZjbry:false,
|
|
|
+ isSs:false,
|
|
|
}
|
|
|
},
|
|
|
reimbursementApprovalService: null,
|
|
@@ -351,6 +352,12 @@
|
|
|
this.isZjbry = data
|
|
|
})
|
|
|
},
|
|
|
+ //判断当前用户是否是盛所团队部门主任
|
|
|
+ checkIsSs(){
|
|
|
+ userService.isSs().then((data)=>{
|
|
|
+ this.isSs = data
|
|
|
+ })
|
|
|
+ },
|
|
|
viewContract (id) {
|
|
|
this.$refs.contractNameForm.init('view', id)
|
|
|
},
|
|
@@ -400,6 +407,26 @@
|
|
|
}
|
|
|
})
|
|
|
})
|
|
|
+ }else if (this.isSs) {
|
|
|
+ taskService.getTaskDef({ procDefId: this.processDefinitionIdSs,
|
|
|
+ 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.processDefinitionIdSs,
|
|
|
+ procDefKey: this.procDefKeySs,
|
|
|
+ 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) => {
|
|
@@ -488,6 +515,30 @@
|
|
|
}
|
|
|
})
|
|
|
})
|
|
|
+ }else if(this.isSs){
|
|
|
+ taskService.getTaskDef({ procDefId: this.processDefinitionIdSs,
|
|
|
+ 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.processDefinitionIdSs,
|
|
|
+ procDefKey: this.procDefKeySs,
|
|
|
+ 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,
|
|
@@ -558,6 +609,7 @@
|
|
|
this.checkIsKjsz()
|
|
|
this.checkIsZj()
|
|
|
this.checkIsZjbry()
|
|
|
+ this.checkIsSs()
|
|
|
processService.getByName('会计-报销审批').then((data) => {
|
|
|
if (!this.commonJS.isEmpty(data.id)) {
|
|
|
this.processDefinitionId = data.id
|
|
@@ -591,6 +643,13 @@
|
|
|
this.procDefKeyZjb = data.key
|
|
|
}
|
|
|
})
|
|
|
+ processService.getByName('盛所会计-报销申请').then((data) => {
|
|
|
+ if (!this.commonJS.isEmpty(data.id)) {
|
|
|
+ this.processDefinitionIdSs = data.id
|
|
|
+ this.procDefKeySs = data.key
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
|
|
|
},
|
|
|
// 删除
|
|
@@ -628,6 +687,8 @@
|
|
|
}
|
|
|
}else if (this.isZjbry){
|
|
|
this.procDefId = this.processDefinitionIdZjb
|
|
|
+ }else if (this.isSs){
|
|
|
+ this.procDefId = this.processDefinitionIdSs
|
|
|
}else {
|
|
|
if (row.reimbursementType === '1') {
|
|
|
this.procDefId = this.processDefinitionIdInvoice
|