123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430 |
- <%@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>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>一审-审核页面</title>
- <%@include file="../../../../include.jsp" %>
- <!--引用资源文件,JS CSS-->
- <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/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>
- <script type="text/javascript" src="<%=path%>/scripts/business/he/common/common.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/Request.js"></script>
- <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/tree/ztree/ztree.js"></script>
-
-
- <link href="<%=path%>/scripts/qui/libs/js/tree/ztree/ztree.css" rel="stylesheet" type="text/css" />
-
- <script type="text/javascript" src="<%=path%>/scripts/business/em/response/team/TeamDemandAuditCheck.js"></script>
- <script type="text/javascript">
- var fd_id = "<%=request.getParameter("fd_id")%>";
- var is_audit = "<%=request.getParameter("is_audit")%>"; // 0是审核 1是调拨
- var isWaitDo = "<%=request.getParameter("isWaitDo")%>"; //等于1说明是从代办页面进来的
-
- //取得用户真实名字
- var realName = top.com.sinosoft.lz.system.user.LoginInfo.getReal_name();
- var realName_ID = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id();
- //部门id
- var deptId = top.com.sinosoft.lz.system.user.LoginInfo.getDeptids();
- //部门名称
- var deptName = top.com.sinosoft.lz.system.user.LoginInfo.getDeptnames();
- //父部门id
- var parentId = top.com.sinosoft.lz.system.user.LoginInfo.getParent_ids();
- var CorpArea = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
- //页面初始化
- $(function(){
- $("#BUSINESS_ID_378").val(fd_id);
- $("#is_audit").val(is_audit);
- //审核表单
- //$("#PERSON_ID_378").initDeptPersonSelect(parentId); //下一节点处理人
- /* $("#selectBtn").bind("click",function(){
- var ifmHeight = $(top.document.body).find("#frmright").height();
- //父部门id
- var parentId = top.com.sinosoft.lz.system.user.LoginInfo.getParent_ids();
- top.Dialog.open({URL:'/nwyj/page/business/em/alert/warning/WarningaddUnit.jsp?ifmHeight='+ifmHeight+'&parentId='+parentId,Title:'组织人员',Width:400,Height:300});
- }) */
- //修改表单
- if(fd_id != null && fd_id != ''){
- if(is_audit == 0){
- $("#titleShow").text("审核应急队伍需求");
- /***
- 单位部门树形结构
- */
- // var deptUrl = $.pathname() + '/ws/dept/DeptService/getDepartTree';
- /* $.post(deptUrl,{id:CorpArea,name:''},function(data){
- $("#SUPPORT_UNIT_ID_391").data("data",data);
- $("#SUPPORT_UNIT_ID_391").render();
- }, "json"); */
- /* var deptUrl = $.pathname() + '/ws/dept/DeptService/getCompanyTree';
- $.post(deptUrl,{id:CorpArea,name:''},function(data){
- //调拨单位
- $("#RANGE_UNITS_ID_391").data("data",data);
- $("#RANGE_UNITS_ID_391").render();
- }, "json"); */
- var url = $.pathname() + '/ws/crud/CRUDService/getDataById/';
- var params = {
- classid : '391',
- objectID : fd_id
- };
- $.request.query(url,params,function(data){
- $('#editForm').ajaxWrite({data:data});
- $("#STATE_391").val('133');//审核133
- //$("#SUPPORT_UNIT_ID_391").attr('selectedValue',data.SUPPORT_UNIT_ID_391);
- $("#SUPPORT_UNIT_ID_391").val(data.SUPPORT_UNIT_ID_391);
- getUnitInfo();//获取申请单位联系人和备选人的下拉框值
- //$("#SUPPORT_UNIT_ID_391").render();
- $('#editForm input[name="classid"]').val('391');
- $("#FD_OBJECTID391").val(data.FD_OBJECTID391);
- /* $("#ENTRY_UNIT_ATTN_391").attr("selectedValue",data.ENTRY_UNIT_ATTN_391);//申请单位联系人 */
- var linkManID = data.ENTRY_UNIT_ATTN_391;
- $.ajax({//通过申请单位联系人ID查联系人NAME
- url : $.pathname() + '/ws/TeamNeed/TeamNeedService/getUserNameByUserId',
- data : {USER_ID : linkManID},
- type : 'post',
- async : false,
- timeout : 1500,
- dataType : 'text',
- success : function(result){
- $("#ENTRY_UNIT_ATTN_391_show").val(result);//申请单位联系人
- },error:function(e){
- top.Dialog.alert("系统错误");
- return;
- }
- });
- // alert(data.ENTRY_ALTERNATIVE_391)
- $("#ENTRY_ALTERNATIVE_391").attr("selectedValue",data.ENTRY_ALTERNATIVE_391);//备选人
- // $("#TYPEIN_PEOPLE").html(data.FORM_NAME_391);//《录入人信息》--录入人
- var buMen = '';
- var danWei = '';
- var userId = data.USER_ID_391;//录入人ID
- $.ajax({//通过填报人ID查询填报人NAME,填报人电话,填报部门ID,填报单位ID
- url : $.pathname() + '/ws/TeamNeed/TeamNeedService/getUserMsgByUserId',
- data : {USER_ID : userId},
- type : 'post',
- async : false,
- timeout : 1500,
- dataType : 'json',
- success : function(data){
- $("#TYPEIN_PEOPLE").html(data.list[0].REAL_NAME);//《录入人信息》--录入人
- if(data.list[0].MOBILE == "null"){
- $("#TYPEIN_PEOPLE_PHONE_NUM").html("暂无联系方式");//《录入人信息》--录入人电话
- }else{
- $("#TYPEIN_PEOPLE_PHONE_NUM").html(data.list[0].MOBILE);//《录入人信息》--录入人电话
- }
- buMen = data.list[0].ORG_ID;
- danWei = data.list[0].COMPANY_ID;
- },error:function(e){
- top.Dialog.alert("系统错误");
- return;
- }
- });
- // var buMen = $("#bumen").val();
- // var danWei = $("#danwei").val();
- $.ajax({//通过填报部门ID,填报单位ID查询填报部门NAME,填报单位NAME
- url : $.pathname() + '/ws/TeamNeed/TeamNeedService/getDeptNameByDeptId',
- data : {DEPT_ID : buMen, CORP_ID : danWei},
- type : 'post',
- async : false,
- timeout : 1500,
- dataType : 'json',
- success : function(data){
- $("#DEPT").html(data.list[0].DEPT_NAME);//《录入人信息》--录入人部门
- $("#UNITE").html(data.list[1].CORP_NAME);//《录入人信息》--录入人单位
- },error:function(e){
- top.Dialog.alert("系统错误");
- return;
- }
- });
-
- var isSeen = data.IS_SEEN_391.split(",")[0];
- if(isSeen == realName_ID){
-
- $.ajax({////修改装备需求表的IS_SEEN字段为【下一处理人ID,1,处理人】
- url : $.pathname() + '/ws/sendsms/SendSmsService/updateIs_Seen_1',
- data : { tableName : "ECM_EM_TEAM_WRR" ,
- fdId : fd_id ,
- nextPeopId : realName_ID ,
- userId : data.IS_SEEN_391.split(",")[2]
- },
- type : 'post',
- dataType : 'json',
- //async:false,
- success : function (data){
-
- },error : function(e){
- top.Dialog.alert("系统提示信息!");
- }
- });
-
- }
-
- });
-
- }else{
- }
- }
- //选择申请单位联系人,带出联系人电话
- /* $("#ENTRY_UNIT_ATTN_391").bind("listSelect",function(e,obj){//申请单位联系人的自动提示框绑定事件,选择完后,自动带入电话
- // $("#ENTRY_UNIT_ATTN_391").bind("change",function(){//申请单位联系人的下拉框绑定事件,选择完后,自动带入电话
- var userId = $("#ENTRY_UNIT_ATTN_391").val();
- if(userId!=''){
- $.ajax({
- url : $.pathname() + '/ws/TeamNeed/TeamNeedService/getPhoneNoByUserId',
- type : 'post',
- //async : false,
- timeout : 15000,
- data:userId,
- dataType : 'json',
- success : function(result){
- //alert(result)
- $("#ENTRY_UNIT_ATTN_TEL_391").val(result);
- },
- error : function(e){
- top.Dialog.alert("系统错误!");
- }
- });
- }else{
- $("#ENTRY_UNIT_ATTN_TEL_391").val("");
- };
- }); */
- $("#ENTRY_ALTERNATIVE_391").bind("listSelect",function(e,obj){//备选人的自动提示框绑定事件,选择完后,自动带入电话
- // $("#ENTRY_ALTERNATIVE_391").bind("change",function(){//备选人的绑定事件,选择完后,自动带入电话
- // var userId = $(this).val();
- var userId = $("#ENTRY_ALTERNATIVE_391").attr("relValue");
- // alert(userId);
- if(userId!=''){
- $.ajax({
- url : $.pathname() + '/ws/TeamNeed/TeamNeedService/getPhoneNoByUserId',
- type : 'post',
- //async : false,
- timeout : 15000,
- data:userId,
- dataType : 'json',
- success : function(result){
- //alert(result)
- $("#ENTRY_ALTERNATIVE_TEL_391").val(result);
- },
- error : function(e){
- top.Dialog.alert("系统错误!");
- }
- });
- }else{
- $("#ENTRY_ALTERNATIVE_TEL_391").val("");
- };
- });
- });
-
- function getUnitInfo(){//获取申请单位联系人和备选人的下拉框值
- var unitId = $("#SUPPORT_UNIT_ID_391").val();//需求单位ID
- if(unitId!=''){
- $.ajax({
- url : $.pathname() + '/ws/TeamNeed/TeamNeedService/getPeopleByUnitId',
- type : 'post',
- //async : false,
- timeout : 15000,
- data:unitId,
- dataType : 'json',
- success : function(result){
- if(result=='' || result==null){
- top.Dialog.alert("该单位没有对应的人员!");
- return;
- }else{
- /* $("#ENTRY_UNIT_ATTN_391").data("data",result);
- $("#ENTRY_UNIT_ATTN_391").render(); */
- $("#ENTRY_ALTERNATIVE_391").data("data",result);
- $("#ENTRY_ALTERNATIVE_391").render();
- }
- },
- error : function(e){
- top.Dialog.alert("系统错误");
- }
- });
- };
-
-
- }
- </script>
- <style type="text/css">
- .class_color{
- background-color: rgb(237, 239, 253);
- }
- </style>
- </head>
- <body style="width: 1000px; margin:0 auto; margin-top:15px" align="center">
- <div class="box1" id="formContent" style="border: 1px solid #E4E4E4;background: #F8F8F8;">
- <div style="height: 50px;background: #F8F8F8;" align="center">
- <a href="javascript:;"><img id="back" align="left" alt="返回" title="返回" src="/nwyj/images/temp/back.png" /></a>
- <font style="font-weight: bold;font-size: 20px;line-height: 45px;" id=""></font>
- </div>
- <br />
- <div align="center"><font style="font-weight: bold;font-size: 30px;line-height: 45px;" color="red" id="titleShow" ></font></div>
- <br />
- <div style="float:right">
- <input type="button" id="pass00" value="同意"/> <input type="button" id="rock00" value="退回"/>
- </div>
- <br />
- <form method="post" id="editForm">
- <input type="hidden" id="is_audit"/>
- <input name="classid" value="391" type="hidden"/>
- <input type="hidden" name="FD_OBJECTID391" id="FD_OBJECTID391" value=""/>
- <input id="FORM_SECTOR_391" name="FORM_SECTOR_391" type="hidden"/>
- <input id="FORM_NAME_391" name="FORM_NAME_391" type="hidden"/>
- <input id="FORM_TIME_391" name="FORM_TIME_391" type="hidden"/>
- <input id="REPORTED_STATE_391" name="REPORTED_STATE_391" value="135" type="hidden"/>
- <input id="AUDIT_STATE_391" name="AUDIT_STATE_391" value="0" type="hidden"/>
- <input id="TROOPS_391" name="TROOPS_391" type="hidden"/>
- <input id="DB_TYPE" name="DB_TYPE" value="1" type="hidden"/>
- <fieldset style="border-color:#999999;" id="fileTable" >
- <legend>基本信息:</legend>
- <table class="tableStyle" width="100%">
- <tr>
- <td width="15%" align="right" class="class_color"><span class="star">*</span>需求名称:</td>
- <td width="85%" colspan="3">
- <input type="text" style="width: 97%;" class="validate[required]" name="TASK_NAME_391" id="TASK_NAME_391" readonly="readonly"/>
- </td>
- </tr>
- <tr style="display: none;">
- <td width="15%" align="right" class="class_color">需求单位:</td>
- <td width="85%" colspan="3">
- <input id="SUPPORT_UNIT_ID_391" name="SUPPORT_UNIT_ID_391" />
- <!-- <div class="selectTree validate[required]" id="SUPPORT_UNIT_ID_391" name="SUPPORT_UNIT_ID_391" selWidth="994"></div>
- <div class="selectTree validate[required]" id="SUPPORT_UNIT_ID_391" name="SUPPORT_UNIT_ID_391" selWidth="999"></div> -->
- </td>
- </tr>
- <tr>
- <td width="15%" align="right" class="class_color"><span class="star">*</span>申请单位:</td>
- <td width="85%" colspan="3">
- <!-- <div class="selectTree validate[required]" id="SUPPORT_UNIT_ID_391" name="SUPPORT_UNIT_ID_391" selWidth="994"></div> -->
- <input readonly="readonly" style="width: 97%" type="text" id="SUPPORT_UNIT_ID_391_SHOW" name="SUPPORT_UNIT_ID_391_SHOW" />
- </td>
- </tr>
- <tr>
- <td width="15%" align="right" class="class_color"><span class="star">*</span>需要到达时间:</td>
- <td width="85%" colspan="3"><input style="width: 97%" type="text" id="ARRIVE_TIME_391" name="ARRIVE_TIME_391" class="date validate[required,length[0,50]]" dateFmt="yyyy-MM-dd HH:mm:ss" readonly="readonly"/></td>
- </tr>
- <tr>
- <td width="15%" align="right" class="class_color"><span class="star">*</span>申请单位联系人:</td>
- <td width="30%">
- <input id="ENTRY_UNIT_ATTN_391_show" type="text" readonly="readonly" style="width:71%"/>
- <!-- <input id="ENTRY_UNIT_ATTN_391" name="ENTRY_UNIT_ATTN_391" type="hidden"/> -->
- <!-- <div class="suggestion" id="ENTRY_UNIT_ATTN_391" name="ENTRY_UNIT_ATTN_391" keepDefaultStyle="true" showList="true"></div> -->
- </td>
- <!-- <td width="30%"><input type="text" style="width: 97%;" class="validate[custom[chinese],required]" maxLength="15" name="ENTRY_UNIT_ATTN_391" id="ENTRY_UNIT_ATTN_391" class="validate[required]"/></td> -->
- <td width="20%" align="right" class="class_color"><span class="star">*</span>申请单位联系人电话:</td>
- <td width="35%"><input type="text" style="width: 92%;" class="validate[required,custom[mobilephone],custom[onlyNumber]]" maxLength="11" name="ENTRY_UNIT_ATTN_TEL_391" id="ENTRY_UNIT_ATTN_TEL_391" class="validate[required]"/></td>
- </tr>
- <tr>
- <td width="15%" align="right" class="class_color">备选人:</td>
- <td width="30%"><div class="suggestion" id="ENTRY_ALTERNATIVE_391" name="ENTRY_ALTERNATIVE_391" keepDefaultStyle="true" showList="true"></div>
- <!-- <select prompt="请选择" name="ENTRY_ALTERNATIVE_391" id="ENTRY_ALTERNATIVE_391" selwidth="230"></select> -->
- </td>
- <td width="20%" align="right" class="class_color">备选人电话:</td>
- <td width="35%"><input type="text" style="width: 92%;" class="validate[custom[mobilephone],custom[onlyNumber]]" maxLength="11" name="ENTRY_ALTERNATIVE_TEL_391" id="ENTRY_ALTERNATIVE_TEL_391" class="validate[required]"/></td>
- </tr>
- <tr>
- <td width="15%" align="right" class="class_color">受灾情况:</td>
- <td width="85%" colspan="3" ><textarea class="validate[required,length[0,1000]]" style="width: 97%;height: 90px;" name="CONDITION_391" id="CONDITION_391"></textarea></td>
- </tr>
- <tr>
- <td width="15%" align="right" class="class_color">抢修任务:</td>
- <td width="85%" colspan="3"><textarea class="validate[required,length[0,1000]]" style="width: 97%;height: 90px;" name="REPAIR_TASK_391" id="REPAIR_TASK_391"></textarea></td>
- </tr>
- <tr>
- <td width="15%" align="right" class="class_color">地质地貌:</td>
- <td width="85%" colspan="3"><textarea class="validate[required,length[0,1000]]" style="width: 97%;height: 90px;" name="GEOLOGY_PHYSIOGNOMY_391" id="GEOLOGY_PHYSIOGNOMY_391"></textarea></td>
- </tr>
- <tr>
- <td width="15%" align="right" class="class_color">气候状况:</td>
- <td width="85%" colspan="3"><textarea class="validate[required,length[0,1000]]" style="width: 97%;height: 90px;" name="WEATHER_CASE_391" id="WEATHER_CASE_391"></textarea></td>
- </tr>
- <tr>
- <td width="15%" align="right" class="class_color">住宿装备:</td>
- <td width="85%" colspan="3"><textarea class="validate[required,length[0,1000]]" style="width: 97%;height: 90px;" name="STAY_GEAR_391" id="STAY_GEAR_391"></textarea></td>
- </tr>
- <tr>
- <td width="15%" align="right" class="class_color">施工机具:</td>
- <td width="85%" colspan="3"><textarea class="validate[required,length[0,1000]]" style="width: 97%;height: 90px;" name="EXECUTION_IMPLEMENT_391" id="EXECUTION_IMPLEMENT_391"></textarea></td>
- </tr>
- <tr>
- <td width="15%" align="right" class="class_color">需求描述:</td>
- <td width="85%" colspan="3"><textarea style="width: 97%;height: 180px;" id="REQUIREMENT_DESCRIPTION_391" name="REQUIREMENT_DESCRIPTION_391"></textarea></td>
- </tr>
- </table>
- </fieldset>
- </form>
- <fieldset style="border-color:#999999;" id="fileTable" >
- <legend>队伍信息:</legend>
- <div class="padding_right5">
- <div id="maingrid"></div>
- </div>
- </fieldset>
- <form id="editForm1">
- <input type="hidden" name="classid" value="378"/>
- <input type="hidden" id="is_pass" value="0"/>
- <input type="hidden" name="PERSON_ID_378" id="PERSON_ID_378"/>
- <input type="hidden" name="BUSINESS_ID_378" id="BUSINESS_ID_378" />
- <input type="hidden" name="STATUES_378" id="STATUES_378" value="2" />
- <input type="hidden" name="DISPOSE_378" id="DISPOSE_378" value="0" />
-
- <input type="hidden" name="PERSON_NAME_378" id="PERSON_NAME_378"/>
- <input type="hidden" name="EXPLAIN_378" id="EXPLAIN_378"/>
- <input id="STATE_391" name="STATE_391" type="hidden"/>
-
- <!-- <fieldset style="border-color:#999999;" id="fileTable" >
- <legend>处理人信息:</legend>
- <input id="STATE_391" name="STATE_391" type="hidden"/>
- <table class="tableStyle" width="85%" align="center">
- <tr>
- <td colspan="2" align="center"><input type="button" id="pass" value="同意"/> <input type="button" id="rock" value="退回"/></td>
- </tr>
- <tr id="unitId" style="display: none;">
- <td align="right" width="30%"><label>调拨单位:</label></td>
- <td width="70%">
- <div class="selectTree" id="RANGE_UNITS_ID_391" name="RANGE_UNITS_ID_391" selWidth="745">
- <div class="lister" id="RANGE_UNITS_ID_391" name="RANGE_UNITS_ID_391"></div>
-
- </td>
- </tr>
- <tr id="person" class="person" style="display: none;">
- <td width="35%" align="right"><span class="star">*</span>下一节点处理人:</td>
- <td width="65%"><span id="span1"><input type="text" editable=false name="PERSON_NAME_378" id="PERSON_NAME_378" class="validate[required]"/></span> class="validate[required]"
- <input type="button" id="selectBtn" value="请选择"/></td>
- </tr>
- <tr id="remark" class="remark" style="display: none;">
- <td width="35%" align="right"><span class="star">*</span>退回说明:</td>
- <td width="65%"><textarea rows="" id="EXPLAIN_378" name="EXPLAIN_378" style="width: 97%;height: 44px;" class="validate[required]"></textarea></td>
- </tr>
-
- </table>
- <table id="companyNum" class="tableStyle" width="85%" align="center">
- </table>
- <table class="tableStyle" width="85%" align="center">
- <tr class="person remark" id="sub" style="display: none;">
- <td align="center"><input value="提交" type="button" id="save"/></td>
- </tr>
- </table>
- </fieldset> -->
- </form>
- <fieldset style="border-color:#999999;" >
- <legend>录入人信息:</legend>
- <table width="960px" class="tableStyle" align="center" id="fillForm">
- <tr>
- <td width="114px" align="right" class="class_color">单位:</td>
- <td width="280px"><div style="width:97%" name="" id="UNITE" /></td>
- <td width="114px" align="right" class="class_color">部门:</td>
- <td width="280px"><div name="" id="DEPT" /></td>
- </tr>
- <tr>
- <td width="114px" align="right" class="class_color">录入人:</td>
- <td width="280px"><div name="" id="TYPEIN_PEOPLE" /></td>
- <td width="114px" align="right" class="class_color">录入人联系方式:</td>
- <td width="280px"><div name="" id="TYPEIN_PEOPLE_PHONE_NUM" /></td>
- </tr>
- </table>
- </fieldset>
- </div>
- </body>
|