diff --git a/com.actionsoft.apps.coe.pal/src/views/subprocess/SubProcess.vue b/com.actionsoft.apps.coe.pal/src/views/subprocess/SubProcess.vue
index aeccc8a..f11d05b 100644
--- a/com.actionsoft.apps.coe.pal/src/views/subprocess/SubProcess.vue
+++ b/com.actionsoft.apps.coe.pal/src/views/subprocess/SubProcess.vue
@@ -72,9 +72,31 @@
+
+
+
+
+ {{ tag.name }}
+
+
+ *
+ 以上的子流程,既不存在前置流程也不存在后置流程,同时也不是其它流程的前置流程或后置流程。
+ 因此,如果想继续生成总图并同时保留以上子流程的话,请取消本次操作,并为以上子流程补充前置流程或后置流程。 如果想继续生成总图且不想保留以上子流程的话,请选择跳过。
+
+
+
+
@@ -116,6 +138,10 @@
label: 'name',
isLeaf: 'leaf'
},
+ generatePreHandleData: {
+ independentDlgVisible: false,
+ independentNodeVos: []
+ }
}
},
methods: {
@@ -133,6 +159,7 @@
// console.log('initData', ro);
this.subProcessForm.position.label = ro.data.dirRootName;
this.subProcessForm.position.path = ro.data.dirRootPath;
+ this.subProcessForm.position.locationId = ro.data.locationId;
}else if (ro.result === 'error') {
this.$message({type: 'error', message: ro.msg});
this.$emit('getResult');
@@ -150,6 +177,10 @@
this.$refs.subProcessModelTree.setCheckedKeys([]);
}
},
+ closeGeneratePreDlg(){
+ this.generatePreHandleData.independentDlgVisible = false;
+ this.generatePreHandleData.independentNodeVos = [];
+ },
closeAdapter(done) {
this.close();
done();
@@ -166,9 +197,70 @@
this.subProcessForm.defaultProcessCheckedKeys = [];
this.subProcessForm.showProcessTree = false;
},
+ submit(){
+ this.generatePreHandle();
+ },
+ // 预处理2 查看所选的子流程中部分子流程的前置或后置是否在所选的范围内
+ generatePreHandle2(excludeProcessIdArr){
+ const param = {
+ url: 'jd',
+ data: {
+ cmd: '',
+ processIdJsonArr: JSON.stringify(this.subProcessForm.processList),
+ excludeProcessIdJsonArr: JSON.stringify(excludeProcessIdArr)
+ }
+ }
+ awsuiAxios.post(param)
+ .then(ro => {
+
+ })
+ .catch(err => {
+ console.log(err);
+ });
+ },
+ // 跳过独立的子流程
+ jumpOverIndependent(){
+ let excludeProcessIdArr = [];
+ this.generatePreHandleData.independentNodeVos.forEach(vo => excludeProcessIdArr.push(vo.id));
+ this.generatePreHandle2(excludeProcessIdArr);
+ },
+ // 预处理 检验是否有独立的子流程
+ generatePreHandle(){
+ const param = {
+ url: 'jd',
+ data: {
+ cmd: 'com.actionsoft.apps.coe.method.process.subprocess.independent_node_pre_handle',
+ processIdJsonArr: JSON.stringify(this.subProcessForm.processList),
+ }
+ }
+ awsuiAxios.post(param)
+ .then(ro => {
+ if (ro.result == 'ok'){
+ if (ro.data.independentNodeVos.length){
+ this.generatePreHandleData.independentDlgVisible = true;
+ this.generatePreHandleData.independentNodeVos = ro.data.independentNodeVos;
+ }else {
+ this.generatePreHandle2([]);
+ }
+ }else if (ro.result == 'error'){
+ this.$message({type: 'error', message: ro.msg});
+ }
+ })
+ .catch(err => {
+ console.log(err)
+ });
+ },
// 生成端到端总图
generateSubProcessModel(){
console.log('执行参数',this.subProcessForm);
+ if (!this.subProcessForm.processList.length){
+ this.$message({type: 'warning', message: '请选择子流程'});
+ return;
+ }
+ if (!this.subProcessForm.modelName){
+ this.$message({type: 'warning', message: '请填写模型名称'});
+ return;
+ }
const param = {
url: 'jd',
data: {