bgzysh.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377
  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. $.ajax({
  24. type: 'post',
  25. url: '../../whsqbpcontroller/getById.do',
  26. data:{id:getQueryString("value")},
  27. dataType: 'json',
  28. success: function(data){
  29. console.log(data)
  30. $("#cm").val(data.cm)
  31. $("#zysl").val(data.zysl)
  32. if(data.zysjq!=""&&data.zysjq!=null){
  33. $("#zysjq-date").val(dateutil(data.zysjq).date)
  34. $("#zysjq-time").val(dateutil(data.zysjq).time)
  35. }
  36. if(data.zysjz!=""&&data.zysjz!=null){
  37. $("#zysjz-date").val(dateutil(data.zysjz).date)
  38. $("#zysjz-time").val(dateutil(data.zysjz).time)
  39. }
  40. $("#hc").val(data.hc)
  41. }})
  42. $.ajax({
  43. type: 'post',
  44. url: '../../whsqbpcontroller/getBgzyById.do',
  45. data:{id:getQueryString("value")},
  46. dataType: 'json',
  47. success: function(data){
  48. console.log(data)
  49. $("#c-cm").val(data.cm)
  50. $("#c-zysl").val(data.zysl)
  51. $("#c-zysjq-date").val(dateutil(data.zysjq).date)
  52. $("#c-zysjq-time").val(dateutil(data.zysjq).time)
  53. $("#c-zysjz-date").val(dateutil(data.zysjz).date)
  54. $("#c-zysjz-time").val(dateutil(data.zysjz).time)
  55. $("#c-hc").val(data.byzd2)
  56. $("#c-bgyy").val(data.byzd1);
  57. }})
  58. $("#queding").live("click",function(){
  59. var cm = $("#c-cm").val();
  60. if(cm==""){
  61. showmessage("船名不能为空")
  62. return;
  63. }
  64. var zysl = $("#c-zysl").val();
  65. if(zysl==""){
  66. showmessage("作业数量不能为空")
  67. return;
  68. }
  69. var hc =$("#hc").val();
  70. if(hc==""){
  71. showmessage("航次不能为空")
  72. return;
  73. }
  74. //作业时间止
  75. var zysjz = $("#c-zysjz-date").val()+" "+$("#c-zysjz-time").val();
  76. //作业时间止
  77. var zysjq = $("#c-zysjq-date").val()+" "+$("#c-zysjq-time").val();
  78. var begin=new Date(zysjq.replace(/-/g,"/"));
  79. var end=new Date(zysjz.replace(/-/g,"/"));
  80. //js判断日期
  81. if(begin-end>0){
  82. showmessage("作业时间止要大于作业时间起!");
  83. return ;
  84. }
  85. var bgyy = $("#bgyy").val();
  86. if(bgyy==""){
  87. showmessage("变更原因不能为空!")
  88. return;
  89. }
  90. $.ajax({
  91. type: 'post',
  92. url: '../../whsqbpcontroller/bgAudit.do',
  93. data:{id:getQueryString("value"),
  94. cm:cm,
  95. zysl:zysl,
  96. hc:hc,
  97. zysjq:zysjq,
  98. zysjz:zysjz,
  99. bgyy:bgyy
  100. },
  101. dataType: 'json',
  102. success: function(data){
  103. if(data!=null&&data!=""){
  104. showmessage("变更成功")
  105. setTimeout(function(){
  106. // location.href="index.html"
  107. history.back("-1")
  108. }, 1000);
  109. }else{
  110. showmessage("变更失败")
  111. }
  112. }});
  113. })
  114. $("#quxiao").live("click",function(){
  115. history.back(-1);
  116. })
  117. })
  118. function quxiao(){
  119. history.back(-1);
  120. }
  121. function isok(a){
  122. $.ajax({
  123. type: 'post',
  124. url: '../../whsqbpcontroller/bgAudit.do',
  125. data:{id:getQueryString("value"),
  126. yj:a,
  127. shyj:""
  128. },
  129. dataType: 'json',
  130. success: function(data){
  131. if(data!=null&&data!=""){
  132. showmessage("审批成功")
  133. setTimeout(function(){
  134. // location.href="index.html"
  135. history.back("-1")
  136. }, 1000);
  137. }else{
  138. showmessage("审批失败")
  139. // location.href="index.html"
  140. }
  141. }})
  142. }
  143. </script>
  144. <style>
  145. *{margin: 0px;padding: 0px}
  146. .header {
  147. width:100%;
  148. height:45px;
  149. line-height:45px;
  150. padding:0;
  151. color:#eee;
  152. font-size:22px;
  153. text-align:center;
  154. color:white;
  155. background: #2196f3;
  156. position: fixed;
  157. top: 0px;
  158. }
  159. .header a{color: white;}
  160. .mui-content-padded {
  161. margin: 0px;
  162. margin-top:30px;
  163. margin-bottom: 5px;
  164. color: black;
  165. font-size: 20px;
  166. }
  167. .mui-select{
  168. border: 1px solid rgba(0,0,0,.2);
  169. border-radius: 3px;
  170. margin-bottom: 0px;
  171. }
  172. .wubiankuang{border: 0px;}
  173. .red{color: red;}
  174. #container {
  175. width: 400px;
  176. display: table
  177. }
  178. .left, .mid {
  179. display: table-cell;
  180. }
  181. .mid {
  182. width: 100%;
  183. }
  184. .mui-btn-positive{margin-top: 20px;}
  185. .left{
  186. white-space:nowrap;
  187. }
  188. </style>
  189. <body >
  190. <header class="header">
  191. <a href="#">变更作业审核</a>
  192. </header>
  193. <div class="mui-content" style="padding-left: 10px;padding-right: 10px;background: white;margin-top: 70px;padding-bottom: 30px">
  194. <h2 align="center" style="height: 60px;border-bottom: 1px solid #000000;">原有信息</h2>
  195. <h5 class="mui-content-padded red">船名</h5>
  196. <div class="mui-input-row mui-text">
  197. <input id="cm" type="text" style="border: 0px" readonly="readonly" class="mui-input-clear" >
  198. </div>
  199. <h5 class="mui-content-padded red">作业数量</h5>
  200. <div class="mui-input-row mui-text" style="">
  201. <div style="position: absolute;right: 8px;z-index: 999;top: 4px">
  202. </div>
  203. <input type="text" id="zysl" style="border: 0px;" readonly="readonly" class="mui-input-clear" >
  204. </div>
  205. <h5 class="mui-content-padded red">作业时间起</h5>
  206. <div class="mui-input-row mui-text" >
  207. <div style="position: absolute;left:48%;margin-left: -33px;z-index: 999;top: 4px">
  208. <img src="../image/rili.png" style="width: 30px;height: 30px">
  209. </div>
  210. <div style="position: absolute;left:99%;margin-left: -33px;z-index: 999;top: 4px">
  211. <img src="../image/time.png" style="width: 30px;height: 30px">
  212. </div>
  213. <input id="zysjq-date" readonly="readonly" type="date" style="width: 48%;margin-right: 1%;" class="mui-input-clear" ><input readonly="readonly" id="zysjq-time" style="width: 50%;" type="time" class="mui-input-clear" >
  214. </div>
  215. <h5 class="mui-content-padded red">作业时间止</h5>
  216. <div class="mui-input-row mui-text" >
  217. <div style="position: absolute;left:48%;margin-left: -33px;z-index: 999;top: 4px">
  218. <img src="../image/rili.png" style="width: 30px;height: 30px">
  219. </div>
  220. <div style="position: absolute;left:99%;margin-left: -33px;z-index: 999;top: 4px">
  221. <img src="../image/time.png" style="width: 30px;height: 30px">
  222. </div>
  223. <input id="zysjz-date" readonly="readonly" type="date" style="width: 48%;margin-right: 1%;" class="mui-input-clear" ><input readonly="readonly" id="zysjz-time" style="width: 50%;" type="time" class="mui-input-clear" >
  224. </div>
  225. <h5 class="mui-content-padded red">航次</h5>
  226. <div class="mui-input-row mui-text" style="">
  227. <div style="position: absolute;right: 8px;z-index: 999;top: 4px">
  228. </div>
  229. <input type="text" id="hc" style="border: 0px;" readonly="readonly" class="mui-input-clear" >
  230. </div>
  231. <h2 align="center" style="height: 60px;border-top: 1px solid #000000;border-bottom: 1px solid #000000;">变更信息</h2>
  232. <h5 class="mui-content-padded red">船名</h5>
  233. <div class="mui-input-row mui-text">
  234. <input id="c-cm" type="text" readonly="readonly" class="mui-input-clear" >
  235. </div>
  236. <h5 class="mui-content-padded red">作业数量</h5>
  237. <div class="mui-input-row mui-text">
  238. <input type="text" id="c-zysl" readonly="readonly" class="mui-input-clear" >
  239. </div>
  240. <h5 class="mui-content-padded red">作业时间起</h5>
  241. <div class="mui-input-row mui-text" >
  242. <div style="position: absolute;left:48%;margin-left: -33px;z-index: 999;top: 4px">
  243. <img src="../image/rili.png" style="width: 30px;height: 30px">
  244. </div>
  245. <div style="position: absolute;left:99%;margin-left: -33px;z-index: 999;top: 4px">
  246. <img src="../image/time.png" style="width: 30px;height: 30px">
  247. </div>
  248. <input readonly="readonly" id="c-zysjq-date" type="date" style="width: 48%;margin-right: 1%;" class="mui-input-clear" ><input readonly="readonly" id="c-zysjq-time" style="width: 50%;" type="time" class="mui-input-clear" >
  249. </div>
  250. <h5 class="mui-content-padded red">作业时间止</h5>
  251. <div class="mui-input-row mui-text" >
  252. <div style="position: absolute;left:48%;margin-left: -33px;z-index: 999;top: 4px">
  253. <img src="../image/rili.png" style="width: 30px;height: 30px">
  254. </div>
  255. <div style="position: absolute;left:99%;margin-left: -33px;z-index: 999;top: 4px">
  256. <img src="../image/time.png" style="width: 30px;height: 30px">
  257. </div>
  258. <input id="c-zysjz-date" type="date" style="width: 48%;margin-right: 1%;" class="mui-input-clear" ><input id="c-zysjz-time" style="width: 50%;" type="time" class="mui-input-clear" >
  259. </div>
  260. <h5 class="mui-content-padded red">航次</h5>
  261. <div class="mui-input-row mui-text" style="">
  262. <div style="position: absolute;right: 8px;z-index: 999;top: 4px">
  263. </div>
  264. <input readonly="readonly" type="text" id="c-hc" class="mui-input-clear" >
  265. </div>
  266. <h5 class="mui-content-padded red">变更原因</h5>
  267. <div class="mui-input-row mui-text">
  268. <textarea readonly="readonly" id="c-bgyy" style="height: 100px;" ></textarea>
  269. </div>
  270. <div style="margin-top: 30px;text-align: center;">
  271. <button class="mui-btn mui-btn-positive" type="button" style="width: 30%;background: #2196f3;border: 0px;height: 40px;" onclick="isok('tongguo')">通过</button>&nbsp;&nbsp;&nbsp;&nbsp;
  272. <button class="mui-btn mui-btn-positive" type="button" style="width: 30%;background: #2196f3;border: 0px;height: 40px;" onclick="isok('butongguo')">不通过</button>&nbsp;&nbsp;&nbsp;&nbsp;
  273. <button class="mui-btn mui-btn-positive" type="button" style="width: 30%;background: #2196f3;border: 0px;height: 40px;" onclick="quxiao()">取消</button>&nbsp;&nbsp;&nbsp;&nbsp;
  274. </div>
  275. </div>
  276. </body>
  277. </html>