|
@@ -78,6 +78,12 @@
|
|
|
<span v-else-if="col.prop == 'benTaskNodeState'">{{
|
|
|
scope.row.benTaskNodeState == "0" ? "未执行" : "已执行"
|
|
|
}}</span>
|
|
|
+ <span v-else-if="col.prop == 'bepTaskProcessState'">{{
|
|
|
+ getDictLabel(
|
|
|
+ scope.row.bepTaskProcessState,
|
|
|
+ dict.type.task_process_state
|
|
|
+ )
|
|
|
+ }}</span>
|
|
|
<span v-else>{{ scope.row[col.prop] }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -200,7 +206,7 @@ export default {
|
|
|
name: "processMange",
|
|
|
props: [],
|
|
|
components: { GY1, DialogTemplate },
|
|
|
- dicts: ["bpm_type"],
|
|
|
+ dicts: ["bpm_type", "task_process_state"],
|
|
|
data() {
|
|
|
return {
|
|
|
row: {}, //当前操作行数据
|
|
@@ -330,17 +336,30 @@ export default {
|
|
|
console.log(row);
|
|
|
this.resetDialogForm();
|
|
|
let preFix = row.benTaskNodeName.split("-")[0];
|
|
|
- if (row.benTaskNodeFormKey) {
|
|
|
- if (row.benTaskNodeFormType == "dragForm") {
|
|
|
+ let {
|
|
|
+ benTaskNodeFormKey,
|
|
|
+ benTaskNodeFormType,
|
|
|
+ bepTaskPlanKey,
|
|
|
+ bepTaskKey,
|
|
|
+ bepTaskNodeKey,
|
|
|
+ } = row;
|
|
|
+ if (benTaskNodeFormKey) {
|
|
|
+ if (benTaskNodeFormType == "dragForm") {
|
|
|
//拖拽表单
|
|
|
this.formType = "dragForm";
|
|
|
- await this.getDragFormInfo(row.benTaskNodeFormKey);
|
|
|
- } else if (row.benTaskNodeFormType == "composeForm") {
|
|
|
+ await this.getDragFormInfo(benTaskNodeFormKey);
|
|
|
+ } else if (benTaskNodeFormType == "composeForm") {
|
|
|
//工艺组合表单
|
|
|
this.formType = "composeForm";
|
|
|
- this.groupKey = row.benTaskNodeFormKey;
|
|
|
+ this.groupKey = benTaskNodeFormKey;
|
|
|
+ let queryPayload = {
|
|
|
+ "${task_plan_key": bepTaskPlanKey,
|
|
|
+ "${task_key": bepTaskKey,
|
|
|
+ "${task_node_key": bepTaskNodeKey,
|
|
|
+ groupKey: benTaskNodeFormKey,
|
|
|
+ };
|
|
|
this.$nextTick(() => {
|
|
|
- this.$refs.dialogRef.getLists(this.groupKey);
|
|
|
+ this.$refs.dialogRef.getLists(queryPayload);
|
|
|
});
|
|
|
}
|
|
|
} else if (preFix) {
|
|
@@ -349,11 +368,11 @@ export default {
|
|
|
this.myForm = preFix;
|
|
|
}
|
|
|
this.row = row; //记录当前行数据
|
|
|
- if (!this.formType) return;
|
|
|
+ if (!this.formType) return; //没有表单,直接掉运行逻辑
|
|
|
this.open = true; // 打开弹窗
|
|
|
// 根据当前节点绑定的表单信息查询对应的表单进行展示
|
|
|
},
|
|
|
- // 运行节点按钮
|
|
|
+ // 运行节点按钮 确认运行回调
|
|
|
async executeNode() {
|
|
|
let { benTaskNodeKey, bepTaskProcessXmlContent, implementationName } =
|
|
|
this.row;
|
|
@@ -385,7 +404,11 @@ export default {
|
|
|
subformData.append(key, payLoad[key] == null ? "" : payLoad[key]);
|
|
|
}
|
|
|
runProcessNodeExecution(subformData).then((res) => {
|
|
|
- console.log(res);
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$message.success("运行成功!");
|
|
|
+ this.getList();
|
|
|
+ this.open = false;
|
|
|
+ }
|
|
|
});
|
|
|
console.log(payLoad);
|
|
|
},
|
|
@@ -412,7 +435,6 @@ export default {
|
|
|
},
|
|
|
// 关闭运行节点弹窗
|
|
|
closeExecuteNode(row) {
|
|
|
- console.log(row);
|
|
|
this.open = false;
|
|
|
},
|
|
|
// 获取下一个节点的nodekey
|