766b28eb2c6aef48d0166afd1a59001e022760c6.svn-base 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346
  1. <%@page contentType="text/html" pageEncoding="UTF-8"%>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <% String path = request.getContextPath(); %>
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7. <title></title>
  8. <!--框架必需start 扁平风格-->
  9. <link href="<%=path%>/scripts/qui/libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
  10. <link href="<%=path%>/scripts/qui/system/layout_flat/skin/style.css" rel="stylesheet" type="text/css" id="skin" skinPath="/nwyj/scripts/qui/" scrollerY="false" scrollerX="false"/>
  11. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/jquery.js"></script>
  12. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/language/cn.js"></script>
  13. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/framework.js"></script>
  14. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/main.js"></script>
  15. <!--框架必需end-->
  16. <!-- 模版js和css start-->
  17. <link href="/nwyj/scripts/qui/libs/skins/flatBlue/style.css"
  18. rel="stylesheet" type="text/css" id="theme" themeColor="flatBlue"
  19. positionTarget="positionContent" selInputHeight="32"
  20. selButtonWidth="35" defaultSelWidth="200" fileBtnWidth="60"
  21. defaultFileInputWidth="200" defaultGridHeaderHeight="34"
  22. defaultGridRowHeight="38" defaultFontSize="12" defaultPageSelWidth="55"
  23. defaultFilterItemHeight="32" dialogWidthFix="0"
  24. defaultSelItemHeight="32" defaultFontFamily="宋体" />
  25. <!-- 模版js和css end-->
  26. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/text/vticker.js"></script>
  27. <!--自动提示框start-->
  28. <script type='text/javascript' src='<%=path%>/scripts/qui/libs/js/form/suggestion.js'></script>
  29. <!--自动提示框end-->
  30. <!--数据表格start-->
  31. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/table/quiGrid.js" ></script>
  32. <!--数据表格end-->
  33. <!--表单提交start-->
  34. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/form/form.js"></script>
  35. <!--表单提交end-->
  36. <!--表单验证start-->
  37. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/form/validation.js"></script>
  38. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/form/validationRule.js"></script>
  39. <!--表单提交end-->
  40. <!-- 数字步进器start -->
  41. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/form/stepper.js"></script>
  42. <!-- 数字步进器end -->
  43. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/form/datePicker/WdatePicker.js"></script>
  44. <!--数据表格end-->
  45. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/thirdparty/highcharts/js/highcharts.js"></script>
  46. <!--弹窗组件start-->
  47. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/popup/messager.js"></script>
  48. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/popup/drag.js"></script>
  49. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/popup/dialog.js"></script>
  50. <!--弹窗组件end-->
  51. <!--布局组件start-->
  52. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/nav/layout.js"></script>
  53. <!--布局组件start-->
  54. <!--基本选项卡start-->
  55. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/nav/basicTab.js"></script>
  56. <!--基本选项卡end-->
  57. <!--动态选项卡start-->
  58. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/nav/dynamicTab.js"></script>
  59. <!--动态选项卡end-->
  60. <!--树组件start-->
  61. <link rel="stylesheet" type="text/css" href="<%=path%>/scripts/qui/libs/js/tree/ztree/ztree.css" />
  62. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/tree/ztree/ztree.js"></script>
  63. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/form/selectTree.js"></script>
  64. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/form/listerTree.js"></script>
  65. <!--树组件end-->
  66. <!--纵向抽屉容器start-->
  67. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/nav/accordion.js"></script>
  68. <!--纵向抽屉容器end-->
  69. <!-- 双向选择器start -->
  70. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/form/lister.js"></script>
  71. <!--双向选择器end-->
  72. <!--上传附件start-->
  73. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/form/upload/fileUpload.js"></script>
  74. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/form/upload/handlers.js"></script>
  75. <!-- 上传附件end -->
  76. <!--分隔条start-->
  77. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/nav/spliter.js"></script>
  78. <!--分隔条end-->
  79. <!--浮动面板start-->
  80. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/popup/floatPanel.js"></script>
  81. <!--浮动面板end-->
  82. <!-- 扩展工具js -->
  83. <script type="text/javascript" src="<%=path%>/scripts/jquery/plugins/jquery.extension.util.js"></script>
  84. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/Request.js"></script>
  85. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/common.js"></script>
  86. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/DateUtil.js"></script>
  87. <script type="text/javascript" src="<%=path%>/scripts/commom/common/common.js"></script>
  88. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/utils.js"></script>
  89. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/frameWork/frameWork.js"></script>
  90. <link href="<%=path%>/scripts/showLoading/showLoading.css" rel="stylesheet" type="text/css" />
  91. <script type="text/javascript" src="<%=path%>/scripts/showLoading/jquery.showLoading.js"></script>
  92. <script type="text/javascript" src="/nwyj/scripts/tongyongqui.js"></script>
  93. <script type="text/javascript">
  94. var fd_id = "<%=request.getParameter("fd_id")%>";
  95. var yishenEquip = "<%=request.getParameter("yishenEquip")%>";//3--装备调拨的审核页面进来
  96. var equip = "<%=request.getParameter("equip")%>";//装备退回是的路径里面用到
  97. var yishen = "<%=request.getParameter("yishen")%>";
  98. var ershen = "<%=request.getParameter("ershen")%>";//制定调拨令---二审
  99. var deptId = "<%=request.getParameter("deptId")%>";//报审页面获取的单位部门的id 审核页面获取的是父部门的id
  100. var deptName = top.com.sinosoft.lz.system.user.LoginInfo.getDeptnames();
  101. var parentId = top.com.sinosoft.lz.system.user.LoginInfo.getParent_ids();
  102. var isPass = "<%=request.getParameter("isPass")%>";//0代表同意 1代表退回 2代表报审
  103. var CorpArea = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
  104. var CorpName = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_names();
  105. //页面初始化
  106. $(function(){
  107. fd_id = "<%=request.getParameter("fd_id")%>";
  108. deptId = "<%=request.getParameter("deptId")%>";//报审页面获取的单位部门的id 审核页面获取的是父部门的id
  109. deptName = top.com.sinosoft.lz.system.user.LoginInfo.getDeptnames();
  110. parentId = top.com.sinosoft.lz.system.user.LoginInfo.getParent_ids();//父部门ID
  111. isPass = "<%=request.getParameter("isPass")%>";//0代表同意 1代表退回 2代表报审
  112. var parentName = '';//父部门NAME
  113. $.ajax({//select DEPT_NAME from SYS_DEPARTMENT where DEPT_ID=?(parentId)
  114. url : $.pathname() + '/ws/TeamNeed/TeamNeedService/getParentNameByParentId',
  115. type : 'post',
  116. async : false,
  117. timeout : 15000,
  118. data : {CORP_ID : CorpArea},
  119. dataType : 'text',
  120. success : function(data) {
  121. closeProgress();
  122. parentName = data;
  123. },
  124. error : function(e) {
  125. $.messager.alert('系统提示信息', '访问服务失败!', 'error');
  126. }
  127. });
  128. if(ershen==0){//制定调拨令
  129. $("#dealIdea").hide();
  130. $("#opinion").hide();
  131. $("#EXPLAIN_37800").attr("class","");
  132. isPass="应急办主任";
  133. getMsg(isPass,deptId);
  134. }
  135. $("#PERSON_ID").bind("change",function(){
  136. var isPass = $("#PERSON_ID").val();
  137. getMsg(isPass,deptId);
  138. });
  139. $("#yAgree").bind("click",function(){
  140. var isPass = "应急办主任";
  141. if(equip == 0){
  142. isPass=0;
  143. yishenEquip=3;
  144. deptId=CorpArea;
  145. }
  146. yesAgree();
  147. getMsg(isPass,deptId);
  148. });
  149. $("#nAgree").bind("click",function(){
  150. notAgree();
  151. });
  152. if(isPass==3){//二审 同意--------审核页面---显示上级单位应急办主任/副主任
  153. $("#roleUnitName").text(parentName);
  154. $("#PERSON_ID").setValue("应急办主任");//下一处理人角色,默认为应急办主任
  155. //var deptId = parentId;
  156. getMsg(isPass,deptId);
  157. $("#yAgree").attr('checked','checked');
  158. $("#opinion").hide();//退回说明隐藏
  159. $("#msgRemind").attr('checked',true);//默认短信提醒被勾选
  160. $("#EXPLAIN_37800").attr('class','');//去掉回退意见的非空验证
  161. }else if(isPass==0){//一审 同意--------审核页面----显示上级单位应急办成员
  162. yishen = 0;
  163. $("#nextRol_1_2").hide();//隐藏角色一行
  164. getMsg(isPass,deptId);
  165. $("#yAgree").attr('checked','checked');
  166. $("#opinion").hide();//退回说明隐藏
  167. $("#msgRemind").attr('checked',true);//默认短信提醒被勾选
  168. $("#EXPLAIN_37800").attr('class','');//去掉回退意见的非空验证
  169. }else if(isPass==1){//退回-------审核页面
  170. $("#nAgree").attr('checked','checked');
  171. $("#opinion").show();//退回说明显示
  172. $("#nextRol_1_2").hide();
  173. //$("#nextRol_3_4").hide();
  174. $("#warnWay").hide();
  175. $("#warnWayStyle").hide();
  176. $("#PERSON_ID").attr('class','');//去掉下一节点人的非空验证
  177. }else if(isPass==2){//报审页面(即:isPass=2)--------报审页面
  178. $("#EXPLAIN_37800").attr("class","");//退回说明的非空验证去掉
  179. $("#PERSON_ID").setValue("应急办主任");//下一处理人角色,默认为应急办主任
  180. $("#dealIdea").hide();//处理意见隐藏
  181. $("#opinion").hide();//退回说明隐藏
  182. $("#msgRemind").attr('checked',true);//默认短信提醒被勾选
  183. getMsg(isPass,deptId);
  184. $("#roleUnitName").text(CorpName);
  185. }
  186. });
  187. //获取下一节点人的选择信息显示在下方
  188. function getMsg(isPass,deptId){//绑定的onfocus鼠标事件
  189. var personId = $("#PERSON_ID").val();//下一节点的下拉框选中的值(空 应急总指挥 应急副总指挥 应急办主任 应急办副主任 应急办成员)
  190. if(isPass=="应急办主任"){
  191. personId=isPass;
  192. }
  193. if(isPass == 0 || yishen == 0){
  194. personId="应急办成员";
  195. $("#nextRol_1_2").hide();//隐藏角色一行
  196. $.ajax({
  197. url : $.pathname() + '/ws/nextRole/getNextRoleService/getParentCorpId',
  198. data : { CORP_ID : CorpArea},
  199. type : 'post',
  200. dataType : 'text',
  201. timeout : 15000,
  202. async : false,
  203. success : function(result){
  204. deptId = result;
  205. },error : function(e){
  206. $.messager.alert('系统提示信息', '访问服务失败!123', 'error');
  207. }
  208. });
  209. }
  210. if(personId == ''){
  211. $(".finalRole").remove();//删除追加的class为finalRole的input标签
  212. $(".a").remove();//删除追加的class为a的label标签
  213. $(".rolPhone").remove();//删除追加的class为rolPhone的标签
  214. //top.Dialog.alert("请选择正确的角色!");
  215. return;
  216. }
  217. $(".finalRole").remove();//删除追加的class为finalRole的input标签
  218. $(".a").remove();//删除追加的class为a的label标签
  219. $(".rolPhone").remove();//删除追加的class为rolPhone的标签
  220. //$("#roleMsg").test("");
  221. var showRol = '';//页面显示的人名
  222. var showRolId='';//人名对应的Id
  223. var showRolPhone='';//人名对应的电话
  224. var url = $.pathname() + '/ws/nextRole/getNextRoleService/getNextRole';
  225. var params = {
  226. role_name : personId,
  227. DEPT_ID : deptId
  228. };
  229. $.ajax({
  230. url : url,
  231. type : 'post',
  232. data : params,//要传的参数
  233. //async:false,
  234. dataType : 'json',
  235. success : function(data){ //data在后台已去重
  236. // alert(JSON.stringify(data))
  237. var resultData = JSON.stringify(data);
  238. if(resultData == "[{}]"){
  239. top.Dialog.alert("该角色下没有人员!");
  240. return;
  241. }
  242. for(var i=0;i<data.length;i++){
  243. if(i==data.length-1){
  244. showRol += data[i].REAL_NAME;
  245. showRolId+=data[i].FD_OBJECTID;
  246. showRolPhone+=data[i].MOBILE;
  247. }else{
  248. showRol += data[i].REAL_NAME+",";
  249. showRolId+=data[i].FD_OBJECTID+",";
  250. showRolPhone+=data[i].MOBILE + ",";
  251. }
  252. }
  253. showRol = showRol.split(",");
  254. showRolId=showRolId.split(",");
  255. showRolPhone=showRolPhone.split(",");
  256. var rolStr = "";
  257. for(var i=0;i<showRol.length;i++){
  258. //rolStr = "<input id='"+i+"' class='finalRole' name='PERSON_ID_378' type='radio' value='"+showRolId[i]+"' /><label for='"+i+"' class='hand'>"+showRol[i]+"</label>";
  259. rolStr = "<input id='"+i+"' class='finalRole' name='PERSON_ID_378' type='radio' value='"+showRolId[i]+"' /><label for='' class='a'>"+showRol[i]+"</label><input type='hidden' id='rolPhone' class='rolPhone' value='"+ showRolPhone[i] +"'>";
  260. $("#roleMsg").after(rolStr);
  261. }
  262. },
  263. error : function(e){
  264. //$.messager.alert('系统提示信息', '访问服务失败!', 'error');
  265. }
  266. });
  267. }
  268. function notAgree(){//点击退回
  269. $("#opinion").show();
  270. $("#nextRol_1_2").hide();
  271. //$("#nextRol_3_4").hide();
  272. $("#warnWay").hide();
  273. $("#warnWayStyle").hide();
  274. $("#msgRemind").attr('checked',false);
  275. $("#PERSON_ID").attr('class','');//去掉下一节点人的非空验证
  276. }
  277. function yesAgree(){//点击同意,意见的输入框为隐藏
  278. $("#PERSON_ID").setValue("应急办主任");
  279. $("#EXPLAIN_37800").val('');
  280. $("#opinion").hide();//退回说明隐藏
  281. $("#nextRol_1_2").show();
  282. $("#warnWay").show();
  283. $("#warnWayStyle").show();
  284. $("#msgRemind").attr('checked',true);
  285. $("#EXPLAIN_37800").attr('class','');//去掉回退意见的非空验证
  286. if(yishenEquip == 3){
  287. $("#nextRol_1_2").hide();//隐藏角色下拉框
  288. }
  289. }
  290. </script>
  291. <body>
  292. <form action="" id="ideaForm">
  293. <table width="100%" class="tableStyle">
  294. <tr id="dealIdea">
  295. <td width="25%" align="right">处理意见:</td>
  296. <td width="75%"><input type="radio" id="yAgree" class="aa" name="aa" value="同意" onfocus="yesAgree()"/><label for="yAgree" class="hand">同意</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  297. <input type="radio" id="nAgree" class="aa" name="aa" value="回退" onfocus="notAgree()"/><label for="nAgree" class="hand">退回</label>
  298. </td>
  299. </tr>
  300. <tr id="opinion">
  301. <td align="right"><span class="star">*</span>退回说明:</td>
  302. <td><textarea id="EXPLAIN_37800" name="EXPLAIN_378" class="validate[required]" rows="" cols="" selwidth="50" style="width: 95%;height: 120px;" maxNum="150"></textarea></td>
  303. </tr>
  304. <tr id="nextRol_1_2">
  305. <td align="right">下一处理人:</td>
  306. <td id=''><div style="display:inline;float:left" ><font id="roleUnitName"></font>&nbsp;&nbsp;&nbsp;&nbsp;</div>
  307. <!-- <div style="display:inline;float:left"><select name="allRole" class="" id="PERSON_ID" data='{"list":[{"key":"应急指挥中心总指挥","value":"应急总指挥"},{"key":"应急指挥中心副总指挥","value":"应急副总指挥"},{"key":"应急办主任","value":"应急办主任"},{"key":"应急办副主任","value":"应急办副主任"},{"key":"应急办成员","value":"应急办成员"}]}' selAlign="" style="width:200px; height:25px;" onchange="getMsg();" >&nbsp;&nbsp;&nbsp;&nbsp;</select></div> -->
  308. <div style="display:inline;float:left"><select name="allRole" class="" id="PERSON_ID" data='{"list":[{"key":"应急办主任","value":"应急办主任"},{"key":"应急办副主任","value":"应急办副主任"}]}' selAlign="" style="width:200px; height:25px;" >&nbsp;&nbsp;&nbsp;&nbsp;</select></div>
  309. </td>
  310. </tr>
  311. <tr id="warnWay">
  312. <td align="right"><span class="star">*</span>人员列表:</td>
  313. <td>
  314. <fieldset id="temp"><!-- style="background:#0099FF;" -->
  315. <span id="roleMsg" class="roleMsg"></span>
  316. </fieldset>
  317. </td>
  318. </tr>
  319. <tr id="warnWayStyle">
  320. <td align="right">提醒方式:</td>
  321. <td>
  322. <fieldset id="temp">
  323. <input type="checkbox" id="appRemind" name=""/><label>应急app提醒&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label><input type="checkbox" id="msgRemind" name=""/><label>短信提醒</label>
  324. </fieldset>
  325. </td>
  326. </tr>
  327. </table>
  328. </form>
  329. </body>
  330. </html>