| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227 |
- <!doctype html>
- <html lang="en" class="feedback">
- <head>
- <meta charset="UTF-8" />
- <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
- <title>工单处理</title>
- <link rel="stylesheet" type="text/css" href="../css/mui.min.css" />
- <link rel="stylesheet" type="text/css" href="../css/feedback.css" />
- <link rel="stylesheet" type="text/css" href="../css/mui.picker.min.css" />
- <link href="../css/feedback-page.css" rel="stylesheet" />
- <style>
- p {
- font-size: 16px;
- color: #fe6604;
- }
-
- .mui-bar-nav {
- background: #cd0000 !important;
- color: #fff!important;
- }
-
- .mui-bar-popover {
- width: 30%;
- }
-
- .mui-popover.mui-bar-popover .mui-table-view {
- width: 100%;
- }
-
- .mui-table-view .mui-table-view-cell>a:not(.mui-btn) {
- text-align: center;
- }
-
- .mui-table-view-cell {
- padding: 1px 15px!important;
- }
-
- .san {
- font-size: 14px;
- margin-right: 5px
- }
-
- .nav_a {
- border-right: 1px solid #ccc;
- }
-
- .radio_box {
- display: inline-block;
- }
-
- .mui-radio input[type=radio]:before {
- font-size: 20px;
- vertical-align: middle;
- }
-
- .mui-radio.mui-left input[type=radio] {
- line-height: 24px!important;
- }
-
- .mui-radio.mui-left label {
- padding-right: 1px!important;
- padding-left: 51px!important;
- }
-
- .ztext {
- width: 100%;
- margin: 0;
- border: 0;
- }
-
- .action {
- padding: 5px 15px;
- }
-
- .type_down {
- float: right!important;
- display: inline-block!important;
- vertical-align: middle!important;
- line-height: 42px;
- }
-
- .type_con {
- width: 55%!important;
- float: left!important;
- vertical-align: middle!important;
- display: inline-block!important;
- padding: 10px 0!important;
- }
-
- .label {
- width: 30%!important;
- padding: 11px 0px!important;
- }
-
- .get_yzm {
- padding: 5px!important;
- width: auto!important;
- }
-
- .yzm_con {
- float: left!important;
- width: 40%!important;
- }
-
- .mui-bar-nav {
- background-color: #00a1cb;
- }
-
- .mui-input-row label {
- text-align: -webkit-right;
- }
-
- .mui-btn-block {
- padding: 10px;
- width: 100%;
- }
- .labels {
- color: #fe6604;
- }
- #imgs {
- overflow: hidden;
- }
- #imgs li{
- margin: 5px;
- width: 80px;
- float: left;
- }
- #imgs li .img_div {
- height: 100px;
- }
-
- #imgs li .img_div img {
- width: 70px;
- height: 70px;
- display: block;
- }
-
- #imgs li .img_div span {
- display: block;
- }
- </style>
- </head>
- <body>
- <header class="mui-bar mui-bar-nav" style="">
- <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" style="color: #fff;"></a>
- <h1 class="mui-title" style="color: #fff;">工单审核</h1>
- </header>
- <div class="mui-content">
- <ul class="mui-table-view">
- <li class="mui-table-view-cell" >
- <div class="mui-input-row">
- <label class="label labels">是否同意:</label>
- <div class="mui-input-row mui-radio mui-left radio_box">
- <label>是</label>
- <input type="radio" name="secret" checked="checked" value="1" />
- </div>
- <div class="mui-input-row mui-radio mui-left radio_box">
- <label>否</label>
- <input type="radio" name="secret" value="2" />
- </div>
- </div>
- </li>
- <li class="mui-table-view-cell">
- <div class="mui-input-row">
- <label class="label labels">处理内容:</label>
- <textarea class="ztext content" name="" id="result" rows="3" cols="" placeholder="请详细描述您的问题和建议..."></textarea>
- </div>
- </li>
- </ul>
-
- <div class="" style="padding: 10px;">
- <br />
- <button id="submit" type="button" class="mui-btn mui-btn-block mui-btn-danger submit">保存</button>
- </div>
- </div>
- <script src="../js/huayi.config.js"></script>
- <script src="../js/zepto.js"></script>
- <script src="../js/mui.min.js"></script>
- <script src="../js/mui.picker.min.js"></script>
- <script type="text/javascript">
- mui.init();
- mui.plusReady(function() {
- var urlParams = plus.webview.currentWebview();
- var vText = urlParams.name;
- var orderState = urlParams.orderState; // 普通工单
- var token = urlParams.token;
-
- document.getElementById("submit").addEventListener('tap', function() {
- if(!$("#result").val()) {
- mui.alert('输入处理内容');
- } else {
- $.ajax({
- url:huayi.config.callcenter_url + 'WorkorderApp/ReviewWorkOrder',
- data: {
- id: vText,
- cont: $("#result").val(), //处理结果
- state: $('input[name="secret"]:checked').val(),
- token: token
- },
- dataType: 'json', //服务器返回json格式数据
- type: 'post', //HTTP请求类型
- timeout: 10000, //超时时间设置为10秒;
- success: function(data) {
- if(data.state == "success") {
- mui.toast('处理成功');
- $("#result").val('');
- var wobj = plus.webview.getWebviewById("Work-list");
- wobj.reload(true);
- } else {
- mui.alert(data.message);
- }
- },
- error: function(xhr, type, errorThrown) {
- mui.alert('失败');
- }
- });
- }
- })
- })
- </script>
- </body>
- </html>
|