|
@@ -200,6 +200,7 @@
|
|
|
import {
|
|
|
processList,
|
|
|
runProcessNodeExecution,
|
|
|
+ getProcessNodeFormTemplate,
|
|
|
} from "@/api/bpmprocess/run/executeProcess";
|
|
|
import { triggerExceptionNode } from "@/api/bpmprocess/process";
|
|
|
|
|
@@ -338,7 +339,6 @@ export default {
|
|
|
},
|
|
|
// 打开运行节点弹窗
|
|
|
async opneExecuteNode(row) {
|
|
|
- console.log(row);
|
|
|
this.resetDialogForm();
|
|
|
let preFix = row.benTaskNodeName.split("-")[0];
|
|
|
let {
|
|
@@ -347,12 +347,30 @@ export default {
|
|
|
bepTaskPlanKey,
|
|
|
bepTaskKey,
|
|
|
bepTaskNodeKey,
|
|
|
+ benTaskProcessKey,
|
|
|
+ benmTaskAutomaticScriptTriggerType,
|
|
|
+ bepTaskNodeNextKey,
|
|
|
} = row;
|
|
|
+ // 新的运行逻辑
|
|
|
+ let payLoad = {
|
|
|
+ taskNodeKey: bepTaskNodeNextKey,
|
|
|
+ taskProcessKey: benTaskProcessKey,
|
|
|
+ taskScriptKey: benmTaskAutomaticScriptTriggerType,
|
|
|
+ };
|
|
|
+
|
|
|
+ let formData = await getProcessNodeFormTemplate(payLoad);
|
|
|
+ console.log(formData);
|
|
|
if (benTaskNodeFormKey) {
|
|
|
if (benTaskNodeFormType == "dragForm") {
|
|
|
+ let templateInfo = formData.data[0]?.template;
|
|
|
//拖拽表单
|
|
|
this.formType = "dragForm";
|
|
|
- await this.getDragFormInfo(benTaskNodeFormKey);
|
|
|
+ this.jsonData = JSON.parse(templateInfo.dfVueTemplate);
|
|
|
+ this.tableName = templateInfo.dfTableName;
|
|
|
+ if (Object.keys(JSON.parse(templateInfo.dfFormSql)).length) {
|
|
|
+ this.dynamicData = JSON.parse(templateInfo.dfFormSql);
|
|
|
+ }
|
|
|
+ // await this.getDragFormInfo(benTaskNodeFormKey);
|
|
|
} else if (benTaskNodeFormType == "composeForm") {
|
|
|
//工艺组合表单
|
|
|
this.formType = "composeForm";
|
|
@@ -371,7 +389,7 @@ export default {
|
|
|
this.myForm = preFix;
|
|
|
}
|
|
|
this.row = row; //记录当前行数据
|
|
|
- if (!this.formType) return; //没有表单,直接掉运行逻辑
|
|
|
+ // if (!this.formType) return; //没有表单,直接掉运行逻辑
|
|
|
this.open = true; // 打开弹窗
|
|
|
// 根据当前节点绑定的表单信息查询对应的表单进行展示
|
|
|
},
|
|
@@ -438,7 +456,7 @@ export default {
|
|
|
}
|
|
|
} else {
|
|
|
console.log(res);
|
|
|
- this.$message.error("网络异常,请稍后再试");
|
|
|
+ throw new Error(res);
|
|
|
}
|
|
|
} catch (error) {
|
|
|
console.log(error);
|