|
@@ -483,8 +483,8 @@ export default {
|
|
|
if (this.formType === "2") {
|
|
|
// 外置表单
|
|
|
this.$refs.form.startForm(
|
|
|
- (businessTable, businessId, inputForm) => {
|
|
|
- vars = { ...vars, ...inputForm }
|
|
|
+ (businessTable, businessId, inputForm,recordType) => {
|
|
|
+ vars = { ...vars, ...inputForm ,recordType}
|
|
|
if (inputForm.procDefId) {
|
|
|
this.procDefId = inputForm.procDefId
|
|
|
}
|
|
@@ -497,6 +497,11 @@ export default {
|
|
|
if (inputForm.formTitle) {
|
|
|
this.formTitle = inputForm.formTitle
|
|
|
}
|
|
|
+ console.log('recordType', recordType)
|
|
|
+ if (recordType) {
|
|
|
+ this.recordType = recordType
|
|
|
+ }
|
|
|
+ console.log('this.recordType', this.recordType)
|
|
|
let assignee = this.auditForm.assignee
|
|
|
if (!this.commonJS.isEmpty(inputForm.assignee)) {
|
|
|
assignee = inputForm.assignee
|
|
@@ -510,6 +515,7 @@ export default {
|
|
|
...vars,
|
|
|
title: this.title,
|
|
|
assignee: assignee,
|
|
|
+ recordType: this.recordType
|
|
|
})
|
|
|
.then((data) => {
|
|
|
this.$message.success("启动成功");
|
|
@@ -575,8 +581,8 @@ export default {
|
|
|
taskName: ''
|
|
|
}
|
|
|
}
|
|
|
- this.$refs.form.reapplyForm((businessTable, businessId, inputForm) => {
|
|
|
- vars = {...vars, ...inputForm}
|
|
|
+ this.$refs.form.reapplyForm((businessTable, businessId, inputForm,recordType) => {
|
|
|
+ vars = {...vars, ...inputForm,recordType}
|
|
|
if (inputForm.procDefId) {
|
|
|
param.procDefId = inputForm.procDefId
|
|
|
}
|
|
@@ -584,6 +590,9 @@ export default {
|
|
|
if (!this.commonJS.isEmpty(inputForm.assignee)) {
|
|
|
assignee = inputForm.assignee
|
|
|
}
|
|
|
+ console.log('recordType', recordType)
|
|
|
+ this.recordType=recordType
|
|
|
+ console.log('this.recordType', this.recordType)
|
|
|
taskService.audit({
|
|
|
taskId: this.taskId,
|
|
|
taskDefKey: this.taskDefKey,
|
|
@@ -591,7 +600,8 @@ export default {
|
|
|
procDefId: this.procDefId,
|
|
|
vars: vars,
|
|
|
comment: this.auditForm,
|
|
|
- assignee: assignee
|
|
|
+ assignee: assignee,
|
|
|
+ recordType: this.recordType
|
|
|
}).then((data) => {
|
|
|
this.$message.success('提交成功')
|
|
|
this.changeBusiness()
|
|
@@ -657,7 +667,6 @@ export default {
|
|
|
// Process_1669700915383 合同登记纸质归档
|
|
|
// Process_1669271524486 报销审批
|
|
|
// Process_1669275081328 发票申请
|
|
|
- // Process_1693819615497 发票申请(旧)
|
|
|
// Process_1669275380218 发票作废
|
|
|
// Process_1672738002595 发起通知
|
|
|
// Process_1662628133027 评估-合同登记新建
|
|
@@ -696,7 +705,6 @@ export default {
|
|
|
this.procDefId.includes('Process_1669700915383') ||
|
|
|
this.procDefId.includes('Process_1669271524486') ||
|
|
|
this.procDefId.includes('Process_1669275081328') ||
|
|
|
- this.procDefId.includes('Process_1693819615497') ||
|
|
|
this.procDefId.includes('Process_1669275380218') ||
|
|
|
this.procDefId.includes('Process_1672738002595') ||
|
|
|
this.procDefId.includes('Process_1662628133027') ||
|
|
@@ -991,13 +999,13 @@ export default {
|
|
|
}
|
|
|
// eslint-disable-next-line no-unused-vars
|
|
|
this.$refs.form.agreeForm(
|
|
|
- (businessTable, businessId, inputForm) => {
|
|
|
+ (businessTable, businessId, inputForm,recordType) => {
|
|
|
if (this.commonJS.isNotEmpty(inputForm)) {
|
|
|
if (this.commonJS.isNotEmpty(inputForm.assignee)) {
|
|
|
this.auditForm.assignee = inputForm.assignee
|
|
|
}
|
|
|
}
|
|
|
- vars = { ...vars, ...inputForm }
|
|
|
+ vars = { ...vars, ...inputForm,recordType }
|
|
|
taskService
|
|
|
.audit({
|
|
|
taskId: this.taskId,
|
|
@@ -1007,6 +1015,7 @@ export default {
|
|
|
vars: vars,
|
|
|
comment: this.auditForm,
|
|
|
assignee: this.auditForm.assignee,
|
|
|
+ recordType:recordType
|
|
|
})
|
|
|
.then((data) => {
|
|
|
this.$message.success("提交成功");
|
|
@@ -1093,7 +1102,7 @@ export default {
|
|
|
case "_flow_start": // 自动流程
|
|
|
this.start(vars);
|
|
|
break;
|
|
|
- case "_flow_save": // 保存草稿
|
|
|
+ case "_flow_save": // 草稿
|
|
|
this.save();
|
|
|
break;
|
|
|
case "_flow_agree": // 同意
|