瀏覽代碼

双汇APP代码提交

miaofuhao 5 年之前
父節點
當前提交
90c3aaeee3
共有 39 個文件被更改,包括 1021 次插入95 次删除
  1. 0 0
      双汇APP-andriod/Common/js/drop_down.js
  2. 160 0
      双汇APP-andriod/Common/js/repositoryList.js
  3. 53 0
      双汇APP-andriod/Common/repositoryList.html
  4. 126 0
      双汇APP-andriod/Common/repositorydetail.html
  5. 5 0
      双汇APP-andriod/Setting-1.html
  6. 二進制
      双汇APP-andriod/img/Wa.png
  7. 二進制
      双汇APP-andriod/img/Wb.png
  8. 二進制
      双汇APP-andriod/img/Wc.png
  9. 二進制
      双汇APP-andriod/img/Wd.png
  10. 二進制
      双汇APP-andriod/img/repository.png
  11. 2 2
      双汇APP-andriod/js/huayi.config.js
  12. 3 0
      双汇APP-andriod/js/login.js
  13. 9 0
      双汇APP-andriod/js/setting.js
  14. 2 2
      双汇APP-andriod/login.html
  15. 3 2
      双汇APP-andriod/manifest.json
  16. 4 3
      双汇APP-andriod/workOrder/Work-dispose.html
  17. 1 0
      双汇APP-andriod/workOrder/js/Work-list.js
  18. 5 0
      双汇APP-andriod/workOrder/js/Work-listCJ.js
  19. 4 0
      双汇APP-andriod/workOrder/js/Work-listClass.js
  20. 3 1
      双汇APP-andriod/workOrder/js/custom_select.js
  21. 60 3
      双汇APP-andriod/workOrder/js/detail.js
  22. 51 1
      双汇APP-andriod/workOrder/js/detailCJ.js
  23. 二進制
      双汇APP.zip
  24. 154 0
      双汇APP/Common/js/repositoryList.js
  25. 53 0
      双汇APP/Common/repositoryList.html
  26. 126 0
      双汇APP/Common/repositorydetail.html
  27. 5 0
      双汇APP/Setting-1.html
  28. 二進制
      双汇APP/img/repository.png
  29. 1 0
      双汇APP/js/personal.js
  30. 9 1
      双汇APP/js/setting.js
  31. 3 2
      双汇APP/manifest.json
  32. 2 3
      双汇APP/personal.html
  33. 3 3
      双汇APP/workOrder/Work-dispose.html
  34. 7 4
      双汇APP/workOrder/Work-listCJ.html
  35. 65 68
      双汇APP/workOrder/js/Work-listCJ.js
  36. 1 0
      双汇APP/workOrder/js/Work-listClass.js
  37. 1 0
      双汇APP/workOrder/js/custom_select.js
  38. 50 0
      双汇APP/workOrder/js/detail.js
  39. 50 0
      双汇APP/workOrder/js/detailCJ.js

+ 0 - 0
双汇APP-andriod/Common/js/drop_down.js


+ 160 - 0
双汇APP-andriod/Common/js/repositoryList.js

@@ -0,0 +1,160 @@
1
+mui.plusReady(function() {
2
+	//var isdeal=helper.request.queryString("isdeal");
3
+	var token = localStorage.getItem("token");
4
+	var F_RoleId = localStorage.getItem("F_RoleId");
5
+	var page = 1; //页数
6
+	var pageSize = 10; //每页显示条目
7
+	var total; //数据总条数
8
+	var wv = plus.webview.currentWebview();
9
+	var starttime = wv.starttime;;
10
+	var endtime = wv.endtime;;
11
+	var keyw = "";
12
+	var pull=false;
13
+	plus.nativeUI.closeWaiting();
14
+	//显示当前页面
15
+	mui.currentWebview.show();
16
+
17
+	Ajax();
18
+	$('.go_search').on('input focus', function() {
19
+		keyw = $(this).val();
20
+		page = 1;
21
+		$(".orderLi").remove(); 
22
+		setTimeout(function() {Ajax(keyw);},100);
23
+		
24
+	});
25
+	mui.init({
26
+		swipeBack: false,
27
+		pullRefresh: {
28
+			container: '#pullrefresh',
29
+			up: {
30
+				contentrefresh: "正在加载...", //可选,正在加载状态时,上拉加载控件上显示的标题内容
31
+				contentnomore: '没有更多数据了', //可选,请求完毕若没有更多数据时显示的提醒内容;
32
+				callback: pullupRefresh
33
+			}
34
+		},
35
+		beforeback: function() {
36
+			var list = plus.webview.currentWebview().opener();
37
+			//refresh是A页面自定义事件
38
+			mui.fire(list, 'refreshPer');
39
+			//返回true,继续页面关闭逻辑
40
+			return true;
41
+		}
42
+	});
43
+
44
+	function pullupRefresh() {
45
+		
46
+		setTimeout(function() {
47
+			mui('#pullrefresh').pullRefresh().endPullupToRefresh((page++ >= Math.ceil(total / 10)));
48
+			
49
+			Ajax();
50
+			
51
+		}, 1000);
52
+	}
53
+
54
+	function Ajax() {		
55
+		if ($("#repositoryResult").attr("data-index")!="") {
56
+			//alert($("#repositoryResult").attr("data-index"))
57
+			page=1;
58
+			$(".orderLi").remove();
59
+			
60
+		}
61
+		mui.ajax(huayi.config.callcenter_url + 'Knowledge/GetList', {
62
+			data: {
63
+				token: token,
64
+				keywords: keyw,
65
+				pid: $("#repositoryResult").attr("data-index"),
66
+				page: page,
67
+				pagesize: pageSize
68
+			},
69
+			dataType: 'json', //服务器返回json格式数据
70
+			type: 'get', //HTTP请求类型
71
+			async:false,
72
+			timeout: 10000, //超时时间设置为10秒;
73
+			headers: {
74
+				'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
75
+			},
76
+			success: function(data) {
77
+				var total = data.total;
78
+				if (!total) {
79
+					total = 0;
80
+					//$(".noWork").show();
81
+				}				
82
+				$(".class-icon img").hide();
83
+				$(".Totle").text('(' + total + ')');
84
+				for (var i = 0; i < data.rows.length; i++) {
85
+					$('<li class="mui-table-view-cell orderLi">' +
86
+						'<div class="mui-table order" data-index="' + data.rows[i].nid + '">' +
87
+						'<div class="mui-table-cell mui-col-xs-12">' +
88
+						'<h5 class="mui-ellipsis new_title" >' + data.rows[i].F_Title + '</h5>' +
89
+						' <p class="mui-h6 mui-ellipsis">' +
90
+						'<span class="advice">' + data.rows[i].F_Description + '</span>' +
91
+						' </p><p class="mui-h6 mui-ellipsis">' +
92
+						'<span class="time">创建时间:' + data.rows[i].F_CreateOn + '</span>' +
93
+						' </p></div></div>' +
94
+						'</li>').appendTo('#order_list');
95
+				}
96
+			},
97
+			error: function(xhr, type, errorThrown) {
98
+				//异常处理;
99
+			}
100
+		})
101
+	}
102
+	$('#order_list').on('tap', '.order', function() {
103
+		var id = $(this).attr('data-index');
104
+		mui.openWindow({
105
+			id: 'repositorydetail',
106
+			url: 'repositorydetail.html',
107
+			createNew: true,
108
+			show: {
109
+				aniShow: 'pop-in'
110
+			},
111
+			styles: {
112
+				popGesture: 'hide'
113
+			},
114
+			waiting: {
115
+				autoShow: true
116
+			},
117
+			extras: {
118
+				name: id,
119
+				token: token
120
+			}
121
+		});
122
+	})
123
+	//知识库分类
124
+	var repositoryList = [];
125
+	$.ajax({
126
+		type: "get",
127
+		url: huayi.config.callcenter_url + 'KnowledgeClass/GetList',
128
+		async: false,
129
+		data: {
130
+			token: localStorage.getItem("token")
131
+		},
132
+		dataType: 'json',
133
+		success: function(data) {
134
+			repositoryList = data.data;
135
+		}
136
+	});
137
+	(function($, doc) {
138
+
139
+		//交办单位
140
+		var repositoryPickers = new $.PopPicker({
141
+			layer: 2
142
+		});
143
+		repositoryPickers.setData(repositoryList);
144
+		var repository = doc.getElementById('repository');
145
+		var repositoryResults = doc.getElementById('repositoryResult');
146
+		repository.addEventListener('tap', function(event) {
147
+
148
+			repositoryPickers.show(function(items) {
149
+				console.log(items[1].id)
150
+				repositoryResults.value = items[1].text;
151
+				repositoryResults.setAttribute("data-index", items[1].id);								
152
+				Ajax();				
153
+				//返回 false 可以阻止选择框的关闭
154
+				//return false;
155
+			});
156
+		}, false);
157
+
158
+
159
+	})(mui, document);
160
+});

+ 53 - 0
双汇APP-andriod/Common/repositoryList.html

@@ -0,0 +1,53 @@
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 href="../css/mui.min.css" rel="stylesheet" />
11
+		<link rel="stylesheet" href="../css/iconfont.css" />
12
+		<link href="../css/mui.poppicker.css" rel="stylesheet" />
13
+		<link rel="stylesheet" type="text/css" href="../css/mui.picker.min.css" />
14
+		<link rel="stylesheet" href="css/Work-list.css" />
15
+	</head>
16
+	<body>				
17
+		<header class="mui-bar mui-bar-nav" style="padding-right: 15px;color: #fff;">
18
+			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
19
+			<h1 class="mui-center mui-title">
20
+				<span class="Totle-box" style="color: #FFFFFF;">知识库</span>
21
+				<span class="Totle" style="color: #FFFFFF;"></span>
22
+			</h1>
23
+			<a class=" mui-icon-tiajia mui-pull-right tjyh" id="repository" style="color: #fff;">
24
+				筛选
25
+			</a>
26
+		</header>
27
+		<div class="mui-content mui-scroll-wrapper" id="pullrefresh">
28
+			<div class="mui-scroll">
29
+				<ul class="mui-table-view mui-table-view-striped mui-table-view-condensed" id="order_list">
30
+					<li class="mui-table-view-cell">
31
+						<div class="mui-input-row mui-search ">
32
+							<input type="search" class="mui-input-clear go_search Width" placeholder="请输入关键字" style="margin-bottom: 0;">							
33
+						</div>
34
+					</li>
35
+				</ul>	
36
+				<div class="noWork" style="display: none; color: #AAAAAA; width: 100%; text-align: center;">暂无工单</div>
37
+			</div>
38
+			
39
+			<!--右上角弹出菜单-->
40
+		</div>
41
+		<input hidden="hidden" type="text" id="repositoryResult" class="ui-alert type_con" data-index="" readonly="readonly" />
42
+		<script src="../js/mui.min.js"></script>
43
+		<script src="../js/mui.poppicker.js"></script>
44
+		<script src="../js/mui.picker.min.js"></script>
45
+		<script src="../js/zepto.js"></script>
46
+		<script src="../js/huayi.config.js"></script>
47
+		<script src="../js/huayi.http.js"></script>
48
+		<script src="js/repositoryList.js"></script>
49
+		<script src="../js/jquery-1.8.js"></script>
50
+		<script src="js/drop_down.js"></script>
51
+	</body>
52
+		
53
+</html>

+ 126 - 0
双汇APP-andriod/Common/repositorydetail.html

@@ -0,0 +1,126 @@
1
+<!DOCTYPE html>
2
+
3
+<html>
4
+
5
+	<head>
6
+		<meta charset="utf-8">
7
+		<title></title>
8
+		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
9
+		<meta name="apple-mobile-web-app-capable" content="yes">
10
+		<meta name="apple-mobile-web-app-status-bar-style" content="black">
11
+
12
+		<!--标准mui.css-->
13
+		<link rel="stylesheet" href="../css/mui.min.css">
14
+		<!--App自定义的css-->
15
+		<!--<link rel="stylesheet" type="text/css" href="css/app.css" />-->
16
+		<style>
17
+			.mui-table h4,
18
+			.mui-table h5,
19
+			.mui-table .mui-h5,
20
+			.mui-table .mui-h6,
21
+			.mui-table p {
22
+				margin-top: 0;
23
+			}
24
+			
25
+			.mui-table h4 {
26
+				line-height: 21px;
27
+				font-weight: 500;
28
+			}
29
+			
30
+			.mui-table .oa-icon {
31
+				position: absolute;
32
+				right: 0;
33
+				bottom: 0;
34
+			}
35
+			
36
+			.mui-table .oa-icon-star-filled {
37
+				color: #f14e41;
38
+			}
39
+			
40
+			.mui-bar-nav {
41
+				background: #cd0000 !important;
42
+				color: #fff;
43
+			}
44
+			
45
+			.mui-bar-nav h1 {
46
+				color: #fff;
47
+			}
48
+			
49
+			.Messge {
50
+				font-size: 12px;
51
+				margin-top: 10px;
52
+				margin-bottom: 10px;
53
+				color: #8f8f94;
54
+				text-align: center;
55
+			}
56
+			
57
+			.Title {
58
+				text-align: center;
59
+			}
60
+			
61
+			.mui-content {
62
+				background-color: #fff;
63
+			}
64
+			
65
+			body {
66
+				background: #FFF;
67
+			}
68
+			.Content{
69
+				width: 100%;
70
+				word-break:break-all;
71
+			}
72
+		</style>
73
+	</head>
74
+
75
+	<body>
76
+		<header class="mui-bar mui-bar-nav" style="padding-right: 15px;height: 50px;color: #fff;">
77
+			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" style="color: #fff;"></a>
78
+			<h1 class="mui-center mui-title">知识库详情</h1>
79
+		</header>
80
+		<div class="mui-content">
81
+			<div class="" style="padding: 15px 10px;">
82
+				<h4 class="Title"></h4>
83
+				<div class="Messge">
84
+					<span class="FBR" style="margin-right: 10px;"></span><span class="Times"></span>
85
+				</div>
86
+				<p class="Content" style=" text-indent:28px"></p>
87
+			</div>
88
+		</div>
89
+	</body>
90
+	<script src="../js/mui.min.js"></script>
91
+	<script src="../js/zepto.js"></script>
92
+	<script src="../js/huayi.config.js"></script>
93
+	<script>
94
+		mui.init();
95
+		mui.plusReady(function() {
96
+			var wv = plus.webview.currentWebview();
97
+			var token = wv.token;
98
+			var id = wv.name;
99
+			mui.ajax(huayi.config.callcenter_url + 'Knowledge/GetInfo', {
100
+				data: {
101
+					infoid: id,
102
+					token: token,
103
+				},
104
+				dataType: 'json', //服务器返回json格式数据
105
+				type: 'get', //HTTP请求类型
106
+				timeout: 10000, //超时时间设置为10秒;
107
+				headers: {
108
+					'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
109
+				},
110
+				success: function(data) {
111
+					
112
+					var time = data.data.F_CreateOn.substring(0, data.data.F_CreateOn.indexOf(' '));
113
+					$(".Title").text(data.data.F_Title);
114
+					$(".Content").html(data.data.F_Content);
115
+					$(".Times").text('创建日期:' + time);
116
+				},
117
+				error: function(xhr, type, errorThrown) {
118
+					//异常处理;
119
+
120
+				}
121
+			})
122
+
123
+		});
124
+	</script>
125
+
126
+</html>

+ 5 - 0
双汇APP-andriod/Setting-1.html

@@ -53,6 +53,11 @@
53 53
 								<a id="listExport" class="mui-navigate-right"><img class="Img" src="img/Wb.png" alt="" />列表导出 <i class="mui-pull-right "></i></a>
54 54
 							</li>
55 55
 							<li class="mui-table-view-cell">
56
+								<a id="repositoryList" class="mui-navigate-right">
57
+									<img class="Img" src="img/repository.png" alt="" />知识库列表 
58
+									<i class="mui-pull-right "></i></a>
59
+							</li>
60
+							<li class="mui-table-view-cell">
56 61
 								<a id="fwsz" class="mui-navigate-right"><img class="Img" src="img/Wa.png" alt="" />服务守则 <i class="mui-pull-right "></i></a>
57 62
 							</li>
58 63
 							<li class="mui-table-view-cell"> 

二進制
双汇APP-andriod/img/Wa.png


二進制
双汇APP-andriod/img/Wb.png


二進制
双汇APP-andriod/img/Wc.png


二進制
双汇APP-andriod/img/Wd.png


二進制
双汇APP-andriod/img/repository.png


+ 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
 	indexOutTime: 2000, //菜单工单数量刷新间隔

+ 3 - 0
双汇APP-andriod/js/login.js

@@ -9,6 +9,7 @@ mui.plusReady(function() {
9 9
 		document.getElementById("password").value = localStorage.getItem("psw");
10 10
 	}
11 11
 	document.getElementById("login").addEventListener('tap', function() {
12
+		
12 13
 		var username = document.getElementById('account').value;
13 14
 		var password = document.getElementById('password').value;
14 15
 		var data = {
@@ -24,6 +25,7 @@ mui.plusReady(function() {
24 25
 			if(plus.networkinfo.getCurrentType() == plus.networkinfo.CONNECTION_NONE) {
25 26
 				mui.toast("网络连接中断!");
26 27
 			}
28
+			
27 29
 			// 调用ajax  
28 30
 			mui.ajax(huayi.config.callcenter_url + '/WorkorderApp/login', {
29 31
 				data: data,
@@ -32,6 +34,7 @@ mui.plusReady(function() {
32 34
 				timeout: 10000, //超时时间设置为10秒
33 35
 				success: function(data) {
34 36
 					if(data.state == "success") {
37
+						
35 38
 						localStorage.setItem("token", data.data.token);
36 39
 						localStorage.setItem("user", username);
37 40
 						localStorage.setItem("psw", password);

+ 9 - 0
双汇APP-andriod/js/setting.js

@@ -147,6 +147,15 @@ mui.plusReady(function() {
147 147
 			
148 148
 		});
149 149
 	})
150
+	//用户管理
151
+	$("#repositoryList").on('tap', function() {
152
+		mui.openWindow({
153
+			id: 'seach',
154
+			url: 'Common/repositoryList.html',
155
+			createNew: true
156
+			
157
+		});
158
+	})
150 159
 
151 160
 });
152 161
 //检测网络连接

+ 2 - 2
双汇APP-andriod/login.html

@@ -15,9 +15,9 @@
15 15
 			<form id='login-form' class="mui-input-group">
16 16
 				<!--logo-->
17 17
 				<div class="mui-logo-box">
18
-					<div class="img-box1">
18
+					<!-- <div class="img-box1">
19 19
 						<img src="img/logo_top.png" alt="" />
20
-					</div>
20
+					</div> -->
21 21
 					<div class="img-box2">
22 22
 						<img src="img/logo_banner.png" alt="" />
23 23
 					</div>

+ 3 - 2
双汇APP-andriod/manifest.json

@@ -3,7 +3,7 @@
3 3
     "id" : "io.dcloud.H5E9497091", /*应用的标识,创建应用时自动生成,勿手动修改*/
4 4
     "name" : "双汇售后服务平台", /*应用名称,程序桌面图标名称*/
5 5
     "version" : {
6
-        "name" : "1.3.5", /*应用版本名称*/
6
+        "name" : "1.4.0", /*应用版本名称*/
7 7
         "code" : "83"
8 8
     },
9 9
     "description" : "", /*应用描述信息*/
@@ -120,7 +120,8 @@
120 120
                     "<uses-permission android:name=\"android.permission.WRITE_CONTACTS\"/>",
121 121
                     "<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>",
122 122
                     "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
123
-                ]
123
+                ],
124
+                "abiFilters" : [ "armeabi-v7a", "x86" ]
124 125
             },
125 126
             "orientation" : [ "portrait-primary", "portrait-secondary" ], /*应用支持的方向,portrait-primary:竖屏正方向;portrait-secondary:竖屏反方向;landscape-primary:横屏正方向;landscape-secondary:横屏反方向*/
126 127
             "icons" : {

+ 4 - 3
双汇APP-andriod/workOrder/Work-dispose.html

@@ -155,11 +155,11 @@
155 155
 						<label class="label labels">是否完结:</label>
156 156
 						<div class="mui-input-row mui-radio mui-left radio_box">
157 157
 							<label>否</label>
158
-							<input type="radio" type="radio" name="secret" value="0" />
158
+							<input type="radio" name="secret" value="0" />
159 159
 						</div>
160 160
 						<div class="mui-input-row mui-radio mui-left radio_box">
161 161
 							<label>是</label>
162
-							<input type="radio" type="radio" name="secret" checked="checked" value="1" />
162
+							<input type="radio" name="secret" checked="checked" value="1" />
163 163
 						</div>
164 164
 					</div>
165 165
 				</li>
@@ -203,7 +203,8 @@
203 203
 				var str_ary;
204 204
 				var classImport = wv.classImport;
205 205
 				var orderState = wv.orderState;
206
-				if (orderState!=10) {
206
+				//alert(orderState)
207
+				if (orderState!=="10") {
207 208
 					$('.stateShow').show();
208 209
 				}
209 210
 				document.getElementById("submit").addEventListener('tap', function() {

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

@@ -96,6 +96,7 @@ window.onload = function() {
96 96
 					dataType: 'json', //服务器返回json格式数据
97 97
 					type: 'get', //HTTP请求类型
98 98
 					timeout: 10000, //超时时间设置为10秒;
99
+					async:false,
99 100
 					headers: {
100 101
 						'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
101 102
 					},

+ 5 - 0
双汇APP-andriod/workOrder/js/Work-listCJ.js

@@ -82,6 +82,7 @@ window.onload = function() {
82 82
 							url: huayi.config.callcenter_url + '/WorkorderApp/GetList',
83 83
 							dataType: 'json', //服务器返回json格式数据
84 84
 							type: 'get', //HTTP请求类型
85
+							async:false,
85 86
 							timeout: 10000, //超时时间设置为10秒;
86 87
 							headers: {
87 88
 								'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
@@ -141,6 +142,7 @@ window.onload = function() {
141 142
 							url: huayi.config.callcenter_url + '/WorkorderApp/GetList',
142 143
 							dataType: 'json', //服务器返回json格式数据
143 144
 							type: 'get', //HTTP请求类型
145
+							async:false,
144 146
 							timeout: 10000, //超时时间设置为10秒;
145 147
 							headers: {
146 148
 								'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
@@ -204,11 +206,13 @@ window.onload = function() {
204 206
 				url: huayi.config.callcenter_url + '/WorkorderApp/GetList',
205 207
 				dataType: 'json', //服务器返回json格式数据
206 208
 				type: 'get', //HTTP请求类型
209
+				async:false,
207 210
 				timeout: 10000, //超时时间设置为10秒;
208 211
 				headers: {
209 212
 					'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
210 213
 				},
211 214
 				success: function(data) {
215
+					
212 216
 					var total = data.total;
213 217
 					$(".orderli").remove();
214 218
 					if(!total) {total = 0;}
@@ -266,6 +270,7 @@ window.onload = function() {
266 270
 				url: huayi.config.callcenter_url + '/WorkorderApp/GetList',
267 271
 				dataType: 'json', //服务器返回json格式数据
268 272
 				type: 'get', //HTTP请求类型
273
+				async:false,
269 274
 				timeout: 10000, //超时时间设置为10秒;
270 275
 				headers: {
271 276
 					'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'

+ 4 - 0
双汇APP-andriod/workOrder/js/Work-listClass.js

@@ -82,6 +82,7 @@ window.onload = function() {
82 82
 							url: huayi.config.callcenter_url + '/WorkorderApp/GetList',
83 83
 							dataType: 'json', //服务器返回json格式数据
84 84
 							type: 'get', //HTTP请求类型
85
+							async:false,
85 86
 							timeout: 10000, //超时时间设置为10秒;
86 87
 							headers: {
87 88
 								'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
@@ -141,6 +142,7 @@ window.onload = function() {
141 142
 							url: huayi.config.callcenter_url + '/WorkorderApp/GetList',
142 143
 							dataType: 'json', //服务器返回json格式数据
143 144
 							type: 'get', //HTTP请求类型
145
+							async:false,
144 146
 							timeout: 10000, //超时时间设置为10秒;
145 147
 							headers: {
146 148
 								'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
@@ -203,6 +205,7 @@ window.onload = function() {
203 205
 				},
204 206
 				url: huayi.config.callcenter_url + '/WorkorderApp/GetList',
205 207
 				dataType: 'json', //服务器返回json格式数据
208
+				async:false,
206 209
 				type: 'get', //HTTP请求类型
207 210
 				timeout: 10000, //超时时间设置为10秒;
208 211
 				headers: {
@@ -267,6 +270,7 @@ window.onload = function() {
267 270
 				url: huayi.config.callcenter_url + '/WorkorderApp/GetList',
268 271
 				dataType: 'json', //服务器返回json格式数据
269 272
 				type: 'get', //HTTP请求类型
273
+				async:false,
270 274
 				timeout: 10000, //超时时间设置为10秒;
271 275
 				headers: {
272 276
 					'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'

+ 3 - 1
双汇APP-andriod/workOrder/js/custom_select.js

@@ -25,6 +25,7 @@ $(document).ready(function(){
25 25
     $(".grade-w").on('click', 'li', function() {
26 26
     	$(".grade-t").css("left","50%");
27 27
     	if ($(this).hasClass("check_active")) {
28
+			
28 29
     		$(this).removeClass("check_active");
29 30
     		$(this).children("img").hide();
30 31
     		var areaDataRemove=$(this).attr("data-index");
@@ -38,7 +39,8 @@ $(document).ready(function(){
38 39
 			 	var index = this.indexOf(val);
39 40
 			 	if(index > -1){this.splice(index,1);}
40 41
 			}
41
-			areaList.remove(areaDataRemove); 
42
+			areaList.remove(areaDataRemove);
43
+			officeList=[];
42 44
 			$(".grade-t li img").hide();
43 45
 			$(".mui-checkbox input").removeAttr("checked")
44 46
     	} else{

+ 60 - 3
双汇APP-andriod/workOrder/js/detail.js

@@ -1,5 +1,8 @@
1 1
 mui.init({
2
-	swipeBack: true //启用右滑关闭功能
2
+	swipeBack: true ,//启用右滑关闭功能
3
+	gestureConfig: {
4
+		longtap: true   //默认为 false, 长按事件
5
+	} 
3 6
 });
4 7
 mui.previewImage();
5 8
 mui.plusReady(function() {
@@ -107,16 +110,67 @@ mui.plusReady(function() {
107 110
 			if(data.FileUrl) {
108 111
 				$(data.FileUrl).each(function(i, n) {
109 112
 					if(n.F_Type == '.jpg'||n.F_Type == '.png') {
110
-						$('<div class="img-box"><img src="' + n.F_Url + '" alt="" class="image-item" data-preview-src="" data-preview-group="1" /><div>').appendTo("#image-list");
113
+						$('<div class="img-box longImg" index="'+n.F_Url+'"><img src="' + n.F_Url + '" alt="" class="image-item" data-preview-src="" data-preview-group="1" /><div>').appendTo("#image-list");
111 114
 						$(".image-list").show();
112 115
 					} else if(n.F_Type == '.docx') {
113 116
 						mui.toast('猜猜我是谁')
114 117
 					}
115 118
 			
116 119
 				})
120
+				$(".longImg").on("longtap", function(e) {
121
+				
122
+					var target = e.target;
123
+					var imgSave=$(this).attr("index")
124
+					//alert(imgSave);
125
+					var bts = [{
126
+						title: "保存到手机"
127
+					}];
128
+					
129
+					/**
130
+					 * actionSheet:弹出系统选择按钮框
131
+					 */
132
+					plus.nativeUI.actionSheet({
133
+						cancel: "取消",
134
+						buttons: bts
135
+					}, function(e) {
136
+						
137
+						if(e.index > 0){
138
+							saveImage(imgSave)
139
+						}
140
+					});
141
+
142
+				});
143
+				 function saveImage(target) {
144
+					var imgUrl = target;
145
+					var timestamp = (new Date()).valueOf();
146
+					var downLoader = plus.downloader.createDownload(imgUrl, {
147
+						method: 'GET',
148
+						filename: '_downloads/image/' + timestamp + '.png'
149
+					}, function(download, status) {
150
+						var fileName = download.filename;
151
+						/**
152
+						 * 保存至本地相册
153
+						 */
154
+						plus.gallery.save(fileName, function() {
155
+							mui.toast("保存成功");
156
+	
157
+						});
158
+					});
159
+					
160
+					/**
161
+					 * 开始下载任务
162
+					 */
163
+					try{
164
+						downLoader.start();
165
+					}catch(e){
166
+						//TODO handle the exception
167
+						mui.toast("请长按图片保存");
168
+					}
169
+				}
117 170
 			}
118 171
 			//按钮显示
119 172
 			if(data.buttons.length > 0) {
173
+        //alert(JSON.stringify(data.buttons))
120 174
 				$('.BTS').show();
121 175
 				for(var i = 0; i < data.buttons.length; i++) {
122 176
 					$('<li class=" mui-media mui-col-xs-4">' +
@@ -156,6 +210,7 @@ mui.plusReady(function() {
156 210
 		var btnArray = ['否', '是'];
157 211
 		mui.confirm('确定要删除工单?', '提示', btnArray, function(e) {
158 212
 			if(e.index == 1) {
213
+       
159 214
 				mui.ajax(huayi.config.callcenter_url + 'WorkorderApp/DelWorkOrder', {
160 215
 					data: {
161 216
 						ids: vText,
@@ -176,7 +231,9 @@ mui.plusReady(function() {
176 231
 								var wobj = plus.webview.getWebviewById("Work-list");
177 232
 							}
178 233
 							wobj.reload(true);
179
-						}
234
+						}else{
235
+              mui.toast(data.message);
236
+            }
180 237
 					}
181 238
 				})
182 239
 			} else {

+ 51 - 1
双汇APP-andriod/workOrder/js/detailCJ.js

@@ -95,13 +95,63 @@ mui.plusReady(function() {
95 95
 			if(data.FileUrl) {
96 96
 				$(data.FileUrl).each(function(i, n) {
97 97
 					if(n.F_Type == '.jpg'||n.F_Type == '.png') {
98
-						$('<div class="img-box"><img src="' + n.F_Url + '" alt="" class="image-item" data-preview-src="" data-preview-group="1" /><div>').appendTo("#image-list");
98
+						$('<div class="img-box longImg"><img src="' + n.F_Url + '" alt="" class="image-item" data-preview-src="" data-preview-group="1" /><div>').appendTo("#image-list");
99 99
 						$(".image-list").show();
100 100
 					} else if(n.F_Type == '.docx') {
101 101
 						mui.toast('猜猜我是谁')
102 102
 					}
103 103
 			
104 104
 				})
105
+				$(".longImg").on("longtap", function(e) {
106
+				
107
+					var target = e.target;
108
+					var imgSave=$(this).attr("index")
109
+					//alert(imgSave);
110
+					var bts = [{
111
+						title: "保存到手机"
112
+					}];
113
+					
114
+					/**
115
+					 * actionSheet:弹出系统选择按钮框
116
+					 */
117
+					plus.nativeUI.actionSheet({
118
+						cancel: "取消",
119
+						buttons: bts
120
+					}, function(e) {
121
+						
122
+						if(e.index > 0){
123
+							saveImage(imgSave)
124
+						}
125
+					});
126
+				
127
+				});
128
+				 function saveImage(target) {
129
+					var imgUrl = target;
130
+					var timestamp = (new Date()).valueOf();
131
+					var downLoader = plus.downloader.createDownload(imgUrl, {
132
+						method: 'GET',
133
+						filename: '_downloads/image/' + timestamp + '.png'
134
+					}, function(download, status) {
135
+						var fileName = download.filename;
136
+						/**
137
+						 * 保存至本地相册
138
+						 */
139
+						plus.gallery.save(fileName, function() {
140
+							mui.toast("保存成功");
141
+					
142
+						});
143
+					});
144
+					
145
+					/**
146
+					 * 开始下载任务
147
+					 */
148
+					try{
149
+						downLoader.start();
150
+					}catch(e){
151
+						//TODO handle the exception
152
+						mui.toast("请长按图片保存");
153
+					}
154
+				}
105 155
 			}
106 156
 			//按钮显示
107 157
 			if(data.buttons.length > 0) {

二進制
双汇APP.zip


+ 154 - 0
双汇APP/Common/js/repositoryList.js

@@ -0,0 +1,154 @@
1
+mui.plusReady(function() {
2
+	//var isdeal=helper.request.queryString("isdeal");
3
+	var token = localStorage.getItem("token");
4
+	var F_RoleId = localStorage.getItem("F_RoleId");
5
+	var page = 1; //页数
6
+	var pageSize = 10; //每页显示条目
7
+	var total; //数据总条数
8
+	var wv = plus.webview.currentWebview();
9
+	var starttime = wv.starttime;;
10
+	var endtime = wv.endtime;;
11
+	var keyw = "";
12
+	plus.nativeUI.closeWaiting();
13
+	//显示当前页面
14
+	mui.currentWebview.show();
15
+
16
+	Ajax();
17
+	$('.go_search').on('input focus', function() {
18
+		keyw = $(this).val();
19
+		page = 1;
20
+		$(".orderLi").remove();
21
+		Ajax(keyw);
22
+	});
23
+	mui.init({
24
+		swipeBack: false,
25
+		pullRefresh: {
26
+			container: '#pullrefresh',
27
+			up: {
28
+				contentrefresh: "正在加载...", //可选,正在加载状态时,上拉加载控件上显示的标题内容
29
+				contentnomore: '没有更多数据了', //可选,请求完毕若没有更多数据时显示的提醒内容;
30
+				callback: pullupRefresh
31
+			}
32
+		},
33
+		beforeback: function() {
34
+			var list = plus.webview.currentWebview().opener();
35
+			//refresh是A页面自定义事件
36
+			mui.fire(list, 'refreshPer');
37
+			//返回true,继续页面关闭逻辑
38
+			return true;
39
+		}
40
+	});
41
+
42
+	function pullupRefresh() {
43
+		setTimeout(function() {
44
+			mui('#pullrefresh').pullRefresh().endPullupToRefresh((page++ >= Math.ceil(total / 10)));
45
+			Ajax();
46
+		}, 1000);
47
+	}
48
+
49
+	function Ajax() {
50
+		//alert($("#repositoryResult").attr("data-index"))
51
+		if($("#repositoryResult").attr("data-index")!=""){
52
+			page=1;
53
+			$(".orderLi").remove(); 
54
+		}
55
+		mui.ajax(huayi.config.callcenter_url + 'Knowledge/GetList', {
56
+			data: {
57
+				token: token,
58
+				keywords: keyw,
59
+				pid: $("#repositoryResult").attr("data-index"),
60
+				page: page,
61
+				pagesize: pageSize
62
+			},
63
+			dataType: 'json', //服务器返回json格式数据
64
+			type: 'get', //HTTP请求类型
65
+			timeout: 10000, //超时时间设置为10秒;
66
+			headers: {
67
+				'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
68
+			},
69
+			success: function(data) {
70
+				var total = data.total;
71
+				if (!total) {
72
+					total = 0;
73
+					$(".noWork").show();
74
+				}
75
+				$(".class-icon img").hide();
76
+				$(".Totle").text('(' + total + ')');
77
+				for (var i = 0; i < data.rows.length; i++) {
78
+					$('<li class="mui-table-view-cell orderLi">' +
79
+						'<div class="mui-table order" data-index="' + data.rows[i].nid + '">' +
80
+						'<div class="mui-table-cell mui-col-xs-12">' +
81
+						'<h5 class="mui-ellipsis new_title" >' + data.rows[i].F_Title + '</h5>' +
82
+						' <p class="mui-h6 mui-ellipsis">' +
83
+						'<span class="advice">' + data.rows[i].F_Description + '</span>' +
84
+						' </p><p class="mui-h6 mui-ellipsis">' +
85
+						'<span class="time">创建时间:' + data.rows[i].F_CreateOn + '</span>' +
86
+						' </p></div></div>' +
87
+						'</li>').appendTo('#order_list');
88
+				}
89
+			},
90
+			error: function(xhr, type, errorThrown) {
91
+				//异常处理;
92
+			}
93
+		})
94
+	}
95
+	$('#order_list').on('tap', '.order', function() {
96
+		var id = $(this).attr('data-index');
97
+		mui.openWindow({
98
+			id: 'repositorydetail',
99
+			url: 'repositorydetail.html',
100
+			createNew: true,
101
+			show: {
102
+				aniShow: 'pop-in'
103
+			},
104
+			styles: {
105
+				popGesture: 'hide'
106
+			},
107
+			waiting: {
108
+				autoShow: true
109
+			},
110
+			extras: {
111
+				name: id,
112
+				token: token
113
+			}
114
+		});
115
+	})
116
+	//知识库分类
117
+	var repositoryList = [];
118
+	$.ajax({
119
+		type: "get",
120
+		url: huayi.config.callcenter_url + 'KnowledgeClass/GetList',
121
+		async: false,
122
+		data: {
123
+			token: localStorage.getItem("token")
124
+		},
125
+		dataType: 'json',
126
+		success: function(data) {
127
+			repositoryList = data.data;
128
+		}
129
+	});
130
+	(function($, doc) {
131
+
132
+		//交办单位
133
+		var repositoryPickers = new $.PopPicker({
134
+			layer: 2
135
+		});
136
+		repositoryPickers.setData(repositoryList);
137
+		var repository = doc.getElementById('repository');
138
+		var repositoryResults = doc.getElementById('repositoryResult');
139
+		repository.addEventListener('tap', function(event) {
140
+
141
+			repositoryPickers.show(function(items) {
142
+				console.log(items[1].id)
143
+				repositoryResults.value = items[1].text;
144
+				repositoryResults.setAttribute("data-index", items[1].id);				
145
+				Ajax();
146
+
147
+				//返回 false 可以阻止选择框的关闭
148
+				//return false;
149
+			});
150
+		}, false);
151
+
152
+
153
+	})(mui, document);
154
+});

+ 53 - 0
双汇APP/Common/repositoryList.html

@@ -0,0 +1,53 @@
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 href="../css/mui.min.css" rel="stylesheet" />
11
+		<link rel="stylesheet" href="../css/iconfont.css" />
12
+		<link href="../css/mui.poppicker.css" rel="stylesheet" />
13
+		<link rel="stylesheet" type="text/css" href="../css/mui.picker.min.css" />
14
+		<link rel="stylesheet" href="css/Work-list.css" />
15
+	</head>
16
+	<body>				
17
+		<header class="mui-bar mui-bar-nav" style="padding-right: 15px;color: #fff;">
18
+			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
19
+			<h1 class="mui-center mui-title">
20
+				<span class="Totle-box" style="color: #FFFFFF;">知识库</span>
21
+				<span class="Totle" style="color: #FFFFFF;"></span>
22
+			</h1>
23
+			<a class=" mui-icon-tiajia mui-pull-right tjyh" id="repository" style="color: #fff;">
24
+				筛选
25
+			</a>
26
+		</header>
27
+		<div class="mui-content mui-scroll-wrapper" id="pullrefresh">
28
+			<div class="mui-scroll">
29
+				<ul class="mui-table-view mui-table-view-striped mui-table-view-condensed" id="order_list">
30
+					<li class="mui-table-view-cell">
31
+						<div class="mui-input-row mui-search ">
32
+							<input type="search" class="mui-input-clear go_search Width" placeholder="请输入关键字" style="margin-bottom: 0;">							
33
+						</div>
34
+					</li>
35
+				</ul>	
36
+				<div class="noWork" style="display: none; color: #AAAAAA; width: 100%; text-align: center;">暂无工单</div>
37
+			</div>
38
+			
39
+			<!--右上角弹出菜单-->
40
+		</div>
41
+		<input hidden="hidden" type="text" id="repositoryResult" class="ui-alert type_con" data-index="" readonly="readonly" />
42
+		<script src="../js/mui.min.js"></script>
43
+		<script src="../js/mui.poppicker.js"></script>
44
+		<script src="../js/mui.picker.min.js"></script>
45
+		<script src="../js/zepto.js"></script>
46
+		<script src="../js/huayi.config.js"></script>
47
+		<script src="../js/huayi.http.js"></script>
48
+		<script src="js/repositoryList.js"></script>
49
+		<script src="../js/jquery-1.8.js"></script>
50
+		<script src="js/drop_down.js"></script>
51
+	</body>
52
+		
53
+</html>

+ 126 - 0
双汇APP/Common/repositorydetail.html

@@ -0,0 +1,126 @@
1
+<!DOCTYPE html>
2
+
3
+<html>
4
+
5
+	<head>
6
+		<meta charset="utf-8">
7
+		<title></title>
8
+		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
9
+		<meta name="apple-mobile-web-app-capable" content="yes">
10
+		<meta name="apple-mobile-web-app-status-bar-style" content="black">
11
+
12
+		<!--标准mui.css-->
13
+		<link rel="stylesheet" href="../css/mui.min.css">
14
+		<!--App自定义的css-->
15
+		<!--<link rel="stylesheet" type="text/css" href="css/app.css" />-->
16
+		<style>
17
+			.mui-table h4,
18
+			.mui-table h5,
19
+			.mui-table .mui-h5,
20
+			.mui-table .mui-h6,
21
+			.mui-table p {
22
+				margin-top: 0;
23
+			}
24
+			
25
+			.mui-table h4 {
26
+				line-height: 21px;
27
+				font-weight: 500;
28
+			}
29
+			
30
+			.mui-table .oa-icon {
31
+				position: absolute;
32
+				right: 0;
33
+				bottom: 0;
34
+			}
35
+			
36
+			.mui-table .oa-icon-star-filled {
37
+				color: #f14e41;
38
+			}
39
+			
40
+			.mui-bar-nav {
41
+				background: #cd0000 !important;
42
+				color: #fff;
43
+			}
44
+			
45
+			.mui-bar-nav h1 {
46
+				color: #fff;
47
+			}
48
+			
49
+			.Messge {
50
+				font-size: 12px;
51
+				margin-top: 10px;
52
+				margin-bottom: 10px;
53
+				color: #8f8f94;
54
+				text-align: center;
55
+			}
56
+			
57
+			.Title {
58
+				text-align: center;
59
+			}
60
+			
61
+			.mui-content {
62
+				background-color: #fff;
63
+			}
64
+			
65
+			body {
66
+				background: #FFF;
67
+			}
68
+			.Content{
69
+				width: 100%;
70
+				word-break:break-all;
71
+			}
72
+		</style>
73
+	</head>
74
+
75
+	<body>
76
+		<header class="mui-bar mui-bar-nav" style="padding-right: 15px;height: 50px;color: #fff;">
77
+			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" style="color: #fff;"></a>
78
+			<h1 class="mui-center mui-title">知识库详情</h1>
79
+		</header>
80
+		<div class="mui-content">
81
+			<div class="" style="padding: 15px 10px;">
82
+				<h4 class="Title"></h4>
83
+				<div class="Messge">
84
+					<span class="FBR" style="margin-right: 10px;"></span><span class="Times"></span>
85
+				</div>
86
+				<p class="Content" style=" text-indent:28px"></p>
87
+			</div>
88
+		</div>
89
+	</body>
90
+	<script src="../js/mui.min.js"></script>
91
+	<script src="../js/zepto.js"></script>
92
+	<script src="../js/huayi.config.js"></script>
93
+	<script>
94
+		mui.init();
95
+		mui.plusReady(function() {
96
+			var wv = plus.webview.currentWebview();
97
+			var token = wv.token;
98
+			var id = wv.name;
99
+			mui.ajax(huayi.config.callcenter_url + 'Knowledge/GetInfo', {
100
+				data: {
101
+					infoid: id,
102
+					token: token,
103
+				},
104
+				dataType: 'json', //服务器返回json格式数据
105
+				type: 'get', //HTTP请求类型
106
+				timeout: 10000, //超时时间设置为10秒;
107
+				headers: {
108
+					'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
109
+				},
110
+				success: function(data) {
111
+					
112
+					var time = data.data.F_CreateOn.substring(0, data.data.F_CreateOn.indexOf(' '));
113
+					$(".Title").text(data.data.F_Title);
114
+					$(".Content").html(data.data.F_Content);
115
+					$(".Times").text('创建日期:' + time);
116
+				},
117
+				error: function(xhr, type, errorThrown) {
118
+					//异常处理;
119
+
120
+				}
121
+			})
122
+
123
+		});
124
+	</script>
125
+
126
+</html>

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

@@ -53,6 +53,11 @@
53 53
 								<a id="listExport" class="mui-navigate-right"><img class="Img" src="img/Wb.png" alt="" />列表导出 <i class="mui-pull-right "></i></a>
54 54
 							</li>
55 55
 							<li class="mui-table-view-cell">
56
+								<a id="repositoryList" class="mui-navigate-right">
57
+									<img class="Img" src="img/repository.png" alt="" />知识库列表 
58
+									<i class="mui-pull-right "></i></a>
59
+							</li>
60
+							<li class="mui-table-view-cell">
56 61
 								<a id="fwsz" class="mui-navigate-right"><img class="Img" src="img/Wa.png" alt="" />服务守则 <i class="mui-pull-right "></i></a>
57 62
 							</li>
58 63
 							<li class="mui-table-view-cell"> 

二進制
双汇APP/img/repository.png


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

@@ -93,6 +93,7 @@ function ajaxRefresh() {
93 93
 			if(data.CJSL == 0) {
94 94
 				$(".CJSL").hide(); //待提交
95 95
 			}  else {
96
+				//alert(data.CJSL)
96 97
 				$(".CJSL").text(data.CJSL); //抽检工单
97 98
 			}
98 99
 			if(data.THDTJ == 0) {

+ 9 - 1
双汇APP/js/setting.js

@@ -146,7 +146,15 @@ mui.plusReady(function() {
146 146
 			
147 147
 		});
148 148
 	})
149
-
149
+	//用户管理
150
+	$("#repositoryList").on('tap', function() {
151
+		mui.openWindow({
152
+			id: 'seach',
153
+			url: 'Common/repositoryList.html',
154
+			createNew: true
155
+			
156
+		});
157
+	})
150 158
 });
151 159
 //检测网络连接
152 160
 function wainshow() {

+ 3 - 2
双汇APP/manifest.json

@@ -3,7 +3,7 @@
3 3
     "id" : "io.dcloud.H5E9497091", /*应用的标识,创建应用时自动生成,勿手动修改*/
4 4
     "name" : "双汇售后服务平台", /*应用名称,程序桌面图标名称*/
5 5
     "version" : {
6
-        "name" : "1.3.5", /*应用版本名称*/
6
+        "name" : "1.4.0", /*应用版本名称*/
7 7
         "code" : "83"
8 8
     },
9 9
     "description" : "", /*应用描述信息*/
@@ -126,7 +126,8 @@
126 126
                     "<uses-permission android:name=\"android.permission.WRITE_CONTACTS\"/>",
127 127
                     "<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>",
128 128
                     "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
129
-                ]
129
+                ],
130
+                "abiFilters" : [ "armeabi-v7a", "x86" ]
130 131
             },
131 132
             "orientation" : [ "portrait-primary", "portrait-secondary" ], /*应用支持的方向,portrait-primary:竖屏正方向;portrait-secondary:竖屏反方向;landscape-primary:横屏正方向;landscape-secondary:横屏反方向*/
132 133
             "icons" : {

+ 2 - 3
双汇APP/personal.html

@@ -227,7 +227,7 @@
227 227
 					<a href="javascript:;" class="work-list" index="3">
228 228
 						<div class="Icon icon-3">
229 229
 							<img src="img/icon-3.png" />
230
-						</i></div>
230
+						</div>
231 231
 						<div class="mui-media-body font-weight-bold">待处理</div>
232 232
 					</a> 
233 233
 					<div class="stateIcon DCL">99</div>
@@ -236,7 +236,6 @@
236 236
 					<a href="javascript:;" class="work-list" index="4">
237 237
 						<div class="Icon icon-4">
238 238
 							<img src="img/icon-4.png" />
239
-						</div>
240 239
 						<div class="mui-media-body font-weight-bold">处理中</div>
241 240
 					</a>
242 241
 					<div class="stateIcon CLZ">99</div>
@@ -272,7 +271,7 @@
272 271
 					<a href="javascript:;" class="work-list" index="11">
273 272
 						<div class="Icon icon-3">
274 273
 							<img src="img/icon-3.png" />
275
-						</i></div>
274
+						</div>
276 275
 						<div class="mui-media-body font-weight-bold">咨询工单</div>
277 276
 					</a> 
278 277
 				</li>

+ 3 - 3
双汇APP/workOrder/Work-dispose.html

@@ -156,11 +156,11 @@
156 156
 						<label class="label labels">是否完结:</label>
157 157
 						<div class="mui-input-row mui-radio mui-left radio_box">
158 158
 							<label>否</label>
159
-							<input type="radio" type="radio" name="secret" value="0" />
159
+							<input type="radio" name="secret" value="0" />
160 160
 						</div>
161 161
 						<div class="mui-input-row mui-radio mui-left radio_box">
162 162
 							<label>是</label>
163
-							<input type="radio" type="radio" name="secret" checked="checked" value="1" />
163
+							<input type="radio" name="secret" checked="checked" value="1" />
164 164
 						</div>
165 165
 					</div>
166 166
 				</li>
@@ -203,7 +203,7 @@
203 203
 				var str_ary;
204 204
 				var classImport = wv.classImport;
205 205
 				var orderState = wv.orderState;
206
-				if (orderState!=10) {
206
+				if (orderState!=="10") {
207 207
 					$('.stateShow').show();
208 208
 				}
209 209
 				document.getElementById("submit").addEventListener('tap', function() {

+ 7 - 4
双汇APP/workOrder/Work-listCJ.html

@@ -21,6 +21,9 @@
21 21
 				display: block;
22 22
 				color: #000;
23 23
 			}
24
+			.new_title,.mui-ellipsis{
25
+				width: 70%;
26
+			}
24 27
 		</style>
25 28
 	</head>
26 29
 	<body>
@@ -42,7 +45,7 @@
42 45
 		<div class="grade-eject_bj"></div>
43 46
 		<header class="mui-bar mui-bar-nav" style="padding-right: 15px;color: #fff;">
44 47
 			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
45
-			<h1 class="mui-center mui-title"><span class="Totle-box" style="color: #FFFFFF;"></span></h1>
48
+			<h1 class="mui-center mui-title"><span class="Totle-box" style="color: #FFFFFF;">抽检列表</span></h1>
46 49
 			<a class=" mui-icon-tiajia mui-pull-right tjyh Regional" style="color: #fff;" id="DW">
47 50
 				办事处筛选 
48 51
 			</a>
@@ -78,9 +81,9 @@
78 81
 				</ul>				
79 82
 			</div>
80 83
 		</div>	
81
-		<input hidden="hidden" type="text" id='DWResult' class="ui-alert type_con" data-index="" readonly="readonly" />
82
-			<!--右上角弹出菜单-->
83
-		</div>
84
+		<input hidden="hidden" type="text" id="DWResult" class="ui-alert type_con" data-index="" readonly="readonly" />
85
+		<!--右上角弹出菜单-->
86
+		
84 87
 		<input id="AreaId" type="hidden" />
85 88
 		<input id="OfficeId" type="hidden" />
86 89
 		<script src="../js/mui.min.js"></script>

+ 65 - 68
双汇APP/workOrder/js/Work-listCJ.js

@@ -4,36 +4,22 @@ window.onload = function() {
4 4
 		//var isdeal=helper.request.queryString("isdeal");
5 5
 		var token = localStorage.getItem("token");
6 6
 		var F_See = localStorage.getItem("F_See");
7
-		var page = 1; //页数
8
-		var pageSize = 10; //每页显示条目
9
-		var total; //数据总条数
10 7
 		var wv = plus.webview.currentWebview();
11 8
 		var importClass = wv.importClass; //工单等级
12 9
 		var choujian = wv.choujian; //抽检
13
-		var keyw="";
14
-		var index=0;
15
-		var dataIndex=1;
10
+		var keyw="",classImport = "",index=0,dataIndex=1,total,pageSize = 10,page = 1;
16 11
 		plus.nativeUI.closeWaiting();
17 12
 		//显示当前页面
18
-		mui.currentWebview.show();
19
-		if(importClass == 1) {
20
-			$(".Totle-box").text('1类问题')
21
-		} else if(importClass == 2) {
22
-			$(".Totle-box").text('2类问题')
23
-		} else if(importClass == 3) {
24
-			$(".Totle-box").text('3类问题')
25
-		}else{
26
-			$(".Totle-box").text('抽检列表')
27
-		}
28
-		if(importClass == 1) {
29
-			classImport = "Ⅰ级"
30
-		} else if(importClass == 2) {
31
-			classImport = "Ⅱ级"
32
-		} else if(importClass == 3) {
33
-			classImport = "普通工单"
34
-		} else {
35
-			classImport = ""
36
-		}
13
+		
14
+		mui.currentWebview.show();	
15
+		if(localStorage.getItem("index")){
16
+			index = localStorage.getItem("index");
17
+			dataIndex = localStorage.getItem("dataIndex");	
18
+			areaId = localStorage.getItem("areaId");
19
+			officeId = localStorage.getItem("officeId");		
20
+			$("#mui_list").find(".mui-control-item_1").removeClass("mui-active_q");
21
+			$("#mui_list").find(".mui-control-item_1").eq(index).addClass("mui-active_q");						
22
+		}						
37 23
 		if(F_See == 0) { //调度
38 24
 		 	$("#DW").css('display', 'block')
39 25
 		 } else{
@@ -41,6 +27,15 @@ window.onload = function() {
41 27
 		 }
42 28
 		Ajax();
43 29
 		AjaxYcl();
30
+		if(dataIndex==1){
31
+			$("#pullrefresh").find(".mui-scroll_1").show();
32
+			$("#pullrefresh").find(".mui-scroll_2").remove();
33
+			
34
+		}else if(dataIndex==2){
35
+			$("#pullrefresh").find(".mui-scroll_1").remove();
36
+			$("#pullrefresh").find(".mui-scroll_2").show();
37
+			
38
+		}
44 39
 		$('.search').on('input focus', function() {
45 40
 			keyw = $(this).val();
46 41
 			page = 1;
@@ -215,32 +210,34 @@ window.onload = function() {
215 210
 					var imgnum;
216 211
 					$(".class-icon img").hide()
217 212
 					$(".clzTotle").text('(' + total + ')');
218
-					for(var i = 0; i < data.rows.length; i++) {
219
-						var a = data.rows[i].F_Remark;
220
-						var c = data.rows[i].F_WorkState;						
221
-						var time = data.rows[i].F_CreateTime;
222
-						var areaOffice;
223
-						if (!data.rows[i].F_AreaName) {
224
-							areaOffice='';
225
-						}else{
226
-							areaOffice='<p class="mui-h6 mui-ellipsis" style="padding-left: 15px;">' +
227
-							'<span class="areaOffice">大区办事处:'+data.rows[i].F_AreaName +"-"+data.rows[i].F_OfficName+'</span>' +
228
-							' </p>'
213
+					
214
+						for(var i = 0; i < data.rows.length; i++) {
215
+							var a = data.rows[i].F_Remark;
216
+							var c = data.rows[i].F_WorkState;						
217
+							var time = data.rows[i].F_CreateTime;
218
+							var areaOffice;
219
+							if (!data.rows[i].F_AreaName) {
220
+								areaOffice='';
221
+							}else{
222
+								areaOffice='<p class="mui-h6 mui-ellipsis" style="padding-left: 15px;">' +
223
+								'<span class="areaOffice">大区办事处:'+data.rows[i].F_AreaName +"-"+data.rows[i].F_OfficName+'</span>' +
224
+								' </p>'
225
+							}
226
+							imgnum = '<img src="../img/process_icon.png"/>';
227
+							$('<li class="mui-table-view-cell orderli">' +
228
+								'<div class="mui-table order" data-index="' + data.rows[i].F_Id + '">' +
229
+								'<div class="mui-table-cell mui-col-xs-12">' +
230
+								'<h5 class="mui-ellipsis new_title" >' + data.rows[i].F_Samplingproducts + '</h5>' + 
231
+								' <p class="mui-h6 mui-ellipsis">' +
232
+								'<span class="advice">' + a + '</span>' +
233
+								' </p>'+areaOffice+'<p class="mui-h6 mui-ellipsis">' +
234
+								'<span class="time">投诉时间:' + time + '</span>' +
235
+								' </p></div></div>' +
236
+								'<div class="class-state">' + imgnum +
237
+								'</div>' +
238
+								'</li>').appendTo('#order_listClz');
229 239
 						}
230
-						imgnum = '<img src="../img/process_icon.png"/>';
231
-						$('<li class="mui-table-view-cell orderli">' +
232
-							'<div class="mui-table order" data-index="' + data.rows[i].F_Id + '">' +
233
-							'<div class="mui-table-cell mui-col-xs-12">' +
234
-							'<h5 class="mui-ellipsis new_title" >' + data.rows[i].F_Samplingproducts + '</h5>' + 
235
-							' <p class="mui-h6 mui-ellipsis">' +
236
-							'<span class="advice">' + a + '</span>' +
237
-							' </p>'+areaOffice+'<p class="mui-h6 mui-ellipsis">' +
238
-							'<span class="time">投诉时间:' + time + '</span>' +
239
-							' </p></div></div>' +
240
-							'<div class="class-state">' + imgnum +
241
-							'</div>' +
242
-							'</li>').appendTo('#order_listClz');
243
-					}
240
+					
244 241
 				},
245 242
 				error: function(xhr, type, errorThrown) {
246 243
 					//异常处理;
@@ -309,30 +306,30 @@ window.onload = function() {
309 306
 				}
310 307
 			})
311 308
 		}
312
-		$('#mui_list').on('tap', '.mui-control-item', function() {
309
+		
310
+		$('#mui_list').on('tap', '.mui-control-item_1', function() {
313 311
 			index=$(this).index();
312
+			
314 313
 			dataIndex=$(this).attr("data-index");
315
-			if (dataIndex=="1") {
316
-				Ajax();
317
-			} else if (dataIndex=="2") {
318
-				AjaxYcl();
319
-			}
320
-			$("#pullrefresh").find(".mui-scroll_1").hide();
321
-			$("#pullrefresh").find(".mui-scroll_1").eq(index).show();
314
+			localStorage.setItem("index", index);
315
+			localStorage.setItem("dataIndex", dataIndex);						
316
+			localStorage.setItem("areaId", areaId);
317
+			localStorage.setItem("officeId", officeId);	
318
+			window.location.reload();	
322 319
 		}) 
323 320
 		$(".tureBtn").click(function(){
324
-			areaD();
325
-			officeD();
326
-	    	Ajax();
327
-			AjaxYcl(); 
328
-	    	if ($('.grade-eject').hasClass('grade-w-roll')) {
329
-	            $('.grade-eject').removeClass('grade-w-roll');
321
+			areaD(); officeD(); Ajax(); AjaxYcl(); 				    				
322
+			if ($('.grade-eject').hasClass('grade-w-roll')) {
323
+		        $('.grade-eject').removeClass('grade-w-roll');
330 324
 				$(this).removeClass('current');
331
-	        } else {
332
-	            $('.grade-eject').addClass('grade-w-roll');
325
+				setTimeout(function() {$(".grade-eject_bj").hide()},400)
326
+		    } else {
327
+		        $('.grade-eject').addClass('grade-w-roll');
333 328
 				$(this).addClass('current'); 
334
-	        }
335
-	    })
329
+				setTimeout(function() {$(".grade-eject_bj").show()},400)
330
+		    }
331
+		})
332
+		
336 333
 		$('.order_list').on('tap', '.order', function() {
337 334
 			var id = $(this).attr('data-index');
338 335
 			var DetailID="WorkDetails";

+ 1 - 0
双汇APP/workOrder/js/Work-listClass.js

@@ -221,6 +221,7 @@ window.onload = function() {
221 221
 					'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
222 222
 				},
223 223
 				success: function(data) {
224
+					
224 225
 					var total = data.total;		
225 226
 					$(".orderli").remove();
226 227
 					if(!total) {total = 0;}

+ 1 - 0
双汇APP/workOrder/js/custom_select.js

@@ -45,6 +45,7 @@ $(document).ready(function(){
45 45
 			 	if(index > -1){this.splice(index,1);}
46 46
 			}
47 47
 			areaList.remove(areaDataRemove); 
48
+			officeList=[];
48 49
 			$(".grade-t li img").hide();
49 50
 			$(".mui-checkbox input").removeAttr("checked")
50 51
     	} else{

+ 50 - 0
双汇APP/workOrder/js/detail.js

@@ -113,6 +113,56 @@ mui.plusReady(function() {
113 113
 					}
114 114
 			
115 115
 				})
116
+				$(".longImg").on("longtap", function(e) {
117
+				
118
+					var target = e.target;
119
+					var imgSave=$(this).attr("index")
120
+					//alert(imgSave);
121
+					var bts = [{
122
+						title: "保存到手机"
123
+					}];
124
+					
125
+					/**
126
+					 * actionSheet:弹出系统选择按钮框
127
+					 */
128
+					plus.nativeUI.actionSheet({
129
+						cancel: "取消",
130
+						buttons: bts
131
+					}, function(e) {
132
+						
133
+						if(e.index > 0){
134
+							saveImage(imgSave)
135
+						}
136
+					});
137
+				
138
+				});
139
+				 function saveImage(target) {
140
+					var imgUrl = target;
141
+					var timestamp = (new Date()).valueOf();
142
+					var downLoader = plus.downloader.createDownload(imgUrl, {
143
+						method: 'GET',
144
+						filename: '_downloads/image/' + timestamp + '.png'
145
+					}, function(download, status) {
146
+						var fileName = download.filename;
147
+						/**
148
+						 * 保存至本地相册
149
+						 */
150
+						plus.gallery.save(fileName, function() {
151
+							mui.toast("保存成功");
152
+					
153
+						});
154
+					});
155
+					
156
+					/**
157
+					 * 开始下载任务
158
+					 */
159
+					try{
160
+						downLoader.start();
161
+					}catch(e){
162
+						//TODO handle the exception
163
+						mui.toast("请长按图片保存");
164
+					}
165
+				}
116 166
 			}
117 167
 			//按钮显示
118 168
 			if(data.buttons.length > 0) {

+ 50 - 0
双汇APP/workOrder/js/detailCJ.js

@@ -102,6 +102,56 @@ mui.plusReady(function() {
102 102
 					}
103 103
 			
104 104
 				})
105
+				$(".longImg").on("longtap", function(e) {
106
+				
107
+					var target = e.target;
108
+					var imgSave=$(this).attr("index")
109
+					//alert(imgSave);
110
+					var bts = [{
111
+						title: "保存到手机"
112
+					}];
113
+					
114
+					/**
115
+					 * actionSheet:弹出系统选择按钮框
116
+					 */
117
+					plus.nativeUI.actionSheet({
118
+						cancel: "取消",
119
+						buttons: bts
120
+					}, function(e) {
121
+						
122
+						if(e.index > 0){
123
+							saveImage(imgSave)
124
+						}
125
+					});
126
+				
127
+				});
128
+				 function saveImage(target) {
129
+					var imgUrl = target;
130
+					var timestamp = (new Date()).valueOf();
131
+					var downLoader = plus.downloader.createDownload(imgUrl, {
132
+						method: 'GET',
133
+						filename: '_downloads/image/' + timestamp + '.png'
134
+					}, function(download, status) {
135
+						var fileName = download.filename;
136
+						/**
137
+						 * 保存至本地相册
138
+						 */
139
+						plus.gallery.save(fileName, function() {
140
+							mui.toast("保存成功");
141
+					
142
+						});
143
+					});
144
+					
145
+					/**
146
+					 * 开始下载任务
147
+					 */
148
+					try{
149
+						downLoader.start();
150
+					}catch(e){
151
+						//TODO handle the exception
152
+						mui.toast("请长按图片保存");
153
+					}
154
+				}
105 155
 			}
106 156
 			//按钮显示
107 157
 			if(data.buttons.length > 0) {