whzycx.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>湖北智慧水运</title>
  5. <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
  6. <meta http-equiv="description" content="this is my page">
  7. <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  8. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
  9. <link href="../css/base.min.css" rel="stylesheet">
  10. <link rel="stylesheet" type="text/css" href="../css/mui.min.css" />
  11. <link rel="stylesheet" type="text/css" href="../css/shenpi.css" />
  12. <script type="text/javascript" src="../js/zepto.min.js"></script>
  13. </head>
  14. <script>
  15. $(function(){
  16. $("#isokchuandui").live("click",function(){
  17. if($(this).attr("checked")){
  18. $("#chuandui").removeClass("mui-hidden")
  19. }else{
  20. $("#chuandui").addClass("mui-hidden")
  21. }
  22. })
  23. $("#quxiao").live("click",function(){
  24. history.back(-1);
  25. })
  26. $("#chaxun").live("click",function(){
  27. var szd = $("#suozaidi").val(); //所在地
  28. var gkjyr =$("#gkjyr").val();//港口经营人名称
  29. var szgq = $("#gangqu").val();//港区
  30. var cm =$("#cm").val();//船名
  31. var wxhwbh = $("#wxhwpm").val();
  32. var wxhwpm = $("#wxhwbh").val();
  33. var bgsj1 = $("#bgsj1").val();
  34. var bgsj2 = $("#bgsj2").val();
  35. var kgsj1 = $("#kgsj1").val();
  36. var kgsj2 = $("#kgsj2").val();
  37. var wgsj1 = $("#wgsj1").val();
  38. var wgsj2 = $("#wgsj2").val();
  39. var count = 10;
  40. $("#content").show();
  41. $.ajax({
  42. type: 'post',
  43. url: '../../whsqbpcontroller/getZysqbpListByParam.do',
  44. data:{count:count,szd:szd,gkjyr:gkjyr,szgq:szgq,cm:cm,wxhwbh:wxhwbh,wxhwpm:wxhwpm,bgsj1:bgsj1,bgsj2:bgsj2,kgsj1:kgsj1,kgsj2:kgsj2,wgsj1:wgsj1,wgsj2:wgsj2},
  45. dataType: 'json',
  46. success: function(data){
  47. if(data.length==0)
  48. {
  49. layer.open({
  50. shade:false,
  51. content: '没有相关数据',
  52. style: 'background-color:rgba(0,0,0,0.5); color:white; border:none;font-size:20px;text-align:center',
  53. time:1
  54. });
  55. $('#list').html('');
  56. return;
  57. }
  58. $("#content").show();
  59. console.log(data)
  60. $('#list').html('');
  61. for(var i=0;i<data.length;i++){
  62. var json = {
  63. "1":"",
  64. "4":"",
  65. "9":"",
  66. "2":"已完成",
  67. "3":"审核中",
  68. "8":"已作废",
  69. "5":"取消作业",
  70. "6":"取消完成",
  71. "7":"变更作业",
  72. "10":"变更已完成"
  73. }
  74. $("#list").append('<table value="'+data[i].id+'" onclick="tiaohzuan('+data[i].id+')" class="table" title="Default Tabl" style="width: 100%;text-align: center;" align="center" >'+
  75. '<tbody >'+
  76. '<tr><td class="titlered">港口经营人</td><td class="titlered2" >'+data[i].zydw.gkjyr+'</td></tr>'+
  77. '<tr><td class="titlered">船名</td><td class="titlered2" >'+data[i].cm+'</td></tr>'+
  78. '<tr><td class="titlered">场地</td><td class="titlered2" >'+data[i].zydd.bz+"-"+data[i].zyddqybh.qynbmc+'</td></tr>'+
  79. '<tr><td class="titlered">危货名称</td><td class="titlered2" >'+data[i].wxhwmcbh+'</td></tr>'+
  80. '<tr><td class="titlered">申报时间</td><td class="titlered2" >'+datetoyue(data[i].bgsj)+'</td></tr>'+
  81. '<tr><td class="titlered">状态</td><td class="titlered2" >'+json[data[i].recordStatus]+'</td></tr>'+
  82. '</tbody>'+
  83. '</table>');
  84. }
  85. }})
  86. })
  87. $("#gengduoclick").live("click",function(){
  88. if($("#gengduo").css("display")=="none"){
  89. $("#gengduo").show();
  90. }else{
  91. $("#gengduo").hide();
  92. }
  93. })
  94. //查询所在地集合
  95. $.ajax({
  96. type: 'post',
  97. url: '../../codecontroller/listSzd.do',
  98. dataType: 'json',
  99. success: function(data){
  100. for(var i=0;i<data.length;i++){
  101. if(i==0){
  102. suozaidi(data[i].id)
  103. }
  104. $("#suozaidi").append('<option value="'+data[i].id+'">'+data[i].bz+'</option>');
  105. }
  106. }})
  107. $("#suozaidi").live("change",function(){
  108. var value = $(this).val();
  109. $("#gangqu").html('<option value="" selected="selected">请选择</option>');
  110. $.ajax({
  111. type: 'post',
  112. url: '../../gqcontroller/getBySzd.do',
  113. data:{szd:value},
  114. dataType: 'json',
  115. success: function(data){
  116. console.log(data)
  117. for(var i=0;i<data.length;i++){
  118. $("#gangqu").append('<option value="'+data[i].id+'" >'+data[i].gqmc+'</option>');
  119. }
  120. }})
  121. })
  122. })
  123. function suozaidi(id){
  124. $("#gangqu").html('<option value="" selected="selected">请选择</option>');
  125. $.ajax({
  126. type: 'post',
  127. url: '../../gqcontroller/getBySzd.do',
  128. data:{szd:id},
  129. dataType: 'json',
  130. success: function(data){
  131. for(var i=0;i<data.length;i++){
  132. $("#gangqu").append('<option value="'+data[i].id+'" >'+data[i].gqmc+'</option>');
  133. }
  134. }})
  135. }
  136. function tiaohzuan(value){
  137. location.href = "dcttl3.html?value="+value;
  138. }
  139. </script>
  140. <style>
  141. *{margin: 0px;padding: 0px}
  142. .header {
  143. width:100%;
  144. height:45px;
  145. line-height:45px;
  146. padding:0;
  147. color:#eee;
  148. font-size:22px;
  149. text-align:center;
  150. color:white;
  151. background: #2196f3;
  152. position: fixed;
  153. top: 0px;
  154. z-index: 999999
  155. }
  156. .header a{color: white;}
  157. .mui-content-padded {
  158. margin: 0px;
  159. margin-top:30px;
  160. margin-bottom: 5px;
  161. color: black;
  162. font-size: 20px;
  163. }
  164. .mui-select{
  165. border: 1px solid rgba(0,0,0,.2);
  166. border-radius: 3px;
  167. margin-bottom: 0px;
  168. }
  169. .wubiankuang{border: 0px;}
  170. .red{color: red;}
  171. #container {
  172. width: 400px;
  173. display: table
  174. }
  175. .left, .mid {
  176. display: table-cell;
  177. }
  178. .mid {
  179. width: 100%;
  180. }
  181. .mui-btn-positive{margin-top: 20px;}
  182. .left{
  183. white-space:nowrap;
  184. }
  185. </style>
  186. <body >
  187. <header class="header">
  188. <ul class="nav nav-list pull-left">
  189. <li><a href="javascript:void(0);" id="goback" onclick="history.back()"><span class="icon icon-arrow-back icback"></span>
  190. </a>
  191. </li>
  192. </ul>
  193. <a href="#">危货作业申报</a>
  194. </header>
  195. <div class="mui-content" style="background: white;margin-top: 50px;padding-bottom: 30px">
  196. <h2 align="center" style="height: 53px;border-bottom: 1px solid #000000;">查询条件</h2>
  197. <div class="center">
  198. <h5 class="mui-content-padded red">所在地</h5>
  199. <div class="mui-input-row mui-select" >
  200. <select id="suozaidi">
  201. </select>
  202. </div>
  203. <h5 class="mui-content-padded red">港口经营人名称</h5>
  204. <div class="mui-input-row mui-text" style="">
  205. <div style="position: absolute;right: 8px;z-index: 999;top: 4px">
  206. </div>
  207. <input type="text" placeholder="请输入港口经营人名称" id="gkjyr" class="mui-input-clear" >
  208. </div>
  209. <h5 class="mui-content-padded red">港区</h5>
  210. <div class="mui-input-row mui-select" >
  211. <select id="gangqu">
  212. <option value="" selected="selected">请选择</option>
  213. </select>
  214. </div>
  215. <h5 class="mui-content-padded red">船名</h5>
  216. <div class="mui-input-row mui-text" style="">
  217. <div style="position: absolute;right: 8px;z-index: 999;top: 4px">
  218. </div>
  219. <input type="text" placeholder="请输入船名" id="cm" class="mui-input-clear" >
  220. </div>
  221. <div id="parentgengduo" style="width: 100%;text-align: center;"><button style="margin-top: 10px;" id="gengduoclick" >更多查询条件..</button></div>
  222. <div id="gengduo" style="display: none;">
  223. <h5 class="mui-content-padded red">危险品名称</h5>
  224. <div class="mui-input-row mui-text" style="">
  225. <div style="position: absolute;right: 8px;z-index: 999;top: 4px">
  226. </div>
  227. <input type="text" placeholder="请输入危险品名称" id="wxhwbh" class="mui-input-clear" >
  228. </div>
  229. <h5 class="mui-content-padded red">危险品编号</h5>
  230. <div class="mui-input-row mui-text" style="">
  231. <div style="position: absolute;right: 8px;z-index: 999;top: 4px">
  232. </div>
  233. <input type="text" placeholder="请输入危险品编号" id="wxhwpm" class="mui-input-clear" >
  234. </div>
  235. <h5 class="mui-content-padded red">申报时间起</h5>
  236. <div class="mui-input-row mui-text" style="">
  237. <div style="position: absolute;left: 100%;margin-left: -40px;z-index: 999;top: 4px">
  238. <img alt="" src="../image/rili.png" style="width: 30px;height: 30px">
  239. </div>
  240. <input type="date" id="bgsj1" class="mui-input-clear" >
  241. </div>
  242. <h5 class="mui-content-padded red">申报时间止</h5>
  243. <div class="mui-input-row mui-text" style="">
  244. <div style="position: absolute;left: 100%;margin-left: -40px;z-index: 999;top: 4px">
  245. <img alt="" src="../image/rili.png" style="width: 30px;height: 30px">
  246. </div>
  247. <input type="date" id="bgsj2" class="mui-input-clear" >
  248. </div>
  249. <h5 class="mui-content-padded red">开工时间起</h5>
  250. <div class="mui-input-row mui-text" style="">
  251. <div style="position: absolute;left: 100%;margin-left: -40px;z-index: 999;top: 4px">
  252. <img alt="" src="../image/rili.png" style="width: 30px;height: 30px">
  253. </div>
  254. <input type="date" id="kgsj1" class="mui-input-clear" >
  255. </div>
  256. <h5 class="mui-content-padded red">开工时间止</h5>
  257. <div class="mui-input-row mui-text" style="">
  258. <div style="position: absolute;left: 100%;margin-left: -40px;z-index: 999;top: 4px">
  259. <img alt="" src="../image/rili.png" style="width: 30px;height: 30px">
  260. </div>
  261. <input type="date" id="kgsj2" class="mui-input-clear" >
  262. </div>
  263. <h5 class="mui-content-padded red">完工时间起</h5>
  264. <div class="mui-input-row mui-text" style="">
  265. <div style="position: absolute;left: 100%;margin-left: -40px;z-index: 999;top: 4px">
  266. <img alt="" src="../image/rili.png" style="width: 30px;height: 30px">
  267. </div>
  268. <input type="date" id="wgsj1" class="mui-input-clear" >
  269. </div>
  270. <h5 class="mui-content-padded red">完工时间止</h5>
  271. <div class="mui-input-row mui-text" style="">
  272. <div style="position: absolute;left: 100%;margin-left: -40px;z-index: 999;top: 4px">
  273. <img alt="" src="../image/rili.png" style="width: 30px;height: 30px">
  274. </div>
  275. <input type="date" id="wgsj2" class="mui-input-clear" >
  276. </div>
  277. </div>
  278. </div>
  279. <div style="margin-top: 10px;text-align: center;">
  280. <button class="mui-btn mui-btn-positive" type="button" style="width: 90%;background: #2196f3;border: 0px;height: 40px;" id="chaxun">查询</button>
  281. </div>
  282. <div id="content" style="display:none;" >
  283. <h2 align="center" style="height: 50px;border-bottom: 1px solid #000000;border-top: 1px solid #000000;">查询结果</h2>
  284. <div class="center" id="list" >
  285. </div>
  286. </div>
  287. </div>
  288. </body>
  289. </html>