|
|
@@ -84,7 +84,7 @@ window.onload = function() {
|
|
84
|
84
|
token: token,
|
|
85
|
85
|
state: index,
|
|
86
|
86
|
dealTimely: classImport,
|
|
87
|
|
- offce:$("#DWResult").attr("data-index"),
|
|
|
87
|
+ offce:localStorage.getItem("DWResult"),
|
|
88
|
88
|
extensionphone: 1,
|
|
89
|
89
|
pageindex: page,
|
|
90
|
90
|
pagesize: pageSize
|
|
|
@@ -162,7 +162,6 @@ window.onload = function() {
|
|
162
|
162
|
$(".mui-btn-submit").hide();
|
|
163
|
163
|
}
|
|
164
|
164
|
}
|
|
165
|
|
-
|
|
166
|
165
|
$(".mui-btn-submit").on("tap", function() {
|
|
167
|
166
|
var a = index;
|
|
168
|
167
|
var b = $(this).attr("data-index");
|
|
|
@@ -188,105 +187,108 @@ window.onload = function() {
|
|
188
|
187
|
}
|
|
189
|
188
|
|
|
190
|
189
|
function Ajax() {
|
|
191
|
|
- $(".orderLi").remove();
|
|
192
|
190
|
page=1;
|
|
193
|
191
|
pageSize=10;
|
|
194
|
|
- mui.ajax(huayi.config.callcenter_url + 'WorkorderApp/GetList', {
|
|
195
|
|
- data: {
|
|
196
|
|
- token: token,
|
|
197
|
|
- state: index,
|
|
198
|
|
- dealTimely: classImport,
|
|
199
|
|
- extensionphone: 1,
|
|
200
|
|
- keywords:keyw,
|
|
201
|
|
- offce:$("#DWResult").attr("data-index"),
|
|
202
|
|
- pageindex: 1,
|
|
203
|
|
- pagesize: 10
|
|
204
|
|
- },
|
|
205
|
|
- dataType: 'json', //服务器返回json格式数据
|
|
206
|
|
- type: 'get', //HTTP请求类型
|
|
207
|
|
- timeout: 10000, //超时时间设置为10秒;
|
|
208
|
|
- headers: {
|
|
209
|
|
- 'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
|
|
210
|
|
- },
|
|
211
|
|
- success: function(data) {
|
|
212
|
|
- var total = data.total;
|
|
213
|
|
- if(!total) {
|
|
214
|
|
- total = 0;
|
|
215
|
|
- $(".noWork").show();
|
|
216
|
|
- }
|
|
217
|
|
- var imgnum;
|
|
218
|
|
- $(".class-icon img").hide()
|
|
219
|
|
- $(".Totle").text('(' + total + ')');
|
|
220
|
|
- for(var i = 0; i < data.rows.length; i++) {
|
|
221
|
|
- var a = data.rows[i].F_Content;
|
|
222
|
|
- var c = data.rows[i].F_WorkState;
|
|
223
|
|
- var time = data.rows[i].F_CreateTime;
|
|
224
|
|
- var areaOffice;
|
|
225
|
|
- if (!data.rows[i].F_AreaName) {
|
|
226
|
|
- areaOffice='';
|
|
227
|
|
- }else{
|
|
228
|
|
- areaOffice='<p class="mui-h6 mui-ellipsis" style="padding-left: 15px;">' +
|
|
229
|
|
- '<span class="areaOffice">大区办事处:'+data.rows[i].F_AreaName +"-"+data.rows[i].F_OfficName+'</span>' +
|
|
230
|
|
- ' </p>'
|
|
231
|
|
- }
|
|
232
|
|
- if(data.rows[i].F_DealTimely == "Ⅰ级") {
|
|
233
|
|
- imgnum = '<img src="../img/class-img1.png"/>';
|
|
234
|
|
- } else if(data.rows[i].F_DealTimely == "Ⅱ级") {
|
|
235
|
|
- imgnum = '<img src="../img/class-img2.png"/>';
|
|
236
|
|
- } else if(data.rows[i].F_DealTimely == "普通工单") {
|
|
237
|
|
- imgnum = '<img src="../img/class-img3.png"/>';
|
|
238
|
|
- } else {
|
|
239
|
|
- imgnum = "";
|
|
240
|
|
- }
|
|
241
|
|
- $('<li class="mui-table-view-cell orderLi">' +
|
|
242
|
|
- '<div class="mui-table order" data-index="' + data.rows[i].F_Id + '">' +
|
|
243
|
|
- '<div class="mui-table-cell mui-col-xs-12">' +
|
|
244
|
|
- '<h5 class="mui-ellipsis new_title" >' + data.rows[i].F_QualityProblem + '</h5>' +
|
|
245
|
|
- ' <p class="mui-h6 mui-ellipsis">' +
|
|
246
|
|
- '<span class="advice">' + a + '</span>' +
|
|
247
|
|
- ' </p>'+areaOffice+'<p class="mui-h6 mui-ellipsis">' +
|
|
248
|
|
- '<span class="time">投诉时间:' + time + '</span>' +
|
|
249
|
|
- ' </p></div></div>' +
|
|
250
|
|
- '<div class="class-icon">' + imgnum +
|
|
251
|
|
- '</div>' +
|
|
252
|
|
- '<button class="mui-btn mui-btn-block mui-btn-danger mui-btn-submit" data-index="'+data.rows[i].F_Id +'" index="' + index + '"></button>' +
|
|
253
|
|
- '</li>').appendTo('#order_list');
|
|
254
|
|
- if(classImport) {
|
|
255
|
|
- $(".mui-btn-submit").hide();
|
|
|
192
|
+ setTimeout(function() {
|
|
|
193
|
+ mui.ajax(huayi.config.callcenter_url + 'WorkorderApp/GetList', {
|
|
|
194
|
+ data: {
|
|
|
195
|
+ token: token,
|
|
|
196
|
+ state: index,
|
|
|
197
|
+ dealTimely: classImport,
|
|
|
198
|
+ extensionphone: 1,
|
|
|
199
|
+ keywords:keyw,
|
|
|
200
|
+ offce:localStorage.getItem("DWResult"),
|
|
|
201
|
+ pageindex: 1,
|
|
|
202
|
+ pagesize: 10
|
|
|
203
|
+ },
|
|
|
204
|
+ dataType: 'json', //服务器返回json格式数据
|
|
|
205
|
+ type: 'get', //HTTP请求类型
|
|
|
206
|
+ timeout: 10000, //超时时间设置为10秒;
|
|
|
207
|
+ headers: {
|
|
|
208
|
+ 'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
|
|
|
209
|
+ },
|
|
|
210
|
+ success: function(data) {
|
|
|
211
|
+ var total = data.total;
|
|
|
212
|
+ if(!total) {
|
|
|
213
|
+ total = 0;
|
|
|
214
|
+ $(".noWork").show();
|
|
256
|
215
|
}
|
|
|
216
|
+ var imgnum;
|
|
|
217
|
+ $(".class-icon img").hide()
|
|
|
218
|
+ $(".Totle").text('(' + total + ')');
|
|
|
219
|
+
|
|
|
220
|
+ for(var i = 0; i < data.rows.length; i++) {
|
|
|
221
|
+ var a = data.rows[i].F_Content;
|
|
|
222
|
+ var c = data.rows[i].F_WorkState;
|
|
|
223
|
+ var time = data.rows[i].F_CreateTime;
|
|
|
224
|
+ var areaOffice;
|
|
|
225
|
+ if (!data.rows[i].F_AreaName) {
|
|
|
226
|
+ areaOffice='';
|
|
|
227
|
+ }else{
|
|
|
228
|
+ areaOffice='<p class="mui-h6 mui-ellipsis" style="padding-left: 15px;">' +
|
|
|
229
|
+ '<span class="areaOffice">大区办事处:'+data.rows[i].F_AreaName +"-"+data.rows[i].F_OfficName+'</span>' +
|
|
|
230
|
+ ' </p>'
|
|
|
231
|
+ }
|
|
|
232
|
+ if(data.rows[i].F_DealTimely == "Ⅰ级") {
|
|
|
233
|
+ imgnum = '<img src="../img/class-img1.png"/>';
|
|
|
234
|
+ } else if(data.rows[i].F_DealTimely == "Ⅱ级") {
|
|
|
235
|
+ imgnum = '<img src="../img/class-img2.png"/>';
|
|
|
236
|
+ } else if(data.rows[i].F_DealTimely == "普通工单") {
|
|
|
237
|
+ imgnum = '<img src="../img/class-img3.png"/>';
|
|
|
238
|
+ } else {
|
|
|
239
|
+ imgnum = "";
|
|
|
240
|
+ }
|
|
|
241
|
+ $('<li class="mui-table-view-cell orderLi">' +
|
|
|
242
|
+ '<div class="mui-table order" data-index="' + data.rows[i].F_Id + '">' +
|
|
|
243
|
+ '<div class="mui-table-cell mui-col-xs-12">' +
|
|
|
244
|
+ '<h5 class="mui-ellipsis new_title" >' + data.rows[i].F_QualityProblem + '</h5>' +
|
|
|
245
|
+ ' <p class="mui-h6 mui-ellipsis">' +
|
|
|
246
|
+ '<span class="advice">' + a + '</span>' +
|
|
|
247
|
+ ' </p>'+areaOffice+'<p class="mui-h6 mui-ellipsis">' +
|
|
|
248
|
+ '<span class="time">投诉时间:' + time + '</span>' +
|
|
|
249
|
+ ' </p></div></div>' +
|
|
|
250
|
+ '<div class="class-icon">' + imgnum +
|
|
|
251
|
+ '</div>' +
|
|
|
252
|
+ '<button class="mui-btn mui-btn-block mui-btn-danger mui-btn-submit" data-index="'+data.rows[i].F_Id +'" index="' + index + '"></button>' +
|
|
|
253
|
+ '</li>').appendTo('#order_list');
|
|
|
254
|
+ if(classImport) {
|
|
|
255
|
+ $(".mui-btn-submit").hide();
|
|
|
256
|
+ }
|
|
257
|
257
|
|
|
258
|
|
- if(index == 0 || index == 6) {
|
|
259
|
|
- //待提交
|
|
260
|
|
- $(".mui-btn-submit").text("提交")
|
|
261
|
|
- } else if(index == 1 || index == 5) {
|
|
262
|
|
- //待分派
|
|
263
|
|
- $(".mui-btn-submit").text("指派")
|
|
264
|
|
- } else if(index == 3 || index == 4) {
|
|
265
|
|
- //待处理
|
|
266
|
|
- $(".mui-btn-submit").text("处理")
|
|
267
|
|
- } else if(index == 10) {
|
|
268
|
|
- $(".mui-btn-submit").hide();
|
|
|
258
|
+ if(index == 0 || index == 6) {
|
|
|
259
|
+ //待提交
|
|
|
260
|
+ $(".mui-btn-submit").text("提交")
|
|
|
261
|
+ } else if(index == 1 || index == 5) {
|
|
|
262
|
+ //待分派
|
|
|
263
|
+ $(".mui-btn-submit").text("指派")
|
|
|
264
|
+ } else if(index == 3 || index == 4) {
|
|
|
265
|
+ //待处理
|
|
|
266
|
+ $(".mui-btn-submit").text("处理")
|
|
|
267
|
+ } else if(index == 10) {
|
|
|
268
|
+ $(".mui-btn-submit").hide();
|
|
|
269
|
+ }
|
|
269
|
270
|
}
|
|
|
271
|
+ $(".mui-btn-submit").on("tap", function() {
|
|
|
272
|
+ var a = index;
|
|
|
273
|
+ var b = $(this).attr("data-index");
|
|
|
274
|
+ //submitFun(b);
|
|
|
275
|
+ if(a == 0 || a == 6) {
|
|
|
276
|
+ //待提交
|
|
|
277
|
+ submitFun(b);
|
|
|
278
|
+ } else if(a == 1 || a == 5) {
|
|
|
279
|
+ //待分派
|
|
|
280
|
+ appointFun(b);
|
|
|
281
|
+ } else if(a == 3 || a == 4) {
|
|
|
282
|
+ //待处理
|
|
|
283
|
+ disposeFun(b);
|
|
|
284
|
+ }
|
|
|
285
|
+ })
|
|
|
286
|
+ },
|
|
|
287
|
+ error: function(xhr, type, errorThrown) {
|
|
|
288
|
+ //异常处理;
|
|
270
|
289
|
}
|
|
271
|
|
- $(".mui-btn-submit").on("tap", function() {
|
|
272
|
|
- var a = index;
|
|
273
|
|
- var b = $(this).attr("data-index");
|
|
274
|
|
- //submitFun(b);
|
|
275
|
|
- if(a == 0 || a == 6) {
|
|
276
|
|
- //待提交
|
|
277
|
|
- submitFun(b);
|
|
278
|
|
- } else if(a == 1 || a == 5) {
|
|
279
|
|
- //待分派
|
|
280
|
|
- appointFun(b);
|
|
281
|
|
- } else if(a == 3 || a == 4) {
|
|
282
|
|
- //待处理
|
|
283
|
|
- disposeFun(b);
|
|
284
|
|
- }
|
|
285
|
|
- })
|
|
286
|
|
- },
|
|
287
|
|
- error: function(xhr, type, errorThrown) {
|
|
288
|
|
- //异常处理;
|
|
289
|
|
- }
|
|
|
290
|
+ })
|
|
|
291
|
+
|
|
290
|
292
|
})
|
|
291
|
293
|
}
|
|
292
|
294
|
|
|
|
@@ -415,6 +417,8 @@ window.onload = function() {
|
|
415
|
417
|
ZTiPickers.show(function(items) {
|
|
416
|
418
|
ZXResults.value = items[1].text;
|
|
417
|
419
|
ZXResults.setAttribute("data-index", items[1].id);
|
|
|
420
|
+ localStorage.setItem("DWResult", items[1].id);
|
|
|
421
|
+ window.location.reload();
|
|
418
|
422
|
Ajax();
|
|
419
|
423
|
});
|
|
420
|
424
|
}, false);
|