xs 5 rokov pred
rodič
commit
04b2b6c916

+ 38 - 32
src/main/webapp/webpage/modules/sg/managementcenter/activiti/documentsForm.jsp

@@ -6,14 +6,15 @@
 	<meta name="decorator" content="ani"/>
 	<!-- SUMMERNOTE -->
 	<%@include file="/webpage/include/summernote.jsp" %>
+	<%@include file="sealForm.js"%>
 	<script type="text/javascript">
-		$(document).ready(function () {
-			$("#agree").click(function () {
+        $(document).ready(function () {
+            $("#agree").click(function () {
                 var pic = $("#pic").val();
-				if (pic==""||pic==null){
-				    jp.error("请上传收据");
-				    return;
-				}
+                if (pic == "" || pic == null) {
+                    jp.error("请上传收据");
+                    return;
+                }
                 var currentFileValues = $("input[name='pic']").val();
                 jp.prompt("审核通过", function (message) {
                     jp.post("${ctx}/act/task/policyPay1Task",
@@ -23,47 +24,48 @@
                             "taskDefKey": "${construction.act.taskDefKey}",
                             "procInsId": "${construction.act.procInsId}",
                             "procDefId": "${construction.act.procDefId}",
-							"pic":currentFileValues,
+                            "pic": currentFileValues,
                             "flag": "yes",
                             "comment": window.encodeURI(message)
                         },
                         function (data) {
-                            if(data.success){
+                            if (data.success) {
                                 jp.success(data.msg);
                                 jp.go("${ctx}/act/task/todo")
                             }
                         })
                 })
-			});
-			$("#no").click(function () {
+            });
+            $("#no").click(function () {
                 $("#agree").click(function () {
                     var pic = $("#pic").val();
-                    if (pic==""||pic==null){
+                    if (pic == "" || pic == null) {
                         jp.error("请上传收据");
                         return;
                     }
                     var currentFileValues = $("input[name='pic']").val();
-				jp.prompt("结束", function (message) {
-					jp.post("${ctx}/act/task/policyPay1Task",
-							{
-								"taskId": "${construction.act.taskId}",
-								"taskName": "${construction.act.taskName}",
-								"taskDefKey": "${construction.act.taskDefKey}",
-								"procInsId": "${construction.act.procInsId}",
-								"procDefId": "${construction.act.procDefId}",
-                                "pic":currentFileValues,
-								"flag": "no",
-								"comment": window.encodeURI(message)
-							},
-							function (data) {
-								if(data.success){
-									jp.success(data.msg);
-									jp.go("${ctx}/act/task/todo")
-								}
-							})
-				})
-			});
-		})
+                    jp.prompt("结束", function (message) {
+                        jp.post("${ctx}/act/task/policyPay1Task",
+                            {
+                                "taskId": "${construction.act.taskId}",
+                                "taskName": "${construction.act.taskName}",
+                                "taskDefKey": "${construction.act.taskDefKey}",
+                                "procInsId": "${construction.act.procInsId}",
+                                "procDefId": "${construction.act.procDefId}",
+                                "pic": currentFileValues,
+                                "flag": "no",
+                                "comment": window.encodeURI(message)
+                            },
+                            function (data) {
+                                if (data.success) {
+                                    jp.success(data.msg);
+                                    jp.go("${ctx}/act/task/todo")
+                                }
+                            })
+                    })
+                });
+            })
+        })
 	</script>
 </head>
 <body>
@@ -76,9 +78,13 @@
 						<a class="panelButton"  href="#"  onclick="history.go(-1)"><i class="ti-angle-left"></i> 返回</a>
 					</h3>
 				</div>
+				<div style="margin: 0px 25px 0px 25px">
+					<table id="testPicTable"   data-toolbar="#toolbar"></table>
+				</div>
 				<div class="panel-body">
 					<form:form id="inputForm" modelAttribute="construction" action="${ctx}/managementcenter/divide/save" method="post" class="form-horizontal">
 					<form:hidden path="id"/>
+						<input type="hidden" id="procInsId" name="procInsId" value="${construction.act.procInsId}"/>
 						<table class="table table-bordered">
 							<tbody>
 							<tr>

+ 5 - 0
src/main/webapp/webpage/modules/sg/managementcenter/activiti/receiptForm.jsp

@@ -6,6 +6,7 @@
 	<meta name="decorator" content="ani"/>
 	<!-- SUMMERNOTE -->
 	<%@include file="/webpage/include/summernote.jsp" %>
+	<%@include file="sealForm.js"%>
 	<script type="text/javascript">
 		$(document).ready(function () {
 			$("#agree").click(function () {
@@ -69,9 +70,13 @@
 						<a class="panelButton"  href="#"  onclick="history.go(-1)"><i class="ti-angle-left"></i> 返回</a>
 					</h3>
 				</div>
+				<div style="margin: 0px 25px 0px 25px">
+					<table id="testPicTable"   data-toolbar="#toolbar"></table>
+				</div>
 				<div class="panel-body">
 					<form:form id="inputForm" modelAttribute="construction" action="${ctx}/managementcenter/divide/save" method="post" class="form-horizontal">
 					<form:hidden path="id"/>
+						<input type="hidden" id="procInsId" name="procInsId" value="${construction.act.procInsId}"/>
 						<table class="table table-bordered">
 							<tbody>
 							<tr>

+ 5 - 0
src/main/webapp/webpage/modules/sg/managementcenter/activiti/singleForm.jsp

@@ -6,6 +6,7 @@
 	<meta name="decorator" content="ani"/>
 	<!-- SUMMERNOTE -->
 	<%@include file="/webpage/include/summernote.jsp" %>
+	<%@include file="sealForm.js"%>
 	<script type="text/javascript">
 		$(document).ready(function () {
 			$("#agree").click(function () {
@@ -69,9 +70,13 @@
 						<a class="panelButton"  href="#"  onclick="history.go(-1)"><i class="ti-angle-left"></i> 返回</a>
 					</h3>
 				</div>
+				<div style="margin: 0px 25px 0px 25px">
+					<table id="testPicTable"   data-toolbar="#toolbar"></table>
+				</div>
 				<div class="panel-body">
 					<form:form id="inputForm" modelAttribute="construction" action="${ctx}/managementcenter/divide/save" method="post" class="form-horizontal">
 					<form:hidden path="id"/>
+						<input type="hidden" id="procInsId" name="procInsId" value="${construction.act.procInsId}"/>
 						<table class="table table-bordered">
 							<tbody>
 							<tr>