瀏覽代碼

商丘app修改

miaofuhao 6 年之前
父節點
當前提交
44e90f94ae

+ 1 - 1
商丘WebAPP/MenuFirst/Work-DB.html

@@ -72,7 +72,7 @@
72 72
 										success: function(data) {
73 73
 											plus.nativeUI.toast('成功');
74 74
 											$("#question").val('');
75
-											var wobj = plus.webview.getWebviewById("WorkYjbDetails");
75
+											var wobj = plus.webview.getWebviewById("WorkDetails");
76 76
 											wobj.reload(true);
77 77
 										},
78 78
 										error: function(xhr, type, errorThrown) {

+ 93 - 0
商丘WebAPP/MenuFirst/Work-DBb.html

@@ -0,0 +1,93 @@
1
+<!doctype html>
2
+<html lang="en" class="feedback">
3
+
4
+	<head>
5
+		<meta charset="UTF-8" />
6
+		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
7
+		<title>督办</title>
8
+		<link rel="stylesheet" type="text/css" href="../css/mui.min.css" />
9
+		<link rel="stylesheet" type="text/css" href="../css/feedback.css" />
10
+		<link rel="stylesheet" type="text/css" href="../css/mui.picker.min.css" />
11
+		<style>
12
+			p {
13
+				font-size: 16px;
14
+				color: #fe6604;
15
+			}
16
+			
17
+			.mui-bar-nav {
18
+				background-color: #00a1cb;
19
+				color: #fff!important;
20
+			}
21
+		</style>
22
+	</head>
23
+
24
+	<body>
25
+		<header class="mui-bar mui-bar-nav" style="">
26
+			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" style="color: #fff;"></a>
27
+
28
+			<h1 class="mui-title" style="color: #fff;">督办</h1>
29
+		</header>
30
+		<div class="mui-content">
31
+
32
+			<p>督办意见(必填)</p>
33
+			<div class="row mui-input-row">
34
+				<textarea id='question' class="mui-input-clear question" placeholder="请详细描述你的问题和意见..."></textarea>
35
+			</div>
36
+			<div class="" style="padding: 10px;">
37
+				<br />
38
+				<button id="submit" type="button" class="mui-btn mui-btn-block mui-btn-primary submit">办理</button>
39
+			</div>
40
+
41
+		</div>
42
+		<script src="../js/huayi.config.js"></script>
43
+		<script src="../js/zepto.js"></script>
44
+		<script src="../js/mui.min.js"></script>
45
+		<script src="../js/mui.picker.min.js"></script>
46
+		<script type="text/javascript">
47
+			mui.init();
48
+			mui.plusReady(function() {
49
+				var wv = plus.webview.currentWebview();
50
+				var vText = wv.name;
51
+				var token = wv.token; 
52
+					document.getElementById("submit").addEventListener('tap', function() {
53
+					
54
+						var question = $("#question").val();
55
+
56
+							 if(!question) {
57
+							plus.nativeUI.toast('督办意见不能为空');
58
+						} else {
59
+							var btnArray = ['取消', '确定'];
60
+							mui.confirm('是否督办工单', '提示', btnArray, function(e) {
61
+								if(e.index == 1) {
62
+									mui.ajax(huayi.config.callcenter_url + 'WorkOrder/RemindWorkOrder', {
63
+										data: {
64
+											workorderid: vText,
65
+											overseeopinion: question, //办理人
66
+											type:1,
67
+											token: token
68
+										},
69
+										dataType: 'json', //服务器返回json格式数据
70
+										type: 'post', //HTTP请求类型
71
+										timeout: 10000, //超时时间设置为10秒;
72
+										success: function(data) {
73
+											plus.nativeUI.toast('成功');
74
+											$("#question").val('');
75
+											var wobj = plus.webview.getWebviewById("WorkYjbDetails");
76
+											wobj.reload(true);
77
+										},
78
+										error: function(xhr, type, errorThrown) {
79
+											plus.nativeUI.toast('失败');
80
+										}
81
+									});
82
+								} else {
83
+									plus.nativeUI.toast('取消');
84
+								}
85
+							})
86
+
87
+						}
88
+					})
89
+			})
90
+		</script>
91
+	</body>
92
+
93
+</html>

+ 3 - 2
商丘WebAPP/MenuFirst/WorkDetails.html

@@ -677,10 +677,11 @@
677 677
 						if(data.data.btndata.length > 0) {
678 678
 							$('.BTS').show();
679 679
 							for(var i = 0; i < data.data.btndata.length; i++) {
680
-								$('<li class=" mui-media mui-col-xs-4">' +
680
+								if (data.data.btndata[i].value!="不督办") {
681
+									$('<li class=" mui-media mui-col-xs-4">' +
681 682
 									'<button type="button" data-loading-text="提交中" index="' + data.data.btndata[i].key + '" class="mui-btn mui-btn-primary mui-btn-block block_button btn_agree Biaoqian">' + data.data.btndata[i].value + '</button>' +
682 683
 									'</li>').appendTo(".mui-grid-9")
683
-
684
+								}
684 685
 							}
685 686
 
686 687
 						}

+ 9 - 2
商丘WebAPP/Work-listDCL.html

@@ -275,6 +275,7 @@
275 275
 					var keyw;
276 276
 					var State;
277 277
 					plus.nativeUI.closeWaiting();
278
+					
278 279
 					//显示当前页面
279 280
 					mui.currentWebview.show();
280 281
 					if(index==1){
@@ -290,6 +291,11 @@
290 291
 	   				 }else if(issatisfie==1){
291 292
 	   				 	$(".Totle-box").text('待结案')
292 293
 	   				 }
294
+	   				 if (isdeal==6){
295
+	   				 	$(".Totle-box").text('已督办')
296
+	   				 }else if(isdeal==8){
297
+	   				 	$(".Totle-box").text('待督办')
298
+	   				 }
293 299
 					Ajax();
294 300
 					$('.go_search').on('input focus', function() {
295 301
 						keyw = $(this).val();
@@ -405,7 +411,7 @@
405 411
 					}
406 412
 
407 413
 					function Ajax() {
408
-						$(".order").remove();
414
+						$(".order").remove(); 
409 415
 						mui.ajax(huayi.config.callcenter_url + 'WorkOrder/GetLDDealList', {
410 416
 							data: {
411 417
 								token: token,
@@ -433,12 +439,13 @@
433 439
 								'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
434 440
 							},
435 441
 							success: function(data) {
436
-								
437 442
 								total = data.total;
438 443
 								$(".Totle").text('(' + total + ')');
444
+								alert(JSON.stringify(data.rows[0])) 
439 445
 								for(var i = 0; i < data.rows.length; i++) {
440 446
 									var a = data.rows[i].TypeName;
441 447
 									var c = data.rows[i].F_WorkState;
448
+									
442 449
 									var time = data.rows[i].F_CreateTime.substring(0, data.rows[i].F_CreateTime.indexOf(' '));
443 450
 									var time1=data.rows[i].LimitTime
444 451
 									

+ 42 - 3
商丘WebAPP/personal.html

@@ -370,9 +370,6 @@
370 370
 				</div>
371 371
 
372 372
 				<div style="float: left; width: 60%;" class="Ga">
373
-					<!--<h5 class="mui-ellipsis">
374
-								<marquee class="mui-ellipsis" style="height: 20px; font-size: 12px; color:#e43926" direction="up" scrollamount="1" color="#e43926">滚动字幕内容滚动字幕内容滚动内容滚动内容滚动内容滚动滚动内容滚动滚动内容滚动滚动内容滚动</marquee>
375
-							</h5>-->
376 373
 				</div>
377 374
 			</div>
378 375
 			<!--主体-->
@@ -486,6 +483,27 @@
486 483
 							</a>
487 484
 						</li>
488 485
 					</ul>
486
+					<!--督办专员-->
487
+					<ul class="mui-table-view mui-grid-view mui-grid-9 Common-box Supervision" style="display: none;">
488
+						<li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3">
489
+							<a href="javascript:;" class="Supervision-list" data-index="8">
490
+								<div class="Icon icon-2"><i class="mui-icon iconfont icon-daibanli "></i></div>
491
+								<div class="mui-media-body font-weight-bold">待督办</div>
492
+							</a>
493
+						</li>
494
+						<li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3">
495
+							<a href="javascript:;" class="Supervision-list" data-index="6">
496
+								<div class="Icon icon-7"><i class="mui-icon iconfont icon-yibanli "></i></div>
497
+								<div class="mui-media-body font-weight-bold">已督办</div>
498
+							</a>
499
+						</li>
500
+						<li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3">
501
+							<a href="javascript:;" class="Seach" data-index="0">
502
+								<div class="Icon icon-7"><i class="mui-icon iconfont icon-banlijinduchaxun Blue"></i></div>
503
+								<div class="mui-media-body font-weight-bold">工单查询</div>
504
+							</a>
505
+						</li>
506
+					</ul>
489 507
 				</div>
490 508
 			</div>
491 509
 			<!--<input type="week" name="" id="" value="" />-->
@@ -582,6 +600,8 @@
582 600
 						$(".Dispatch_").css('display', 'block');
583 601
 					} else if(RoleCode == "EJWLDW") {
584 602
 						$(".Dispatch").css('display', 'block');
603
+					} else if(RoleCode == "DBZY"){
604
+						$(".Supervision").css('display', 'block');
585 605
 					}
586 606
 				},
587 607
 				error: function(xhr, type, errorThrown) {
@@ -603,6 +623,7 @@
603 623
 				var isdeal = $(this).attr('data-index');
604 624
 				var index = $(this).attr('index');
605 625
 				var issatisfie = $(this).attr('issatisfie');
626
+				
606 627
 //				alert(index);
607 628
 				mui.openWindow({
608 629
 					id: 'Work-listDCL',
@@ -672,6 +693,24 @@
672 693
 					}
673 694
 				});
674 695
 			})
696
+			//三级查看
697
+			$('.Supervision-list').on('tap', function() {
698
+				var isdeal = $(this).attr('data-index');
699
+				mui.openWindow({
700
+					id: 'Work-listDCL',
701
+					url: 'Work-listDCL.html',
702
+					show: {
703
+						autoShow: false
704
+					},
705
+					waiting: {
706
+						autoShow: true //自动显示等待框,默认为true
707
+					},
708
+					extras: {
709
+						token: token,
710
+						isdeal: isdeal,
711
+					}
712
+				});
713
+			})
675 714
 			//公告跳转
676 715
 			$('.Managment').on('tap', function() {
677 716
 				var nwaiting = plus.nativeUI.showWaiting();

+ 128 - 32
商丘WebAPP/tab-phone.html

@@ -9,29 +9,71 @@
9 9
 		<title>通讯录</title>
10 10
 		<link href="css/mui.min.css" rel="stylesheet" />
11 11
 		<link rel="stylesheet" href="css/iconfont.css" />
12
+		<style>
13
+			.mui-bar {
14
+				-webkit-box-shadow: none;
15
+				box-shadow: none;
16
+			}
17
+			
18
+			.mui-bar-nav {
19
+				background-color: #00a1cb;
20
+			}
21
+			
22
+			.oa-contact-cell.mui-table .mui-table-cell {
23
+				padding: 11px 0;
24
+				vertical-align: middle;
25
+			}
26
+			
27
+			.oa-contact-cell {
28
+				position: relative;
29
+				margin: -11px 0;
30
+			}
31
+			
32
+			.oa-contact-avatar {
33
+				width: 50px;
34
+			}
35
+			
36
+			.oa-contact-avatar img {
37
+				border-radius: 50%;
38
+				width: 30px;
39
+				height: 30px;
40
+			}
41
+			
42
+			.oa-contact-content {
43
+				width: 100%;
44
+			}
45
+			
46
+			.oa-contact-name {
47
+				margin-right: 10px;
48
+			}
49
+			
50
+			.go_search {
51
+				background: #fff!important;
52
+				border: 1px solid #ccc!important;
53
+				border-radius: 17px!important;
54
+			}
55
+			
56
+			a {
57
+				color: #000;
58
+			}
59
+			
60
+			.mui-search.mui-active:before {
61
+				top: 25px;
62
+			}
63
+		</style>
12 64
 	</head>
13 65
 
14 66
 	<body>
15
-		<header class="mui-bar mui-bar-nav">
16
-            <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
17
-            <h1 class="mui-title">联系人</h1>
18
-        </header>
19
-        <div class="mui-content">
20
-            <ul class="mui-table-view" id="listArea">
21
-                <li class="mui-table-view-cell" id="mode">
22
-                    #
23
-                </li>
24
-            </ul>
25
-        </div>
26
-
67
+		<div class="">
27 68
 			<div class="mui-content mui-scroll-wrapper" id="pullrefresh">
28 69
 				<div class="mui-scroll">
29 70
 					<ul class="mui-table-view mui-table-view-striped mui-table-view-condensed" id="">
30
-						
71
+
31 72
 						<li class="mui-table-view-cell">
32 73
 							<div class="mui-input-row mui-search">
33 74
 								<input type="search" class="mui-input-clear go_search" placeholder="请输入关键字" style="margin-bottom: 0;">
34 75
 							</div>
76
+
35 77
 						</li>
36 78
 						
37 79
 					</ul>
@@ -49,26 +91,80 @@
49 91
 		<script src="js/huayi.config.js"></script>
50 92
 
51 93
 		<script type="text/javascript" charset="utf-8">
52
-			 mui.init();
53
-                mui.plusReady(function() {
54
-                    // 扩展API加载完毕,现在可以正常调用扩展API
55
-                    plus.contacts.getAddressBook(plus.contacts.ADDRESSBOOK_PHONE, function(addressbook) {
56
-                        addressbook.find(["displayName", "phoneNumbers"], function(contacts) {
57
-                            for(var i = 0, len = contacts.length; i < len; i++) {
58
-                                var li = document.getElementById("mode").cloneNode(true);
59
-                                li.innerHTML = contacts[i].displayName + "<br/>手机:" + (contacts[i].phoneNumbers.length == 0 ? "" : contacts[i].phoneNumbers[0].value);
60
-                                document.getElementById("listArea").appendChild(li);
61
-                            }
62
-                        }, function() {
63
-                            mui.toast("获取电话簿失败");
64
-                        }, {
65
-                            multiple: true
66
-                        });
67
-                    }, function(e) {
68
-                        mui.toast("获取电话簿失败 " + e.message);
69
-                    });
70
-                });
94
+			mui.init();
95
+			mui.ready(function() {
96
+				var keyw = '';
97
+				mui('.mui-scroll-wrapper').scroll({
98
+					deceleration: 0.0005
99
+				}); //设置减速系数,系数越大,滚动速度越慢,滚动距离越小,默认值0.0006
100
+				var a = localStorage.getItem("token");
101
+
102
+				Ajax();
103
+				$('.go_search').on('input focus', function() {
104
+					keyw = $(this).val();
105
+					console.log(keyw);
106
+					Ajax(keyw);
107
+				})
108
+
109
+				function Ajax() {
110
+					console.log(keyw);
111
+					$(".TX").empty();
112
+					 mui.ajax(huayi.config.callcenter_url + 'AddressBook/GetAppList?', {
113
+					data: {
114
+						token: localStorage.getItem('token'),
115
+						keyWord:keyw
116
+					},
117
+					dataType: 'json', //服务器返回json格式数据
118
+					type: 'get', //HTTP请求类型
119
+					timeout: 10000, //超时时间设置为10秒;
120
+					headers: {
121
+						'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
122
+					},
123
+					success: function(data) {
124
+						if(data.state = "success") {
125
+							  console.log(data);
126
+								var html;
127
+								$(data.rows).each(function(i, n) {
128
+									html = '<li data-group="'+n.NameOneCode+'" class="mui-table-view-divider mui-indexed-list-group">'+n.NameOneCode+'</li>';
129
+									$(n.AddressBooklist).each(function(j, m) {
130
+										html += '<li data-value="'+m.NameOneCode+'" data-tags="'+m.NameOneCode+'" class="mui-table-view-cell mui-indexed-list-item">'+
131
+													'<div class="mui-slider-cell">'+
132
+												        '<a href="tel:'+m.F_Mobile+'">'+
133
+														'<div class="oa-contact-cell mui-table">'+
134
+															'<div class="oa-contact-avatar mui-table-cell">'+
135
+																'<img src="img/2.png"/>'+
136
+															'</div>'+
137
+															'<div class="oa-contact-content mui-table-cell">'+
138
+																'<h4 class="oa-contact-name size-14">'+m.F_Name+'</h4>'+
139
+																'<span class="oa-contact-position mui-h6">'+m.F_Company+'</span>'+
140
+																'<h4 class="oa-contact-email mui-h6">'+m.F_Mobile+'</h4>'+
141
+															'</div>'+
142
+														'</div>'+
143
+														'</a>'+
144
+													'</div>'+
145
+												'</li>';
146
+									})
147
+									html += '</li>';
148
+									$(html).appendTo($(".TX"));
149
+								})
150
+						}
151
+					},
152
+					error: function(xhr, type, errorThrown) {
153
+						//异常处理;
154
+						mui.alert("");
155
+
156
+					}
157
+				});
158
+
159
+
160
+				}
161
+
162
+			});
163
+	
164
+
165
+				//点击两次就退出软件
71 166
 				
167
+		
72 168
 		</script>
73 169
 	</body>
74 170