瀏覽代碼

双汇app修改

miaofuhao 5 年之前
父節點
當前提交
7238dad1f9

+ 2 - 2
双汇APP-andriod/js/huayi.config.js

@@ -2,9 +2,9 @@ if(huayi == undefined) {
2 2
 	var huayi = {};
3 3
 }
4 4
 huayi.config = {
5
-	callcenter_url: "http://oa.shuanghui.net:8046/",//生产环境
5
+	//callcenter_url: "http://oa.shuanghui.net:8046/",//生产环境
6 6
 	//callcenter_url: "http://121.196.219.217:8046/",//生产环境
7
-	//callcenter_url: "http://192.168.8.9:1001/",//生产环境
7
+	callcenter_url: "http://192.168.8.9:1001/",//生产环境
8 8
 	socket_ip: "222.143.137.63", //ip
9 9
 	socket_port: "8081", //端口
10 10
 	menuworktime: 30000, //菜单工单数量刷新间隔

+ 1 - 1
双汇APP-andriod/manifest.json

@@ -3,7 +3,7 @@
3 3
     "id" : "io.dcloud.H5E949709", /*应用的标识,创建应用时自动生成,勿手动修改*/
4 4
     "name" : "双汇售后服务平台", /*应用名称,程序桌面图标名称*/
5 5
     "version" : {
6
-        "name" : "1.2.1", /*应用版本名称*/
6
+        "name" : "1.2.3", /*应用版本名称*/
7 7
         "code" : "83"
8 8
     },
9 9
     "description" : "", /*应用描述信息*/

+ 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>一类问题</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>二类问题</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>三类问题</h4> 
362 362
 									<h5>影响轻微,容易处理</h5>
363 363
 								</div> 
364 364
 							</a>

+ 2 - 2
双汇APP/Common/js/xg_manage.js

@@ -120,7 +120,7 @@ $('#deteBtn').on('tap', function() {
120 120
 				}
121 121
 			});
122 122
 		} else {
123
-			mui.toast("删除取消")
123
+			mui.toast("取消")
124 124
 		}
125 125
 	})
126 126
 	
@@ -158,7 +158,7 @@ $('#xgPassword').on('tap', function() {
158 158
 				}
159 159
 			});
160 160
 		} else {
161
-			mui.toast("删除取消")
161
+			mui.toast("取消")
162 162
 		}
163 163
 	})
164 164
 	

+ 2 - 1
双汇APP/js/personal.js

@@ -148,7 +148,7 @@ function ajaxRefresh() {
148 148
 //一级查看-待处理列表
149 149
 $(".work-list").on('tap', function() {
150 150
 	var index = $(this).attr('index');
151
-	
151
+	localStorage.setItem("DWResult", "");
152 152
 	mui.openWindow({
153 153
 		id: 'Work-list',
154 154
 		url: 'workOrder/Work-list.html',
@@ -169,6 +169,7 @@ $(".work-list").on('tap', function() {
169 169
 $(".work-class").on('tap', function() {
170 170
 	var importClass = $(this).attr('index');
171 171
 	var choujian=$(this).attr('choujian');
172
+	
172 173
 	mui.openWindow({
173 174
 		id: 'Work-listClass',
174 175
 		url: 'workOrder/Work-listClass.html',

+ 1 - 1
双汇APP/manifest.json

@@ -3,7 +3,7 @@
3 3
     "id" : "io.dcloud.H5E949709", /*应用的标识,创建应用时自动生成,勿手动修改*/
4 4
     "name" : "双汇售后服务平台", /*应用名称,程序桌面图标名称*/
5 5
     "version" : {
6
-        "name" : "1.2.1", /*应用版本名称*/
6
+        "name" : "1.2.3", /*应用版本名称*/
7 7
         "code" : "83"
8 8
     },
9 9
     "description" : "", /*应用描述信息*/

+ 8 - 9
双汇APP/personal.html

@@ -11,7 +11,7 @@
11 11
 		<link rel="stylesheet" href="css/iconfont.css" /> 
12 12
 		<link rel="stylesheet" href="css/personal.css" />
13 13
 		<style>
14
-			#Report{
14
+			#Report{ 
15 15
 				width: 110px;
16 16
 				margin: 0 auto;
17 17
 				overflow: hidden;
@@ -137,7 +137,6 @@
137 137
 					</a>
138 138
 					<div class="stateIcon THDFP">99</div>
139 139
 				</li>
140
-				
141 140
 				<li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3">
142 141
 					<a href="javascript:;" class="work-list" index="6">
143 142
 						<div class="Icon icon-6">
@@ -154,7 +153,7 @@
154 153
 						</div>
155 154
 						<div class="mui-media-body font-weight-bold">已处理</div>
156 155
 					</a>
157
-					<!-- <div class="stateIcon YWJ" style="display: none;">99</div> -->
156
+					
158 157
 				</li>
159 158
 				<li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3">
160 159
 					<a href="javascript:;" class="work-class" choujian="1">
@@ -232,7 +231,7 @@
232 231
 					<a href="javascript:;" class="work-list" index="5">
233 232
 						<div class="Icon icon-5">
234 233
 							<img src="img/icon-5.png" />
235
-						</div>
234
+						</div> 
236 235
 						<div class="mui-media-body font-weight-bold">退回待分派</div>
237 236
 					</a>
238 237
 					<div class="stateIcon THDFP">99</div>
@@ -308,14 +307,14 @@
308 307
 					<div class="stateIcon CJSL">99</div>
309 308
 				</li>
310 309
 			</ul>
311
-			<ul class="mui-table-view mui-grid-view mui-grid-12 Common-box addDisplay" style="display: none; margin-top: 0;">
310
+			<!--<ul class="mui-table-view mui-grid-view mui-grid-12 Common-box addDisplay" style="display: none; margin-top: 0;">
312 311
 				<li class="mui-table-view-cell mui-media mui-col-xs-12 mui-col-sm-12">
313 312
 					<a href="javascript:;" id="Report" data-index="0" style="padding: 0px;">
314 313
 						<div class="Icon icon-1"><i class="mui-icon iconfont icon-bianji "></i></div>
315 314
 						<div class="addWord">提出诉求</div>
316 315
 					</a>
317 316
 				</li>
318
-			</ul>
317
+			</ul>-->
319 318
 			
320 319
 			<div class='Content'>
321 320
 				<div class="Content-title">
@@ -335,7 +334,7 @@
335 334
 									<span class="mui-icon iconfont icon-gonggao01 blue"></span>
336 335
 								</div>
337 336
 								<div class="mui-text-left mui-pull-left">
338
-									<h4>Ⅰ级工单</h4>
337
+									<h4>一类问题</h4>
339 338
 									<h5>涉媒或政府职能部门</h5>
340 339
 								</div>
341 340
 							</a>
@@ -347,7 +346,7 @@
347 346
 									<span class="mui-icon iconfont icon-ditu-cuidan yellow"></span>
348 347
 								</div>
349 348
 								<div class="mui-text-left mui-pull-left">
350
-									<h4>Ⅱ级工单</h4>
349
+									<h4>二类问题</h4>
351 350
 									<h5>索赔过高或难以处理</h5>
352 351
 								</div>
353 352
 							</a>
@@ -359,7 +358,7 @@
359 358
 									<span class="mui-icon iconfont icon-tubiao- red"></span>
360 359
 								</div>
361 360
 								<div class="mui-text-left mui-pull-left">
362
-									<h4>Ⅲ级工单</h4> 
361
+									<h4>三类问题</h4> 
363 362
 									<h5>影响轻微,容易处理</h5>
364 363
 								</div> 
365 364
 							</a>

+ 99 - 95
双汇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:$("#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);