123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346 |
- <%@page contentType="text/html" pageEncoding="UTF-8"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <% String path = request.getContextPath(); %>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title></title>
- <!--框架必需start 扁平风格-->
- <link href="<%=path%>/scripts/qui/libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
- <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"/>
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/jquery.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/language/cn.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/framework.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/main.js"></script>
- <!--框架必需end-->
- <!-- 模版js和css start-->
- <link href="/nwyj/scripts/qui/libs/skins/flatBlue/style.css"
- rel="stylesheet" type="text/css" id="theme" themeColor="flatBlue"
- positionTarget="positionContent" selInputHeight="32"
- selButtonWidth="35" defaultSelWidth="200" fileBtnWidth="60"
- defaultFileInputWidth="200" defaultGridHeaderHeight="34"
- defaultGridRowHeight="38" defaultFontSize="12" defaultPageSelWidth="55"
- defaultFilterItemHeight="32" dialogWidthFix="0"
- defaultSelItemHeight="32" defaultFontFamily="宋体" />
- <!-- 模版js和css end-->
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/text/vticker.js"></script>
- <!--自动提示框start-->
- <script type='text/javascript' src='<%=path%>/scripts/qui/libs/js/form/suggestion.js'></script>
- <!--自动提示框end-->
- <!--数据表格start-->
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/table/quiGrid.js" ></script>
- <!--数据表格end-->
- <!--表单提交start-->
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/form/form.js"></script>
- <!--表单提交end-->
- <!--表单验证start-->
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/form/validation.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/form/validationRule.js"></script>
- <!--表单提交end-->
- <!-- 数字步进器start -->
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/form/stepper.js"></script>
- <!-- 数字步进器end -->
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/form/datePicker/WdatePicker.js"></script>
- <!--数据表格end-->
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/thirdparty/highcharts/js/highcharts.js"></script>
- <!--弹窗组件start-->
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/popup/messager.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/popup/drag.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/popup/dialog.js"></script>
- <!--弹窗组件end-->
- <!--布局组件start-->
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/nav/layout.js"></script>
- <!--布局组件start-->
- <!--基本选项卡start-->
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/nav/basicTab.js"></script>
- <!--基本选项卡end-->
- <!--动态选项卡start-->
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/nav/dynamicTab.js"></script>
- <!--动态选项卡end-->
- <!--树组件start-->
- <link rel="stylesheet" type="text/css" href="<%=path%>/scripts/qui/libs/js/tree/ztree/ztree.css" />
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/tree/ztree/ztree.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/form/selectTree.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/form/listerTree.js"></script>
- <!--树组件end-->
- <!--纵向抽屉容器start-->
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/nav/accordion.js"></script>
- <!--纵向抽屉容器end-->
- <!-- 双向选择器start -->
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/form/lister.js"></script>
- <!--双向选择器end-->
- <!--上传附件start-->
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/form/upload/fileUpload.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/form/upload/handlers.js"></script>
- <!-- 上传附件end -->
- <!--分隔条start-->
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/nav/spliter.js"></script>
- <!--分隔条end-->
- <!--浮动面板start-->
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/popup/floatPanel.js"></script>
- <!--浮动面板end-->
- <!-- 扩展工具js -->
- <script type="text/javascript" src="<%=path%>/scripts/jquery/plugins/jquery.extension.util.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/Request.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/common.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/DateUtil.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/commom/common/common.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/utils.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/frameWork/frameWork.js"></script>
- <link href="<%=path%>/scripts/showLoading/showLoading.css" rel="stylesheet" type="text/css" />
- <script type="text/javascript" src="<%=path%>/scripts/showLoading/jquery.showLoading.js"></script>
- <script type="text/javascript" src="/nwyj/scripts/tongyongqui.js"></script>
- <script type="text/javascript">
- var fd_id = "<%=request.getParameter("fd_id")%>";
- var yishenEquip = "<%=request.getParameter("yishenEquip")%>";//3--装备调拨的审核页面进来
- var equip = "<%=request.getParameter("equip")%>";//装备退回是的路径里面用到
- var yishen = "<%=request.getParameter("yishen")%>";
- var ershen = "<%=request.getParameter("ershen")%>";//制定调拨令---二审
- var deptId = "<%=request.getParameter("deptId")%>";//报审页面获取的单位部门的id 审核页面获取的是父部门的id
- var deptName = top.com.sinosoft.lz.system.user.LoginInfo.getDeptnames();
- var parentId = top.com.sinosoft.lz.system.user.LoginInfo.getParent_ids();
- var isPass = "<%=request.getParameter("isPass")%>";//0代表同意 1代表退回 2代表报审
- var CorpArea = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
- var CorpName = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_names();
- //页面初始化
- $(function(){
- fd_id = "<%=request.getParameter("fd_id")%>";
- deptId = "<%=request.getParameter("deptId")%>";//报审页面获取的单位部门的id 审核页面获取的是父部门的id
- deptName = top.com.sinosoft.lz.system.user.LoginInfo.getDeptnames();
- parentId = top.com.sinosoft.lz.system.user.LoginInfo.getParent_ids();//父部门ID
- isPass = "<%=request.getParameter("isPass")%>";//0代表同意 1代表退回 2代表报审
- var parentName = '';//父部门NAME
- $.ajax({//select DEPT_NAME from SYS_DEPARTMENT where DEPT_ID=?(parentId)
- url : $.pathname() + '/ws/TeamNeed/TeamNeedService/getParentNameByParentId',
- type : 'post',
- async : false,
- timeout : 15000,
- data : {CORP_ID : CorpArea},
- dataType : 'text',
- success : function(data) {
- closeProgress();
- parentName = data;
- },
- error : function(e) {
- $.messager.alert('系统提示信息', '访问服务失败!', 'error');
- }
- });
-
- if(ershen==0){//制定调拨令
- $("#dealIdea").hide();
- $("#opinion").hide();
- $("#EXPLAIN_37800").attr("class","");
- isPass="应急办主任";
- getMsg(isPass,deptId);
- }
-
- $("#PERSON_ID").bind("change",function(){
- var isPass = $("#PERSON_ID").val();
- getMsg(isPass,deptId);
- });
- $("#yAgree").bind("click",function(){
- var isPass = "应急办主任";
- if(equip == 0){
- isPass=0;
- yishenEquip=3;
- deptId=CorpArea;
- }
- yesAgree();
- getMsg(isPass,deptId);
- });
- $("#nAgree").bind("click",function(){
- notAgree();
- });
-
- if(isPass==3){//二审 同意--------审核页面---显示上级单位应急办主任/副主任
- $("#roleUnitName").text(parentName);
-
- $("#PERSON_ID").setValue("应急办主任");//下一处理人角色,默认为应急办主任
- //var deptId = parentId;
- getMsg(isPass,deptId);
- $("#yAgree").attr('checked','checked');
- $("#opinion").hide();//退回说明隐藏
- $("#msgRemind").attr('checked',true);//默认短信提醒被勾选
- $("#EXPLAIN_37800").attr('class','');//去掉回退意见的非空验证
-
- }else if(isPass==0){//一审 同意--------审核页面----显示上级单位应急办成员
- yishen = 0;
- $("#nextRol_1_2").hide();//隐藏角色一行
- getMsg(isPass,deptId);
- $("#yAgree").attr('checked','checked');
- $("#opinion").hide();//退回说明隐藏
- $("#msgRemind").attr('checked',true);//默认短信提醒被勾选
- $("#EXPLAIN_37800").attr('class','');//去掉回退意见的非空验证
- }else if(isPass==1){//退回-------审核页面
- $("#nAgree").attr('checked','checked');
- $("#opinion").show();//退回说明显示
- $("#nextRol_1_2").hide();
- //$("#nextRol_3_4").hide();
- $("#warnWay").hide();
- $("#warnWayStyle").hide();
- $("#PERSON_ID").attr('class','');//去掉下一节点人的非空验证
- }else if(isPass==2){//报审页面(即:isPass=2)--------报审页面
- $("#EXPLAIN_37800").attr("class","");//退回说明的非空验证去掉
- $("#PERSON_ID").setValue("应急办主任");//下一处理人角色,默认为应急办主任
- $("#dealIdea").hide();//处理意见隐藏
- $("#opinion").hide();//退回说明隐藏
- $("#msgRemind").attr('checked',true);//默认短信提醒被勾选
- getMsg(isPass,deptId);
-
- $("#roleUnitName").text(CorpName);
- }
-
- });
- //获取下一节点人的选择信息显示在下方
- function getMsg(isPass,deptId){//绑定的onfocus鼠标事件
- var personId = $("#PERSON_ID").val();//下一节点的下拉框选中的值(空 应急总指挥 应急副总指挥 应急办主任 应急办副主任 应急办成员)
- if(isPass=="应急办主任"){
- personId=isPass;
- }
- if(isPass == 0 || yishen == 0){
- personId="应急办成员";
- $("#nextRol_1_2").hide();//隐藏角色一行
-
- $.ajax({
- url : $.pathname() + '/ws/nextRole/getNextRoleService/getParentCorpId',
- data : { CORP_ID : CorpArea},
- type : 'post',
- dataType : 'text',
- timeout : 15000,
- async : false,
- success : function(result){
- deptId = result;
- },error : function(e){
- $.messager.alert('系统提示信息', '访问服务失败!123', 'error');
- }
- });
- }
-
- if(personId == ''){
- $(".finalRole").remove();//删除追加的class为finalRole的input标签
- $(".a").remove();//删除追加的class为a的label标签
- $(".rolPhone").remove();//删除追加的class为rolPhone的标签
- //top.Dialog.alert("请选择正确的角色!");
- return;
- }
- $(".finalRole").remove();//删除追加的class为finalRole的input标签
- $(".a").remove();//删除追加的class为a的label标签
- $(".rolPhone").remove();//删除追加的class为rolPhone的标签
- //$("#roleMsg").test("");
- var showRol = '';//页面显示的人名
- var showRolId='';//人名对应的Id
- var showRolPhone='';//人名对应的电话
- var url = $.pathname() + '/ws/nextRole/getNextRoleService/getNextRole';
- var params = {
- role_name : personId,
- DEPT_ID : deptId
- };
-
- $.ajax({
- url : url,
- type : 'post',
- data : params,//要传的参数
- //async:false,
- dataType : 'json',
- success : function(data){ //data在后台已去重
- // alert(JSON.stringify(data))
- var resultData = JSON.stringify(data);
- if(resultData == "[{}]"){
- top.Dialog.alert("该角色下没有人员!");
- return;
- }
- for(var i=0;i<data.length;i++){
- if(i==data.length-1){
- showRol += data[i].REAL_NAME;
- showRolId+=data[i].FD_OBJECTID;
- showRolPhone+=data[i].MOBILE;
- }else{
- showRol += data[i].REAL_NAME+",";
- showRolId+=data[i].FD_OBJECTID+",";
- showRolPhone+=data[i].MOBILE + ",";
- }
- }
- showRol = showRol.split(",");
- showRolId=showRolId.split(",");
- showRolPhone=showRolPhone.split(",");
- var rolStr = "";
- for(var i=0;i<showRol.length;i++){
- //rolStr = "<input id='"+i+"' class='finalRole' name='PERSON_ID_378' type='radio' value='"+showRolId[i]+"' /><label for='"+i+"' class='hand'>"+showRol[i]+"</label>";
- 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] +"'>";
- $("#roleMsg").after(rolStr);
- }
- },
- error : function(e){
- //$.messager.alert('系统提示信息', '访问服务失败!', 'error');
- }
- });
- }
-
- function notAgree(){//点击退回
- $("#opinion").show();
- $("#nextRol_1_2").hide();
- //$("#nextRol_3_4").hide();
- $("#warnWay").hide();
- $("#warnWayStyle").hide();
- $("#msgRemind").attr('checked',false);
- $("#PERSON_ID").attr('class','');//去掉下一节点人的非空验证
- }
- function yesAgree(){//点击同意,意见的输入框为隐藏
- $("#PERSON_ID").setValue("应急办主任");
- $("#EXPLAIN_37800").val('');
- $("#opinion").hide();//退回说明隐藏
- $("#nextRol_1_2").show();
- $("#warnWay").show();
- $("#warnWayStyle").show();
- $("#msgRemind").attr('checked',true);
- $("#EXPLAIN_37800").attr('class','');//去掉回退意见的非空验证
- if(yishenEquip == 3){
- $("#nextRol_1_2").hide();//隐藏角色下拉框
- }
- }
- </script>
- <body>
- <form action="" id="ideaForm">
- <table width="100%" class="tableStyle">
- <tr id="dealIdea">
- <td width="25%" align="right">处理意见:</td>
- <td width="75%"><input type="radio" id="yAgree" class="aa" name="aa" value="同意" onfocus="yesAgree()"/><label for="yAgree" class="hand">同意</label>
- <input type="radio" id="nAgree" class="aa" name="aa" value="回退" onfocus="notAgree()"/><label for="nAgree" class="hand">退回</label>
- </td>
- </tr>
- <tr id="opinion">
- <td align="right"><span class="star">*</span>退回说明:</td>
- <td><textarea id="EXPLAIN_37800" name="EXPLAIN_378" class="validate[required]" rows="" cols="" selwidth="50" style="width: 95%;height: 120px;" maxNum="150"></textarea></td>
- </tr>
- <tr id="nextRol_1_2">
- <td align="right">下一处理人:</td>
- <td id=''><div style="display:inline;float:left" ><font id="roleUnitName"></font> </div>
- <!-- <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();" > </select></div> -->
- <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;" > </select></div>
- </td>
- </tr>
- <tr id="warnWay">
- <td align="right"><span class="star">*</span>人员列表:</td>
- <td>
- <fieldset id="temp"><!-- style="background:#0099FF;" -->
- <span id="roleMsg" class="roleMsg"></span>
- </fieldset>
- </td>
- </tr>
- <tr id="warnWayStyle">
- <td align="right">提醒方式:</td>
- <td>
- <fieldset id="temp">
- <input type="checkbox" id="appRemind" name=""/><label>应急app提醒 </label><input type="checkbox" id="msgRemind" name=""/><label>短信提醒</label>
- </fieldset>
- </td>
- </tr>
- </table>
- </form>
-
- </body>
- </html>
|