87efd287825c3484e453d23c980f7f4ed2c04148.svn-base 16 KB

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