f0a35348f6db01f4c1fbdd0d3f50088f03e93f21.svn-base 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363
  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. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title>调拨令审核</title>
  7. <%@include file="../../../../include.jsp" %>
  8. <!--引用资源文件,JS CSS-->
  9. <script type="text/javascript" src="<%=path%>/scripts/jquery/plugins/jquery.extension.util.js"></script>
  10. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/common.js"></script>
  11. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/utils.js"></script>
  12. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/frameWork/frameWork.js"></script>
  13. <script type="text/javascript" src="<%=path%>/scripts/business/he/common/common.js"></script>
  14. <script type="text/javascript" src="<%=path%>/scripts/freamwork/com/sinosoft/common/utils/Request.js"></script>
  15. <script type="text/javascript" src="<%=path%>/scripts/qui/libs/js/tree/ztree/ztree.js"></script>
  16. <script type="text/javascript" src = "/nwyj/scripts/business/am/org/maintenance/orgSel.js"></script>
  17. <link href="<%=path%>/scripts/qui/libs/js/tree/ztree/ztree.css" rel="stylesheet" type="text/css" />
  18. <script type="text/javascript" src="<%=path%>/scripts/business/em/response/team/TeamDemandAudit2.js"></script>
  19. <script type="text/javascript">
  20. var fd_id = "<%=request.getParameter("fd_id")%>";
  21. var is_audit = "<%=request.getParameter("is_audit")%>";
  22. var isWaitDo = "<%=request.getParameter("isWaitDo")%>"; //等于1说明是从代办页面进来的
  23. //取得用户真实名字
  24. var realName = top.com.sinosoft.lz.system.user.LoginInfo.getReal_name();
  25. //用户userId
  26. var realName_ID = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id();
  27. //部门id
  28. var deptId = top.com.sinosoft.lz.system.user.LoginInfo.getDeptids();
  29. //部门名称
  30. var deptName = top.com.sinosoft.lz.system.user.LoginInfo.getDeptnames();
  31. //父部门id
  32. var parentId = top.com.sinosoft.lz.system.user.LoginInfo.getParent_ids();
  33. var CorpArea = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
  34. var realMobile = top.com.sinosoft.lz.system.user.LoginInfo.getMobile();
  35. if(realMobile==null || realMobile=="null" || realMobile==""){
  36. realMobile = "暂无电话";
  37. }
  38. //页面初始化
  39. $(function(){
  40. $("#BUSINESS_ID_378").val(fd_id);
  41. $("#is_audit").val(is_audit);
  42. //审核表单
  43. //$("#PERSON_ID_378").initDeptPersonSelect(parentId); //下一节点处理人
  44. /* $("#selectBtn").bind("click",function(){
  45. var ifmHeight = $(top.document.body).find("#frmright").height();
  46. //父部门id
  47. var parentId = top.com.sinosoft.lz.system.user.LoginInfo.getParent_ids();
  48. top.Dialog.open({URL:'/nwyj/page/business/em/alert/warning/WarningaddUnit.jsp?ifmHeight='+ifmHeight+'&parentId='+parentId,Title:'组织人员',Width:400,Height:300});
  49. }) */
  50. if(fd_id != null && fd_id != ''){
  51. if(is_audit == 0){//审核页面
  52. }else{//调拨页面
  53. $("#titleShow").text("调拨应急队伍需求");
  54. var url = $.pathname() + '/ws/crud/CRUDService/getDataById/';
  55. var params = {
  56. classid : '391',
  57. objectID : fd_id
  58. };
  59. $.request.query(url,params,function(data){
  60. $("#FD_OBJECTID391").val(data.FD_OBJECTID391);
  61. $('#editForm input[name="classid"]').val('391');
  62. $("#TASK_NAME_391").html(data.TASK_NAME_391);
  63. $("#SUPPORT_UNIT_ID_391").html(data.SUPPORT_UNIT_ID_391_SHOW);
  64. $("#SUPPORT_UNIT_ID").val(data.SUPPORT_UNIT_ID_391);
  65. $("#ARRIVE_TIME_391").html(data.ARRIVE_TIME_391);
  66. $.ajax({
  67. url : $.pathname() + '/ws/TeamNeed/TeamNeedService/getPeopNameById',
  68. type : 'post',
  69. async : false,
  70. timeout : 15000,
  71. data:{ USER_ID : data.ENTRY_UNIT_ATTN_391},
  72. dataType : 'text',
  73. success : function(result){
  74. $("#ENTRY_UNIT_ATTN_391").html(result);//申请单位联系人
  75. },
  76. error : function(e){
  77. top.Dialog.alert("系统错误");
  78. }
  79. });
  80. $("#ENTRY_UNIT_ATTN_TEL_391").html(data.ENTRY_UNIT_ATTN_TEL_391);
  81. if(data.ENTRY_ALTERNATIVE_391 == ""){
  82. // $("#alternativeMan").hide();
  83. } else {
  84. $.ajax({
  85. url : $.pathname() + '/ws/TeamNeed/TeamNeedService/getPeopNameById',
  86. type : 'post',
  87. async : false,
  88. timeout : 15000,
  89. data:{ USER_ID : data.ENTRY_ALTERNATIVE_391},
  90. dataType : 'text',
  91. success : function(result){
  92. $("#ENTRY_ALTERNATIVE_391").html(result);//备选人
  93. },
  94. error : function(e){
  95. top.Dialog.alert("系统错误");
  96. }
  97. });
  98. }
  99. $("#ENTRY_ALTERNATIVE_TEL_391").html(data.ENTRY_ALTERNATIVE_TEL_391);
  100. $("#CONDITION_391").html(data.CONDITION_391);
  101. $("#REPAIR_TASK_391").html(data.REPAIR_TASK_391);
  102. $("#GEOLOGY_PHYSIOGNOMY_391").html(data.GEOLOGY_PHYSIOGNOMY_391);
  103. $("#WEATHER_CASE_391").html(data.WEATHER_CASE_391);
  104. $("#STAY_GEAR_391").html(data.STAY_GEAR_391);
  105. $("#EXECUTION_IMPLEMENT_391").html(data.EXECUTION_IMPLEMENT_391);
  106. $("#FORM_NAME_391").val(data.FORM_NAME_391);
  107. $("#USER_ID_391").val(data.USER_ID_391);
  108. $("#REQUIREMENT_DESCRIPTION_391").html(data.REQUIREMENT_DESCRIPTION_391);//需求描述
  109. var buMen = '';
  110. var danWei = '';
  111. var userId = data.USER_ID_391;//录入人ID
  112. $.ajax({//通过填报人ID查询填报人NAME,填报人电话,填报部门ID,填报单位ID
  113. url : $.pathname() + '/ws/TeamNeed/TeamNeedService/getUserMsgByUserId',
  114. data : {USER_ID : userId},
  115. type : 'post',
  116. async : false,
  117. timeout : 1500,
  118. dataType : 'json',
  119. success : function(data){
  120. $("#TYPEIN_PEOPLE").html(data.list[0].REAL_NAME);//《录入人信息》--录入人
  121. if(data.list[0].MOBILE == "null"){
  122. $("#TYPEIN_PEOPLE_PHONE_NUM").html("暂无联系方式");//《录入人信息》--录入人电话
  123. }else{
  124. $("#TYPEIN_PEOPLE_PHONE_NUM").html(data.list[0].MOBILE);//《录入人信息》--录入人电话
  125. }
  126. buMen = data.list[0].ORG_ID;
  127. danWei = data.list[0].COMPANY_ID;
  128. },error:function(e){
  129. top.Dialog.alert("系统错误");
  130. return;
  131. }
  132. });
  133. // var buMen = $("#bumen").val();
  134. // var danWei = $("#danwei").val();
  135. $.ajax({//通过填报部门ID,填报单位ID查询填报部门NAME,填报单位NAME
  136. url : $.pathname() + '/ws/TeamNeed/TeamNeedService/getDeptNameByDeptId',
  137. data : {DEPT_ID : buMen, CORP_ID : danWei},
  138. type : 'post',
  139. async : false,
  140. timeout : 1500,
  141. dataType : 'json',
  142. success : function(data){
  143. $("#DEPT").html(data.list[0].DEPT_NAME);//《录入人信息》--录入人部门
  144. $("#UNITE").html(data.list[1].CORP_NAME);//《录入人信息》--录入人单位
  145. },error:function(e){
  146. top.Dialog.alert("系统错误");
  147. return;
  148. }
  149. });
  150. /* var recipDept = $("#SUPPORT_UNIT_ID").val();
  151. var deptUrl = $.pathname() + '/ws/dept/DeptService/getCompanyTreeTeamAndEquip';
  152. $.post(deptUrl,{id : CorpArea , name : '' , deptId_self : recipDept},function(data){
  153. //调拨单位
  154. $("#RANGE_UNITS_ID_391").data("data",data);//调拨单位
  155. $("#RANGE_UNITS_ID_391").render();
  156. }, "json"); */
  157. $("#ALLOT_UNITS_MSG_391").val(data.ALLOT_UNITS_MSG_391);
  158. var unitsContent = data.UNITS_CONTENT_391;
  159. var n = unitsContent.split("|").length-1;
  160. for(var i=0;i<n;i++){
  161. var allotUnitsTr = "<tr><td width='20%' align='right' class='class_color'>调拨单位:</td>"+//调拨单位名称
  162. "<td width='80%' colspan='3'><div id='"+unitsContent.split("|")[i].split(";")[0]+"' class='recComp'>"+unitsContent.split("|")[i].split(";")[1].split("调拨描述")[0]+"</div></td></tr>"+
  163. "<tr><td width='20%' align='right' class='class_color'>调拨单位描述:</td>"+//调拨单位描述
  164. "<td width='80%' colspan='3'><div id=''>"+unitsContent.split("|")[i].split(";")[2]+"</div></td></tr>";
  165. $("#showAllotUnits").after(allotUnitsTr);
  166. }
  167. setHight();
  168. var isSeen = data.IS_SEEN_391.split(",")[0];
  169. if(isSeen == realName_ID){
  170. $.ajax({////修改装备需求表的IS_SEEN字段为【下一处理人ID,1,处理人】
  171. url : $.pathname() + '/ws/sendsms/SendSmsService/updateIs_Seen_1',
  172. data : { tableName : "ECM_EM_TEAM_WRR" ,
  173. fdId : fd_id ,
  174. nextPeopId : realName_ID ,
  175. userId : data.IS_SEEN_391.split(",")[2]
  176. },
  177. type : 'post',
  178. dataType : 'json',
  179. async:false,
  180. success : function (data){
  181. },error : function(e){
  182. top.Dialog.alert("系统提示信息!");
  183. }
  184. });
  185. }
  186. $(top.document.body).find('#frmright').height($(window.document.body).height()+30);
  187. setHight();
  188. });
  189. }
  190. }
  191. });
  192. </script>
  193. <style type="text/css">
  194. .class_color{
  195. background-color: rgb(237, 239, 253);
  196. }
  197. </style>
  198. </head>
  199. <body style="width: 1000px; margin:0 auto; margin-top:15px" align="center">
  200. <div class="box1" id="formContent" style="border: 1px solid #E4E4E4;background: #F8F8F8;">
  201. <div style="height: 50px;background: #F8F8F8;" align="center"><a href="javascript:;"><img id="back" align="left" title="返回" alt="返回" src="/nwyj/images/temp/back.png" /></a><font style="font-weight: bold;font-size: 20px;line-height: 45px;" id=""></font></div>
  202. <br />
  203. <div align="center"><font style="font-weight: bold;font-size: 30px;line-height: 45px;" color="red" id="titleShow" ></font></div>
  204. <br />
  205. <div style="float:right">
  206. <!-- <input type="button" id="save" value="提交"/> -->
  207. <input type="button" id="pass" value="同意"/>&nbsp;&nbsp;
  208. <input type="button" id="rock" value="退回"/>&nbsp;&nbsp;
  209. </div>
  210. <br />
  211. <form method="post" id="editForm">
  212. <input type="hidden" id="is_audit"/>
  213. <input name="classid" value="391" type="hidden"/>
  214. <input type="hidden" name="FD_OBJECTID391" id="FD_OBJECTID391" value=""/>
  215. <input id="FORM_SECTOR_391" name="FORM_SECTOR_391" type="hidden"/>
  216. <input id="FORM_NAME_391" name="FORM_NAME_391" type="hidden"/>
  217. <input id="USER_ID_391" name="USER_ID_391" type="hidden"/>
  218. <input id="FORM_TIME_391" name="FORM_TIME_391" type="hidden"/>
  219. <input id="REPORTED_STATE_391" name="REPORTED_STATE_391" value="135" type="hidden"/>
  220. <input id="AUDIT_STATE_391" name="AUDIT_STATE_391" value="0" type="hidden"/>
  221. <input id="TROOPS_391" name="TROOPS_391" type="hidden"/>
  222. <input id="DB_TYPE" name="DB_TYPE" value="1" type="hidden"/>
  223. <input id="SUPPORT_UNIT_ID" type="hidden"/>
  224. <input id="ALLOT_UNITS_MSG_391" name="ALLOT_UNITS_MSG_391" type="hidden"/>
  225. <fieldset style="border-color:#999999;" id="fileTable" >
  226. <legend>基本信息:</legend>
  227. <table class="tableStyle" width="100%">
  228. <tr><td width="20%" align="right" class="class_color">需求名称:</td>
  229. <td width="80%" colspan="3"><div id="TASK_NAME_391"></div></td></tr>
  230. <tr><td width="20%" align="right" class="class_color">申请单位:</td>
  231. <td width="80%" colspan="3"><div id="SUPPORT_UNIT_ID_391" selWidth="999" class=" validate[required]"></div></td></tr>
  232. <tr><td width="20%" align="right" class="class_color">需要到达时间:</td>
  233. <td width="80%" colspan="3"><div id="ARRIVE_TIME_391"></div></td></tr>
  234. <tr><td width="20%" align="right" class="class_color">申请单位联系人:</td>
  235. <td width="30%"><div id="ENTRY_UNIT_ATTN_391"></div></td>
  236. <td width="15%" align="right" class="class_color">申请单位联系人电话:</td>
  237. <td width="35%"><div id="ENTRY_UNIT_ATTN_TEL_391"></div></td></tr>
  238. <tr id="alternativeMan"><td width="20%" align="right" class="class_color">备选人:</td>
  239. <td width="30%"><div id="ENTRY_ALTERNATIVE_391"></div></td>
  240. <td width="15%" align="right" class="class_color">备选人电话:</td>
  241. <td width="35%"><div id="ENTRY_ALTERNATIVE_TEL_391"></div></td></tr>
  242. <tr><td width="20%" align="right" class="class_color">受灾情况:</td>
  243. <td width="80%" colspan="3"><div id="CONDITION_391"></div></td></tr>
  244. <tr><td width="20%" align="right" class="class_color">抢修任务:</td>
  245. <td width="80%" colspan="3"><div id="REPAIR_TASK_391"></div></td></tr>
  246. <tr><td width="20%" align="right" class="class_color">地质地貌:</td>
  247. <td width="80%" colspan="3"><div id="GEOLOGY_PHYSIOGNOMY_391"></div></td></tr>
  248. <tr><td width="20%" align="right" class="class_color">气候状况:</td>
  249. <td width="80%" colspan="3"><div id="WEATHER_CASE_391"></div></td></tr>
  250. <tr><td width="20%" align="right" class="class_color">住宿装备:</td>
  251. <td width="80%" colspan="3"><div id="STAY_GEAR_391"></div></td></tr>
  252. <tr><td width="20%" align="right" class="class_color">施工机具:</td>
  253. <td width="80%" colspan="3"><div id="EXECUTION_IMPLEMENT_391"></div></td></tr>
  254. <tr id="showAllotUnits"><td width="20%" align="right" class="class_color">需求描述:</td>
  255. <td width="80%" colspan="3"><div id="REQUIREMENT_DESCRIPTION_391"></div></td></tr>
  256. </table>
  257. </fieldset>
  258. </form>
  259. <fieldset style="border-color:#999999;" id="fileTable" >
  260. <legend>队伍信息:</legend>
  261. <div class="padding_right5">
  262. <div id="maingrid"></div>
  263. </div>
  264. </fieldset>
  265. <form id="editForm1">
  266. <input type="hidden" name="classid" value="378"/>
  267. <input type="hidden" id="is_pass" value="0"/>
  268. <input type="hidden" name="PERSON_ID_378" id="PERSON_ID_378"/>
  269. <input type="hidden" name="PERSON_NAME_378" id="PERSON_NAME_378"/>
  270. <input type="hidden" name="BUSINESS_ID_378" id="BUSINESS_ID_378" />
  271. <input type="hidden" name="STATUES_378" id="STATUES_378" value="2" />
  272. <input type="hidden" name="DISPOSE_378" id="DISPOSE_378" value="0" />
  273. <input type="hidden" name="RANGE_UNITS_NAME_391" id="RANGE_UNITS_NAME_391"/>
  274. <input type="hidden" name="COMPANY_ID_378" id="COMPANY_ID_378"/>
  275. <input type="hidden" name="ROLE_ID_378" id="ROLE_ID_378"/>
  276. <fieldset style="border-color:#999999;" id="fileTable" >
  277. <legend>操作处理:</legend>
  278. <input id="STATE_391" name="STATE_391" type="hidden"/>
  279. <table class="tableStyle" width="85%" align="center">
  280. <tr>
  281. <!-- <td colspan="2" align="center"><input type="button" id="pass" value="同意"/>&nbsp;&nbsp;<input type="button" id="rock" value="退回"/></td> -->
  282. <!-- </tr>
  283. <tr id="unitId" style="display: none;">
  284. <td align="right" width="30%"><label>调拨单位:</label></td>
  285. <td width="70%">
  286. <div class="lister" id="RANGE_UNITS_ID_391" name="RANGE_UNITS_ID_391"></div>
  287. </td>
  288. </tr> -->
  289. <!-- <tr id="person" class="person" style="display: none;">
  290. <td width="35%" align="right"><span class="star">*</span>下一节点处理人:</td>
  291. <td width="65%"><span id="span1"><input type="text" editable=false name="PERSON_NAME_378" id="PERSON_NAME_378" /></span> class="validate[required]"
  292. <input type="button" id="selectBtn" value="请选择"/></td>
  293. </tr> -->
  294. <tr id="remark" class="remark" style="display: none;">
  295. <td width="35%" align="right"><span class="star">*</span>退回说明:</td>
  296. <td width="65%"><textarea rows="" id="EXPLAIN_378" name="EXPLAIN_378" style="width: 97%;height: 44px;" maxNum="150"></textarea></td>
  297. </tr>
  298. </table>
  299. <table id="companyNum" class="tableStyle" width="85%" align="center">
  300. </table>
  301. <table class="tableStyle" width="85%" align="center">
  302. <tr class="person remark" id="sub" style="display: none;">
  303. <td align="center"><input value="提交" type="button" id="save"/></td>
  304. </tr>
  305. </table>
  306. </fieldset>
  307. </form>
  308. <fieldset style="border-color:#999999;" >
  309. <legend>录入人信息:</legend>
  310. <table width="960px" class="tableStyle" align="center" id="fillForm">
  311. <tr>
  312. <td width="114px" align="right" class="class_color">单位:</td>
  313. <td width="280px"><div style="width:97%" name="" id="UNITE" /></td>
  314. <td width="114px" align="right" class="class_color">部门:</td>
  315. <td width="280px"><div name="" id="DEPT" /></td>
  316. </tr>
  317. <tr>
  318. <td width="114px" align="right" class="class_color">录入人:</td>
  319. <td width="280px"><div name="" id="TYPEIN_PEOPLE" /></td>
  320. <td width="114px" align="right" class="class_color">录入人联系方式:</td>
  321. <td width="280px"><div name="" id="TYPEIN_PEOPLE_PHONE_NUM" /></td>
  322. </tr>
  323. </table>
  324. </fieldset>
  325. </div>
  326. </body>