zysp.html 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  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. $("input[name='yijian']").live("click",function(){
  27. $("#yijianname").val($(this).val())
  28. })
  29. $.ajax({
  30. type: 'post',
  31. url: '../../aqusercontroller/getByCode.do',
  32. data:{count:"10"},
  33. dataType: 'json',
  34. success: function(dataa){
  35. $("#spr").val(dataa.name)
  36. $("#spsj").val(nedateutil().date+" "+nedateutil().time);
  37. }})
  38. })
  39. function queding(){
  40. var spyj = $("#yijianname").val();
  41. if(spyj==""){
  42. showmessage("请输入意见")
  43. return;
  44. }
  45. var yj = "";
  46. if($('input[name="yijian"]:checked').val()=="同意作业"){
  47. yj = "tongguo"
  48. }
  49. if($('input[name="yijian"]:checked').val()=="不同意作业"){
  50. yj = "butongguo"
  51. }
  52. if(yj==""){
  53. showmessage("请输入意见")
  54. return;
  55. }
  56. $.ajax({
  57. type: 'post',
  58. url: '../../whsqbpcontroller/aduit.do',
  59. data:{id:getQueryString("value"),
  60. yj:yj,
  61. shyj:spyj
  62. },
  63. dataType: 'json',
  64. success: function(data){
  65. if(data!=null&&data!=""){
  66. showmessage("审批成功")
  67. setTimeout(function(){
  68. // location.href="index.html"
  69. history.back("-1")
  70. }, 1000);
  71. }else{
  72. showmessage("审批失败")
  73. // location.href="index.html"
  74. }
  75. }})
  76. //
  77. }
  78. </script>
  79. <style>
  80. *{margin: 0px;padding: 0px}
  81. .header {
  82. width:100%;
  83. height:45px;
  84. line-height:45px;
  85. padding:0;
  86. color:#eee;
  87. font-size:22px;
  88. text-align:center;
  89. color:white;
  90. background: #2196f3;
  91. position: fixed;
  92. top: 0px;
  93. }
  94. .header a{color: white;}
  95. .mui-content-padded {
  96. margin: 0px;
  97. margin-top:30px;
  98. margin-bottom: 5px;
  99. color: black;
  100. font-size: 20px;
  101. }
  102. .mui-select{
  103. border: 1px solid rgba(0,0,0,.2);
  104. border-radius: 3px;
  105. margin-bottom: 0px;
  106. }
  107. .wubiankuang{border: 0px;}
  108. .red{color: red;}
  109. #container {
  110. width: 400px;
  111. display: table
  112. }
  113. .left, .mid {
  114. display: table-cell;
  115. }
  116. .mid {
  117. width: 100%;
  118. }
  119. .mui-btn-positive{margin-top: 20px;}
  120. .left{
  121. white-space:nowrap;
  122. }
  123. </style>
  124. <body >
  125. <header class="header">
  126. <a href="#">危货作业申报</a>
  127. </header>
  128. <div class="mui-content" style="padding-left: 10px;padding-right: 10px;background: white;margin-top: 70px;padding-bottom: 30px">
  129. <div class="mui-input-row mui-text" style="text-align: center;">
  130. <span style="margin-right: 100px;"><input name="yijian" id="tongguo" value="同意作业" type="radio" checked="checked" />通过</span><span><input id="butongguo" value="不同意作业" name="yijian" type="radio" />不通过</span>
  131. </div>
  132. <h5 class="mui-content-padded red">审批意见</h5>
  133. <div class="mui-input-row mui-text" style="">
  134. <div style="position: absolute;right: 8px;z-index: 999;top: 4px">
  135. </div>
  136. <input type="text" id="yijianname" value="同意作业" class="mui-input-clear" >
  137. </div>
  138. <h5 class="mui-content-padded red">审批人</h5>
  139. <div class="mui-input-row mui-text" style="">
  140. <div style="position: absolute;right: 8px;z-index: 999;top: 4px">
  141. </div>
  142. <input type="text" id="spr" style="border: 0px;" readonly="readonly" placeholder="" class="mui-input-clear" >
  143. </div>
  144. <h5 class="mui-content-padded red">审批时间</h5>
  145. <div class="mui-input-row mui-text" style="">
  146. <div style="position: absolute;right: 8px;z-index: 999;top: 4px">
  147. </div>
  148. <input type="text" id="spsj" style="border: 0px;" readonly="readonly" placeholder="" class="mui-input-clear" >
  149. </div>
  150. <div style="margin-top: 30px;text-align: center;">
  151. <button class="mui-btn mui-btn-positive" type="button" style="width: 40%;background: #2196f3;border: 0px;height: 40px;" id="queding" onclick="queding()">确定</button>&nbsp;&nbsp;&nbsp;&nbsp;
  152. <button class="mui-btn mui-btn-positive" type="button" style="width: 40%;background: #2196f3;border: 0px;height: 40px;" id="quxiao">取消</button>
  153. </div>
  154. </div>
  155. </body>
  156. </html>