Aucune description

Work-SZ.html 3.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <!doctype html>
  2. <html lang="en" class="feedback">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  6. <title>领导批示</title>
  7. <link rel="stylesheet" type="text/css" href="../css/mui.min.css" />
  8. <link rel="stylesheet" type="text/css" href="../css/feedback.css" />
  9. <link rel="stylesheet" type="text/css" href="../css/mui.picker.min.css" />
  10. <style>
  11. p {
  12. font-size: 16px;
  13. color: #fe6604;
  14. }
  15. .mui-bar-nav {
  16. background-color: #00a1cb;
  17. color: #fff!important;
  18. }
  19. </style>
  20. </head>
  21. <body>
  22. <header class="mui-bar mui-bar-nav" style="">
  23. <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" style="color: #fff;"></a>
  24. <h1 class="mui-title" style="color: #fff;">批示</h1>
  25. </header>
  26. <div class="mui-content">
  27. <p>批示人(必填)</p>
  28. <div class="row mui-input-row">
  29. <input id='startTime' type="text" class="mui-input-clear btn contact" />
  30. </div>
  31. <p>批示内容(必填)</p>
  32. <div class="row mui-input-row">
  33. <textarea id='question' class="mui-input-clear question"></textarea>
  34. </div>
  35. <div class="" style="padding: 10px;">
  36. <br />
  37. <button id="submit" type="button" class="mui-btn mui-btn-block mui-btn-primary submit">办理</button>
  38. </div>
  39. </div>
  40. <script src="../js/huayi.config.js"></script>
  41. <script src="../js/zepto.js"></script>
  42. <script src="../js/mui.min.js"></script>
  43. <script type="text/javascript">
  44. mui.init();
  45. mui.plusReady(function() {
  46. var wv = plus.webview.currentWebview();
  47. var vText = wv.name;
  48. var token = wv.token; 
  49. var a = localStorage.getItem("T");
  50. document.getElementById("submit").addEventListener('tap', function() {
  51. var username = $("#startTime").val();
  52. var question = $("#question").val();
  53. if(!question) {
  54. plus.nativeUI.toast('输入批示内容');
  55. } else {
  56. var btnArray = ['取消', '确定'];
  57. mui.confirm('提交批示', '提示', btnArray, function(e) {
  58. if(e.index == 1) {
  59. mui.ajax(huayi.config.callcenter_url + 'WorkOrder/SuperWorkOrder', {
  60. data: {
  61. workorderid: vText,
  62. superuser: username, //批示人&
  63. superopinion: question, //批示内容&
  64. type: 2,
  65. token: token
  66. },
  67. dataType: 'json', //服务器返回json格式数据
  68. type: 'post', //HTTP请求类型
  69. timeout: 10000, //超时时间设置为10秒;
  70. success: function(data) {
  71. if(data.state == "success") {
  72. plus.nativeUI.toast('成功');
  73. $("#startTime").val('');
  74. $("#question").val('');
  75. var wobj = plus.webview.getWebviewById("WorkDetails");
  76. wobj.reload(true);
  77. } else {
  78. mui.alert(data.message);
  79. }
  80. },
  81. error: function(xhr, type, errorThrown) {
  82. plus.nativeUI.toast('失败');
  83. }
  84. });
  85. } else {
  86. plus.nativeUI.toast('取消申请');
  87. }
  88. })
  89. }
  90. })
  91. })
  92. </script>
  93. </body>
  94. </html>