miaofuhao 5 年 前
コミット
5e0d228676

+ 52 - 0
双汇APP-andriod/js/personal.js

@@ -185,4 +185,56 @@ $(".work-class").on('tap', function() {
185 185
 		}
186 186
 	});
187 187
 })
188
+mui.plusReady(function() {
189
+	// 版本更新
190
+	var Code_;
191
+	var NewCode_;
192
+	plus.runtime.getProperty(plus.runtime.appid, function(wgtinfo) {
193
+		console.log("当前应用版本:" + wgtinfo.version + "---" + plus.runtime.version);
194
+		localStorage.setItem("Code", wgtinfo.version) //缓存保存版本号;
195
+		Code_ = localStorage.getItem("Code");
196
+		$('.update').text(Code_);
197
+	});	
198
+	//检查更新
199
+	var server = huayi.config.callcenter_url + "ApplicationsVersion/GetAndroid?"; //获取升级描述文件服务器地址	
200
+	mui.ajax(server, {
201
+		data: {
202
+			isNew: true,
203
+			token: token
204
+		},
205
+		dataType: 'json', //服务器返回json格式数据
206
+		type: 'post', //HTTP请求类型
207
+		timeout: 10000, //超时时间设置为10秒;
208
+		headers: {
209
+			'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
210
+		},
211
+		success: function(data) { 
212
+			if (data.state == "success") {
213
+				NewCode_ = data.data.F_VersionCode;
214
+				localStorage.setItem("Code", NewCode_); //缓存保存版本号;
215
+				if (Code_ != NewCode_) {
216
+					var Codes = localStorage.setItem("Code", NewCode_);
217
+					console.log(Codes);
218
+					plus.nativeUI.confirm("发现新版本", function(event) {
219
+						var tapIndex = event.index;
220
+						if (tapIndex == 0) {
221
+							plus.runtime.openURL(data.data.F_Url);
222
+						} else {
223
+							mui.toast("取消更新");
224
+						}
225
+					}, "提示", ["立即更新", "取消"])
226
+				}
227
+
228
+			} else {
229
+				mui.toast(data.message);
230
+
231
+			}
232
+
233
+		},
234
+		error: function(data) {
235
+			//异常处理;
236
+			console.log(data.message);
237
+		}
238
+	})
239
+})
188 240
 

+ 3 - 3
双汇APP-andriod/personal.html

@@ -334,7 +334,7 @@
334 334
 									<span class="mui-icon iconfont icon-gonggao01 blue"></span>
335 335
 								</div>
336 336
 								<div class="mui-text-left mui-pull-left">
337
-									<h4>类问题</h4>
337
+									<h4>1类问题</h4>
338 338
 									<h5>涉媒或政府职能部门</h5>
339 339
 								</div>
340 340
 							</a>
@@ -346,7 +346,7 @@
346 346
 									<span class="mui-icon iconfont icon-ditu-cuidan yellow"></span>
347 347
 								</div>
348 348
 								<div class="mui-text-left mui-pull-left">
349
-									<h4>类问题</h4>
349
+									<h4>2类问题</h4>
350 350
 									<h5>索赔过高或难以处理</h5>
351 351
 								</div>
352 352
 							</a>
@@ -358,7 +358,7 @@
358 358
 									<span class="mui-icon iconfont icon-tubiao- red"></span>
359 359
 								</div>
360 360
 								<div class="mui-text-left mui-pull-left">
361
-									<h4>类问题</h4> 
361
+									<h4>3类问题</h4> 
362 362
 									<h5>影响轻微,容易处理</h5>
363 363
 								</div> 
364 364
 							</a>

+ 11 - 11
双汇APP-andriod/workOrder/js/Work-list.js

@@ -107,11 +107,11 @@ window.onload = function() {
107 107
 							var a = data.rows[i].F_Content;
108 108
 							var c = data.rows[i].F_WorkState;
109 109
 							var time = data.rows[i].F_CreateTime;
110
-							if(data.rows[i].F_DealTimely == "Ⅰ级") {
110
+							if(data.rows[i].F_DealTimely == "Ⅰ级"||data.rows[i].F_DealTimely =="1类问题") {
111 111
 								imgnum = '<img src="../img/class-img1.png"/>';
112
-							} else if(data.rows[i].F_DealTimely == "Ⅱ级") {
113
-								imgnum = '<img src="../img/class-img2.png"/>';
114
-							} else if(data.rows[i].F_DealTimely == "普通工单") {
112
+							} else if(data.rows[i].F_DealTimely == "Ⅱ级"||data.rows[i].F_DealTimely =="2类问题") {
113
+								imgnum = '<img src="../img/class-img2.png"/>'; 
114
+							} else if(data.rows[i].F_DealTimely == "普通工单"||data.rows[i].F_DealTimely =="3类问题") {
115 115
 								imgnum = '<img src="../img/class-img3.png"/>';
116 116
 							} else {
117 117
 								imgnum = "";
@@ -142,11 +142,11 @@ window.onload = function() {
142 142
 							if(classImport) {
143 143
 								$(".mui-btn-submit").hide();
144 144
 							}
145
-							if(data.rows[i].F_DealTimely = "Ⅰ级") {
145
+							if(data.rows[i].F_DealTimely = "Ⅰ级"||data.rows[i].F_DealTimely =="1类问题") {
146 146
 								$(".class-icon img").eq(0).show()
147
-							} else if(data.rows[i].F_DealTimely = "Ⅱ级") {
147
+							} else if(data.rows[i].F_DealTimely = "Ⅱ级"||data.rows[i].F_DealTimely =="2类问题") {
148 148
 								$(".class-icon img").eq(1).show()
149
-							} else if(data.rows[i].F_DealTimely = "普通工单") {
149
+							} else if(data.rows[i].F_DealTimely = "普通工单"||data.rows[i].F_DealTimely =="3类问题") {
150 150
 								$(".class-icon img").eq(2).show()
151 151
 							}
152 152
 							if(index == 0 || index == 6) {
@@ -229,11 +229,11 @@ window.onload = function() {
229 229
 							'<span class="areaOffice">大区办事处:'+data.rows[i].F_AreaName +"-"+data.rows[i].F_OfficName+'</span>' +
230 230
 							' </p>'
231 231
 						}
232
-						if(data.rows[i].F_DealTimely == "Ⅰ级") {
232
+						if(data.rows[i].F_DealTimely == "Ⅰ级"||data.rows[i].F_DealTimely =="1类问题") {
233 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 == "普通工单") {
234
+						} else if(data.rows[i].F_DealTimely == "Ⅱ级"||data.rows[i].F_DealTimely =="2类问题") {
235
+							imgnum = '<img src="../img/class-img2.png"/>'; 
236
+						} else if(data.rows[i].F_DealTimely == "普通工单"||data.rows[i].F_DealTimely =="3类问题") {
237 237
 							imgnum = '<img src="../img/class-img3.png"/>';
238 238
 						} else {
239 239
 							imgnum = "";

+ 3 - 3
双汇APP-andriod/workOrder/js/work-sign.js

@@ -33,11 +33,11 @@ mui.plusReady(function() {
33 33
 	//接收人员
34 34
 	function getReceiveUser() {
35 35
 		var falgT;
36
-		if($("#DWResult").val()=="普通工单"){
36
+		if($("#DWResult").val()=="普通工单"||$("#DWResult").val()=="3类问题"){
37 37
 			falgT=""
38
-		}else if($("#DWResult").val()=="Ⅰ级"){
38
+		}else if($("#DWResult").val()=="Ⅰ级"||$("#DWResult").val()=="1类问题"){
39 39
 			falgT="YJYY"
40
-		}else if($("#DWResult").val()=="Ⅱ级"){
40
+		}else if($("#DWResult").val()=="Ⅱ级"||$("#DWResult").val()=="2类问题"){
41 41
 			falgT="EJYY"
42 42
 		}
43 43
 		yyList = []

+ 1 - 1
双汇APP/Setting-1.html

@@ -46,7 +46,7 @@
46 46
 							</a>
47 47
 						</ul>
48 48
 						<ul class="mui-table-view mui-table-view-chevron">
49
-							<li class="mui-table-view-cell">
49
+							<li class="mui-table-view-cell"> 
50 50
 								<a id="management" class="mui-navigate-right"><img class="Img" src="img/Wb.png" alt="" />用户管理 <i class="mui-pull-right "></i></a>
51 51
 							</li>
52 52
 							<li class="mui-table-view-cell">

+ 94 - 52
双汇APP/js/personal.js

@@ -16,9 +16,9 @@ $.ajax({
16 16
 	dataType: 'json', //服务器返回json格式数据
17 17
 	url: huayi.config.callcenter_url + '/UserAccount/GetNowUser',
18 18
 	type: 'get', //HTTP请求类型
19
-	
19
+
20 20
 	success: function(data) {
21
-		if(data.data.display == "1") {
21
+		if (data.data.display == "1") {
22 22
 			$(".addDisplay").show()
23 23
 		} else {
24 24
 			$(".addDisplay").hide()
@@ -28,17 +28,17 @@ $.ajax({
28 28
 		localStorage.setItem("F_UserName", data.data.user.F_UserName);
29 29
 		localStorage.setItem("F_See", data.data.user.F_See);
30 30
 		$(".rolname").text(data.data.user.rolname);
31
-		if(RoleCode == "0") { //调度   
31
+		if (RoleCode == "0") { //调度   
32 32
 			$(".RoleCode_0").css('display', 'block')
33
-		} else if(RoleCode == "1") {
33
+		} else if (RoleCode == "1") {
34 34
 			$(".RoleCode_1").css('display', 'block')
35
-		} else if(RoleCode == "2") {
35
+		} else if (RoleCode == "2") {
36 36
 			$(".RoleCode_2").css('display', 'block')
37
-		} else if(RoleCode == "3") {
37
+		} else if (RoleCode == "3") {
38 38
 			$(".RoleCode_3").css('display', 'block')
39
-		} else if(RoleCode == "4") {
39
+		} else if (RoleCode == "4") {
40 40
 			$(".RoleCode_4").css('display', 'block')
41
-		} 
41
+		}
42 42
 	},
43 43
 	error: function(xhr, type, errorThrown) {
44 44
 		//异常处理;
@@ -47,7 +47,7 @@ $.ajax({
47 47
 });
48 48
 
49 49
 function ajaxRefresh() {
50
- 	//权限判断
50
+	//权限判断
51 51
 	$.ajax({
52 52
 		data: {
53 53
 			token: token,
@@ -60,80 +60,80 @@ function ajaxRefresh() {
60 60
 			'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
61 61
 		},
62 62
 		success: function(data) {
63
-			
64
-			if(data.DTJ > 99) {
63
+
64
+			if (data.DTJ > 99) {
65 65
 				$(".DTJ").text("99"); //待提交
66
-			} else if(data.DTJ == 0) {
66
+			} else if (data.DTJ == 0) {
67 67
 				$(".DTJ").hide(); //待提交
68 68
 			} else {
69 69
 				$(".DTJ").text(data.DTJ); //待提交
70 70
 			}
71
-			if(data.DFP > 99) {
71
+			if (data.DFP > 99) {
72 72
 				$(".DFP").text("99"); //待提交
73
-			} else if(data.DFP == 0) {
73
+			} else if (data.DFP == 0) {
74 74
 				$(".DFP").hide(); //待提交
75
-			}  else {
75
+			} else {
76 76
 				$(".DFP").text(data.DFP); //待提交
77 77
 			}
78
-			if(data.DCL > 99) {
78
+			if (data.DCL > 99) {
79 79
 				$(".DCL").text("99"); //待处理
80
-			} else if(data.DCL == 0) {
80
+			} else if (data.DCL == 0) {
81 81
 				$(".DCL").hide(); //待提交
82 82
 			} else {
83 83
 				$(".DCL").text(data.DCL); //待处理
84 84
 			}
85
-			if(data.CLZ > 99) {
85
+			if (data.CLZ > 99) {
86 86
 				$(".CLZ").text("99"); //待提交
87
-			} else if(data.CLZ == 0) {
87
+			} else if (data.CLZ == 0) {
88 88
 				$(".CLZ").hide(); //待提交
89
-			}  else {
89
+			} else {
90 90
 				$(".CLZ").text(data.CLZ); //处理中
91 91
 			}
92
-			if(data.YWJ > 99) {
92
+			if (data.YWJ > 99) {
93 93
 				$(".YWJ").text("99"); //待提交
94
-			} else if(data.CLZ == 0) {
94
+			} else if (data.CLZ == 0) {
95 95
 				$(".YWJ").hide(); //待提交
96
-			}  else {
96
+			} else {
97 97
 				$(".YWJ").text(data.YWJ); //已完结
98 98
 			}
99
-			if(data.CJSL > 99) {
99
+			if (data.CJSL > 99) {
100 100
 				$(".CJSL").text("99"); //抽检工单
101
-			} else if(data.CJSL == 0) {
101
+			} else if (data.CJSL == 0) {
102 102
 				$(".CJSL").hide(); //待提交
103
-			}  else {
103
+			} else {
104 104
 				$(".CJSL").text(data.CJSL); //抽检工单
105 105
 			}
106
-			if(data.THDTJ > 99) {
106
+			if (data.THDTJ > 99) {
107 107
 				$(".THDTJ").text("99"); //待提交
108
-			} else if(data.THDTJ == 0) {
108
+			} else if (data.THDTJ == 0) {
109 109
 				$(".THDTJ").hide(); //待提交
110
-			}  else {
110
+			} else {
111 111
 				$(".THDTJ").text(data.THDTJ); //退回待提交
112 112
 			}
113
-			if(data.THDFP > 99) {
113
+			if (data.THDFP > 99) {
114 114
 				$(".THDFP").text("99"); //待提交
115
-			} else if(data.THDFP == 0) {
115
+			} else if (data.THDFP == 0) {
116 116
 				$(".THDFP").hide(); //待提交
117 117
 			} else {
118 118
 				$(".THDFP").text(data.THDFP); //退回待分配
119 119
 			}
120
-			if(data.YJGD > 99) {
120
+			if (data.YJGD > 99) {
121 121
 				$(".YJGD").text("99"); //待提交
122
-			} else if(data.YJGD == 0) {
122
+			} else if (data.YJGD == 0) {
123 123
 				$(".YJGD").hide(); //待提交
124
-			}  else {
124
+			} else {
125 125
 				$(".YJGD").text(data.YJGD); //一级工单
126 126
 			}
127
-			if(data.EJGD > 99) {
127
+			if (data.EJGD > 99) {
128 128
 				$(".EJGD").text("99"); //待提交
129
-			} else if(data.EJGD == 0) {
129
+			} else if (data.EJGD == 0) {
130 130
 				$(".EJGD").hide(); //待提交
131
-			}  else {
131
+			} else {
132 132
 				$(".EJGD").text(data.EJGD); //二级工单
133 133
 			}
134
-			if(data.SJGD > 99) {
134
+			if (data.SJGD > 99) {
135 135
 				$(".SJGD").text("99"); //三级工单
136
-			} else if(data.SJGD == 0) {
136
+			} else if (data.SJGD == 0) {
137 137
 				$(".SJGD").hide(); //待提交
138 138
 			} else {
139 139
 				$(".SJGD").text(data.SJGD); //三级工单
@@ -161,15 +161,15 @@ $(".work-list").on('tap', function() {
161 161
 		},
162 162
 		extras: {
163 163
 			index: index,
164
-			
164
+
165 165
 		}
166 166
 	});
167 167
 })
168 168
 //工单等级列表
169 169
 $(".work-class").on('tap', function() {
170 170
 	var importClass = $(this).attr('index');
171
-	var choujian=$(this).attr('choujian');
172
-	
171
+	var choujian = $(this).attr('choujian');
172
+
173 173
 	mui.openWindow({
174 174
 		id: 'Work-listClass',
175 175
 		url: 'workOrder/Work-listClass.html',
@@ -186,13 +186,55 @@ $(".work-class").on('tap', function() {
186 186
 		}
187 187
 	});
188 188
 })
189
-//常见问题
190
-//document.getElementById('Report').addEventListener('tap', function() {
191
-//	var nwaiting = plus.nativeUI.showWaiting();
192
-//	webviewShow = plus.webview.create("Work-Add.html"); //后台创建webview并打开show.html  
193
-//	webviewShow.addEventListener("loaded", function() { //注册新webview的载入完成事件  
194
-//		nwaiting.close(); //新webview的载入完毕后关闭等待框  
195
-//		webviewShow.show("slide-in-right", 300); //把新webview窗体显示出来,显示动画效果为速度300毫秒的右侧移入动画
196
-//	}, false);
197
-//
198
-//});
189
+mui.plusReady(function() {
190
+	// 版本更新
191
+	var Code_;
192
+	var NewCode_;
193
+	plus.runtime.getProperty(plus.runtime.appid, function(wgtinfo) {
194
+		console.log("当前应用版本:" + wgtinfo.version + "---" + plus.runtime.version);
195
+		localStorage.setItem("Code", wgtinfo.version) //缓存保存版本号;
196
+		Code_ = localStorage.getItem("Code");
197
+		$('.update').text(Code_);
198
+	});	
199
+	//检查更新
200
+	var server = huayi.config.callcenter_url + "ApplicationsVersion/GetIos?"; //获取升级描述文件服务器地址	
201
+	mui.ajax(server, {
202
+		data: {
203
+			isNew: true,
204
+			token: token
205
+		},
206
+		dataType: 'json', //服务器返回json格式数据
207
+		type: 'post', //HTTP请求类型
208
+		timeout: 10000, //超时时间设置为10秒;
209
+		headers: {
210
+			'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
211
+		},
212
+		success: function(data) { 
213
+			if (data.state == "success") {
214
+				NewCode_ = data.data.F_VersionCode;
215
+				localStorage.setItem("Code", NewCode_); //缓存保存版本号;
216
+				if (Code_ != NewCode_) {
217
+					var Codes = localStorage.setItem("Code", NewCode_);
218
+					console.log(Codes);
219
+					plus.nativeUI.confirm("发现新版本", function(event) {
220
+						var tapIndex = event.index;
221
+						if (tapIndex == 0) {
222
+							plus.runtime.openURL(data.data.F_Url);
223
+						} else {
224
+							mui.toast("取消更新");
225
+						}
226
+					}, "提示", ["立即更新", "取消"])
227
+				}
228
+
229
+			} else {
230
+				mui.toast(data.message);
231
+
232
+			}
233
+
234
+		},
235
+		error: function(data) {
236
+			//异常处理;
237
+			console.log(data.message);
238
+		}
239
+	})
240
+})

+ 3 - 3
双汇APP/personal.html

@@ -334,7 +334,7 @@
334 334
 									<span class="mui-icon iconfont icon-gonggao01 blue"></span>
335 335
 								</div>
336 336
 								<div class="mui-text-left mui-pull-left">
337
-									<h4>类问题</h4>
337
+									<h4>1类问题</h4>
338 338
 									<h5>涉媒或政府职能部门</h5>
339 339
 								</div>
340 340
 							</a>
@@ -346,7 +346,7 @@
346 346
 									<span class="mui-icon iconfont icon-ditu-cuidan yellow"></span>
347 347
 								</div>
348 348
 								<div class="mui-text-left mui-pull-left">
349
-									<h4>类问题</h4>
349
+									<h4>2类问题</h4>
350 350
 									<h5>索赔过高或难以处理</h5>
351 351
 								</div>
352 352
 							</a>
@@ -358,7 +358,7 @@
358 358
 									<span class="mui-icon iconfont icon-tubiao- red"></span>
359 359
 								</div>
360 360
 								<div class="mui-text-left mui-pull-left">
361
-									<h4>类问题</h4> 
361
+									<h4>3类问题</h4> 
362 362
 									<h5>影响轻微,容易处理</h5>
363 363
 								</div> 
364 364
 							</a>

+ 102 - 106
双汇APP/workOrder/js/Work-list.js

@@ -84,7 +84,7 @@ window.onload = function() {
84 84
 						token: token,
85 85
 						state: index,
86 86
 						dealTimely: classImport,
87
-						offce:localStorage.getItem("DWResult"),
87
+						offce:$("#DWResult").attr("data-index"),
88 88
 						extensionphone: 1,
89 89
 						pageindex: page,
90 90
 						pagesize: pageSize
@@ -107,11 +107,11 @@ window.onload = function() {
107 107
 							var a = data.rows[i].F_Content;
108 108
 							var c = data.rows[i].F_WorkState;
109 109
 							var time = data.rows[i].F_CreateTime;
110
-							if(data.rows[i].F_DealTimely == "Ⅰ级") {
110
+							if(data.rows[i].F_DealTimely == "Ⅰ级"||data.rows[i].F_DealTimely =="1类问题") {
111 111
 								imgnum = '<img src="../img/class-img1.png"/>';
112
-							} else if(data.rows[i].F_DealTimely == "Ⅱ级") {
113
-								imgnum = '<img src="../img/class-img2.png"/>';
114
-							} else if(data.rows[i].F_DealTimely == "普通工单") {
112
+							} else if(data.rows[i].F_DealTimely == "Ⅱ级"||data.rows[i].F_DealTimely =="2类问题") {
113
+								imgnum = '<img src="../img/class-img2.png"/>'; 
114
+							} else if(data.rows[i].F_DealTimely == "普通工单"||data.rows[i].F_DealTimely =="3类问题") {
115 115
 								imgnum = '<img src="../img/class-img3.png"/>';
116 116
 							} else {
117 117
 								imgnum = "";
@@ -142,11 +142,11 @@ window.onload = function() {
142 142
 							if(classImport) {
143 143
 								$(".mui-btn-submit").hide();
144 144
 							}
145
-							if(data.rows[i].F_DealTimely = "Ⅰ级") {
145
+							if(data.rows[i].F_DealTimely = "Ⅰ级"||data.rows[i].F_DealTimely =="1类问题") {
146 146
 								$(".class-icon img").eq(0).show()
147
-							} else if(data.rows[i].F_DealTimely = "Ⅱ级") {
147
+							} else if(data.rows[i].F_DealTimely = "Ⅱ级"||data.rows[i].F_DealTimely =="2类问题") {
148 148
 								$(".class-icon img").eq(1).show()
149
-							} else if(data.rows[i].F_DealTimely = "普通工单") {
149
+							} else if(data.rows[i].F_DealTimely = "普通工单"||data.rows[i].F_DealTimely =="3类问题") {
150 150
 								$(".class-icon img").eq(2).show()
151 151
 							}
152 152
 							if(index == 0 || index == 6) {
@@ -162,6 +162,7 @@ window.onload = function() {
162 162
 								$(".mui-btn-submit").hide();
163 163
 							}
164 164
 						}
165
+						
165 166
 						$(".mui-btn-submit").on("tap", function() {
166 167
 							var a = index;
167 168
 							var b = $(this).attr("data-index");
@@ -187,108 +188,105 @@ window.onload = function() {
187 188
 		}
188 189
 
189 190
 		function Ajax() {
191
+			$(".orderLi").remove();
190 192
 			page=1;
191 193
 			pageSize=10;
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();
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 == "Ⅰ级"||data.rows[i].F_DealTimely =="1类问题") {
233
+							imgnum = '<img src="../img/class-img1.png"/>';
234
+						} else if(data.rows[i].F_DealTimely == "Ⅱ级"||data.rows[i].F_DealTimely =="2类问题") {
235
+							imgnum = '<img src="../img/class-img2.png"/>'; 
236
+						} else if(data.rows[i].F_DealTimely == "普通工单"||data.rows[i].F_DealTimely =="3类问题") {
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();
215 256
 						}
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();
269
-							}
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();
270 269
 						}
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 270
 					}
290
-				})
291
-			
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
+				}
292 290
 			})
293 291
 		}
294 292
 
@@ -417,8 +415,6 @@ window.onload = function() {
417 415
 					ZTiPickers.show(function(items) {
418 416
 						ZXResults.value = items[1].text;
419 417
 						ZXResults.setAttribute("data-index", items[1].id);
420
-						localStorage.setItem("DWResult", items[1].id);
421
-						window.location.reload();
422 418
 						Ajax();
423 419
 					});
424 420
 				}, false);

+ 3 - 3
双汇APP/workOrder/js/work-sign.js

@@ -33,11 +33,11 @@ mui.plusReady(function() {
33 33
 	//接收人员
34 34
 	function getReceiveUser() {
35 35
 		var falgT;
36
-		if($("#DWResult").val()=="普通工单"){
36
+		if($("#DWResult").val()=="普通工单"||$("#DWResult").val()=="3类问题"){
37 37
 			falgT=""
38
-		}else if($("#DWResult").val()=="Ⅰ级"){
38
+		}else if($("#DWResult").val()=="Ⅰ级"||$("#DWResult").val()=="1类问题"){
39 39
 			falgT="YJYY"
40
-		}else if($("#DWResult").val()=="Ⅱ级"){
40
+		}else if($("#DWResult").val()=="Ⅱ级"||$("#DWResult").val()=="2类问题"){
41 41
 			falgT="EJYY"
42 42
 		}
43 43
 		yyList = []