| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217 |
- <!doctype html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title>所有诉求</title>
- <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
- <meta name="apple-mobile-web-app-capable" content="yes">
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
- <link href="../css/mui.min.css" rel="stylesheet" />
- <link rel="stylesheet" href="../css/iconfont.css" />
- <link rel="stylesheet" type="text/css" href="css/list.css"/>
- </head>
- <body>
- <header class="mui-bar mui-bar-nav" style="padding-right: 15px;color: #fff;">
- <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
- <h1 class="mui-center mui-title"><span class="Totle-box"></span><span class="Totle"></span></h1>
- </header>
- <div class="mui-content mui-scroll-wrapper" id="pullrefresh">
- <div class="mui-scroll">
- <ul class="mui-table-view mui-table-view-striped mui-table-view-condensed" id="order_list">
- <li class="mui-table-view-cell">
- <div class="mui-input-row mui-search ">
- <input type="search" class="mui-input-clear go_search Width" placeholder="请输入关键字" style="margin-bottom: 0;">
- </div>
- </li>
- </ul>
- </div>
- <!--右上角弹出菜单-->
- </div>
- <script src="../js/mui.min.js"></script>
- <script src="../js/zepto.js"></script>
- <script src="../js/huayi.config.js"></script>
- <script type="text/javascript">
- window.onload = function() {
- mui.plusReady(function() {
- var wv = plus.webview.currentWebview();
- var token = wv.token,Index = wv.isdeal,Isdeal = wv.index,wids = wv.wids,
- LXRs = wv.LXRs,LXRphones = wv.LXRphones,ZXResults = wv.ZXResults,
- zhuTiResults = wv.zhuTiResults,userResults = wv.userResults,
- DWResults = wv.DWResults;
- var keyw,State,page = 1,pageSize = 10,total,searchState;
- plus.nativeUI.closeWaiting();
- //显示当前页面
- mui.currentWebview.show();
-
- if (Isdeal == 4) {
- $(".Totle-box").text('待办理')
- } else if (Index == 0) {
- $(".Totle-box").text('待查收')
- }else if (Index == 2) {
- $(".Totle-box").text('退回审核')
- }
- if (Index == 3) {
- $(".Totle-box").text('延时审核')
- }
- if (Isdeal == 8) {
- $(".Totle-box").text('重办待交办')
- }
- if (Isdeal == 8 && Index == 0) {
- $(".Totle-box").text('重办待查收')
- }
- //二级单位已办理状态
- if (Isdeal == 6&&Index == 4) {
- $(".Totle-box").text('待回访')
- }
- if (Isdeal == 7&&Index == 4) {
- $(".Totle-box").text('已回访')
- }
- if (Isdeal == 8&&Index == 4) {
- $(".Totle-box").text('重办中')
- }
- if (Isdeal == 9&&Index == 4) {
- $(".Totle-box").text('已结案')
- }
-
-
- listData();
- $('.go_search').on('input focus', function() {
- keyw = $(this).val();
- page = 1;
- searchState=true;
- $(".order").remove();
- listData(keyw);
- });
- $(".mui-icon-clear").on("tap",function(){
- keyw = $(".go_search").val();
- page = 1;
- searchState=true;
- $(".order").remove();
- listData(keyw);
- })
- mui.init({
- swipeBack: false,
- pullRefresh: {
- container: '#pullrefresh',
- up: {
- contentrefresh: "正在加载...", //可选,正在加载状态时,上拉加载控件上显示的标题内容
- contentnomore: '没有更多数据了', //可选,请求完毕若没有更多数据时显示的提醒内容;
- callback: pullupRefresh
- }
- }
- });
- function pullupRefresh() {
- setTimeout(function() {
- mui('#pullrefresh').pullRefresh().endPullupToRefresh((page++ >= Math.ceil(total / 10)));
- listData()
- }, 1000);
- }
- function listData() {
- //alert("state="+Isdeal+"-----tab="+Index)
-
- mui.ajax(huayi.config.callcenter_url + 'WorkOrder/GetDWDealList', {
- data: {
- token: token,
- state: Isdeal,
- extensionphone: 1,
- page: page,
- key: keyw,
- pagesize: pageSize,
- workid: wids,
- type: userResults, //=工单类型
- tel: LXRphones, //=客户电话
- name: LXRs, //=客户名称
- usercode: ZXResults, //=坐席工号
- deptid: DWResults,
- keyid: zhuTiResults, //=关键词id
- tab: Index
- },
- dataType: 'json', //服务器返回json格式数据
- type: 'get', //HTTP请求类型
- async: false,
- timeout: 10000, //超时时间设置为10秒;
- headers: {
- 'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
- },
- success: function(data) {
- total = data.total;
- if(searchState){
- $(".order").remove()
- searchState=false;
- }
- $(".Totle").text('(' + total + ')');
- for (var i = 0; i < data.rows.length; i++) {
- var a = data.rows[i].TypeName;
-
- var time = data.rows[i].F_CreateTime.substring(0, data.rows[i].F_CreateTime.indexOf(' '));
- var time1 = data.rows[i].LimitTime
-
- if (time1 == null) {
- shixian = "";
- } else {
-
- shixian = "办理时限:" + data.rows[i].LimitTime.substring(0, data.rows[i].LimitTime.indexOf(' '))
- }
- //alert(times)
- var TypeName = '';
- if (!a) {
- TypeName = "其他来源"
- } else {
- TypeName = a
- }
- $('<li class="mui-table-view-cell order" data-index="' + data.rows[i].F_WorkOrderId + '">' +
- '<div class="mui-table">' +
- '<div class="mui-table-cell mui-col-xs-12">' +
- '<h5 class="mui-ellipsis new_title" >' + data.rows[i].F_ComTitle + '</h5>' +
- ' <p class="mui-h6 mui-ellipsis">' +
- '<span class="advice"><i class="mui-icon mui-icon-compose"></i>' + a + '</span>' +
- '<span class="advice">' + shixian + '</span>' +
- '<span class="time">提交时间:' + time + '</span>' +
- ' </p>' +
- ' </div>' +
- '</div>' +
- '</li>').appendTo('#order_list');
- }
- },
- error: function(xhr, type, errorThrown) {
- //异常处理;
- }
- })
- }
- $('#order_list').on('tap', '.order', function() {
- var id = $(this).attr('data-index');
- mui.openWindow({
- id: 'WorkDetails',
- url: 'WorkDetails.html',
- show: {
- aniShow: 'pop-in'
- },
- styles: {
- popGesture: 'hide'
- },
- waiting: {
- autoShow: true
- },
- extras: {
- name: id,
- token: token
- }
- });
- })
- });
- }
- </script>
- </body>
- </html>
|