wgb.html 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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. $("#queding").live("click",function(){
  27. //完工时间
  28. var wgsj = $("#wgsj-date").val()+" "+$("#wgsj-time").val();
  29. if(wgsj==" "){
  30. showmessage("请选择完工时间")
  31. return;
  32. }
  33. $.ajax({
  34. type: 'post',
  35. url: '../../whsqbpcontroller/wangongbao.do',
  36. data:{id:getQueryString("value"),
  37. wgsj:wgsj
  38. },
  39. dataType: 'json',
  40. success: function(data){
  41. if(data!=null&&data!=""){
  42. showmessage("完工成功")
  43. setTimeout(function(){
  44. history.back(-1);
  45. }, 1000);
  46. }else{
  47. showmessage("完工失败")
  48. }
  49. }
  50. })
  51. })
  52. })
  53. </script>
  54. <style>
  55. *{margin: 0px;padding: 0px}
  56. .header {
  57. width:100%;
  58. height:45px;
  59. line-height:45px;
  60. padding:0;
  61. color:#eee;
  62. font-size:22px;
  63. text-align:center;
  64. color:white;
  65. background: #2196f3;
  66. position: fixed;
  67. top: 0px;
  68. }
  69. .header a{color: white;}
  70. .mui-content-padded {
  71. margin: 0px;
  72. margin-top:30px;
  73. margin-bottom: 5px;
  74. color: black;
  75. font-size: 20px;
  76. }
  77. .mui-select{
  78. border: 1px solid rgba(0,0,0,.2);
  79. border-radius: 3px;
  80. margin-bottom: 0px;
  81. }
  82. .wubiankuang{border: 0px;}
  83. .red{color: red;}
  84. #container {
  85. width: 400px;
  86. display: table
  87. }
  88. .left, .mid {
  89. display: table-cell;
  90. }
  91. .mid {
  92. width: 100%;
  93. }
  94. .mui-btn-positive{margin-top: 20px;}
  95. .left{
  96. white-space:nowrap;
  97. }
  98. </style>
  99. <body >
  100. <header class="header">
  101. <a href="#">危货作业申报</a>
  102. </header>
  103. <div class="mui-content" style="padding-left: 10px;padding-right: 10px;background: white;margin-top: 70px;padding-bottom: 30px">
  104. <h2 align="center" style="height: 60px;border-bottom: 1px solid #000000;">完工报</h2>
  105. <h5 class="mui-content-padded red">完工时间</h5>
  106. <div class="mui-input-row mui-text" >
  107. <div style="position: absolute;left:48%;margin-left: -33px;z-index: 999;top: 4px">
  108. <img src="../image/rili.png" style="width: 30px;height: 30px">
  109. </div>
  110. <div style="position: absolute;left:99%;margin-left: -33px;z-index: 999;top: 4px">
  111. <img src="../image/time.png" style="width: 30px;height: 30px">
  112. </div>
  113. <input id="wgsj-date" type="date" placeholder="年/月/日" style="width: 48%;margin-right: 1%;" class="mui-input-clear" ><input id="wgsj-time" style="width: 50%;" type="time" class="mui-input-clear" placeholder="时/分/秒" >
  114. </div>
  115. <div style="margin-top: 30px;text-align: center;">
  116. <button class="mui-btn mui-btn-positive" type="button" style="width: 40%;background: #2196f3;border: 0px;height: 40px;" id="queding">确定</button>&nbsp;&nbsp;&nbsp;&nbsp;
  117. <button class="mui-btn mui-btn-positive" type="button" style="width: 40%;background: #2196f3;border: 0px;height: 40px;" id="quxiao">取消</button>
  118. </div>
  119. </div>
  120. </body>
  121. </html>