Explorar el Código

商丘APP,联系电话修改

miaofuhao %!s(int64=5) %!d(string=hace) años
padre
commit
3edf5c0a02

BIN
WebUI/CallCenterWeb.UI.zip


+ 4 - 2
WebUI/CallCenterWeb.UI/Appeal/AddAppeal.html

@@ -79,7 +79,7 @@
79 79
                         <td>
80 80
                             <input type="text" id="zipcode" />
81 81
                         </td>
82
-                        <th>联系电话:</th>
82
+                        <th class="Importent">联系电话:</th>
83 83
                         <td>
84 84
                             <input type="text" id="conphone" />
85 85
                         </td>
@@ -228,11 +228,13 @@
228 228
         //添加工单
229 229
         function Add() {
230 230
             var value = $(' input[name="banli"]:checked ').val();
231
-            var content = $("#content").val();
231
+            var content = $("#content").val(); 
232 232
             if (!$("#cusname").val()) {
233 233
                 layer.msg("请输入姓名");
234 234
             } else if (!$("#cusphone").val()) {
235 235
                 layer.msg("请输入投诉电话");
236
+            } else if (!$("#conphone").val()) {
237
+                layer.msg("请输入联系电话");
236 238
             } else if (!$("#title").val()) {
237 239
                 layer.msg("请输入标题");
238 240
             } else if (!$("#content").val()) {

+ 0 - 1
WebUI/CallCenterWeb.UI/Appeal/Lawsuit.html

@@ -619,7 +619,6 @@
619 619
             var Rows = row.Buttons;
620 620
             var html = '';
621 621
             for (var i = 0; i < Rows.length; i++) {
622
-
623 622
                 var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
624 623
                 if (html1) {
625 624
                     html1 = html1.replace("data", val);

+ 1 - 1
WebUI/CallCenterWeb.UI/CommonHtml/PrintPreview-1.html

@@ -346,7 +346,7 @@
346 346
 							$(".gdbhs").text(content.data[0].F_WorkOrderId); //工单
347 347
 							$(".tsfs").text(content.data[0].SourceName);
348 348
 							$(".lxr").text(content.data[0].F_CusName); //内容摘要
349
-							$('.lxdh').text(content.data[0].F_CusPhone); //联系电话
349
+							$('.lxdh').text(content.data[0].F_ConPhone); //联系电话
350 350
 							//$('.dz').text(content.data[0].F_CusAddress);
351 351
 							//$('.lxrphone').text(content.data[0].F_ConPhone);
352 352
 							$(".lxr ").text(content.data[0].F_ComContent); //内容

+ 1 - 0
WebUI/CallCenterWeb.UI/CommonHtml/WorkDatil.html

@@ -1295,6 +1295,7 @@
1295 1295
 
1296 1296
 				//修改
1297 1297
 				$(".change").click(function() {
1298
+					
1298 1299
 					var str = $("#Change").val();
1299 1300
 					layer.open({
1300 1301
 						type: 2,

+ 0 - 16
WebUI/CallCenterWeb.UI/CommonHtml/banli.html

@@ -45,16 +45,6 @@
45 45
                 <th class="Importent">处理结果:</th>
46 46
                 <td colspan="5">
47 47
                 	<textarea data-adaptheight id="situation" name="" rows="6" cols=""></textarea>
48
-                
49
-					       <!--20   年       月      日,               政务                  街道/        单位             部门
50
-					        接到12345热线工单(编号:                            ) 来电人反映的                            。经落实,具体情况回复如下:
51
-				        
52
-				        
53
-				              办理结果:        
54
-					      承办人:
55
-					      职务:
56
-					      联系电话:-->
57
-                
58 48
                 </td>
59 49
             </tr>
60 50
             <tr>
@@ -90,12 +80,6 @@
90 80
             		<input type="text" id="connectmode">
91 81
             	</td>
92 82
             </tr>
93
-            <!--<tr class="replycontent-wrapper">
94
-            	<th>答复内容:</th>
95
-            	<td colspan="5">
96
-                	<textarea id="replycontent" name="" rows="6" cols="" ></textarea>
97
-            	</td>
98
-            </tr>-->
99 83
             <tr class="isstaisfied-wrapper">
100 84
             	<th>是否满意:</th>
101 85
             	<td id="isStaisfiedRadio" style="font-size: 12px" colspan="5">

+ 2 - 1
WebUI/CallCenterWeb.UI/Script/Common/huayi.config.js

@@ -3,7 +3,8 @@
3 3
 }
4 4
 huayi.config = {
5 5
 	//callcenter_url: "http://121.196.219.217:8002/",//生产环境
6
-    callcenter_url: "http://192.168.4.18:4010/",//生产环境
6
+	callcenter_url: "http://139.224.236.21:4025/",//生产环境
7
+    //callcenter_url: "http://192.168.4.18:4010/",//生产环境
7 8
     //callcenter_url: "http://192.168.5.7:8011/",//生产环境
8 9
     //callcenter_url: "http://12345.shangqiu.gov.cn:8819/",//生产环境
9 10
     //callcenter_url: "http://localhost:63660/",//测试环境

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 117 - 39
商丘WebAPP/Dispatch/Work-banli.html


+ 339 - 60
商丘WebAPP/Dispatch/Work-ljbanli.html

@@ -7,15 +7,133 @@
7 7
 		<title>问题反馈</title>
8 8
 		<link rel="stylesheet" type="text/css" href="../css/mui.min.css" />
9 9
 		<link href="../css/feedback-page.css" rel="stylesheet" />
10
+		<link rel="stylesheet" type="text/css" href="../css/mui.picker.min.css" />
10 11
 		<style>
11
-			p {
12
-				font-size: 16px;
12
+			body {
13
+				font-size: 14px;
14
+			}
15
+			
16
+			.mui-bar-popover {
17
+				width: 30%;
18
+			}
19
+			
20
+			.mui-popover.mui-bar-popover .mui-table-view {
21
+				width: 100%;
22
+			}
23
+			
24
+			.mui-table-view .mui-table-view-cell>a:not(.mui-btn) {
25
+				text-align: center;
26
+			}
27
+			
28
+			.mui-table-view-cell {
29
+				padding: 1px 15px!important;
30
+			}
31
+			
32
+			.san {
33
+				font-size: 14px;
34
+				margin-right: 5px
35
+			}
36
+			
37
+			.nav_a {
38
+				border-right: 1px solid #ccc;
39
+			}
40
+			
41
+			.radio_box {
42
+				display: inline-block;
43
+			}
44
+			
45
+			.mui-radio input[type=radio]:before {
46
+				font-size: 20px;
47
+				vertical-align: middle;
48
+			}
49
+			
50
+			.mui-radio.mui-left input[type=radio] {
51
+				line-height: 24px!important;
52
+			}
53
+			
54
+			.mui-radio.mui-left label {
55
+				padding-right: 1px!important;
56
+				padding-left: 51px!important;
57
+			}
58
+			
59
+			.ztext {
60
+				width: 100%;
61
+				margin: 0;
62
+				border: 0;
63
+				font-size: 14px;
64
+				display: block;
65
+			}
66
+			
67
+			.action {
68
+				padding: 5px 15px;
69
+			}
70
+			
71
+			.type_down {
72
+				float: right!important;
73
+				display: inline-block!important;
74
+				vertical-align: middle!important;
75
+				line-height: 42px;
76
+			}
77
+			
78
+			.type_con {
79
+				width: 55%!important;
80
+				float: left!important;
81
+				vertical-align: middle!important;
82
+				display: inline-block!important;
83
+				padding: 10px 0!important;
84
+			}
85
+			
86
+			.label {
87
+				width: 30%!important;
88
+				padding: 11px 0px!important;
13 89
 				color: #fe6604;
14 90
 			}
15 91
 			
92
+			.get_yzm {
93
+				padding: 5px!important;
94
+				width: auto!important;
95
+			}
96
+			
97
+			.yzm_con {
98
+				float: left!important;
99
+				width: 40%!important;
100
+			}
101
+			
16 102
 			.mui-bar-nav {
17 103
 				background-color: #00a1cb;
18
-				color: #fff!important;
104
+			}
105
+			
106
+			.mui-input-row label {
107
+				text-align: -webkit-right;
108
+			}
109
+			
110
+			.mui-btn-block {
111
+				padding: 10px;
112
+				width: 100%;
113
+			}
114
+			
115
+			a {
116
+				color: #000;
117
+			}
118
+			
119
+			.size-14 {
120
+				font-size: 14px;
121
+			}
122
+			
123
+			.mui-input-row label~input,
124
+			.mui-input-row label~select,
125
+			{
126
+				line-height: 1.1;
127
+				font-size: 14px;
128
+			}
129
+			.bnliBtn{
130
+				display: block !important;
131
+			}
132
+			.bnliDIV{
133
+				margin:10px 50px;
134
+			}
135
+			.isDeal,.noDeal{
136
+				display: none;
19 137
 			}
20 138
 		</style>
21 139
 	</head>
@@ -23,45 +141,148 @@
23 141
 	<body>
24 142
 		<header class="mui-bar mui-bar-nav" style="">
25 143
 			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" style="color: #fff;"></a>
26
-
27 144
 			<h1 class="mui-title" style="color: #fff;">办理工单</h1>
28 145
 		</header>
29 146
 		<div class="mui-content">
30
-			<p>办理人(必填)</p>
31
-			<div class="mui-input-row">
32
-				<input id='contact' type="text" class="mui-input-clear contact" />
33
-			</div>
34
-			<p>办理内容(必填)</p>
35
-			<div class="row mui-input-row">
36
-				<textarea id='question' class="mui-input-clear question" placeholder="请详细描述你的问题和意见..."></textarea>
37
-			</div>
147
+			<ul class="mui-table-view ">
148
+				<li class="mui-table-view-cell" id="showUserPicker">
149
+					<div class="mui-input-row">
150
+						<label class="label">承办人:</label>
151
+						<input type="text" id="contact" placeholder="请填写您的称呼" class="size-14">
152
+					</div>
153
+				</li>
154
+				<li class="mui-table-view-cell" id="showUserPicker">
155
+					<div class="mui-input-row">
156
+						<label class="label">联系方式:</label>
157
+						<input type="number" id="dealcontact" placeholder="请填写您的联系方式" class="size-14">
158
+					</div>
159
+				</li>
160
+				<li class="mui-table-view-cell" id="showUserPicker">
161
+					<div class="mui-input-row">
162
+						<label class="label">职务:</label>
163
+						<input type="text" id="duties" placeholder="请填写您的职务" class="size-14">
164
+					</div>
165
+				</li>
166
+				<li class="mui-table-view-cell">
167
+	                <div class="mui-input-row">
168
+	                	<label class="label">处理结果:</label>
169
+	                    <textarea class="ztext content" name="" id="situation" rows="3" cols="" placeholder="请输入处理结果..."></textarea>
170
+	                </div>
171
+	            </li>
172
+	            <li class="mui-table-view-cell">
173
+					<div class="mui-input-row">
174
+						<label class="label">处理结果:</label>
175
+						<div class="mui-input-row mui-radio mui-left radio_box">
176
+							<label>是</label>
177
+							<input type="radio" type="radio" name="deal_is" value="1" class="size-14" />
178
+						</div>
179
+						<div class="mui-input-row mui-radio mui-left radio_box">
180
+							<label>否</label>
181
+							<input type="radio" type="radio" name="deal_is" value="2" class="size-14" />
182
+						</div>
183
+					</div>
184
+				</li>
185
+				<li class="mui-table-view-cell isDeal" id="showUserPicker">
186
+					<div class="mui-input-row">
187
+						<label class="label">沟通时间:</label>
188
+						<input id='demo1' data-options='{"type":"datetime","beginYear":year,"beginMonth":month,"beginDay":day}' type="text" readonly="readonly" class="mui-input-clear btn" />
189
+					</div>
190
+				</li>
191
+				<li class="mui-table-view-cell isDeal" id="showUserPicker">
192
+					<div class="mui-input-row">
193
+						<label class="label">沟通方式:</label>
194
+						<input type="text" id="connectmode" placeholder="请填写您的沟通方式" class="size-14">
195
+					</div>
196
+				</li>
197
+				<li class="mui-table-view-cell isDeal">
198
+					<div class="mui-input-row">
199
+						<label class="label">是否满意:</label>
200
+						<div class="mui-input-row mui-radio mui-left radio_box">
201
+							<label>满意</label>
202
+							<input type="radio" type="radio" name="isstaisfied" value="1" class="size-14" />
203
+						</div>
204
+						<div class="mui-input-row mui-radio mui-left radio_box">
205
+							<label>基本满意</label>
206
+							<input type="radio" type="radio" name="isstaisfied" value="2" class="size-14" />
207
+						</div>
208
+						<div class="mui-input-row mui-radio mui-left radio_box">
209
+							<label>不满意</label>
210
+							<input type="radio" type="radio" name="isstaisfied" value="3" class="size-14" />
211
+						</div>
212
+					</div>
213
+				</li>
214
+				<li class="mui-table-view-cell noDeal"> 
215
+	                <div class="mui-input-row">
216
+	                	<label class="label">处理方案:</label>
217
+	                    <textarea class="ztext content" name="" id="prosituation" rows="3" cols="" placeholder="请输入处理方案/进程..."></textarea>
218
+	                </div>
219
+	            </li>
220
+	            <p style="color: #FF0000;">注释:	请提交加盖单位公章的相关说明文件,不添加文件说明将被扣考核分</p>
221
+				<div class="bnliDIV">
222
+					<button type="button" class="mui-btn mui-btn-primary bnliBtn">查看办理结果</button>
223
+				</div>
224
+				<li class="mui-table-view-cell">
225
+	                <textarea class="ztext content" name="" id="result" rows="3" cols="" placeholder="请输入处理结果..."></textarea>
226
+	            </li>
227
+			</ul>
38 228
 			<div class="feedback">
39 229
 				<p>添加图片(选填,提供问题截图,单张20M以下,最多上传5张)</p>
40 230
 				<div id='image-list' class="row image-list"></div>
41 231
 			</div>
42
-			<div class="" style="padding: 10px;">
43
-				<br />
44
-				<button id="submit" type="button" class="mui-btn mui-btn-block mui-btn-primary submit">办理</button>
232
+			<div class="posiBot" >
233
+				<button id="submit" type="button" class="mui-btn mui-btn-block mui-btn-primary submit" style="padding: 10px 0px;">办理</button>
45 234
 			</div>
46
-
47 235
 		</div>
48 236
 		<script src="../js/huayi.config.js"></script>
49 237
 		<script src="../js/zepto.js"></script>
50 238
 		<script src="../js/mui.min.js"></script>
51 239
 		<script src="../js/feedback-page.js"></script>
240
+		<script src="../js/mui.picker.min.js"></script>
52 241
 		<script type="text/javascript">
53
-			mui.init(
54
-				
55
-			);
242
+			mui.init();
56 243
 			mui.plusReady(function() {
57 244
 				var wv = plus.webview.currentWebview();
58 245
 				var vText = wv.name;
59 246
 				var token = wv.token;
60 247
 				var Str = '';
61 248
 				var str_ary;
249
+				var year=new Date().getFullYear();
250
+				var  month=new Date().getMonth();
251
+				var day=new Date().getDate();
252
+				var btns = mui('.btn'); 
253
+				var Protect=localStorage.getItem("Protect");
254
+				var simpleDetailStrStart = "";
255
+				var simpleDetailStrEnd = "";
256
+				var simpleDetailStr = "";
257
+				$('input[name="deal_is"]').change(function(){
258
+					if ($('input[name="deal_is"]:checked').val()==="1") {
259
+						if (Protect==="0") {
260
+							$(".isDeal").show();
261
+							$(".noDeal").hide();
262
+						}else if(Protect==="1"){
263
+							$(".isDeal").hide();
264
+							$(".noDeal").hide();
265
+						}
266
+					}else if ($('input[name="deal_is"]:checked').val()==="2") {
267
+						$(".isDeal").hide();
268
+						$(".noDeal").show();
269
+					}
270
+				})
271
+				btns.each(function(i, btn) {  
272
+					btn.addEventListener('tap', function() {   
273
+						var dtPicker = new mui.DtPicker({    
274
+							type: "date", //设置日历初始视图模式 
275
+							beginDate: new Date(year, month, day),//设置开始日期 
276
+    						//endDate: new Date(2016, 04, 25),//设置结束日期 
277
+						});  
278
+						dtPicker.show(function(e) {
279
+							$("#demo1").val(e)
280
+						}); 
281
+					}, false);
282
+				})
283
+				
62 284
 				document.getElementById("submit").addEventListener('tap', function() {
63 285
 					var username = $("#contact").val();
64
-					var question = $("#question").val();
65 286
 					$(".image-box").each(function(i, n) {
66 287
 						var a = $(n).attr("indexs");
67 288
 						if(a) {
@@ -70,17 +291,34 @@
70 291
 						}
71 292
 					});
72 293
 					str_ary = Str.substring(0, Str.length - 1);
73
-//					alert(str_ary);
74 294
 					if(!username) {
75
-						plus.nativeUI.toast('输入办理人');
76
-					} else if(!question) {
77
-						plus.nativeUI.toast('输入内容');
295
+						plus.nativeUI.toast('输入承办人');
296
+					} else if(!$("#dealcontact").val()) {
297
+						plus.nativeUI.toast('输入联系方式');
298
+					} else if(!$("#duties").val()) {
299
+						plus.nativeUI.toast('输入职务');
300
+					} else if(!$("#situation").val()) {
301
+						plus.nativeUI.toast('输入处理结果');
302
+					} else if(!$('input[name="deal_is"]:checked').val()) {
303
+						plus.nativeUI.toast('请选择处理结果');
304
+					} else if(!$("#result").val()) {
305
+						plus.nativeUI.toast('输入办理结果');
306
+					} else if(!Str) {
307
+						plus.nativeUI.toast('输入职务');
78 308
 					} else{
79
-						mui.ajax(huayi.config.callcenter_url + 'WorkOrder/DealWorkOrder', {
309
+						mui.ajax(huayi.config.callcenter_url + 'WorkOrder/FeedBackWorkOrder', {
80 310
 							data: {
81 311
 								workorderid: vText,
82 312
 								dealman: username, //办理人
83
-								result: question, //办理内容
313
+								dealcontact: $("#dealcontact").val(), //联系方式
314
+								duties: $("#duties").val(), //职务
315
+								situation: $("#situation").val(), //处理情况
316
+								isproresult: $('input[name="deal_is"]:checked').val(), //处理结果
317
+								connecttime: $("#demo1").val(), //沟通时间
318
+								connectmode: $("#connectmode").val(), //沟通方式
319
+								isstaisfied: $('input[name="isstaisfied"]:checked').val(), //处理结果
320
+								result: $("#result").val(), //办理内容
321
+								prosituation: $("#prosituation").val(), //处理方案/进程
84 322
 								state: 1,
85 323
 								files: str_ary,
86 324
 								token: token
@@ -92,40 +330,9 @@
92 330
 								var btnArray = ['否', '是'];
93 331
 								mui.confirm('是否办理工单', '提示', btnArray, function(e) {
94 332
 									if(e.index == 1) {									
95
-									plus.nativeUI.toast('办理成功'); 
96
-//									页面跳转1
97
-									var wobj = plus.webview.getWebviewById("Work-list");
98
-									wobj.reload(true);
99
-//									页面跳转2
100
-//									var isdeal = 0;
101
-//									var nwaiting = plus.nativeUI.showWaiting();
102
-//									webviewShow = plus.webview.create("Work-list.html?isdeal="+isdeal); //后台创建webview并打开show.html  
103
-//									webviewShow.addEventListener("loaded", function() { //注册新webview的载入完成事件  
104
-//										nwaiting.close(); //新webview的载入完毕后关闭等待框  
105
-//										webviewShow.show("slide-in-right", 300); //把新webview窗体显示出来,显示动画效果为速度300毫秒的右侧移入动画
106
-//					
107
-//									}, false); 
108
-//									页面跳转3 
109
-//									var isdeal = 0;
110
-//									mui.openWindow({
111
-//										id: 'Work-list',
112
-//										url: 'Work-list.html',
113
-//										show: {
114
-//											aniShow: 'pop-in'
115
-//										},
116
-//										styles: {
117
-//											popGesture: 'hide'
118
-//										},
119
-//										waiting: {
120
-//											autoShow: true
121
-//										},
122
-//										extras: {
123
-//											isdeal: isdeal,
124
-//				
125
-//										}
126
-//									});
127
-									$("#contact").val("");
128
-									$("#question").val("");
333
+										plus.nativeUI.toast('办理成功'); 
334
+										var wobj = plus.webview.getWebviewById("Work-list");
335
+										wobj.reload(true);
129 336
 									} else {
130 337
 										plus.nativeUI.toast('取消办理');
131 338
 									}
@@ -139,6 +346,78 @@
139 346
 					
140 347
 					
141 348
 				})
349
+			
350
+				
351
+				mui.ajax(huayi.config.callcenter_url + '/WorkOrder/GetWorkorderSimp',{
352
+					data: {
353
+						workorderid: vText,
354
+						"token": token
355
+					},
356
+					dataType:'json',
357
+					type:'get',
358
+					timeout:10000,
359
+					headers:{
360
+						'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
361
+					},
362
+					success:function(data){
363
+						var data=data.data[0];
364
+						simpleDetailStrStart = data.F_CreateTime 
365
+						+ " " + data.deptname 
366
+						+  "部门接到" +  data.SourceName 
367
+						+ "来源工单(编号:" + data.F_WorkOrderId 
368
+						+ ")反映" + data.F_ComTitle + "问题,";
369
+						$(".bnliBtn").on("tap",function(){
370
+							if ($('input[name="deal_is"]:checked').val()==="1") {
371
+								if (Protect==="0") {
372
+									
373
+									if ($('input[name="isstaisfied"]:checked').val() === "1") {
374
+										var isStaisfiedRadioData = "满意";
375
+									} else if ($('input[name="isstaisfied"]:checked').val() === "2") {
376
+										var isStaisfiedRadioData = "基本满意";
377
+									} else if ($('input[name="isstaisfied"]:checked').val() === "3") {
378
+										var isStaisfiedRadioData = "不满意";
379
+									} else {
380
+										var isStaisfiedRadioData = "未评价";
381
+									}
382
+									simpleDetailStrEnd = "经落实,具体情况回复如下:" 
383
+									+ $("#situation").val() 
384
+									+ " 办理结果:" + "已办理 承办人:" + $("#contact").val() 
385
+									+ " 职务:" + $("#duties").val() 
386
+									+ " 联系电话:" + $("#dealcontact").val() 
387
+									+ "; " + $("#contact").val() 
388
+									+ "用" + $("#connectmode").val() 
389
+									+ "方式在" + $("#demo1").val() 
390
+									+ "对反映人进行了回复,反映人对结果表示" + isStaisfiedRadioData;
391
+									
392
+			            			simpleDetailStr = simpleDetailStrStart + simpleDetailStrEnd;
393
+			            			$("#result").val(simpleDetailStr);	
394
+								}else if(Protect==="1"){
395
+									simpleDetailStrEnd = "经落实,具体情况回复如下:" 
396
+									+ $("#situation").val() + " 办理结果:" + "已办理 承办人:" 
397
+									+ $("#contact").val() + " 职务:" 
398
+									+ $("#duties").val() + " 联系电话:" 
399
+									+ $("#dealcontact").val();
400
+			            			simpleDetailStr = simpleDetailStrStart + simpleDetailStrEnd;
401
+			            			$("#result").val(simpleDetailStr);	
402
+								}
403
+							}else if ($('input[name="deal_is"]:checked').val()==="2") {
404
+								simpleDetailStrEnd = "经落实,具体情况回复如下:" 
405
+								+ $("#situation").val() + " 办理结果:" + "未办理 承办人:" 
406
+								+ $("#contact").val() + " 职务:" 
407
+								+ $("#duties").val() + " 联系电话:" 
408
+								+ $("#dealcontact").val() + "; 处理方案/进程:" 
409
+								+ $("#prosituation").val();
410
+			        			simpleDetailStr = simpleDetailStrStart + simpleDetailStrEnd;
411
+			        			$("#result").val(simpleDetailStr);
412
+							}else{
413
+								simpleDetailStr = simpleDetailStrStart + simpleDetailStrEnd;
414
+        						$("#result").val(simpleDetailStr);
415
+							}
416
+						})
417
+					}
418
+					
419
+				})
420
+			
142 421
 			})
143 422
 		</script>
144 423
 	</body>

+ 0 - 9
商丘WebAPP/MenuFirst/WorkDetails.html

@@ -771,15 +771,6 @@
771 771
 						}
772 772
 					});
773 773
 				}
774
-//				function JB() {
775
-//					var nwaiting = plus.nativeUI.showWaiting();
776
-//					webviewShow = plus.webview.create("Work-jiaoban.html"); //后台创建webview并打开show.html  
777
-//					webviewShow.addEventListener("loaded", function() { //注册新webview的载入完成事件  
778
-//						nwaiting.close(); //新webview的载入完毕后关闭等待框  
779
-//						webviewShow.show("slide-in-right", 300); //把新webview窗体显示出来,显示动画效果为速度300毫秒的右侧移入动画
780
-//						wobj.reload(true);
781
-//					}, false);
782
-//				}
783 774
 				//派单
784 775
 				function PD() {
785 776
 					mui.openWindow({

+ 0 - 3
商丘WebAPP/MenuSecond/Work-banli.html

@@ -405,7 +405,6 @@
405 405
 					success: function(result) {
406 406
 						var temp2;
407 407
 						var Agree;
408
-						//							alert(JSON.stringify(result.data.fkinfo));
409 408
 						if(result.data.fkinfo.length > 0) {
410 409
 							for(var i = 0; i < result.data.fkinfo.length-1; i++) {
411 410
 								if(result.data.fkinfo[i].F_IsAudit == 1) {
@@ -425,11 +424,9 @@
425 424
 //								<div id="image-list" class="row image-list"></div>
426 425
 								
427 426
 								var imgurl=result.data.fkinfo[i].File;
428
-//								alert(i);
429 427
 								var tmp = '';
430 428
 								if(imgurl) {
431 429
 									$.each(imgurl,function(o, n) {
432
-//										alert(n.F_FileUrl);
433 430
 										if(n.F_FileType == '.jpg'||n.F_FileType == '.png') {
434 431
 											tmp += '<img src="' + n.F_FileUrl + 
435 432
 													'" alt="" class="image-item" data-preview-src="" data-preview-group="1" />'

+ 338 - 61
商丘WebAPP/MenuSecond/Work-ljbanli.html

@@ -7,15 +7,133 @@
7 7
 		<title>问题反馈</title>
8 8
 		<link rel="stylesheet" type="text/css" href="../css/mui.min.css" />
9 9
 		<link href="../css/feedback-page.css" rel="stylesheet" />
10
+		<link rel="stylesheet" type="text/css" href="../css/mui.picker.min.css" />
10 11
 		<style>
11
-			p {
12
-				font-size: 16px;
12
+			body {
13
+				font-size: 14px;
14
+			}
15
+			
16
+			.mui-bar-popover {
17
+				width: 30%;
18
+			}
19
+			
20
+			.mui-popover.mui-bar-popover .mui-table-view {
21
+				width: 100%;
22
+			}
23
+			
24
+			.mui-table-view .mui-table-view-cell>a:not(.mui-btn) {
25
+				text-align: center;
26
+			}
27
+			
28
+			.mui-table-view-cell {
29
+				padding: 1px 15px!important;
30
+			}
31
+			
32
+			.san {
33
+				font-size: 14px;
34
+				margin-right: 5px
35
+			}
36
+			
37
+			.nav_a {
38
+				border-right: 1px solid #ccc;
39
+			}
40
+			
41
+			.radio_box {
42
+				display: inline-block;
43
+			}
44
+			
45
+			.mui-radio input[type=radio]:before {
46
+				font-size: 20px;
47
+				vertical-align: middle;
48
+			}
49
+			
50
+			.mui-radio.mui-left input[type=radio] {
51
+				line-height: 24px!important;
52
+			}
53
+			
54
+			.mui-radio.mui-left label {
55
+				padding-right: 1px!important;
56
+				padding-left: 51px!important;
57
+			}
58
+			
59
+			.ztext {
60
+				width: 100%;
61
+				margin: 0;
62
+				border: 0;
63
+				font-size: 14px;
64
+				display: block;
65
+			}
66
+			
67
+			.action {
68
+				padding: 5px 15px;
69
+			}
70
+			
71
+			.type_down {
72
+				float: right!important;
73
+				display: inline-block!important;
74
+				vertical-align: middle!important;
75
+				line-height: 42px;
76
+			}
77
+			
78
+			.type_con {
79
+				width: 55%!important;
80
+				float: left!important;
81
+				vertical-align: middle!important;
82
+				display: inline-block!important;
83
+				padding: 10px 0!important;
84
+			}
85
+			
86
+			.label {
87
+				width: 30%!important;
88
+				padding: 11px 0px!important;
13 89
 				color: #fe6604;
14 90
 			}
15 91
 			
92
+			.get_yzm {
93
+				padding: 5px!important;
94
+				width: auto!important;
95
+			}
96
+			
97
+			.yzm_con {
98
+				float: left!important;
99
+				width: 40%!important;
100
+			}
101
+			
16 102
 			.mui-bar-nav {
17 103
 				background-color: #00a1cb;
18
-				color: #fff!important;
104
+			}
105
+			
106
+			.mui-input-row label {
107
+				text-align: -webkit-right;
108
+			}
109
+			
110
+			.mui-btn-block {
111
+				padding: 10px;
112
+				width: 100%;
113
+			}
114
+			
115
+			a {
116
+				color: #000;
117
+			}
118
+			
119
+			.size-14 {
120
+				font-size: 14px;
121
+			}
122
+			
123
+			.mui-input-row label~input,
124
+			.mui-input-row label~select,
125
+			{
126
+				line-height: 1.1;
127
+				font-size: 14px;
128
+			}
129
+			.bnliBtn{
130
+				display: block !important;
131
+			}
132
+			.bnliDIV{
133
+				margin:10px 50px;
134
+			}
135
+			.isDeal,.noDeal{
136
+				display: none;
19 137
 			}
20 138
 		</style>
21 139
 	</head>
@@ -23,45 +141,148 @@
23 141
 	<body>
24 142
 		<header class="mui-bar mui-bar-nav" style="">
25 143
 			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" style="color: #fff;"></a>
26
-
27 144
 			<h1 class="mui-title" style="color: #fff;">办理工单</h1>
28 145
 		</header>
29 146
 		<div class="mui-content">
30
-			<p>办理人(必填)</p>
31
-			<div class="mui-input-row">
32
-				<input id='contact' type="text" class="mui-input-clear contact" />
33
-			</div>
34
-			<p>办理内容(必填)</p>
35
-			<div class="row mui-input-row">
36
-				<textarea id='question' class="mui-input-clear question" placeholder="请详细描述你的问题和意见..."></textarea>
37
-			</div>
147
+			<ul class="mui-table-view ">
148
+				<li class="mui-table-view-cell" id="showUserPicker">
149
+					<div class="mui-input-row">
150
+						<label class="label">承办人:</label>
151
+						<input type="text" id="contact" placeholder="请填写您的称呼" class="size-14">
152
+					</div>
153
+				</li>
154
+				<li class="mui-table-view-cell" id="showUserPicker">
155
+					<div class="mui-input-row">
156
+						<label class="label">联系方式:</label>
157
+						<input type="number" id="dealcontact" placeholder="请填写您的联系方式" class="size-14">
158
+					</div>
159
+				</li>
160
+				<li class="mui-table-view-cell" id="showUserPicker">
161
+					<div class="mui-input-row">
162
+						<label class="label">职务:</label>
163
+						<input type="text" id="duties" placeholder="请填写您的职务" class="size-14">
164
+					</div>
165
+				</li>
166
+				<li class="mui-table-view-cell">
167
+	                <div class="mui-input-row">
168
+	                	<label class="label">处理结果:</label>
169
+	                    <textarea class="ztext content" name="" id="situation" rows="3" cols="" placeholder="请输入处理结果..."></textarea>
170
+	                </div>
171
+	            </li>
172
+	            <li class="mui-table-view-cell">
173
+					<div class="mui-input-row">
174
+						<label class="label">处理结果:</label>
175
+						<div class="mui-input-row mui-radio mui-left radio_box">
176
+							<label>是</label>
177
+							<input type="radio" type="radio" name="deal_is" value="1" class="size-14" />
178
+						</div>
179
+						<div class="mui-input-row mui-radio mui-left radio_box">
180
+							<label>否</label>
181
+							<input type="radio" type="radio" name="deal_is" value="2" class="size-14" />
182
+						</div>
183
+					</div>
184
+				</li>
185
+				<li class="mui-table-view-cell isDeal" id="showUserPicker">
186
+					<div class="mui-input-row">
187
+						<label class="label">沟通时间:</label>
188
+						<input id='demo1' data-options='{"type":"datetime","beginYear":year,"beginMonth":month,"beginDay":day}' type="text" readonly="readonly" class="mui-input-clear btn" />
189
+					</div>
190
+				</li>
191
+				<li class="mui-table-view-cell isDeal" id="showUserPicker">
192
+					<div class="mui-input-row">
193
+						<label class="label">沟通方式:</label>
194
+						<input type="text" id="connectmode" placeholder="请填写您的沟通方式" class="size-14">
195
+					</div>
196
+				</li>
197
+				<li class="mui-table-view-cell isDeal">
198
+					<div class="mui-input-row">
199
+						<label class="label">是否满意:</label>
200
+						<div class="mui-input-row mui-radio mui-left radio_box">
201
+							<label>满意</label>
202
+							<input type="radio" type="radio" name="isstaisfied" value="1" class="size-14" />
203
+						</div>
204
+						<div class="mui-input-row mui-radio mui-left radio_box">
205
+							<label>基本满意</label>
206
+							<input type="radio" type="radio" name="isstaisfied" value="2" class="size-14" />
207
+						</div>
208
+						<div class="mui-input-row mui-radio mui-left radio_box">
209
+							<label>不满意</label>
210
+							<input type="radio" type="radio" name="isstaisfied" value="3" class="size-14" />
211
+						</div>
212
+					</div>
213
+				</li>
214
+				<li class="mui-table-view-cell noDeal"> 
215
+	                <div class="mui-input-row">
216
+	                	<label class="label">处理方案:</label>
217
+	                    <textarea class="ztext content" name="" id="prosituation" rows="3" cols="" placeholder="请输入处理方案/进程..."></textarea>
218
+	                </div>
219
+	            </li>
220
+	            <p style="color: #FF0000;">注释:	请提交加盖单位公章的相关说明文件,不添加文件说明将被扣考核分</p>
221
+				<div class="bnliDIV">
222
+					<button type="button" class="mui-btn mui-btn-primary bnliBtn">查看办理结果</button>
223
+				</div>
224
+				<li class="mui-table-view-cell">
225
+	                <textarea class="ztext content" name="" id="result" rows="3" cols="" placeholder="请输入处理结果..."></textarea>
226
+	            </li>
227
+			</ul>
38 228
 			<div class="feedback">
39 229
 				<p>添加图片(选填,提供问题截图,单张20M以下,最多上传5张)</p>
40 230
 				<div id='image-list' class="row image-list"></div>
41 231
 			</div>
42
-			<div class="" style="padding: 10px;">
43
-				<br />
44
-				<button id="submit" type="button" class="mui-btn mui-btn-block mui-btn-primary submit">办理</button>
232
+			<div class="posiBot" >
233
+				<button id="submit" type="button" class="mui-btn mui-btn-block mui-btn-primary submit" style="padding: 10px 0px;">办理</button>
45 234
 			</div>
46
-
47 235
 		</div>
48 236
 		<script src="../js/huayi.config.js"></script>
49 237
 		<script src="../js/zepto.js"></script>
50 238
 		<script src="../js/mui.min.js"></script>
51 239
 		<script src="../js/feedback-page.js"></script>
240
+		<script src="../js/mui.picker.min.js"></script>
52 241
 		<script type="text/javascript">
53
-			mui.init(
54
-				
55
-			);
242
+			mui.init();
56 243
 			mui.plusReady(function() {
57 244
 				var wv = plus.webview.currentWebview();
58 245
 				var vText = wv.name;
59 246
 				var token = wv.token;
60 247
 				var Str = '';
61 248
 				var str_ary;
249
+				var year=new Date().getFullYear();
250
+				var  month=new Date().getMonth();
251
+				var day=new Date().getDate();
252
+				var btns = mui('.btn'); 
253
+				var Protect=localStorage.getItem("Protect");
254
+				var simpleDetailStrStart = "";
255
+				var simpleDetailStrEnd = "";
256
+				var simpleDetailStr = "";
257
+				$('input[name="deal_is"]').change(function(){
258
+					if ($('input[name="deal_is"]:checked').val()==="1") {
259
+						if (Protect==="0") {
260
+							$(".isDeal").show();
261
+							$(".noDeal").hide();
262
+						}else if(Protect==="1"){
263
+							$(".isDeal").hide();
264
+							$(".noDeal").hide();
265
+						}
266
+					}else if ($('input[name="deal_is"]:checked').val()==="2") {
267
+						$(".isDeal").hide();
268
+						$(".noDeal").show();
269
+					}
270
+				})
271
+				btns.each(function(i, btn) {  
272
+					btn.addEventListener('tap', function() {   
273
+						var dtPicker = new mui.DtPicker({    
274
+							type: "date", //设置日历初始视图模式 
275
+							beginDate: new Date(year, month, day),//设置开始日期 
276
+    						//endDate: new Date(2016, 04, 25),//设置结束日期 
277
+						});  
278
+						dtPicker.show(function(e) {
279
+							$("#demo1").val(e)
280
+						}); 
281
+					}, false);
282
+				})
283
+				
62 284
 				document.getElementById("submit").addEventListener('tap', function() {
63 285
 					var username = $("#contact").val();
64
-					var question = $("#question").val();
65 286
 					$(".image-box").each(function(i, n) {
66 287
 						var a = $(n).attr("indexs");
67 288
 						if(a) {
@@ -70,17 +291,34 @@
70 291
 						}
71 292
 					});
72 293
 					str_ary = Str.substring(0, Str.length - 1);
73
-//					alert(str_ary);
74 294
 					if(!username) {
75
-						plus.nativeUI.toast('输入办理人');
76
-					} else if(!question) {
77
-						plus.nativeUI.toast('输入内容');
295
+						plus.nativeUI.toast('输入承办人');
296
+					} else if(!$("#dealcontact").val()) {
297
+						plus.nativeUI.toast('输入联系方式');
298
+					} else if(!$("#duties").val()) {
299
+						plus.nativeUI.toast('输入职务');
300
+					} else if(!$("#situation").val()) {
301
+						plus.nativeUI.toast('输入处理结果');
302
+					} else if(!$('input[name="deal_is"]:checked').val()) {
303
+						plus.nativeUI.toast('请选择处理结果');
304
+					} else if(!$("#result").val()) {
305
+						plus.nativeUI.toast('输入办理结果');
306
+					} else if(!Str) {
307
+						plus.nativeUI.toast('输入职务');
78 308
 					} else{
79 309
 						mui.ajax(huayi.config.callcenter_url + 'WorkOrder/FeedBackWorkOrder', {
80 310
 							data: {
81 311
 								workorderid: vText,
82 312
 								dealman: username, //办理人
83
-								result: question, //办理内容
313
+								dealcontact: $("#dealcontact").val(), //联系方式
314
+								duties: $("#duties").val(), //职务
315
+								situation: $("#situation").val(), //处理情况
316
+								isproresult: $('input[name="deal_is"]:checked').val(), //处理结果
317
+								connecttime: $("#demo1").val(), //沟通时间
318
+								connectmode: $("#connectmode").val(), //沟通方式
319
+								isstaisfied: $('input[name="isstaisfied"]:checked').val(), //处理结果
320
+								result: $("#result").val(), //办理内容
321
+								prosituation: $("#prosituation").val(), //处理方案/进程
84 322
 								state: 1,
85 323
 								files: str_ary,
86 324
 								token: token
@@ -92,42 +330,9 @@
92 330
 								var btnArray = ['否', '是'];
93 331
 								mui.confirm('是否办理工单', '提示', btnArray, function(e) {
94 332
 									if(e.index == 1) {									
95
-									plus.nativeUI.toast('办理成功'); 
96
-									
97
-//									页面跳转1
98
-									var wobj = plus.webview.getWebviewById("Work-list");
99
-									wobj.reload(true);
100
-//									页面跳转2
101
-//									var isdeal = 0;
102
-//									var nwaiting = plus.nativeUI.showWaiting();
103
-//									webviewShow = plus.webview.create("Work-list.html?isdeal="+isdeal); //后台创建webview并打开show.html  
104
-//									webviewShow.addEventListener("loaded", function() { //注册新webview的载入完成事件  
105
-//										nwaiting.close(); //新webview的载入完毕后关闭等待框  
106
-//										webviewShow.show("slide-in-right", 300); //把新webview窗体显示出来,显示动画效果为速度300毫秒的右侧移入动画
107
-//					
108
-//									}, false); 
109
-//									页面跳转3 
110
-//									var isdeal = 0;
111
-//									mui.openWindow({
112
-//										id: 'Work-list',
113
-//										url: 'Work-list.html',
114
-//										show: {
115
-//											aniShow: 'pop-in'
116
-//										},
117
-//										styles: {
118
-//											popGesture: 'hide'
119
-//										},
120
-//										waiting: {
121
-//											autoShow: true
122
-//										},
123
-//										extras: {
124
-//											isdeal: isdeal,
125
-//				
126
-//										}
127
-//									});
128
-
129
-									$("#contact").val("");
130
-									$("#question").val("");
333
+										plus.nativeUI.toast('办理成功'); 
334
+										var wobj = plus.webview.getWebviewById("Work-list");
335
+										wobj.reload(true);
131 336
 									} else {
132 337
 										plus.nativeUI.toast('取消办理');
133 338
 									}
@@ -141,6 +346,78 @@
141 346
 					
142 347
 					
143 348
 				})
349
+			
350
+				
351
+				mui.ajax(huayi.config.callcenter_url + '/WorkOrder/GetWorkorderSimp',{
352
+					data: {
353
+						workorderid: vText,
354
+						"token": token
355
+					},
356
+					dataType:'json',
357
+					type:'get',
358
+					timeout:10000,
359
+					headers:{
360
+						'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
361
+					},
362
+					success:function(data){
363
+						var data=data.data[0];
364
+						simpleDetailStrStart = data.F_CreateTime 
365
+						+ " " + data.deptname 
366
+						+  "部门接到" +  data.SourceName 
367
+						+ "来源工单(编号:" + data.F_WorkOrderId 
368
+						+ ")反映" + data.F_ComTitle + "问题,";
369
+						$(".bnliBtn").on("tap",function(){
370
+							if ($('input[name="deal_is"]:checked').val()==="1") {
371
+								if (Protect==="0") {
372
+									
373
+									if ($('input[name="isstaisfied"]:checked').val() === "1") {
374
+										var isStaisfiedRadioData = "满意";
375
+									} else if ($('input[name="isstaisfied"]:checked').val() === "2") {
376
+										var isStaisfiedRadioData = "基本满意";
377
+									} else if ($('input[name="isstaisfied"]:checked').val() === "3") {
378
+										var isStaisfiedRadioData = "不满意";
379
+									} else {
380
+										var isStaisfiedRadioData = "未评价";
381
+									}
382
+									simpleDetailStrEnd = "经落实,具体情况回复如下:" 
383
+									+ $("#situation").val() 
384
+									+ " 办理结果:" + "已办理 承办人:" + $("#contact").val() 
385
+									+ " 职务:" + $("#duties").val() 
386
+									+ " 联系电话:" + $("#dealcontact").val() 
387
+									+ "; " + $("#contact").val() 
388
+									+ "用" + $("#connectmode").val() 
389
+									+ "方式在" + $("#demo1").val() 
390
+									+ "对反映人进行了回复,反映人对结果表示" + isStaisfiedRadioData;
391
+									
392
+			            			simpleDetailStr = simpleDetailStrStart + simpleDetailStrEnd;
393
+			            			$("#result").val(simpleDetailStr);	
394
+								}else if(Protect==="1"){
395
+									simpleDetailStrEnd = "经落实,具体情况回复如下:" 
396
+									+ $("#situation").val() + " 办理结果:" + "已办理 承办人:" 
397
+									+ $("#contact").val() + " 职务:" 
398
+									+ $("#duties").val() + " 联系电话:" 
399
+									+ $("#dealcontact").val();
400
+			            			simpleDetailStr = simpleDetailStrStart + simpleDetailStrEnd;
401
+			            			$("#result").val(simpleDetailStr);	
402
+								}
403
+							}else if ($('input[name="deal_is"]:checked').val()==="2") {
404
+								simpleDetailStrEnd = "经落实,具体情况回复如下:" 
405
+								+ $("#situation").val() + " 办理结果:" + "未办理 承办人:" 
406
+								+ $("#contact").val() + " 职务:" 
407
+								+ $("#duties").val() + " 联系电话:" 
408
+								+ $("#dealcontact").val() + "; 处理方案/进程:" 
409
+								+ $("#prosituation").val();
410
+			        			simpleDetailStr = simpleDetailStrStart + simpleDetailStrEnd;
411
+			        			$("#result").val(simpleDetailStr);
412
+							}else{
413
+								simpleDetailStr = simpleDetailStrStart + simpleDetailStrEnd;
414
+        						$("#result").val(simpleDetailStr);
415
+							}
416
+						})
417
+					}
418
+					
419
+				})
420
+			
144 421
 			})
145 422
 		</script>
146 423
 	</body>

+ 52 - 2
商丘WebAPP/MenuSecond/WorkDetails.html

@@ -649,7 +649,7 @@
649 649
 					},
650 650
 					success: function(data) {
651 651
 						var Data = data.data.data;
652
-//						alert(JSON.stringify(Data[0]));
652
+						localStorage.setItem("F_IsProtect",Data[0].F_IsProtect)
653 653
 						document.getElementById("F_ComTitle").innerHTML = Data[0].F_ComTitle; //标题
654 654
 						document.getElementById("F_ComContent").innerHTML = Data[0].F_ComContent; //内容
655 655
 						//地址
@@ -759,6 +759,8 @@
759 759
 								move(); //删除
760 760
 							}else if(a == 4) {
761 761
 								tj(); //提交
762
+							}else if(a == 27) {
763
+								withdraw(); //提交
762 764
 							}
763 765
 
764 766
 						})
@@ -773,6 +775,7 @@
773 775
 					mui.openWindow({
774 776
 						id: 'Work-jiaoban',
775 777
 						url: 'Work-jiaoban.html',
778
+						createNew:true,
776 779
 						show: {
777 780
 							aniShow: 'pop-in'
778 781
 						},
@@ -802,6 +805,7 @@
802 805
 					mui.openWindow({
803 806
 						id: 'Work-jiaoban',
804 807
 						url: 'Work-paidan.html',
808
+						createNew:true,
805 809
 						show: {
806 810
 							aniShow: 'pop-in'
807 811
 						},
@@ -822,6 +826,7 @@
822 826
 					mui.openWindow({
823 827
 						id: 'work-cb',
824 828
 						url: 'work-cb.html',
829
+						createNew:true,
825 830
 						show: {
826 831
 							aniShow: 'pop-in'
827 832
 						},
@@ -843,6 +848,7 @@
843 848
 					mui.openWindow({
844 849
 						id: 'work-JieAn',
845 850
 						url: 'Work-JieAn.html',
851
+						createNew:true,
846 852
 						show: {
847 853
 							aniShow: 'pop-in'
848 854
 						},
@@ -863,6 +869,7 @@
863 869
 					mui.openWindow({
864 870
 						id: 'bianji',
865 871
 						url: 'Work-bianji.html',
872
+						createNew:true,
866 873
 						show: {
867 874
 							aniShow: 'pop-in'
868 875
 						},
@@ -883,6 +890,7 @@
883 890
 					mui.openWindow({
884 891
 						id: 'Work-yijian',
885 892
 						url: 'Work-yijian.html',
893
+						createNew:true,
886 894
 						show: {
887 895
 							aniShow: 'pop-in'
888 896
 						},
@@ -904,6 +912,7 @@
904 912
 					mui.openWindow({
905 913
 						id: 'Work-banli',
906 914
 						url: 'Work-banli.html',
915
+						createNew:true,
907 916
 						show: {
908 917
 							aniShow: 'pop-in'
909 918
 						},
@@ -925,6 +934,7 @@
925 934
 					mui.openWindow({
926 935
 						id: 'Work-YSsq',
927 936
 						url: 'Work-YSsq.html',
937
+						createNew:true,
928 938
 						show: {
929 939
 							aniShow: 'pop-in'
930 940
 						},
@@ -947,6 +957,7 @@
947 957
 					mui.openWindow({
948 958
 						id: 'Work-YSsh',
949 959
 						url: 'Work-YSsh.html',
960
+						createNew:true,
950 961
 						show: {
951 962
 							aniShow: 'pop-in'
952 963
 						},
@@ -983,7 +994,7 @@
983 994
 									if(data.state.toLowerCase() == "success") {
984 995
 
985 996
 										mui.toast("查收成功");
986
-										var wobj = plus.webview.getWebviewById("WorkDetails");
997
+										var wobj = plus.webview.getWebviewById("Work-list");
987 998
 										wobj.reload(true);
988 999
 									}
989 1000
 								}
@@ -1053,11 +1064,43 @@
1053 1064
 						}
1054 1065
 					})
1055 1066
 				}
1067
+				//撤回工单
1068
+				function withdraw() {
1069
+					var btnArray = ['否', '是'];
1070
+					mui.confirm('确定要撤回工单?', '提示', btnArray, function(e) {
1071
+						if(e.index == 1) {
1072
+							mui.ajax(huayi.config.callcenter_url + 'WorkOrder/WithdrawWorkOrder', {
1073
+								data: {
1074
+									workorderid: $("#ID").text(),
1075
+									token: localStorage.getItem("token")
1076
+								},
1077
+								dataType: 'json', //服务器返回json格式数据
1078
+								type: 'post', //HTTP请求类型
1079
+								timeout: 10000, //超时时间设置为10秒;
1080
+								headers: {
1081
+									'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
1082
+								},
1083
+								success: function(data) {
1084
+									if(data.state.toLowerCase() == "success") {
1085
+										mui.toast("撤回成功");
1086
+										var wobj = plus.webview.getWebviewById("Work-list");
1087
+										wobj.reload(true);
1088
+									} else {
1089
+										mui.toast(data.massage);
1090
+									}
1091
+								}
1092
+							})
1093
+						} else {
1094
+							mui.toast("取消撤回");
1095
+						}
1096
+					})
1097
+				}
1056 1098
 				//退回申请
1057 1099
 				function TH() {
1058 1100
 					mui.openWindow({
1059 1101
 						id: 'THsq',
1060 1102
 						url: 'Work-THsq.html',
1103
+						createNew:true,
1061 1104
 						show: {
1062 1105
 							aniShow: 'pop-in'
1063 1106
 						},
@@ -1080,6 +1123,7 @@
1080 1123
 					mui.openWindow({
1081 1124
 						id: 'Work-THsh',
1082 1125
 						url: 'Work-THsh.html',
1126
+						createNew:true,
1083 1127
 						show: {
1084 1128
 							aniShow: 'pop-in'
1085 1129
 						},
@@ -1102,6 +1146,7 @@
1102 1146
 					mui.openWindow({
1103 1147
 						id: 'Work-QZja',
1104 1148
 						url: 'Work-QZja.html',
1149
+						createNew:true,
1105 1150
 						show: {
1106 1151
 							aniShow: 'pop-in'
1107 1152
 						},
@@ -1123,6 +1168,7 @@
1123 1168
 					mui.openWindow({
1124 1169
 						id: 'Work-DB',
1125 1170
 						url: 'Work-DB.html',
1171
+						createNew:true,
1126 1172
 						show: {
1127 1173
 							aniShow: 'pop-in'
1128 1174
 						},
@@ -1144,6 +1190,7 @@
1144 1190
 					mui.openWindow({
1145 1191
 						id: 'Work-JC',
1146 1192
 						url: 'Work-JC.html',
1193
+						createNew:true,
1147 1194
 						show: {
1148 1195
 							aniShow: 'pop-in'
1149 1196
 						},
@@ -1194,6 +1241,7 @@
1194 1241
 					mui.openWindow({
1195 1242
 						id: 'Work-HT',
1196 1243
 						url: 'Work-HT.html',
1244
+						createNew:true,
1197 1245
 						show: {
1198 1246
 							aniShow: 'pop-in'
1199 1247
 						},
@@ -1214,6 +1262,7 @@
1214 1262
 					mui.openWindow({
1215 1263
 						id: 'Work-LD.html',
1216 1264
 						url: 'Work-LD.html',
1265
+						createNew:true,
1217 1266
 						show: {
1218 1267
 							aniShow: 'pop-in'
1219 1268
 						},
@@ -1234,6 +1283,7 @@
1234 1283
 					mui.openWindow({
1235 1284
 						id: 'Work-SZ',
1236 1285
 						url: 'Work-SZ.html',
1286
+						createNew:true,
1237 1287
 						show: {
1238 1288
 							aniShow: 'pop-in'
1239 1289
 						},

+ 0 - 2
商丘WebAPP/User-login.html

@@ -254,13 +254,11 @@
254 254
 				var psw1 = localStorage.getItem("psw1"); //获取本地存储
255 255
 				if(usercode != null) //如果缓存中有数据,则加载出来 
256 256
 				{
257
-//					alert(psw1);
258 257
 					document.getElementById("account").value = usercode;
259 258
 					document.getElementById("password").value = localStorage.getItem("psw1");
260 259
 				}
261 260
 				document.getElementById("login").addEventListener('tap', function() {
262 261
 					
263
-					//					localStorage.clear();
264 262
 					var usercode = document.getElementById('account').value;
265 263
 					var password = document.getElementById('password').value;
266 264
 					

+ 1 - 1
商丘WebAPP/Work-listDCL.html

@@ -441,7 +441,6 @@
441 441
 							success: function(data) {
442 442
 								total = data.total;
443 443
 								$(".Totle").text('(' + total + ')');
444
-								alert(JSON.stringify(data.rows[0])) 
445 444
 								for(var i = 0; i < data.rows.length; i++) {
446 445
 									var a = data.rows[i].TypeName;
447 446
 									var c = data.rows[i].F_WorkState;
@@ -511,6 +510,7 @@
511 510
 						mui.openWindow({
512 511
 							id: 'WorkDetails',
513 512
 							url: 'MenuFirst/WorkDetails.html',
513
+							createNew:true,
514 514
 							show: {
515 515
 								aniShow: 'pop-in'
516 516
 							},

+ 4 - 5
商丘WebAPP/js/huayi.config.js

@@ -2,11 +2,10 @@ if(huayi == undefined) {
2 2
 	var huayi = {};
3 3
 }
4 4
 huayi.config = {
5
-	callcenter_url: "http://12345.shangqiu.gov.cn:8819/",//生产环境
6
-	//callcenter_url: "http://61.163.183.173:8887/", //生产环境
7
-//	callcenter_url: "http://117.158.196.116:4010/",//生产环境
8
-	//callcenter_url: "http://192.168.4.18:4010/",//生产环境
9
-//	callcenter_url: "http://121.196.219.217:8002/", //生产环境
5
+	
6
+	callcenter_url: "http://192.168.8.13:1001/",//生产环境
7
+	//callcenter_url: "http://139.224.236.21:4025/",//生产环境
8
+	//callcenter_url: "http://12345.shangqiu.gov.cn:8819/",//生产环境
10 9
 	socket_ip: "222.143.137.63", //ip
11 10
 	socket_port: "8081", //端口
12 11
 	menuworktime: 30000, //菜单工单数量刷新间隔

+ 0 - 649
商丘WebAPP/js/personal.html

@@ -1,649 +0,0 @@
1
-<!DOCTYPE html>
2
-<html>
3
-
4
-	<head>
5
-		<meta charset="utf-8">
6
-		<title></title>
7
-		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
8
-		<meta name="apple-mobile-web-app-capable" content="yes">
9
-		<meta name="apple-mobile-web-app-status-bar-style" content="black">
10
-		<link rel="stylesheet" href="css/mui.min.css">
11
-		<link rel="stylesheet" href="css/iconfont.css" />
12
-		<style>
13
-			html,
14
-			body {
15
-				background-color: #efeff4;
16
-			}
17
-			
18
-			.mui-views,
19
-			.mui-view,
20
-			.mui-pages,
21
-			.mui-page,
22
-			.mui-page-content {
23
-				position: absolute;
24
-				left: 0;
25
-				right: 0;
26
-				top: 0;
27
-				bottom: 0;
28
-				width: 100%;
29
-				height: 100%;
30
-				background-color: #efeff4;
31
-			}
32
-			
33
-			.mui-pages {
34
-				top: 46px;
35
-				height: auto;
36
-			}
37
-			
38
-			.mui-scroll-wrapper,
39
-			.mui-scroll {
40
-				background-color: #efeff4;
41
-			}
42
-			
43
-			.mui-page.mui-transitioning {
44
-				-webkit-transition: -webkit-transform 300ms ease;
45
-				transition: transform 300ms ease;
46
-			}
47
-			
48
-			.mui-page-left {
49
-				-webkit-transform: translate3d(0, 0, 0);
50
-				transform: translate3d(0, 0, 0);
51
-			}
52
-			
53
-			.mui-ios .mui-page-left {
54
-				-webkit-transform: translate3d(-20%, 0, 0);
55
-				transform: translate3d(-20%, 0, 0);
56
-			}
57
-			
58
-			.mui-bar-nav {
59
-				background-color: #00a1cb;
60
-			}
61
-			
62
-			.mui-navbar {
63
-				position: fixed;
64
-				right: 0;
65
-				left: 0;
66
-				z-index: 10;
67
-				height: 44px;
68
-				background-color: #00a1cb;
69
-			}
70
-			
71
-			.mui-navbar .mui-bar {
72
-				position: absolute;
73
-				background: transparent;
74
-				text-align: center;
75
-			}
76
-			
77
-			.mui-android .mui-navbar-inner.mui-navbar-left {
78
-				opacity: 0;
79
-			}
80
-			
81
-			.mui-ios .mui-navbar-left .mui-left,
82
-			.mui-ios .mui-navbar-left .mui-center,
83
-			.mui-ios .mui-navbar-left .mui-right {
84
-				opacity: 0;
85
-			}
86
-			
87
-			.mui-navbar .mui-btn-nav {
88
-				-webkit-transition: none;
89
-				transition: none;
90
-				-webkit-transition-duration: .0s;
91
-				transition-duration: .0s;
92
-			}
93
-			
94
-			.mui-navbar .mui-bar .mui-title {
95
-				display: inline-block;
96
-				width: auto;
97
-			}
98
-			
99
-			.mui-page-shadow {
100
-				position: absolute;
101
-				right: 100%;
102
-				top: 0;
103
-				width: 16px;
104
-				height: 100%;
105
-				z-index: -1;
106
-				content: '';
107
-			}
108
-			
109
-			.mui-page-shadow {
110
-				background: -webkit-linear-gradient(left, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) 10%, rgba(0, 0, 0, .01) 50%, rgba(0, 0, 0, .2) 100%);
111
-				background: linear-gradient(to right, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) 10%, rgba(0, 0, 0, .01) 50%, rgba(0, 0, 0, .2) 100%);
112
-			}
113
-			
114
-			.mui-navbar-inner.mui-transitioning,
115
-			.mui-navbar-inner .mui-transitioning {
116
-				-webkit-transition: opacity 300ms ease, -webkit-transform 300ms ease;
117
-				transition: opacity 300ms ease, transform 300ms ease;
118
-			}
119
-			
120
-			.mui-page {
121
-				display: none;
122
-			}
123
-			
124
-			.mui-pages .mui-page {
125
-				display: block;
126
-			}
127
-			
128
-			.mui-page .mui-table-view:first-child {
129
-				margin-top: 15px;
130
-			}
131
-			
132
-			.mui-page .mui-table-view:last-child {
133
-				margin-bottom: 30px;
134
-			}
135
-			
136
-			.mui-table-view {
137
-				margin-top: 20px;
138
-			}
139
-			
140
-			.mui-table-view span.mui-pull-right {
141
-				color: #999;
142
-			}
143
-			
144
-			.mui-table-view-divider {
145
-				background-color: #efeff4;
146
-				font-size: 14px;
147
-			}
148
-			
149
-			.mui-table-view-divider:before,
150
-			.mui-table-view-divider:after {
151
-				height: 0;
152
-			}
153
-			
154
-			.head {
155
-				height: 40px;
156
-			}
157
-			
158
-			#head {
159
-				line-height: 40px;
160
-			}
161
-			
162
-			.head-img {
163
-				width: 40px;
164
-				height: 40px;
165
-			}
166
-			
167
-			#head-img1 {
168
-				position: absolute;
169
-				bottom: 10px;
170
-				right: 40px;
171
-				width: 40px;
172
-				height: 40px;
173
-			}
174
-			
175
-			.update {
176
-				font-style: normal;
177
-				color: #999999;
178
-				margin-right: -25px;
179
-				font-size: 15px
180
-			}
181
-			
182
-			.mui-fullscreen {
183
-				position: fixed;
184
-				z-index: 20;
185
-				background-color: #000;
186
-			}
187
-			
188
-			.mui-ios .mui-navbar .mui-bar .mui-title {
189
-				position: static;
190
-			}
191
-			
192
-			.mui-title {
193
-				color: #fff!important;
194
-			}
195
-			
196
-			#img1 {
197
-				width: 100%;
198
-			}
199
-			
200
-			.mui-grid-view.mui-grid-9 .mui-table-view-cell {
201
-				padding: 11px 10px;
202
-			}
203
-			
204
-			.Content .mui-media-body {
205
-				width: 50%;
206
-			}
207
-			
208
-			.mui-icon {
209
-				font-size: 24px!important;
210
-				vertical-align: sub;
211
-			}
212
-			
213
-			.Blue {
214
-				color: #1775c2;
215
-			}
216
-			/*图标颜色*/
217
-			
218
-			.yellow {
219
-				color: #f68d20;
220
-			}
221
-			
222
-			.blue {
223
-				color: #1775C2;
224
-			}
225
-			
226
-			.blues {
227
-				color: #1677be;
228
-			}
229
-			
230
-			.green {
231
-				color: #008a4d;
232
-			}
233
-			
234
-			.red {
235
-				color: #e4415d;
236
-			}
237
-			
238
-			.Content {
239
-				background-color: #fff;
240
-			}
241
-			
242
-			.Content-title {
243
-				margin-left: 8px;
244
-			}
245
-			
246
-			.Content-title h5 {
247
-				margin: 0;
248
-				line-height: 34px;
249
-				color: #797979;
250
-				font-weight: 700;
251
-			}
252
-			
253
-			.size-16 {
254
-				font-size: 16px;
255
-			}
256
-			
257
-			.size-14 {
258
-				font-size: 14px;
259
-			}
260
-			
261
-			.Left-icon {
262
-				width: 20%;
263
-				line-height: 40px;
264
-				margin-right: 3px;
265
-			}
266
-			
267
-			.mui-pull-left h4 {
268
-				font-size: 13px;
269
-				margin-bottom: 8px;
270
-			}
271
-			
272
-			.mui-pull-left h5 {
273
-				font-size: 12px;
274
-			}
275
-			
276
-			#IMG-box {
277
-				background-color: #fff;
278
-			}
279
-			
280
-			.Common-box li {
281
-				display: none;
282
-			}
283
-			.red{
284
-				color: #ff1b41;
285
-			}
286
-			.marquee{
287
-				overflow: hidden; line-height: 40px; background-color: #fff;
288
-				margin-bottom: 8px;
289
-			}
290
-			.marquee-span{
291
-				  font-size: 14px;
292
-    color: #797979;
293
-    font-weight: 700;
294
-			}
295
-			.Icon{
296
-				/*height: 30px; */
297
-    background-color: #ff9600;
298
-    padding: 5px;
299
-    /* width: 30px; */
300
-    border-radius: 50%;
301
-    width: 34px;
302
-    margin: 0 auto;
303
-			}
304
-			.Icon i{
305
-				color: #fff;
306
-			}
307
-		</style>
308
-	</head>
309
-
310
-	<body >
311
-		<!--页面主内容区开始-->
312
-		<div class="mui-content">
313
-			<!--banner-->
314
-			<div id="IMG-box">
315
-				<img id="img1" src="img/banner6.jpg" class="">
316
-			</div>
317
-			<div class="marquee" >
318
-				<div style="float: left;" class="Content-title">
319
-					<span  class="marquee-span">
320
-							<i class='red mui-icon iconfont icon-gonggao01'></i>
321
-							最新消息:
322
-					</span>
323
-				</div>
324
-						
325
-						<div style="float: left; width: 60%;">
326
-							<h5 class="mui-ellipsis">
327
-								<marquee class="mui-ellipsis" style="height: 20px; font-size: 12px; color:#e43926" direction="up" scrollamount="1" color="#e43926">滚动字幕内容滚动字幕内容滚动内容滚动内容滚动内容滚动滚动内容滚动滚动内容滚动滚动内容滚动</marquee>
328
-							</h5>
329
-							
330
-						</div>
331
-				</div>
332
-			<!--主体-->
333
-			<div class='Content' >
334
-				<div class="Content-title">
335
-					<h5 style="margin-top: 0;"><span class="blues" style="margin-right: 5px;"><i class='mui-icon iconfont icon-gongdan'></i></span><span>工单管理</span></h5>
336
-				</div>
337
-				<!--调度-->
338
-				<div>
339
-					<ul class="mui-table-view mui-grid-view mui-grid-9 Common-box Dispatch_" style="display: block;">
340
-						<li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3 ">
341
-							<a href="javascript:;" class="Dispatch-list" data-index="1" index="0">
342
-								<div class="Icon"><i  class="mui-icon iconfont icon-dengdai2"></i></div>
343
-								<div class="mui-media-body">待交办</div>
344
-							</a>
345
-						</li>
346
-						<li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3">
347
-							<a href="javascript:;" class="Dispatch-list" data-index="3" index="0">
348
-								<div class="Icon"><i class="mui-icon iconfont icon-hui "></i></div>
349
-								<div class="mui-media-body">待退回审核</div>
350
-							</a>
351
-						</li>
352
-						<li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3">
353
-							<a href="javascript:;" class="Dispatch-list" data-index="5" index="0">
354
-								<span class="mui-icon  iconfont icon-dengdai Blue"></span>
355
-								<div class="mui-media-body">待延期审核</div>
356
-							</a>
357
-						</li>
358
-						<li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3">
359
-							<a href="javascript:;" class="Dispatch-list" issatisfie="1" data-index="7" index="0">
360
-								<span class="mui-icon  iconfont icon-banlidaikuan Blue"></span>
361
-								<div class="mui-media-body">待结档</div>
362
-							</a>
363
-						</li>
364
-						<li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3">
365
-							<a href="javascript:;" class="Dispatch-list" issatisfie="0" data-index="7" index="0">
366
-								<span class="mui-icon iconfont icon-gongzuojiaoban Blue"></span>
367
-								<div class="mui-media-body">待重办</div>
368
-							</a>
369
-						</li>
370
-						<li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3">
371
-							<a href="javascript:;" class="Dispatch" index="1">
372
-								<span class="mui-icon iconfont icon-wancheng Blue"></span>
373
-								<div class="mui-media-body">已交办</div>
374
-							</a>
375
-						</li>
376
-						<li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3">
377
-							<a  class="Seachs-list">
378
-								<span class="mui-icon iconfont icon-banlijinduchaxun Blue"></span>
379
-								<div class="mui-media-body">工单查询</div>
380
-							</a>
381
-						</li>
382
-					</ul>
383
-					<!--承办-->
384
-					<ul class="mui-table-view mui-grid-view mui-grid-9 Common-box Undertake" style="display: none;">
385
-						<li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3">
386
-							<a href="javascript:;" class="Undertake-list" data-index="0">
387
-								<span class="mui-icon iconfont icon-qianshoujilu Blue"></span>
388
-								<div class="mui-media-body">待签收</div>
389
-							</a>
390
-						</li>
391
-						<li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3">
392
-							<a href="javascript:;" class="Undertake-list" data-index="0">
393
-								<span class="mui-icon iconfont icon-benzhoudaichuli Blue"></span>
394
-								<div class="mui-media-body">待办理</div>
395
-							</a>
396
-						</li>
397
-						<li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3">
398
-							<a href="javascript:;" class="Undertake-list" data-index="3">
399
-								<span class="mui-icon  iconfont icon-gaojing Blue"></span>
400
-								<div class="mui-media-body">延期审核中</div>
401
-							</a>
402
-						</li>
403
-						<li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3">
404
-							<a href="javascript:;" class="Undertake-list" data-index="2">
405
-								<span class="mui-icon  iconfont icon-banlidaikuan Blue"></span>
406
-								<div class="mui-media-body">退回审核中</div>
407
-							</a>
408
-						</li>
409
-						<li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3">
410
-							<a href="javascript:;" class="Undertake-list" data-index="4">
411
-								<span class="mui-icon iconfont icon-wancheng Blue"></span>
412
-								<div class="mui-media-body">已办理</div>
413
-							</a>
414
-						</li>
415
-						<li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3">
416
-							<a class="Seachs-list" >
417
-								<span class="mui-icon iconfont icon-banlijinduchaxun Blue"></span>
418
-								<div class="mui-media-body">工单查询</div>
419
-							</a>
420
-						</li>
421
-					</ul>
422
-				</div>
423
-			</div>
424
-			<div class='Content'>
425
-				<div class="Content-title">
426
-					<h5>
427
-						<span>
428
-						<i class='mui-icon iconfont icon-iconfontfanxiantongqian yellow'></i>
429
-						</span>
430
-						<span class="size-16">公告</span>
431
-					</h5>
432
-				</div>
433
-				<div>
434
-					<ul class="mui-table-view mui-grid-view mui-grid-9">
435
-						<li class="mui-table-view-cell mui-media mui-col-xs-6 mui-col-sm-6 Managment">
436
-							<a>
437
-								<div class="mui-pull-left Left-icon">
438
-									<span class="mui-icon iconfont icon-gonggao01 blue"></span>
439
-								</div>
440
-								<div class="mui-text-left mui-pull-left">
441
-									<h4>通知公告</h4>
442
-									<h5>最及时的消息通知</h5>
443
-								</div>
444
-
445
-							</a>
446
-						</li>
447
-						<li class="mui-table-view-cell mui-media mui-col-xs-6 mui-col-sm-6 TimeOut">
448
-							<a href="#">
449
-								<div class="mui-pull-left Left-icon">
450
-									<span class="mui-icon iconfont icon-ditu-cuidan yellow"></span>
451
-								</div>
452
-								<div class="mui-text-left mui-pull-left">
453
-									<h4>超时提醒</h4>
454
-									<h5>超时工单,尽快处理</h5>
455
-								</div>
456
-							</a>
457
-						</li>
458
-						<li class="mui-table-view-cell mui-media mui-col-xs-6 mui-col-sm-6 Despacho">
459
-							<a>
460
-								<div class="mui-pull-left Left-icon">
461
-									<span class="mui-icon iconfont icon-needfix_passed green"></span>
462
-								</div>
463
-								<div class="mui-text-left mui-pull-left ">
464
-									<h4>领导批示</h4>
465
-									<h5>脚踏实地,一心为民</h5>
466
-								</div>
467
-							</a>
468
-						</li>
469
-						<li class="mui-table-view-cell mui-media mui-col-xs-6 mui-col-sm-6 Notification">
470
-							<a>
471
-								<div class="mui-pull-left Left-icon">
472
-									<span class="mui-icon iconfont icon-tubiao- red"></span>
473
-								</div>
474
-								<div class="mui-text-left mui-pull-left">
475
-									<h4>通报批评</h4>
476
-									<h5>有则改之,无则加勉</h5>
477
-								</div>
478
-							</a>
479
-						</li>
480
-
481
-					</ul>
482
-				</div>
483
-			</div>
484
-		</div>
485
-	</body>
486
-	<script src="js/mui.min.js "></script>
487
-	<script src="js/zepto.js"></script>
488
-	<script src="js/huayi.config.js"></script>
489
-	<script>
490
-		mui.init();
491
-		mui.plusReady(function() {
492
-//			document.addEventListener("netchange", wainshow, false);
493
-        //网络异常弹出框
494
-//    function wainshow() {
495
-//          if(plus.networkinfo.getCurrentType() == plus.networkinfo.CONNECTION_NONE) {
496
-//              mui.toast("网络连接中断!");
497
-//          }
498
-//}
499
-//setInterval(wainshow, 100);
500
-
501
-			var token = localStorage.getItem("token"); //获取本地存储
502
-			console.log(token);
503
-			//权限判断
504
-			mui.ajax(huayi.config.callcenter_url + '/UserAccount/GetNowUser', {
505
-				data: {
506
-					token: token,
507
-				},
508
-				dataType: 'json', //服务器返回json格式数据
509
-				type: 'get', //HTTP请求类型
510
-				timeout: 10000, //超时时间设置为10秒;
511
-				headers: {
512
-					'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
513
-				},
514
-				success: function(data) {
515
-					var RoleCode = data.data.role.F_RoleCode;
516
-									$(".F_UserName").text(data.data.user.F_UserName);
517
-									localStorage.setItem("F_UserName", data.data.user.F_UserName);
518
-									$(".rolname").text(data.data.user.rolname);
519
-					if(RoleCode == "WLDW") { //承办
520
-						$(".Undertake").css('display', 'block');
521
-						
522
-					} else if( RoleCode == "ZXLDGLY"||RoleCode == "ZXLD") {//调度
523
-						$(".Dispatch_").css('display', 'block');
524
-					}
525
-
526
-				},
527
-				error: function(xhr, type, errorThrown) {
528
-					//异常处理;
529
-				}
530
-
531
-			});
532
-			// 承办工单页面跳转
533
-			$(".Undertake-list").on('tap', function() {
534
-				var isdeal = $(this).attr('data-index');
535
-				mui.openWindow({
536
-					id: 'Work-list',
537
-					url: 'Undertake/Work-list.html',
538
-					show: {
539
-						autoShow: false
540
-					},
541
-					waiting: {
542
-						autoShow: true //自动显示等待框,默认为true
543
-
544
-					},
545
-					extras: {
546
-						token: token,
547
-						isdeal: isdeal,
548
-
549
-					}
550
-				});
551
-			})
552
-			//调度页面跳转
553
-			$('.Dispatch-list').on('tap', function() {
554
-				var isdeal = $(this).attr('data-index');
555
-				var index = $(this).attr('index');
556
-				var issatisfie = $(this).attr('issatisfie');
557
-				console.log(index);
558
-				mui.openWindow({
559
-					id: 'Work-list',
560
-					url: 'Dispatch/Work-list.html',
561
-					show: {
562
-						autoShow: false
563
-					},
564
-					waiting: {
565
-						autoShow: true //自动显示等待框,默认为true
566
-
567
-					},
568
-					extras: {
569
-						token: token,
570
-						isdeal: isdeal,
571
-						index: index,
572
-						issatisfie: issatisfie
573
-					}
574
-				});
575
-			})
576
-			//已交办
577
-			$('.Dispatch').on('tap', function() {
578
-				mui.openWindow({
579
-					id: 'Work-list',
580
-					url: 'Common/Work-jlist.html',
581
-					show: {
582
-						autoShow: false
583
-					},
584
-					waiting: {
585
-						autoShow: true //自动显示等待框,默认为true
586
-					},
587
-					extras: {
588
-						token: token
589
-					}
590
-				});
591
-			})
592
-			//承办查询
593
-			$('.Seachs-list').on('tap', function() {
594
-				mui.openWindow({
595
-					id: 'Work-Seach',
596
-					url: 'Undertake/Work-Seach.html',
597
-					show: {
598
-						autoShow: false
599
-					},
600
-					waiting: {
601
-						autoShow: true //自动显示等待框,默认为true
602
-					}
603
-				});
604
-				
605
-			})
606
-			//公告跳转
607
-			$('.Managment').on('tap', function() {
608
-				var nwaiting = plus.nativeUI.showWaiting();
609
-				webviewShow = plus.webview.create("Undertake/Management.html"); //后台创建webview并打开show.html  
610
-				webviewShow.addEventListener("loaded", function() { //注册新webview的载入完成事件  
611
-					nwaiting.close(); //新webview的载入完毕后关闭等待框  
612
-					webviewShow.show("slide-in-right", 300); //把新webview窗体显示出来,显示动画效果为速度300毫秒的右侧移入动画
613
-
614
-				}, false);
615
-			})
616
-			//通报批评
617
-			$('.Notification').on('tap', function() {
618
-				var nwaiting = plus.nativeUI.showWaiting();
619
-				webviewShow = plus.webview.create("Undertake/Notification-list.html"); //后台创建webview并打开show.html  
620
-				webviewShow.addEventListener("loaded", function() { //注册新webview的载入完成事件  
621
-					nwaiting.close(); //新webview的载入完毕后关闭等待框  
622
-					webviewShow.show("slide-in-right", 300); //把新webview窗体显示出来,显示动画效果为速度300毫秒的右侧移入动画
623
-
624
-				}, false);
625
-			});
626
-			//批示列表
627
-			$('.Despacho').on('tap', function() {
628
-				var nwaiting = plus.nativeUI.showWaiting();
629
-				webviewShow = plus.webview.create("Undertake/Despacho-list.html"); //后台创建webview并打开show.html  
630
-				webviewShow.addEventListener("loaded", function() { //注册新webview的载入完成事件  
631
-					nwaiting.close(); //新webview的载入完毕后关闭等待框  
632
-					webviewShow.show("slide-in-right", 300); //把新webview窗体显示出来,显示动画效果为速度300毫秒的右侧移入动画
633
-
634
-				}, false);
635
-			});
636
-			//超时提醒
637
-			$('.TimeOut').on('tap', function() {
638
-				var nwaiting = plus.nativeUI.showWaiting();
639
-				webviewShow = plus.webview.create("Undertake/TimeOut-list.html"); //后台创建webview并打开show.html  
640
-				webviewShow.addEventListener("loaded", function() { //注册新webview的载入完成事件  
641
-					nwaiting.close(); //新webview的载入完毕后关闭等待框  
642
-					webviewShow.show("slide-in-right", 300); //把新webview窗体显示出来,显示动画效果为速度300毫秒的右侧移入动画
643
-
644
-				}, false);
645
-			});
646
-		})
647
-	</script>
648
-
649
-</html>

+ 0 - 5
商丘WebAPP/personal.html

@@ -593,7 +593,6 @@
593 593
 					localStorage.setItem("F_UserName", data.data.user.F_UserName);
594 594
 					localStorage.setItem("F_UserName", data.data.user.F_UserName);
595 595
 					$(".rolname").text(data.data.user.rolname);
596
-					
597 596
 					if(RoleCode == "WLDW") { //承办
598 597
 						$(".Undertake").css('display', 'block');
599 598
 					} else if(RoleCode == "ZXLD" || RoleCode == "GLY"|| RoleCode == "ZXLDGLY") { //调度
@@ -623,8 +622,6 @@
623 622
 				var isdeal = $(this).attr('data-index');
624 623
 				var index = $(this).attr('index');
625 624
 				var issatisfie = $(this).attr('issatisfie');
626
-				
627
-//				alert(index);
628 625
 				mui.openWindow({
629 626
 					id: 'Work-listDCL',
630 627
 					url: 'Work-listDCL.html',
@@ -773,8 +770,6 @@
773 770
 						if(data.state == "success") {
774 771
 							 NewCode_ = data.data.F_VersionCode;
775 772
 							localStorage.setItem("Code",NewCode_);	//缓存保存版本号;
776
-//							alert(Code_); 
777
-//							alert(NewCode_);
778 773
 							if(Code_!= NewCode_){
779 774
 								var Codes=localStorage.setItem("Code",NewCode_);
780 775
 								plus.nativeUI.confirm("1:修复BUG", function(event) {