|
@@ -201,6 +201,7 @@ import {
|
|
|
processList,
|
|
|
runProcessNodeExecution,
|
|
|
getProcessNodeFormTemplate,
|
|
|
+ getProcessNodeFormInfoData,
|
|
|
} from "@/api/bpmprocess/run/executeProcess";
|
|
|
import { triggerExceptionNode } from "@/api/bpmprocess/process";
|
|
|
|
|
@@ -355,39 +356,45 @@ export default {
|
|
|
let payLoad = {
|
|
|
taskNodeKey: bepTaskNodeNextKey,
|
|
|
taskProcessKey: benTaskProcessKey,
|
|
|
- taskScriptKey: benmTaskAutomaticScriptTriggerType,
|
|
|
+ taskAutomaticScriptTriggerType: benmTaskAutomaticScriptTriggerType,
|
|
|
+ taskPlanKey: bepTaskPlanKey,
|
|
|
};
|
|
|
|
|
|
- let formData = await getProcessNodeFormTemplate(payLoad);
|
|
|
- console.log(formData);
|
|
|
- if (benTaskNodeFormKey) {
|
|
|
- if (benTaskNodeFormType == "dragForm") {
|
|
|
- let templateInfo = formData.data[0]?.template;
|
|
|
- //拖拽表单
|
|
|
- this.formType = "dragForm";
|
|
|
- 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";
|
|
|
- this.groupKey = benTaskNodeFormKey;
|
|
|
- let queryPayload = {
|
|
|
- row,
|
|
|
- groupKey: benTaskNodeFormKey,
|
|
|
- };
|
|
|
- this.$nextTick(() => {
|
|
|
- this.$refs.dialogRef.getLists(queryPayload);
|
|
|
- });
|
|
|
- }
|
|
|
- } else if (preFix) {
|
|
|
- //定制表单
|
|
|
- this.formType = "designForm";
|
|
|
- this.myForm = preFix;
|
|
|
- }
|
|
|
+ // let formData = await getProcessNodeFormTemplate(payLoad);
|
|
|
+ // console.log(formData);
|
|
|
+ // if (benTaskNodeFormKey) {
|
|
|
+ // if (benTaskNodeFormType == "dragForm") {
|
|
|
+ // let templateInfo = formData.data[0]?.template;
|
|
|
+ // //拖拽表单
|
|
|
+ // this.formType = "dragForm";
|
|
|
+ // 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";
|
|
|
+ // this.groupKey = benTaskNodeFormKey;
|
|
|
+ // let queryPayload = {
|
|
|
+ // row,
|
|
|
+ // groupKey: benTaskNodeFormKey,
|
|
|
+ // };
|
|
|
+ // this.$nextTick(() => {
|
|
|
+ // this.$refs.dialogRef.getLists(queryPayload);
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+ // } else if (preFix) {
|
|
|
+ // //定制表单
|
|
|
+ // this.formType = "designForm";
|
|
|
+ // this.myForm = preFix;
|
|
|
+ // }
|
|
|
+ //定制表单
|
|
|
+ this.formType = "designForm";
|
|
|
+ this.myForm = preFix;
|
|
|
+ let res = await getProcessNodeFormInfoData(payLoad);
|
|
|
+ console.log(res);
|
|
|
this.row = row; //记录当前行数据
|
|
|
// if (!this.formType) return; //没有表单,直接掉运行逻辑
|
|
|
this.open = true; // 打开弹窗
|