Browse Source

1. 弹窗修改流程信息
2. 流程回退选择节点

杨治明 9 months ago
parent
commit
0cfc6b10af

+ 166 - 51
tip-front/src/main/webapp/WEB-INF/pages/apps/task/taskAuditInfo.html

@@ -12,6 +12,8 @@
     <link rel="stylesheet" th:href="@{/common/bootstrap-table/bootstrap-table.min.css}" href="../../../../../common/bootstrap-table/bootstrap-table.min.css">
     <link rel="stylesheet" th:href="@{/common/css/minto.layout.css}" href="../../../../../common/css/minto.layout.css">
     <link rel="stylesheet" th:href="@{/common/css/minto.comp.css}" href="../../../../../common/css/minto.comp.css">
+    <link rel="stylesheet" type="text/css" th:href="@{/tc_ttp/element-ui/minto/element-mask.css}"/>
+    <link rel="stylesheet" type="text/css" th:href="@{/common/element-ui/theme-chalk/index.css}"/>
     <style>
         .table-th{
             min-width: 100px;
@@ -22,48 +24,86 @@
         html,body{
             height: 100%;
         }
+        .el-form-item__label{
+            margin-bottom: 0 !important;
+            padding-bottom: 0 !important;
+        }
     </style>
 </head>
 <body>
-
-<div id="main" class="mt-body mt-vertical" style="background-color: #fff;">
+<div id="main" class="mt-body mt-vertical" style="background-color: #fff;" >
     <div style="padding: 20px;">
         <div class="mt-table-region mt-horizontal">
             <div id="right" class="mt-content-right" style="padding:20px 20px">
                 <div id="tableDiv" style="display: block;">
                     <table id="table" data-toggle="table">
                         <thead>
-                            <tr>
-                                <th width="46" style="min-width: 46px" align="center" >序号</th>
-                                <th class="table-th">任务标题</th>
-                                <th class="table-th">任务类型</th>
-                                <th class="table-th">责任单位</th>
-                                <!--<th class="table-th">协办单位</th>-->
-                                <th data-th-if="${auditType}==0" class="table-th">待审批单位</th>
-                                <th class="table-th">完成情况</th>
-                                <th class="table-th">完成时限</th>
-                                <!--<th class="table-th">任务阶段</th>-->
-                            </tr>
+                        <tr>
+                            <th width="46" style="min-width: 46px" align="center" >序号</th>
+                            <th class="table-th">任务标题</th>
+                            <th class="table-th">任务类型</th>
+                            <th class="table-th">责任单位</th>
+                            <!--<th class="table-th">协办单位</th>-->
+                            <th data-th-if="${auditType}==0" class="table-th">待审批单位</th>
+                            <th class="table-th">进展状态</th>
+                            <th class="table-th">完成情况</th>
+                            <th class="table-th">存在问题</th>
+                            <th class="table-th">完成时限</th>
+                            <th class="table-th" align="center">操作</th>
+                        </tr>
                         </thead>
                         <tbody>
-                            <tr data-th-each="bean,stat:${beans}">
-                                <td data-th-text="${stat.count}">序号</td>
-                                <td>
-                                    <a data-th-attr="task-id=${bean.taskId}" class="link-text task-title" data-th-text="${bean['taskTitle']}">任务标题</a>
-                                </td>
-                                <td data-th-text="${bean['taskTypeName']}">任务类型</td>
-                                <td data-th-text="${bean['manager']}">责任单位</td>
-                                <!--<td data-th-text="${bean['participantName']}">协办单位</td>-->
-                                <td data-th-if="${auditType}==0" data-th-text="${bean['pendingUnit']}"></td>
-                                <td data-th-text="${bean['processDetail']}"></td>
-                                <td data-th-text="${bean['endDate']}"></td>
-                            </tr>
+                        <tr data-th-each="bean,stat:${beans}">
+                            <td data-th-text="${stat.count}" >序号</td>
+                            <td>
+                                <a data-th-attr="task-id=${bean.taskId}" class="link-text task-title" data-th-text="${bean['taskTitle']}">任务标题</a>
+                            </td>
+                            <td data-th-text="${bean['taskTypeName']}">任务类型</td>
+                            <td data-th-text="${bean['manager']}">责任单位</td>
+                            <!--<td data-th-text="${bean['participantName']}">协办单位</td>-->
+                            <td data-th-if="${auditType}==0" data-th-text="${bean['pendingUnit']}"></td>
+                            <td data-th-text="${bean['processStatusDesc']}"></td>
+                            <td data-th-text="${bean['processDetail']}"></td>
+                            <td data-th-text="${bean['faq']}"></td>
+                            <td data-th-text="${bean['endDate']}"></td>
+                            <td data-th-if="${bean['colState']} == 1">
+                                <button @click.stop="editThisMessage"
+                                        data-th-data-id="${bean.id}"
+                                        type="button"
+                                        class="btn btn-primary btn-sm task-edit"
+                                >
+                                    编辑
+                                </button>
+                            </td>
+                        </tr>
                         </tbody>
                     </table>
                 </div>
             </div>
         </div>
     </div>
+
+    <el-dialog title="提示" :visible.sync="dialogVisible" width="600px" :modal-append-to-body="true" v-cloak>
+        <el-form :model="form" label-position="top" :rules="rules" ref="ruleForm">
+            <el-form-item label="特殊资源">
+                <el-radio-group v-model="form.processStatus">
+                    <el-radio :label="0">正常推进</el-radio>
+                    <el-radio :label="1">进展较慢</el-radio>
+                    <el-radio :label="3">已完成</el-radio>
+                </el-radio-group>
+            </el-form-item>
+            <el-form-item label="完成情况" prop="processDetail">
+                <el-input v-model="form.processDetail"></el-input>
+            </el-form-item>
+            <el-form-item label="存在问题">
+                <el-input v-model="form.faq"></el-input>
+            </el-form-item>
+        </el-form>
+        <span slot="footer" class="dialog-footer">
+            <el-button @click="closeDialog">取 消</el-button>
+            <el-button type="primary" @click="submitForm">确 定</el-button>
+        </span>
+    </el-dialog>
 </div>
 
 
@@ -74,34 +114,109 @@
 <script type="text/javascript" th:src="@{/common/js/v5x.js}" src="../../../../../common/js/v5x.js" ></script>
 <script type="text/javascript" th:src="@{/common/bootstrap-table/bootstrap-table.min.js}" src="../../../../../common/bootstrap-table/bootstrap-table.min.js"></script>
 <script type="text/javascript" th:src="@{/common/bootstrap-table/locale/bootstrap-table-zh-CN.min.js}" src="../../../../../common/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
-<script type="text/javascript">
-    $("#tableDiv").on("click",".task-title",function(){
-        var id = $(this).attr("task-id");
-        var taskType = $(this).attr("taskType");
-        //审批状态
-        var colState = $(this).attr("colState");
-        //任务是否必须立项送审
-        var needApproval = $(this).attr("needApproval");
-        if(needApproval==1){
-            //审批状态为完成,不能再对事项进行编辑
-            if(colState==2){
-                TC.ui.openResource({
-                    id: "/taskmt/?m=taskDetail",
-                    label: "查看事项",
-                    url: "/taskmt/?m=taskDetail&id="+id+"&listType=do&collaboration=true",
-                    icon: ""
+<script type="text/javascript" th:src="@{/common/vue/vue.min.js}" src="../../../../../common/vue/vue.min.js"></script>
+<script type="text/javascript" th:src="@{/common/element-ui/index.js}" src="../../../../../common/element-ui/index.js"></script>
+
+<script type="text/javascript" th:inline="javascript">
+    $(function(){
+        const beans = [[${beans}]];
+        new Vue({
+            el:'#main',
+            data(){
+                return {
+                    dialogVisible:false,
+                    form:{
+                        processDetail:"",
+                        faq:"",
+                        processStatus:null,
+                        reportId:""
+                    },
+                    rules: {
+                        processDetail: [
+                            { required: true, message: '请输入完成情况', trigger: 'blur' },
+                        ],
+                    }
+                };
+            },
+            methods:{
+                editThisMessage(e){
+                    let id = e.target.dataset.id || ""
+                    if(!id) return;
+                    let item = beans.find(item=> item.id===id)
+                    this.form = {
+                        reportId:item.id,
+                        processDetail:item.processDetail,
+                        faq:item.faq,
+                        processStatus:item.processStatus
+                    }
+                    this.dialogVisible = true;
+                },
+                submitForm() {
+                    this.$refs.ruleForm.validate((valid) => {
+                        if (valid) {
+                            $.ajax({
+                                url: TC.config.baseUrl + "/task/updateTaskReport",
+                                type: "post",
+                                dataType: "json",
+                                data: this.form,
+                                traditional: true,
+                                async: false,
+                                success: (result)=> {
+                                    if (result.state == "success") {
+                                        this.dialogVisible = false;
+                                        $.ok("修改成功!", ()=> {
+                                            window.location.reload();
+                                        })
+                                    } else {
+                                        $.alert(result.message);
+                                    }
+                                }, error: function () {
+                                    console.log("修改失败!")
+                                }
+                            });
+                        } else {
+                            console.log('error submit!!');
+                            return false;
+                        }
+                    });
+                },
+                closeDialog(){
+                    this.dialogVisible = false
+                    this.$refs.ruleForm.resetFields();
+                }
+            },
+            mounted(){
+                // 原本的事件不做修改
+                $("#main").on("click",".task-title",function(){
+                    var id = $(this).attr("task-id");
+                    var taskType = $(this).attr("taskType");
+                    //审批状态
+                    var colState = $(this).attr("colState");
+                    //任务是否必须立项送审
+                    var needApproval = $(this).attr("needApproval");
+                    if(needApproval==1){
+                        //审批状态为完成,不能再对事项进行编辑
+                        if(colState==2){
+                            TC.ui.openResource({
+                                id: "/taskmt/?m=taskDetail",
+                                label: "查看事项",
+                                url: "/taskmt/?m=taskDetail&id="+id+"&listType=do&collaboration=true",
+                                icon: ""
+                            });
+                        }else{
+                            TC.ui.openTab("/taskByType/editDraft/?editType=1&isApprovalEdit=true&taskType="+taskType+"&id="+id,"事项编辑");
+                        }
+                    }else{
+                        TC.ui.openResource({
+                            id: "/taskmt/?m=taskDetail",
+                            label: "查看事项",
+                            url: "/taskmt/?m=taskDetail&id="+id+"&listType=do&collaboration=true",
+                            icon: ""
+                        });
+                    }
                 });
-            }else{
-                TC.ui.openTab("/taskByType/editDraft/?editType=1&isApprovalEdit=true&taskType="+taskType+"&id="+id,"事项编辑");
             }
-        }else{
-            TC.ui.openResource({
-                id: "/taskmt/?m=taskDetail",
-                label: "查看事项",
-                url: "/taskmt/?m=taskDetail&id="+id+"&listType=do&collaboration=true",
-                icon: ""
-            });
-        }
+        })
     });
 </script>
 </body>

+ 1 - 0
tip-front/src/main/webapp/tc_suite/collaboration/doColIndex_new.jsp

@@ -624,6 +624,7 @@
                         <input type="hidden" id=nodeActionShow name="nodeActionShow" value="<c:if test="${not empty defaultColNode }">${defaultColNode.des }</c:if>"/>
                         <input type="hidden" id=colType name="colType" value="${colSummary.ctype }"/>
                         <input type="hidden" id="tempAuditType" name="colType" value="${colSummary.auditType }"/>
+                        <input type="hidden" id=backNode name="backNode" value=""/>
                         <div id="operateTitle" class="rightTitle">
                             <span>
                                 <%--高级属性--%>

+ 37 - 129
tip-front/src/main/webapp/tc_suite/collaboration/js/col.js

@@ -268,75 +268,6 @@ col.addIndex.saveAsTemplate = function(flag) {
             parentFrame.attr("src" ,TC.config.baseUrl +"/collaboration/templateManagerIndex/");
         }
     });
-    /**
-     var summaryForm = $(getDocumentByIframeId("summaryFrame"));
-     var checkPass = TC.ui.formValidator({
-    formObject:summaryForm.find("#colSummary")
-  });
-     if(checkPass){
-    var colId = $("#oldColId").val();  //协同ID
-    var templateId = $("#templateId").val();  //协同ID
-    var title = $("#isAdmin").val() == "true" ? "新建模板" : "另存模板";
-    $.dialog({
-      id : "toTemplateSave",
-      title : title,
-      max : false,
-      min : false,
-      width : '400px',
-      height : '400px',
-      content : "url:" + TC.config.baseUrl + "/template.templateToTemplateSaveUI.do?resourceType=10030001&colId=" + colId + "&templateId=" + templateId,
-      lock : true,
-      parent : this,
-      ok : function() {
-        var saveForm = $(this.content.saveForm);
-        var checkFormPass = TC.ui.formValidator({
-          formObject:$(saveForm)
-        });
-        if (checkFormPass) {  //非空验证
-          $("#categoryId").val($(this.content.saveForm).find("#templateCategoryId").val());
-          $("#ctype").val(1);  //是否为模板,0一般协同,1协同模板
-          $(window.frames["summaryFrame"].document).find("#templateTitle").val($(this.content.saveForm).find("#tName").val());
-          $("#authority").val($(this.content.saveForm).find("#authority").val());
-          $("#templateId").val($(this.content.saveForm).find("#templateId").val());
-          var newColId = $(this.content.newColId).val();
-          var newAffairId = $(this.content.newAffairId).val();
-          var newTemplateId = $(this.content.newTemplateId).val();
-          col.addIndex.sendCol(true, function(){
-            colId = newColId;
-            nodeId = newAffairId;
-            $("#colId").val(newColId);
-            $("#startNodeId").val(newAffairId);
-            $("#templateId").val(newTemplateId);
-            $("#ctype").val(0);
-            var flowFrame = window.frames['colFlowFrame'];
-            flowFrame.updateTcOfNode(newColId);
-            $("#tcId", flowFrame.document).val(newAffairId);
-            $("#parentId", flowFrame.document).val(newColId);
-            if (flag) {
-              $.dialog({
-                title : "系统提示",
-                icon : "success.gif",
-                content : "保存模板成功",
-                lock : true,
-                ok : function() {
-                  this.close();
-                }
-              });
-            } else {
-              var param = {
-                url : "template.index.do?resourceType=10030001"
-              };
-              TC.ui.relocateResource(param);
-            }
-          });
-        } else {
-          return false;
-        }
-      },
-      cancel : true
-    });
-  }
-     */
 };
 /**
  * 调用模板
@@ -1500,11 +1431,45 @@ col.doIndex.advancePOSave = function(code, editApi) {
         });
     } else if(code == "col_back"){
         doActionUrl = editApi.attr("action");
-        $.confirm($.i18n("common.operation.confirm.label"), function() {
-            workflowFrameWindow.submitflow4SendBack(col.doIndex.doColCall);
-        });
+        // 页面反正有这个值就用了
+        var auditType = $("#auditType").val() ? $("#auditType").val() : $("#tempAuditType").val();
+
+        if(auditType == 2){
+            doActionUrl+='/m=batchSendBack'
+            $.dialog({
+                autoOpen: false,
+                modal: true,
+                height: 400,
+                width: 450,
+                position: "center",
+                lock : true,
+                parent : this,
+                title : " 流程回退",
+                content : "url:" + TC.config.baseUrl+"/workflow/showColFlow/?onlyFlow=true&parentId="+colId+"&tcId="+nodeId+"&colSendBack=true",
+                button : [
+                    {
+                        name: '提交',
+                        callback : function() {
+                            let nodeId = this.content.$("#sendBackNodeId").val();
+                            if(nodeId){
+                                $("#backNode").val(nodeId)
+                                workflowFrameWindow.submitflow4SendBack(col.doIndex.doColCall);
+                            }
+                        },
+                        focus : true
+                    },
+                    {
+                        name: '取消'
+                    }
+                ]
+            });
 
 
+        }else {
+            $.confirm($.i18n("common.operation.confirm.label"), function() {
+                workflowFrameWindow.submitflow4SendBack(col.doIndex.doColCall);
+            });
+        }
     } else if(code == "col_stop"){
         $.confirm($.i18n("common.operation.confirm.label"), function() {
             workflowFrameWindow.submitflow4Suspend(function(result){
@@ -1988,10 +1953,6 @@ col.doIndex.doColSava = function(result){
             TC.ui.closeProgressBar();
             result.preActionUrl = oldResult.preActionUrl;
             if (result.state == "success") {
-
-                /*TC.ui.relocateResource({
-                    url:"/collaboration/listOfCol?listType=3",
-                });*/
                 //审批发送成功后添加发送成功提醒 shan.wen 2018-09-18
                 $.ok($.i18n("collaboration.submit.ok.confirm.label"), function () {
                     if (result.preActionUrl) { //回退:直接关闭当前页面
@@ -1999,60 +1960,7 @@ col.doIndex.doColSava = function(result){
                     } else {
                         window.location.reload(true);
                     }
-
-                    // if (flagUrl == 1) {
-                    //     TC.ui.relocateResource({
-                    //         url: "/collaboration/index",
-                    //         // url:"/collaboration/listOfCol?listType=3",
-                    //     });
-                    //     /* TC.data.select("daibanCol",function(obj){
-                    //          obj.trigger("click").click();
-                    //      });*/
-                    // } else {
-                    //     var affairId = $("#savePOForm #affairId").val();
-                    //     TC.ui.relocateResource({
-                    //         url: "/doCollaboration/doColIndex?affairId=" + affairId,
-                    //     });
-                    // }
                 });
-                /*
-                $.dialog({
-                    //温馨提示
-                    title : $.i18n("common.dialog.title"),
-                    icon :  "success.gif",
-                    max : false,
-                    min : false,
-                    //'审批已经提交成功,点击确认进行查看!'
-                    content : $.i18n("collaboration.submit.ok.confirm.label"),
-                    lock : true,
-                    parent : this,
-                    ok : function() {
-
-                    }
-                    /!*button : [ {
-                        name : $.i18n("edoc.determine.button"),//确定
-                        callback : function() {
-                            if(flagUrl == 1){
-                                TC.ui.relocateResource({
-                                    url:"/collaboration/listOfCol?listType=3",
-                                });
-                                TC.data.select("daibanCol",function(obj){
-                                      obj.trigger("click").click();
-                               });
-                            }else{
-                                var affairId = $("#savePOForm #affairId").val();
-                                TC.ui.relocateResource({
-                                    url:"/doCollaboration/doColIndex?affairId="+affairId,
-                                });
-                            }
-                        },
-                        focus : true
-                    }]*!/
-                });*/
-
-                /*TC.data.select("daibanCol",function(obj){
-                      obj.trigger("click").click();
-                  });*/
                 return;
             } else {
                 $.error(result.message);

+ 24 - 0
tip-front/src/main/webapp/tc_tap/workflow/js/process4Person.js

@@ -33,6 +33,21 @@ function initForAP(flowType) {
 function drawFlowStyle_personView() {
 	$("#spanBefore").empty();
 	$("#draw").empty();
+	// 根据当前节点id,获取所有已经经过的节点, 根据next字段
+	if(typeof isBatchSendBack !== 'undefined'){
+		function getGroup(nodeId) {
+			var groupNodes = []
+			let node = nodeArray.find(item=> item.next == nodeId)
+			while (node){
+				groupNodes.unshift(node)
+				node = nodeArray.find(item=> item.next == node.nodeId)
+			}
+			return groupNodes
+		}
+		nodeArray = getGroup(curNodeId)
+	}
+
+
 	for ( var i = 0; i < nodeArray.length; i++) {
 		var thisnode = nodeArray[i];
 		var nodeDiv = "";
@@ -827,6 +842,15 @@ function showOptMenu(obj) {
 	$("#optActor").css("visibility", "hidden");
 	curSelectNode = obj.id.substr(3, obj.id.length);
 	var curnode = getNodeById(curSelectNode);
+
+	if(typeof isBatchSendBack != "undefined"){
+		$("#drawDiv1 .headImg, #drawDiv1 .headImg img").removeClass('current_selected_node')
+		$(obj).addClass("current_selected_node")
+
+		$("#sendBackNodeId").val(curnode.nodeId)
+		return
+	}
+
 	// 当前不是空节点
 	if (!isForkOrJoin(curnode.nodeType)) {
 		$("#menu3").css('display', 'block');

+ 179 - 10
tip-front/src/main/webapp/tc_tap/workflow/processSendBack.jsp

@@ -1,16 +1,185 @@
 <%--
-  Created by IntelliJ IDEA.
-  User: wany
-  Date: 2024/6/20
-  Time: 下午5:23
-  To change this template use File | Settings | File Templates.
---%>
-<%@ page contentType="text/html;charset=UTF-8" language="java" %>
-<html>
+  ~ Copyright (c) 2014, 2023, Chengdu Minto Technology Co.,LTD. All rights reserved.
+  ~ DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+  --%>
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
+<%@ page isELIgnored="false"%>
+<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
+<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
+<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
+<%@ taglib prefix="tc" uri="http://www.mingto.net/tip" %>
+<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
-    <title>Title</title>
+    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    <link href="${path}/tc_ttp/style/default/css/style.css${resSuffix}" rel="Stylesheet" type="text/css" />
+    <link href="${path}/tc_tap/workflow/css/style.css${resSuffix}" rel="Stylesheet" type="text/css" />
+    <%--流程编辑--%>
+    <title>${tc:i18n("edoc.process.editing")}</title>
+    <style>
+        .wButtonX{
+            height:30px;
+            line-height:30px;
+            color:#FFF;
+            font-size:12px;
+            width:80px;
+            opacity:0.9;
+        }
+        .wButtonX:hover{
+            cursor:pointer;
+            opacity:1;
+        }
+        .headName{width: auto;left:0;text-align: center;min-width:100%}
+        body::-webkit-scrollbar{
+            width: 4px;
+            height: 4px;
+        }
+        body::-webkit-scrollbar-thumb{
+            box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 5px inset;
+            border-radius: 5px;
+            background: rgba(0, 0, 0, 0.2);
+        }
+        body::-webkit-scrollbar-track{
+            box-shadow: rgba(0, 0, 0, 0) 0px 0px 5px inset;
+            border-radius: 0px;
+            background: rgba(0, 0, 0, 0);
+        }
+        .current_selected_node{
+            border:1px solid #3186ef;
+        }
+    </style>
 </head>
-<body>
+<body style="background: #fff; position:relative;height:100%;overflow:auto;">
+<c:if test="${flowType eq 1 }">
+    <%--新建子事项--%>
+    <div class="wButtonX" style="background:#3186ef; text-align:center; z-index: 999" onclick="newNode('start-state')">
+            ${tc:i18n("edoc.new.child")}
+    </div>
+</c:if>
+<div id="spanBefore"></div>
+<div style="position: absolute; top: 0px; left: 10px; right: 10px; height: 1px;
+        text-align: left; line-height: 0px; border-bottom: 0px solid #b5b5b5;<c:if test="${newProcess eq false || onlyFlow}">display: none;</c:if>">
+    <%--流程类型--%>
+    <span style="float: left; display: none;">${tc:i18n("edoc.process.type")}:</span>
+    <div class="label" style="display: none;">
+        <input type="radio" id="processType1" name="processType" checked="checked" onclick="changeView(0)">
+        <%--审批流--%>
+        <label for="processType1">${tc:i18n("edoc.approval.flow")}</label> &nbsp;&nbsp;
+        <input type="radio" id="processType2" name="processType" onclick="changeView(1)">
+        <%--工作流--%>
+        <label for="processType2">${tc:i18n("edoc.workflow")}</label>
+    </div>
+</div>
+<div id="tempdiv"></div>
+<c:if test="${false }">
+<div id="drawDiv" style="top: 40px;">
+    </c:if>
+    <div id="drawDiv1" style="margin-bottom:50px;">
+        <div style="position: absolute; width: 95%;   left: 25px;padding-bottom:150px" id="draw"></div>
+    </div>
+    <div style="position: absolute; bottom: 10px; right: 8px;">
+        <form action="${path}/workflow/sendflow" method="post" id="submitflow">
+            <input type="hidden" name="processJson" id="processJson" value="${processJson }">
+            <input type="hidden" name="colListType" id="colListType" value="${colListType }">
+            <input type="hidden" name="flowType" id="flowType" value="${flowType }">
+            <input type="hidden" name="tcId" id="tcId" value="${tcId }">
+            <input type="hidden" name="needReturnNull" id="needReturnNull" value="true">
+            <input type="hidden" name="processTitle" id="processTitle" value="${processTitle }">
+            <input type="hidden" name="submitState" id="submitState" value="${submitState }">
+            <input type="hidden" name="parentId" id="parentId" value="${parentId }">
+            <input type="hidden" name="curNodeId" id="curNodeId" value="${curNodeId }"> <!-- 增加的节点  -->
+            <input type="hidden" name="addNodesMode" id="addNodesMode">
+            <input type="hidden" name="addNodes" id="addNodes" value="${addNodes }">
+            <input type="hidden" name="delNodes" id="delNodes" value="${delNodes }">
+            <input type="hidden" name="rootNodeTcId" id="rootNodeTcId">
+            <input type="hidden" name="forkPerTcId" id="forkPerTcId">
+            <input type="hidden" name="joinPerTcId" id="joinPerTcId">
+            <input type="hidden" name="autoStop" id="autoStop">
+
+            <input type="hidden" name="workFlowType" id="workFlowType" value="${workFlowType}">
+            <input type="hidden" name="dmTableId" id="dmTableId" value="${dmTableId }">
+            <input type="hidden" name="ctype" id="ctype" value="${ctype }">
+
+            <input type="hidden" name="sendBackNodeId" id="sendBackNodeId" value="">
+
+            <c:if test="${newProcess && onlyFlow eq false}">
+                <!-- <input type="button" value="提交" onclick="submitflow();"></input> -->
+            </c:if>
 
+            <%--保存最初的源数据,用作刷新时使用--%>
+            <input type="hidden" name="initialProcessJson" id="initialProcessJson"/>
+
+        </form>
+    </div>
 </body>
+<script type="text/javascript">
+    // 增加dialog parent Modifier: <Zhengyu.Hu> 2018/1/18 下午4:24 end.
+    var parentApi = frameElement ? frameElement.api:null;
+    var tcId = "${tcId }";
+    var newProcess = "${newProcess }";
+    var flowType = "${flowType }";
+    var curNodeId = "${curNodeId }";
+    var isTemplate = "${isTemplate }";
+    var isTemplateEdit = "${isTemplateEdit }";
+    var useTemplate = ${useTemplate};
+    var isBatchSendBack = 1; // 回退场景
+</script>
+<script type="text/javascript" src="${path}/tc_ttp/common/jquery.min.js${resSuffix}"></script>
+<script type="text/javascript" src="${path}/tc_ttp/common/function.js${resSuffix}"></script>
+<script type="text/javascript" src="${path}/tc_ttp/common/tc.js${resSuffix}"></script>
+<script type="text/javascript" src="${path}/tc_tap/workflow/js/wz_jsgraphics.js${resSuffix}"></script>
+<script type="text/javascript" src="${path}/tc_tap/workflow/js/jquery.ui.flow.js${resSuffix}"></script>
+<script type="text/javascript" src="${path}/tc_ttp/lhgdialog4.2.0/lhgdialog.js${resSuffix}"></script>
+<script type="text/javascript" src="${path}/tc_ttp/formValidator/jquery.validationEngine.js${resSuffix}"></script>
+<script type="text/javascript" src="${path}/tc_ttp/formValidator/validate.js${resSuffix}"></script>
+<c:if test="${flowType eq 1 }">
+    <script type="text/javascript" src="${path}/tc_tap/workflow/js/process4Task.js${resSuffix}"></script>
+</c:if>
+<%-- 目标流和工作流使用一样的操作 Modifier: <Zhengyu.Hu> 2018/1/19 下午3:24 end.--%>
+<c:if test="${flowType eq 0 || flowType eq 2}">
+    <script type="text/javascript" src="${path}/tc_tap/workflow/js/process4Person.js${resSuffix}"></script>
+</c:if>
+<script type="text/javascript" src="${path}/tc_tap/workflow/js/process.js${resSuffix}"></script>
+<script type="text/javascript" src="${path}/tc_ttp/common/repeatSubmit.js${resSuffix}"></script>
+<script>
+    function setHeight() {
+        var parentFrame = parent.document.getElementsByTagName("IFRAME");//获取父窗口的iframe
+        // var h = document.documentElement.scrollHeight;//获取子窗口的高度 FF
+        // h = document.body.scrollHeight; //IE
+        var h = document.getElementById("viewer").offsetHeight;
+        parentFrame[0].style.height = h+"px";//设置父窗口iframe高度
+    }
+
+    //设置本页面高度100%,清除其他页面高度设置影响
+    function setThisHeight() {
+        var parentFrame = parent.document.getElementById("workflowFrame");
+        if(parentFrame) {
+            parentFrame.style.height = '100%'
+        }
+    }
+    $(function() {
+        setTimeout(function () {
+            setThisHeight()
+        },5000)
+    })
+
+
+    function reDraw() {
+        var initialProcessJson = $("#initialProcessJson").val();
+        if(!!initialProcessJson) {
+            $("#processJson").val($("#initialProcessJson").val());
+        }
+        if(flowType === "0" || flowType === "2"){
+            // 审批流
+            initForAP(flowType);
+        }else if(flowType === "1"){
+            // 工作流
+            initForWP();
+        }
+        /!*清空数据*!/
+        $("#initialProcessJson").val("");
+    }
+</script>
 </html>