| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
- <c:if test="${in_process}">
- <style>
- .processButtons{
- position:fixed; bottom:0;width:100%;
- text-align: center;
- }
- </style>
- <script>
- $(document.body).css('padding-bottom','35px');
- </script>
- <div class="processButtons">
- <input type="submit" id ="btn_sub" value="" style="display: none;"/>
- <c:forEach items="${transitionList}" var="trans">
- <li style="list-style:none;"><button class="btn btn-default" style="width:80px; height:35px;border-radius:5px;background:#3275C6;border:0 none;margin-right:5px;color:white;" type="button" id="${trans.nextnode}"
- onclick="popWriteOption1('<t:mutiLang langKey="common.task.operate"/>',800,300,'${trans.Transition }','${taskId}',${nextCodeCount},'${trans.nextnode}','${trans.nextnodeName}')" >${trans.Transition }<tton>
- </c:forEach>
- </div>
- <%--
- update:主要用于制单人重填
- --%>
- <c:if test="${empty update}">
- <c:set var="update">
- <c:choose>
- <c:when test="${param.flag==1}">false</c:when><%--制单人重填不能修改--%>
- <c:otherwise>false</c:otherwise>
- </c:choose>
- </c:set>
- </c:if>
- <script type="text/javascript">
- var flag = '${param.flag}';
- var update = '${update}';
- var popArauments = {};
- $(function(){
- if(update=='false'){//非update disable input
- disableInput();
- $(document.body).bind('DOMNodeInserted',function(){
- disableInput()
- });
- }
- })
- function disableInput(){
- $('input,textarea,select').attr('disabled','disabled');
- $('div.datagrid-toolbar').hide();//隐藏详情页的增加按钮
- $('a.easyui-linkbutton').hide();//隐藏添加选择按钮
- $('a.easyui-linkbutton[hidden="false"]').show();
- }
- function callback(data){
- if(data.success){
- /*if(update=='true') {
- dealProcFlowNoOption(popArauments[0], popArauments[4], popArauments[6], popArauments[5], false);
- }else{
- }*/
- popWriteOption(popArauments[0],popArauments[1],popArauments[2],popArauments[3],popArauments[4],popArauments[5],popArauments[6]);
- setTimeout(function(){
- var loading = $(top.document).find('#infoTable-loading');
- loading.hide();
- loading.prev().show();//ajax请求后 会把弹窗隐藏,手动显示
- });
- }else{
- layer.alert(data.msg);
- }
- }
- function callbackTable(msg){//不能删,审批后关闭页面调用
- window.parent.callbackTable(msg);
- }
- function popWriteOption1(title,width,height,buttonTitle,taskId,nextNodeCount,nextNodeId){
- if(buttonTitle=='驳回'){//驳回不提交表单
- popWriteOption(title,width,height,buttonTitle,taskId,nextNodeCount,nextNodeId);
- }else {
- if(update=='true') {//有更新先提交表单
- popArauments = arguments;
- $("#btn_sub").click();
- // popWriteOption(title,width,height,buttonTitle,taskId,nextNodeCount,nextNodeId);
- // popWriteOption(popArauments[0],popArauments[1],popArauments[2],popArauments[3],popArauments[4],popArauments[5],popArauments[6]);
- }else{
- popWriteOption(title,width,height,buttonTitle,taskId,nextNodeCount,nextNodeId);
- }
- }
- }
- </script>
- </c:if>
|