|
@@ -407,29 +407,56 @@
|
|
|
// 读取流程表单
|
|
|
let tabTitle = `发起流程【会计-报销审批】`
|
|
|
let processTitle = `${this.userName} 在 ${this.moment(new Date()).format('YYYY-MM-DD HH:mm')} 发起了 [会计-报销审批]`
|
|
|
- taskService.getTaskDef({ procDefId: this.processDefinitionId,
|
|
|
- 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.processDefinitionId,
|
|
|
- procDefKey: this.procDefKey,
|
|
|
- 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'
|
|
|
- }
|
|
|
- })
|
|
|
- })
|
|
|
+ if (this.isKjsz){
|
|
|
+ taskService.getTaskDef({ procDefId: this.processDefinitionIdSzbx,
|
|
|
+ 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.processDefinitionIdSzbx,
|
|
|
+ procDefKey: this.procDefKeySzbx,
|
|
|
+ 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,
|
|
|
+ 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.processDefinitionId,
|
|
|
+ procDefKey: this.procDefKey,
|
|
|
+ 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'
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
// 撤回
|
|
|
reback (row) {
|