| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541 |
- <!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" />
- <style>
- .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;
- }
-
- .san {
- font-size: 14px;
- margin-right: 5px
- }
-
- .nav_a {
- border-right: 1px solid #ccc;
- }
-
- .go_search {
- background: #fff!important;
- border: 1px solid #ccc!important;
- border-radius: 17px!important;
- }
-
- .new_title {
- color: #000;
- font-size: 16px;
- }
-
- .list_new_icon {
- margin-right: 5px;
- font-size: 20px;
- vertical-align: middle;
- }
-
- .time i {
- font-size: 18px!important;
- }
-
- .finish {
- color: #5ccb91;
- }
-
- .going {
- color: #febd23;
- }
-
- .waiting {
- color: #fd7c78;
- }
-
- .advice,
- .time {
- margin-left: 15px;
- }
-
- body {
- background-color: #fafafa;
- }
-
- .mui-content {
- background-color: #fafafa;
- }
-
- ul {
- font-size: 16px;
- color: #8f8f94;
- }
-
- .mui-btn {
- padding: 10px;
- }
-
- .mui-content-padded {
- margin: 0;
- }
- /*.mui-active {
- background: #fff;
- }*/
- #icon-menu {
- color: #fff;
- }
-
- .size-16 {
- font-size: 16px;
- }
-
- .Dwc {
- margin-bottom: 20px;
- }
-
- .mui-icon {
- font-size: 20px;
- }
-
- .red {
- color: red;
- }
-
- .cheng {
- color: #f88868;
- }
-
- .mui-col-xs-10 {
- padding-left: 15px;
- }
- .mui-h {
- font-size: 16px;
- color: #000;
- }
-
- .List-box span {
- letter-spacing: 1px;
- }
-
- .mui-table-view-cell.mui-active {
- background-color: #fff;
- }
-
- .mui-collapse-content {
- position: relative;
- }
-
- .mui-collapse-content:after {
- position: absolute;
- right: 0;
- bottom: 0;
- left: 15px;
- height: 1px;
- content: '';
- -webkit-transform: scaleY(.5);
- transform: scaleY(.5);
- background-color: #c8c7cc;
- }
-
- .mui-collapse-content:before {
- position: absolute;
- right: 0;
- bottom: 0;
- left: 15px;
- height: 1px;
- content: '';
- -webkit-transform: scaleY(.5);
- transform: scaleY(.5);
- background-color: #c8c7cc;
- }
-
- .mui-mix-left {
- padding-left: 20px;
- margin-left: 10px;
- }
-
- .mui-segmented-control .mui-control-item.mui-active {
- border-color: #00a1cb;
- border: 1px solid #00a1cb;
- color: #fff;
- background-color: #00a1cb;
- }
-
- .mui-segmented-control {
- border: 1px solid #00a1cb;
- }
-
- .mui-action-back {
- color: #fff;
- }
-
- .Phone img {
- width: 13px;
- height: 13px;
- border-radius: 50%;
- /* vertical-align: text-bottom;*/
- margin-right: 3px;
- vertical-align: initial;
- }
-
- .mui-h6 {
- font-size: 12px;
- }
-
- .mui-span-box {
- margin-left: 25px;
- }
-
- .dwc {
- color: #34ad37;
- }
-
- .mui-control-item {
- line-height: 30px!important;
- }
-
- .mui-search.mui-active:before {
- top: 25px;
- }
-
-
- .turnGo {
- border: none;
- }
- #menu{
- display: none;
- color: #fff;
- padding-top: 10px;
- font-size: 30px;
- }
- .Totle{
- text-align: center;
- margin-top: 10px;
- }
- .mui-action-back {
- color: #fff;
- }
- </style>
- </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"></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 page = 1; //页数
- var pageSize = 10; //每页显示条目
- var total; //数据总条数
- var wv = plus.webview.currentWebview();
- var token = wv.token;
- var isdeal = wv.isdeal;//工单状态
- console.log(isdeal);
- var wids = wv.wids;
- var index=wv.index;//交办条件
- var LXRs = wv.LXRs;
- var issatisfie=wv.issatisfie//满意度
- var LXRphones = wv.LXRphones;
- var ZXResults = wv.ZXResults;
- var zhuTiResults = wv.zhuTiResults;
- var userResults = wv.userResults;
- var DWResults = wv.DWResults;
- var keyw;
- plus.nativeUI.closeWaiting();
- //显示当前页面
- mui.currentWebview.show();
- if(isdeal==2){
- $(".Totle-box").text('待签收中')
- }else if(isdeal==3){
- $(".Totle-box").text('召回审核中')
- }else if(isdeal==5){
- $(".Totle-box").text('延期审核中')
- }else if(isdeal==4){
- $(".Totle-box").text('待办理中')
- }else if(isdeal==6){
- $(".Totle-box").text('回访中')
- }
- else if(isdeal==7&&issatisfie==1){
- $(".Totle-box").text('结案审核中')
- }else if(isdeal==7&&issatisfie==0){
- $(".Totle-box").text('重办审核中')
- }else if(isdeal==9){
- $(".Totle-box").text('已结档')
- }
- Ajax();
- $('.go_search').on('input focus', function() {
- keyw = $(this).val();
- page = 1;
- Ajax(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)));
- mui.ajax(huayi.config.callcenter_url + 'WorkOrder/GetLDDealList', {
- data: {
- token: token,
- extensionphone: 1,
- page: page,
- key: keyw,
- state: isdeal, //=工单状态
- pagesize:pageSize,
- workid:wids,
- type: userResults, //=工单类型
- tel: LXRphones, //=客户电话
- name: LXRs, //=客户名称
- usercode: ZXResults, //=坐席工号
- deptid: DWResults,
- keyid: zhuTiResults, //=关键词id
- issatisfie: issatisfie,
- tab:1
- },
- dataType: 'json', //服务器返回json格式数据
- type: 'get', //HTTP请求类型
- timeout: 10000, //超时时间设置为10秒;
- headers: {
- 'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
- },
- success: function(data) {
- total = data.total;
- $('.Totle_num').text('共有'+total+'条工单');
- for(var i = 0; i < data.rows.length; i++) {
- var a = data.rows[i].TypeName;
- var c = data.rows[i].F_WorkState;
- var time = data.rows[i].F_CreateTime.substring(0, data.rows[i].F_CreateTime.indexOf(' '));
- var times=data.rows[i].LimitTime.substring(0, data.rows[i].LimitTime.indexOf(' '));
- if (times == null) {
- shixian = "";
- } else{
- shixian =times
- }
- var TypeName = '';
- if(!a) {
- TypeName = "其他来源"
- } else {
- TypeName = a
- }
- var html = '';
- if(c == 0) {
- html = '新工单';
- if(data.rows[i].F_IsReturn == 1) {
- html = '新工单(回退)';
- }
- }else if(c == 1){
- html = '待交办';
- }else if(c == 2){
- html = '待查收';
- }else if(c == 3){
- html = '退回审核中';
- }else if(c == 4){
- html = '办理中';
- }else if(c == 5){
- html = '延时审核';
- }else if(c == 6){
- html = '已办理';
- }else if(c == 7){
- html = '已办理';
- }else if(c == 8){
- html = '重办中';
- }else if(c == 9){
- html = '已结案';
- }
-
- $('<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">提交时间1:' + time + '</span>' +
- ' </p>' +
- ' </div>' +
- '</div>' +
- '</li>').appendTo('#order_list');
- }
- },
- error: function(xhr, type, errorThrown) {
- //异常处理;
- }
- })
- }, 1000);
- }
- function Ajax() {
- $(".order").remove();
- mui.ajax(huayi.config.callcenter_url + 'WorkOrder/GetLDDealList', {
- data: {
- token: token,
- extensionphone: 1,
- page: page,
- key: keyw,
- state: isdeal, //=工单状态
- pagesize:pageSize,
- workid:wids,
- type: userResults, //=工单类型
- tel: LXRphones, //=客户电话
- name: LXRs, //=客户名称
- usercode: ZXResults, //=坐席工号
- deptid: DWResults,
- keyid: zhuTiResults, //=关键词id
- issatisfie: issatisfie,
- tab:1
- },
- dataType: 'json', //服务器返回json格式数据
- type: 'get', //HTTP请求类型
- timeout: 10000, //超时时间设置为10秒;
- headers: {
- 'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
- },
- success: function(data) {
- total = data.total;
- $(".Totle").text('('+total+')');
- for(var i = 0; i < data.rows.length; i++) {
- var a = data.rows[i].TypeName;
- var c = data.rows[i].F_WorkState;
- var time = data.rows[i].F_CreateTime.substring(0, data.rows[i].F_CreateTime.indexOf(' '));
- // var times=data.rows[i].LimitTime.substring(0, data.rows[i].LimitTime.indexOf(' '));
- // if (times == null) {
- // shixian = "";
- // } else{
- // shixian =times
- // }
- var TypeName = '';
- if(!a) {
- TypeName = "其他来源"
- } else {
- TypeName = a
- }
- var html = '';
- if(c == 0) {
- html = '新工单';
- if(data.rows[i].F_IsReturn == 1) {
- html = '新工单(回退)';
- }
- }else if(c == 1){
- html = '待交办';
- }else if(c == 2){
- html = '待查收';
- }else if(c == 3){
- html = '退回审核中';
- }else if(c == 4){
- html = '办理中';
- }else if(c == 5){
- html = '延时审核';
- }else if(c == 6){
- html = '已办理';
- }else if(c == 7){
- html = '已办理';
- }else if(c == 8){
- html = '重办中';
- }else if(c == 9){
- html = '已结案';
- }
- $('<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: 'WorkYjbDetails',
- url: 'WorkYjbDetails.html',
- show: {
- aniShow: 'pop-in'
- },
- styles: {
- popGesture: 'hide'
- },
- waiting: {
- autoShow: true
- },
- extras: {
- name: id,
- token: token
- }
- });
- })
- $('.turnGo').on('tap',function(){
- mui.openWindow({
- id: 'CaXun',
- url: 'CaXun.html',
- show:{
- autoShow:false
- },
- extras:{
- tab:Index,
- token: token
- }
- });
- })
- });
- }
- </script>
- </body>
-
- </html>
|