| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166 | <!DOCTYPE html><html>  <head>    <title>湖北智慧水运</title>	    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">    <meta http-equiv="description" content="this is my page">    <meta http-equiv="content-type" content="text/html; charset=UTF-8">    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />    <link>    <link href="../css/base.min.css" rel="stylesheet">     <link rel="stylesheet" type="text/css" href="../css/mui.min.css">     <script type="text/javascript" src="../js/zepto.min.js"></script>     <script type="text/javascript">     var tempdata = parent.tempdata; 	 var wxuserid = parent.wxuserid;     function backs(){ 		parent.huanjietuihuiclose(); 	 }     $(function(){ 		$.ajax({ 	         type: 'post', 	         url: '../../wfcontroller/chooseuserwf.do', 	         data:{taskId:parent.taskId,wfid:parent.wfid,flag:"th"}, 	         dataType: 'json', 	         success: function(data){ 	        	console.log(data) 	        	for(var i=0;i<data.stepNodeList.length;i++){ 	        		 	        		var handlerNames = ""; 	        		var handlerIds = ""; 	        		for(var j=0;j<data.stepNodeList[i].handlerNames.length;j++){ 	        			handlerNames=data.stepNodeList[i].handlerNames[j]+"," 	        		} 	        		 for(var k=0;k<data.stepNodeList[i].handlerIds.length;k++){	        			 handlerIds+=data.stepNodeList[i].handlerIds[k]+","	     			  } 	        		handlerIds = handlerIds.substring(0, handlerIds.length-1)  	        		handlerNames = handlerNames.substring(0, handlerNames.length-1) 	        		var taskKey = data.stepNodeList[i].taskKey 	        		$("#content").append('<tr>'+									'<td width="100px">'+(i+1)+'</td>'+									'<td width="100px">'+data.stepNodeList[i].taskName+'</td>'+									'<td width="100px">'+handlerNames+'</td>'+									'<td width="100px"><a href="javascript:void" onclick="tuihui(\''+handlerIds+'\',\''+taskKey+'\')">退回</a></td>'+								'</tr>') 	        	} 	        	  	         }}) 	})     	function tuihui(handlerIds,taskKey){    	 var days = $("#dayss").val();    layer.open({    content: '确定退回吗?',    btn: ['取消', '确定'],    shadeClose: false,    yes: function(){    	layer.closeAll()    }, no: function(){    			if(days.replace(/\s+/g,"")!=""){			if(days <=0  || days!=parseInt(days)||days>10 ){				  layer.open({					    content: '请填写正确待办天数',					    style: 'background-color:rgba(0,0,0,0.5); color:white; border:none;font-size:20px;text-align:center',					    time: 1					});				  $("#dayss").val("");				  return;			}		}    		$.ajax({		         type: 'post',		         url: '../../'+parent.controller+'/'+parent.whmethd+'.do',		         data:{tempdata:tempdata,wxuserid:wxuserid,id:parent.idid,step:taskKey,yj:parent.yj,usersStr:handlerIds,days:days,uid:"402881e44e86c26d014e86c9ae8c0008"},		         dataType: 'json',		         success: function(data){		        	 console.log(data)		        	 if(data.resultCode==0){		        		 layer.open({		        			    shade:false,							    content: '退回成功',							    style: 'background-color:rgba(0,0,0,0.5); color:white; border:none;font-size:20px;text-align:center',							    time: 1							});		        		 setTimeout(function(){		        			 window.location.href=parent.iframurl;		        		 },1000);		        	 }else{		        		 layer.open({		        			 shade:false,							    content: '退回失败',							    style: 'background-color:rgba(0,0,0,0.5); color:white; border:none;font-size:20px;text-align:center',							    time: 1							});		        	 }		        //	if(data.resultCode=="0"){		        //		layer.open({		       //    		 shade:false,		      // 		   	 content: '退回成功',		       //		    style: 'background-color:black;font-size:20px;opacity:0.5; ;color:white; border:none;text-align:center;position: fixed;left:30%;bottom:50px',		      // 		    time: 1		       	//	});		        //   setTimeout(function(){		        //	   window.location.href="../dbfw.html";		        //	},1000)		      //  	}		        }})    }});     	}     </script>	<style type="text/css">		  .header {	width:100%;	height:45px;	line-height:45px;	padding:0;		color:#eee;	font-size:22px;	text-align:center;	color:white;    background: #2196f3;}.nav{position: fixed;}body,button,input,div{margin: 0px;padding: 0px}body{font-family: "Helvetica Neue",Helvetica,sans-serif;  font-size: 17px;}  .mui-h5, h5{font-size:17px}	</style>  </head>    <body>  		<header class="header">		<ul class="nav nav-list pull-left">			<li><a  href="javascript:void(0);" id="goback"  onclick="backs()" ><span class="icon icon-arrow-back icback"></span>			</a></li>		</ul>		<a class="" href="#">选择环节用户</a>	</header>	<div class="content" style="margin-top: 45px;">			<div class="content-inner">				<div class="container">					<div class="table-responsive">						<table class="table" title="Default Tabl">							<tbody id="content" style="text-align: center;">								<tr>									<td>序号</td>									<td>环节</td>									<td>办理人</td>									<td>操作</td>								</tr>							</tbody>						</table>						<h5 class="mui-content-padded"><label>限办天数</label><input type="text" id="dayss"   style="width: 60px;margin-left:10px ;" />   <span style="color: red;">可不填,最多可以设置10天</span></h5>					</div>				</div>			</div>			<div class="mui-button-row" style="">				<button class="mui-btn mui-btn-positive" onclick="backs()" type="button" style="width: 60%;background: #2196f3;border: 0px;" id="yijianclick">取消 </button>  			</div>		</div>  </body></html>
 |