|
|
@@ -1,10 +1,13 @@
|
|
1
|
1
|
mui.init({})
|
|
2
|
2
|
var state=1;
|
|
|
3
|
+//var Staff=1;
|
|
3
|
4
|
var openid = helper.cookies.get("openid");
|
|
4
|
5
|
var roleCode = helper.cookies.get("RoleCode");
|
|
|
6
|
+var typeUser = helper.cookies.get("typeUser");
|
|
5
|
7
|
var Itype = helper.request.queryString("Itype");
|
|
6
|
8
|
var turn = helper.request.queryString("turn");
|
|
7
|
|
-var turn=1;
|
|
|
9
|
+//var turn=1;
|
|
|
10
|
+//var typeUser=5;
|
|
8
|
11
|
//var openid = "oXF5e1mWpX5DajW5_yjNLPKb8ThE";
|
|
9
|
12
|
$(function () {
|
|
10
|
13
|
if (turn) {
|
|
|
@@ -18,25 +21,37 @@ $(function () {
|
|
18
|
21
|
if (Itype=="1") {
|
|
19
|
22
|
$(".titdyna li").removeClass("tab_color");
|
|
20
|
23
|
$(".titdyna li:eq(0)").addClass("tab_color");
|
|
21
|
|
- state=1
|
|
22
|
|
- Ajax();
|
|
|
24
|
+ state=1;
|
|
|
25
|
+ Ajax(state);
|
|
23
|
26
|
}else if(Itype=="2"){
|
|
24
|
27
|
$(".titdyna li").removeClass("tab_color");
|
|
25
|
28
|
$(".titdyna li:eq(1)").addClass("tab_color");
|
|
26
|
|
- state=2
|
|
27
|
|
- Ajax();
|
|
|
29
|
+ state=2;
|
|
|
30
|
+ Ajax(state);
|
|
28
|
31
|
}else if(Itype=="3"){
|
|
29
|
|
- state=3
|
|
|
32
|
+ state=3;
|
|
30
|
33
|
$(".titdyna li").removeClass("tab_color");
|
|
31
|
34
|
$(".titdyna li:eq(2)").addClass("tab_color");
|
|
32
|
|
- Ajax();
|
|
|
35
|
+ Ajax(state);
|
|
33
|
36
|
}else if(Itype=="4"){
|
|
34
|
|
- state=4
|
|
|
37
|
+ state=4;
|
|
35
|
38
|
$(".titdyna li").removeClass("tab_color");
|
|
36
|
39
|
$(".titdyna li:eq(3)").addClass("tab_color");
|
|
37
|
|
- Ajax();
|
|
38
|
|
- }else
|
|
39
|
|
- Ajax();
|
|
|
40
|
+ Ajax(state);
|
|
|
41
|
+ }
|
|
|
42
|
+ if(typeUser==5){
|
|
|
43
|
+ $(".titdyna").hide();
|
|
|
44
|
+ $("#OA_task").css("margin-top","45px");
|
|
|
45
|
+ state="";
|
|
|
46
|
+ Staff=1;
|
|
|
47
|
+ Ajax(state);
|
|
|
48
|
+ }else if(typeUser==1){
|
|
|
49
|
+ $(".titdyna").show();
|
|
|
50
|
+ $("#OA_task").css("margin-top","85px");
|
|
|
51
|
+ state=1;
|
|
|
52
|
+ Staff="";
|
|
|
53
|
+ Ajax(state);
|
|
|
54
|
+ }
|
|
40
|
55
|
})
|
|
41
|
56
|
$(".titdyna ul li").click(function () {
|
|
42
|
57
|
$(".titdyna li").removeClass("tab_color");
|
|
|
@@ -70,7 +85,6 @@ $(".titdyna ul li").click(function () {
|
|
70
|
85
|
stateText="异常退回待处理"
|
|
71
|
86
|
}else if(n.State==5){
|
|
72
|
87
|
stateText="处理中"
|
|
73
|
|
-
|
|
74
|
88
|
}else if(n.State==10){
|
|
75
|
89
|
stateText="已完成"
|
|
76
|
90
|
}
|
|
|
@@ -105,7 +119,7 @@ $(".titdyna ul li").click(function () {
|
|
105
|
119
|
}
|
|
106
|
120
|
})
|
|
107
|
121
|
})
|
|
108
|
|
-function Ajax() {
|
|
|
122
|
+function Ajax(state) {
|
|
109
|
123
|
//$(".order").remove();
|
|
110
|
124
|
$.ajax({
|
|
111
|
125
|
url: huayi.config.callcenter_url + 'WxLogin/GetWoList',
|
|
|
@@ -124,7 +138,6 @@ function Ajax() {
|
|
124
|
138
|
$(data.rows).each(function(i, n) {
|
|
125
|
139
|
var stateText;
|
|
126
|
140
|
var titleText;
|
|
127
|
|
-
|
|
128
|
141
|
if (n.State==0) {
|
|
129
|
142
|
stateText="待指派"
|
|
130
|
143
|
}else if (n.State==1) {
|
|
|
@@ -134,8 +147,10 @@ function Ajax() {
|
|
134
|
147
|
}else if(n.State==3){
|
|
135
|
148
|
stateText="退回待处理"
|
|
136
|
149
|
}else if(n.State==4){
|
|
137
|
|
- stateText="处理中"
|
|
|
150
|
+ stateText="异常退回待处理"
|
|
138
|
151
|
}else if(n.State==5){
|
|
|
152
|
+ stateText="处理中"
|
|
|
153
|
+ }else if(n.State==10){
|
|
139
|
154
|
stateText="已完成"
|
|
140
|
155
|
}
|
|
141
|
156
|
if (n.TypeClassName=="") {
|
|
|
@@ -146,18 +161,18 @@ function Ajax() {
|
|
146
|
161
|
}
|
|
147
|
162
|
$('<li class="mui-table-view-cell order" data-index="' + n.ID + '">' +
|
|
148
|
163
|
'<div class="mui-table">' +
|
|
149
|
|
- '<div class="mui-table-cell mui-col-xs-10">' +
|
|
|
164
|
+ '<div class="mui-table-cell mui-col-xs-8">' +
|
|
150
|
165
|
'<h4 class="mui-ellipsis">' + titleText +
|
|
151
|
166
|
'</h4><h5>' + n.CreateTime +
|
|
152
|
167
|
'</h5></div>'+
|
|
153
|
|
- '<div class="mui-table-cell mui-col-xs-2 mui-text-right">'+
|
|
|
168
|
+ '<div class="mui-table-cell mui-col-xs-4 mui-text-right">'+
|
|
154
|
169
|
'<span class="mui-h5">'+stateText+
|
|
155
|
170
|
'</span></div></div></li>').appendTo('#OA_task');
|
|
156
|
171
|
});
|
|
157
|
172
|
//工单跳转
|
|
158
|
173
|
$('.order').on('tap', function() {
|
|
159
|
174
|
var index = $(this).attr('data-index');
|
|
160
|
|
- window.location.href = "orderDetail.html?id=" + index+'&type='+state;
|
|
|
175
|
+ window.location.href = "orderDetail.html?id=" + index+'&type='+state+'&typeStaff='+Staff;
|
|
161
|
176
|
});
|
|
162
|
177
|
} else {
|
|
163
|
178
|
$(".noinfor").text("暂无信息");
|