miaofuhao лет назад: 2
Родитель
Сommit
0c21a9f4be

+ 9 - 0
双汇APP-andriod/.project

@@ -219,5 +219,14 @@
219 219
 				<arguments>1.0-name-matches-false-false-node_modules</arguments>
220 220
 			</matcher>
221 221
 		</filter>
222
+		<filter>
223
+			<id>1662016130863</id>
224
+			<name></name>
225
+			<type>26</type>
226
+			<matcher>
227
+				<id>org.eclipse.ui.ide.multiFilter</id>
228
+				<arguments>1.0-name-matches-false-false-node_modules</arguments>
229
+			</matcher>
230
+		</filter>
222 231
 	</filteredResources>
223 232
 </projectDescription>

+ 76 - 35
双汇APP-andriod/Common/js/tj_manage.js

@@ -1,6 +1,6 @@
1 1
 mui.init({
2
-	beforeback: function() {    
3
-		var list = plus.webview.currentWebview().opener();    
2
+	beforeback: function() {
3
+		var list = plus.webview.currentWebview().opener();
4 4
 		//refresh是A页面自定义事件
5 5
 		mui.fire(list, 'refresh');
6 6
 		//返回true,继续页面关闭逻辑
@@ -11,7 +11,7 @@ mui.init({
11 11
 //初始化单页的区域滚动
12 12
 mui('.mui-scroll-wrapper').scroll();
13 13
 mui.plusReady(function() {
14
-	
14
+
15 15
 	//	产品代码
16 16
 	var Product = [];
17 17
 	$.ajax({
@@ -20,13 +20,13 @@ mui.plusReady(function() {
20 20
 		async: false,
21 21
 		data: {
22 22
 			flag: "CPDM",
23
-			token:localStorage.getItem("token")
23
+			token: localStorage.getItem("token")
24 24
 		},
25 25
 		dataType: 'json',
26 26
 		success: function(res) {
27
-			if(res.state.toLowerCase() === "success") {
27
+			if (res.state.toLowerCase() === "success") {
28 28
 				res = res.data;
29
-				if(res && res.length > 0) {
29
+				if (res && res.length > 0) {
30 30
 					res.forEach(function(v, i) {
31 31
 						var obj = {};
32 32
 						obj.id = v.id;
@@ -37,47 +37,89 @@ mui.plusReady(function() {
37 37
 				}
38 38
 			}
39 39
 		}
40
-	});	
40
+	});
41
+	// 角色
42
+	var roleList = []
43
+	$.ajax({
44
+		type: "get",
45
+		url: huayi.config.callcenter_url + 'RoleInfo/GetRoleList',
46
+		async: false,
47
+		data: {
48
+			code: '',
49
+			name: '',
50
+			pageindex: 1,
51
+			pagesize: 100,
52
+			token: localStorage.getItem("token")
53
+		},
54
+		dataType: 'json',
55
+		success: function(res) {
56
+			res = res.rows;
57
+			if (res && res.length > 0) {
58
+				res.forEach(function(v, i) {
59
+					var obj = {};
60
+					obj.id = v.F_RoleId;
61
+					obj.text = v.F_RoleName;
62
+					roleList.push(obj);
63
+				});
64
+			}
65
+		}
66
+	});
41 67
 	(function($, doc) {
42
-		$.init(); 
68
+		$.init();
43 69
 		$.ready(function() {
44 70
 			//产品代码
45
-			var userPicker2 = new $.PopPicker({layer: 3});
71
+			var userPicker2 = new $.PopPicker({
72
+				layer: 3
73
+			});
46 74
 			userPicker2.setData(Product);
47 75
 			var showUserPickerButton2 = doc.getElementById('showUserPickerProduct');
48 76
 			var F_Product = doc.getElementById('F_ProductType');
49 77
 			showUserPickerButton2.addEventListener('tap', function(event) {
50 78
 				userPicker2.show(function(items) {
51
-					
52
-					if (items[2].text==undefined) {
53
-						if (items[1].text==undefined) {
79
+
80
+					if (items[2].text == undefined) {
81
+						if (items[1].text == undefined) {
54 82
 							F_Product.value = items[0].text;
55 83
 							F_Product.setAttribute("data-index", items[0].id);
56 84
 						} else {
57 85
 							F_Product.value = items[1].text;
58 86
 							F_Product.setAttribute("data-index", items[1].id);
59 87
 						}
60
-					}else {
61
-						F_Product.value =items[2].text;
88
+					} else {
89
+						F_Product.value = items[2].text;
62 90
 						F_Product.setAttribute("data-index", items[2].id);
63 91
 					}
64 92
 				});
65
-			}, false); 
93
+			}, false);
94
+			var rolePicker = new $.PopPicker({
95
+				layer: 1
96
+			});
97
+			rolePicker.setData(roleList)
98
+			var showRolePickerButton = doc.getElementById('showRolePickerProduct');
99
+			var role = doc.getElementById('role');
100
+			showRolePickerButton.addEventListener('tap', function(event) {
101
+				rolePicker.show(function(items) {
102
+					role.value = items[0].text
103
+					role.setAttribute("data-index", items[0].id);
104
+				});
105
+			}, false);
66 106
 		})
67 107
 	})(mui, document);
68 108
 })
69 109
 $('#xgPassword').on('tap', function() {
70
-	
71
-//	alert($('.F_UserName').val());
72
-//	alert($('.password').val());
73
-//	alert($("#F_ProductType").attr("data-index"));
74
-//	alert($(".F_Mobile").val());
75
-	if($('#F_CusName').val() == '') {
110
+
111
+	//	alert($('.F_UserName').val());
112
+	//	alert($('.password').val());
113
+	//	alert($("#F_ProductType").attr("data-index"));
114
+	//	alert($(".F_Mobile").val());
115
+	if ($('.F_UserName').val() == '') {
76 116
 		mui.alert('请输入用户名!')
77
-	} else if($('.password').val() == '') {
117
+	} else if ($('.password').val() == '') {
78 118
 		mui.alert('请输入密码!')
79
-	} else if($("#F_ProductType").val() == '') {
119
+	} else if ($("#F_ProductType").val() == '') {
80 120
 		mui.alert('请选择部门!')
121
+	} else if ($("#role").val() == '') {
122
+		mui.alert('请选择角色!')
81 123
 	}  else {
82 124
 		$.ajax({
83 125
 			type: "post",
@@ -87,19 +129,20 @@ $('#xgPassword').on('tap', function() {
87 129
 			data: {
88 130
 				username: $('.F_UserName').val(), //用户名
89 131
 				password: $('.password').val(), //密码
90
-				deptid:$("#F_ProductType").attr("data-index"), //部门
91
-				roleid: 53, 
92
-				mobile:$(".F_Mobile").val(),
132
+				deptid: $("#F_ProductType").attr("data-index"), //部门
133
+				roleid: $("#role").attr("data-index"),
134
+				mobile: $(".F_Mobile").val(),
93 135
 				token: localStorage.getItem("token")
94 136
 			},
95 137
 			success: function(data) {
96
-				if(data.state == "success") {
97
-					
98
-					mui.alert( '账号'+data.data.F_UserCode+'--密码'+data.data.F_Password,'添加成功', function() {
99
-						var wobj = plus.webview.getWebviewById("Setting_manage");
100
-						wobj.reload(true);
101
-					});
102
-					
138
+				if (data.state == "success") {
139
+
140
+					mui.alert('账号' + data.data.F_UserCode + '--密码' + data.data.F_Password, '添加成功',
141
+						function() {
142
+							var wobj = plus.webview.getWebviewById("Setting_manage");
143
+							wobj.reload(true);
144
+						});
145
+
103 146
 				} else {
104 147
 					mui.toast(data.message);
105 148
 				}
@@ -107,5 +150,3 @@ $('#xgPassword').on('tap', function() {
107 150
 		});
108 151
 	}
109 152
 })
110
-
111
-

+ 46 - 1
双汇APP-andriod/Common/js/xg_manage.js

@@ -16,6 +16,32 @@ mui.plusReady(function() {
16 16
 	var wv = plus.webview.currentWebview();
17 17
 	var nameid = wv.nameid;
18 18
 	var name = wv.name;
19
+	// 角色
20
+	var roleList = []
21
+	$.ajax({
22
+		type: "get",
23
+		url: huayi.config.callcenter_url + 'RoleInfo/GetRoleList',
24
+		async: false,
25
+		data: {
26
+			code: '',
27
+			name: '',
28
+			pageindex: 1,
29
+			pagesize: 100,
30
+			token: localStorage.getItem("token")
31
+		},
32
+		dataType: 'json',
33
+		success: function(res) {
34
+			res = res.rows;
35
+			if (res && res.length > 0) {
36
+				res.forEach(function(v, i) {
37
+					var obj = {};
38
+					obj.id = v.F_RoleId;
39
+					obj.text = v.F_RoleName;
40
+					roleList.push(obj);
41
+				});
42
+			}
43
+		}
44
+	});
19 45
 	mui.ajax(huayi.config.callcenter_url + '/UserAccount/GetUser', {
20 46
 		data: {
21 47
 			usercode:name,
@@ -32,7 +58,12 @@ mui.plusReady(function() {
32 58
 		success: function(data) {
33 59
 			var RoleCode = data.data; 
34 60
 			$("#UserId").val(RoleCode.F_UserId) //用户id
35
-			$("#RoldId").val(RoleCode.F_RoleId)
61
+			roleList.forEach((v,n) =>{
62
+				if(v.id == RoleCode.F_RoleId) {
63
+					$("#role").val(v.text)
64
+					$("#role").attr("data-index", v.id)
65
+				}
66
+			})
36 67
 			$(".F_UserName").val(RoleCode.F_UserName); //员工姓名
37 68
 			$(".F_SeatGroup").val(RoleCode.depname); //部门
38 69
 			$(".F_SeatGroup").attr("data-index",RoleCode.F_DeptId); //部门
@@ -71,6 +102,7 @@ mui.plusReady(function() {
71 102
 			}
72 103
 		}
73 104
 	});	
105
+	
74 106
 	(function($, doc) {
75 107
 		$.init(); 
76 108
 		$.ready(function() {
@@ -96,6 +128,18 @@ mui.plusReady(function() {
96 128
 					
97 129
 				});
98 130
 			}, false); 
131
+			var rolePicker = new $.PopPicker({
132
+				layer: 1
133
+			});
134
+			rolePicker.setData(roleList)
135
+			var showRolePickerButton = doc.getElementById('showRolePickerProduct');
136
+			var role = doc.getElementById('role');
137
+			showRolePickerButton.addEventListener('tap', function(event) {
138
+				rolePicker.show(function(items) {
139
+					role.value = items[0].text
140
+					role.setAttribute("data-index", items[0].id);
141
+				});
142
+			}, false);
99 143
 		})
100 144
 	})(mui, document);
101 145
 })
@@ -149,6 +193,7 @@ $('#xgPassword').on('tap', function() {
149 193
 						Password: $('.password').val(), //密码
150 194
 						mobile:$(".F_Mobile").val(), //手机号
151 195
 						deptid:$("#F_ProductType").attr("data-index"), //部门
196
+						roleid:$("#role").attr("data-index"),
152 197
 						token: localStorage.getItem("token")
153 198
 					},
154 199
 					success: function(data) {

+ 9 - 2
双汇APP-andriod/Common/tj_manage.html

@@ -16,7 +16,7 @@
16 16
 				right: 0px;
17 17
 				top: 8px; 
18 18
 			}
19
-			#F_ProductType{
19
+			#F_ProductType, #role{
20 20
 				font-size: 14px;
21 21
 			}
22 22
 		</style>
@@ -44,10 +44,17 @@
44 44
 								<span class="type_down mui-icon mui-icon-arrowdown mui-pull-right"></span>
45 45
 							</div>
46 46
 						</li>
47
+						<li class="mui-table-view-cell" id="showRolePickerProduct">
48
+							<div class="mui-input-row">
49
+								<label class="label">角色:</label>
50
+								<input id='role'  data-index="" type="text" placeholder="请选择角色">
51
+								<span class="type_down mui-icon mui-icon-arrowdown mui-pull-right"></span>
52
+							</div>
53
+						</li>
47 54
 						<li class="mui-table-view-cell">
48 55
 							<div class="mui-input-row">
49 56
 								<label class="label">手机号:</label>
50
-								<input style="font-size: 14px;" type="text" placeholder="请填写手机" class="F_Mobile">
57
+								<input style="font-size: 14px;" type="text" placeholder="请填写手机" class="F_Mobile">
51 58
 							</div>
52 59
 						</li>
53 60
 						<li class="mui-table-view-cell">

+ 8 - 1
双汇APP-andriod/Common/xg_manage.html

@@ -16,7 +16,7 @@
16 16
 				right: 0px;
17 17
 				top: 8px; 
18 18
 			}
19
-			#F_ProductType{
19
+			#F_ProductType,#role{
20 20
 				font-size: 14px;
21 21
 			}
22 22
 		</style>
@@ -52,6 +52,13 @@
52 52
 								<span class="type_down mui-icon mui-icon-arrowdown mui-pull-right"></span>
53 53
 							</div>
54 54
 						</li>
55
+						<li class="mui-table-view-cell" id="showRolePickerProduct">
56
+							<div class="mui-input-row">
57
+								<label class="label">角色:</label>
58
+								<input id='role'  data-index="" type="text" placeholder="请选择角色">
59
+								<span class="type_down mui-icon mui-icon-arrowdown mui-pull-right"></span>
60
+							</div>
61
+						</li>
55 62
 						<li class="mui-table-view-cell">
56 63
 							<div class="mui-input-row">
57 64
 								<label class="label">手机号:</label>

+ 24 - 1
双汇APP-andriod/js/feedback-page-work.js

@@ -109,6 +109,7 @@ function upFile() {
109 109
 		timeout: 300000, //超时时间设置为30秒
110 110
 		success: function(data) {
111 111
 			if (data.state == "success") {
112
+				console.log(1)
112 113
 				for (var i in data.acs) {
113 114
 					$("#imgs li").eq(Number(imgsLength)).attr("imgId", data.acs[i].F_Id)
114 115
           imgsLength++;
@@ -129,12 +130,34 @@ function upFile() {
129 130
 // 添加文件  
130 131
 var f1 = null;
131 132
 function appendFile(path) {
132
-	
133 133
   //fileArr=[]
134 134
 	var bitmap = new plus.nativeObj.Bitmap("test");
135 135
 	// 从本地加载Bitmap图片  
136 136
 	bitmap.load(path,function(){  
137 137
 		var base64 = bitmap.toBase64Data()  
138
+	var img = new Image();
139
+	img .crossOrigin = "Anonymous"; 
140
+	img.src = path; // 传过来的图片路径在这里用。   
141
+	img.onload = function() {
142
+		var that = this;
143
+		//生成比例   
144
+		var w = that.width,
145
+			h = that.height,
146
+			scale = w / h;
147
+		w = 480 || w; //480  你想压缩到多大,改这里  
148
+		h = w / scale;
149
+		//生成canvas  
150
+		var canvas = document.createElement('canvas');
151
+		var ctx = canvas.getContext('2d');
152
+		$(canvas).attr({
153
+			width: w,
154
+			height: h
155
+		});
156
+		ctx.drawImage(that, 0, 0, w, h);
157
+		
158
+		var base64 = canvas.toDataURL('image/jpeg', 1 || 0.8); //1最清晰,越低越模糊。有一点不清楚这里明明设置的是jpeg。弹出 base64 开头的一段 data:image/png;却是png。哎开心就好,开心就好       
159
+		
160
+>>>>>>> f29dad500623be9c7a8807978452db6bae1fdcea
138 161
 		f1 = base64; // 把base64数据丢过去,上传要用。
139 162
 		setHtml(path, f1);
140 163
 		fileArr.push(f1);

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

@@ -4,7 +4,7 @@ if(huayi == undefined) {
4 4
 huayi.config = {
5 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, //菜单工单数量刷新间隔

+ 8 - 1
双汇APP-andriod/js/personal.js

@@ -2,6 +2,7 @@ mui.init();
2 2
 
3 3
 var token = localStorage.getItem("token"); //获取本地存储
4 4
 mui.plusReady(function() {
5
+	console.log(1)
5 6
 	ajaxRefresh();
6 7
 	
7 8
 	setTimeout(function() {
@@ -36,10 +37,15 @@ $.ajax({
36 37
 		$(".F_UserName").text(data.data.user.F_UserName);
37 38
 		localStorage.setItem("F_UserName", data.data.user.F_UserName);
38 39
 		localStorage.setItem("F_RoleId", data.data.user.F_RoleId);
39
-    localStorage.setItem("RoleCode", RoleCode);
40
+		localStorage.setItem("RoleCode", RoleCode);
40 41
 		localStorage.setItem("F_See", data.data.user.F_See);
41 42
 		$(".rolname").text(data.data.user.rolname);
42 43
 		if(RoleCode == "0") { //调度   
44
+			if(data.data.role.F_RoleCode == 'CLZY') {
45
+				$(".cx").show()
46
+			}else{
47
+				$(".cx").hide()
48
+			}
43 49
 			$(".RoleCode_0").css('display', 'block')
44 50
 		} else if(RoleCode == "1") {
45 51
 			$(".RoleCode_1").css('display', 'block')
@@ -107,6 +113,7 @@ $.ajax({
107 113
 });
108 114
 
109 115
 function ajaxRefresh() {
116
+	
110 117
  	//权限判断
111 118
 	$.ajax({
112 119
 		data: {

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

@@ -201,6 +201,9 @@
201 201
                     "unipush" : {}
202 202
                 },
203 203
                 "payment" : {}
204
+            },
205
+            "ios" : {
206
+                "dSYMs" : false
204 207
             }
205 208
         },
206 209
         "adid" : "128026090911",

+ 8 - 0
双汇APP-andriod/personal.html

@@ -133,6 +133,14 @@
133 133
 						<div class="mui-media-body font-weight-bold">咨询工单</div>
134 134
 					</a>
135 135
 				</li>
136
+				<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-4 cx" style="display: none;">
137
+					<a href="javascript:;" class="work-list" index="-1">
138
+						<div class="Icon icon-3">
139
+							<img src="img/icon-3.png" />
140
+							</i></div>
141
+						<div class="mui-media-body font-weight-bold">查询工单</div>
142
+					</a>
143
+				</li>
136 144
 			</ul>
137 145
 
138 146
 			<!--客服-->

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

@@ -8,12 +8,14 @@ window.onload = function() {
8 8
     
9 9
 		var page = 1; //页数
10 10
 		var pageSize = 10; //每页显示条目
11
+		var comprehensive = -1
11 12
 		var total; //数据总条数
12 13
 		var wv = plus.webview.currentWebview();
13 14
 		var index = wv.index; //交办条件
14 15
 		var importClass = wv.importClass; //工单等级
15 16
 		var keyw="";
16 17
 		plus.nativeUI.closeWaiting();
18
+		console.log(index)
17 19
 		//显示当前页面
18 20
 		mui.currentWebview.show();
19 21
 		
@@ -33,6 +35,9 @@ window.onload = function() {
33 35
 			$(".Totle-box").text('已处理')
34 36
 		} else if(index == 11) {
35 37
 			$(".Totle-box").text('咨询')
38
+		}else if(index == -1) {
39
+			$(".Totle-box").text('查询')
40
+			comprehensive = 0
36 41
 		}
37 42
 		if(importClass == 1) {
38 43
 			$(".Totle-box").text('一级列表')
@@ -83,6 +88,7 @@ window.onload = function() {
83 88
 		function pullupRefresh() {
84 89
 			setTimeout(function() {
85 90
 				mui('#pullrefresh').pullRefresh().endPullupToRefresh((page++ >= Math.ceil(total / 10)));
91
+				console.log(comprehensive)
86 92
 				mui.ajax(huayi.config.callcenter_url + 'WorkorderApp/GetList', {
87 93
 					data: {
88 94
 						token: token,
@@ -92,7 +98,8 @@ window.onload = function() {
92 98
 						offce:officeId,
93 99
 						extensionphone: 1,
94 100
 						pageindex: page,
95
-						pagesize: pageSize
101
+						pagesize: pageSize,
102
+						comprehensive:comprehensive
96 103
 					},
97 104
 					dataType: 'json', //服务器返回json格式数据
98 105
 					type: 'get', //HTTP请求类型
@@ -199,6 +206,7 @@ window.onload = function() {
199 206
 			$(".orderLi").remove();
200 207
 			page=1;
201 208
 			pageSize=10;
209
+			console.log(comprehensive)
202 210
 			mui.ajax(huayi.config.callcenter_url + 'WorkorderApp/GetList', {
203 211
 				data: {
204 212
 					token: token, 
@@ -209,7 +217,8 @@ window.onload = function() {
209 217
 					extensionphone: 1,
210 218
 					keywords:keyw, 
211 219
 					page:1,
212
-					pageSize:10
220
+					pageSize:10,
221
+					comprehensive:comprehensive
213 222
 				},
214 223
 				dataType: 'json', //服务器返回json格式数据
215 224
 				type: 'get', //HTTP请求类型

+ 76 - 34
双汇APP/Common/js/tj_manage.js

@@ -1,6 +1,6 @@
1 1
 mui.init({
2
-	beforeback: function() {    
3
-		var list = plus.webview.currentWebview().opener();    
2
+	beforeback: function() {
3
+		var list = plus.webview.currentWebview().opener();
4 4
 		//refresh是A页面自定义事件
5 5
 		mui.fire(list, 'refresh');
6 6
 		//返回true,继续页面关闭逻辑
@@ -11,7 +11,7 @@ mui.init({
11 11
 //初始化单页的区域滚动
12 12
 mui('.mui-scroll-wrapper').scroll();
13 13
 mui.plusReady(function() {
14
-	
14
+
15 15
 	//	产品代码
16 16
 	var Product = [];
17 17
 	$.ajax({
@@ -20,13 +20,13 @@ mui.plusReady(function() {
20 20
 		async: false,
21 21
 		data: {
22 22
 			flag: "CPDM",
23
-			token:localStorage.getItem("token")
23
+			token: localStorage.getItem("token")
24 24
 		},
25 25
 		dataType: 'json',
26 26
 		success: function(res) {
27
-			if(res.state.toLowerCase() === "success") {
27
+			if (res.state.toLowerCase() === "success") {
28 28
 				res = res.data;
29
-				if(res && res.length > 0) {
29
+				if (res && res.length > 0) {
30 30
 					res.forEach(function(v, i) {
31 31
 						var obj = {};
32 32
 						obj.id = v.id;
@@ -37,46 +37,89 @@ mui.plusReady(function() {
37 37
 				}
38 38
 			}
39 39
 		}
40
-	});	
40
+	});
41
+	// 角色
42
+	var roleList = []
43
+	$.ajax({
44
+		type: "get",
45
+		url: huayi.config.callcenter_url + 'RoleInfo/GetRoleList',
46
+		async: false,
47
+		data: {
48
+			code: '',
49
+			name: '',
50
+			pageindex: 1,
51
+			pagesize: 100,
52
+			token: localStorage.getItem("token")
53
+		},
54
+		dataType: 'json',
55
+		success: function(res) {
56
+			res = res.rows;
57
+			if (res && res.length > 0) {
58
+				res.forEach(function(v, i) {
59
+					var obj = {};
60
+					obj.id = v.F_RoleId;
61
+					obj.text = v.F_RoleName;
62
+					roleList.push(obj);
63
+				});
64
+			}
65
+		}
66
+	});
41 67
 	(function($, doc) {
42
-		$.init(); 
68
+		$.init();
43 69
 		$.ready(function() {
44 70
 			//产品代码
45
-			var userPicker2 = new $.PopPicker({layer: 3});
71
+			var userPicker2 = new $.PopPicker({
72
+				layer: 3
73
+			});
46 74
 			userPicker2.setData(Product);
47 75
 			var showUserPickerButton2 = doc.getElementById('showUserPickerProduct');
48 76
 			var F_Product = doc.getElementById('F_ProductType');
49 77
 			showUserPickerButton2.addEventListener('tap', function(event) {
50 78
 				userPicker2.show(function(items) {
51
-					if (items[2].text==undefined) {
52
-						if (items[1].text==undefined) {
79
+
80
+					if (items[2].text == undefined) {
81
+						if (items[1].text == undefined) {
53 82
 							F_Product.value = items[0].text;
54 83
 							F_Product.setAttribute("data-index", items[0].id);
55 84
 						} else {
56 85
 							F_Product.value = items[1].text;
57 86
 							F_Product.setAttribute("data-index", items[1].id);
58 87
 						}
59
-					}else {
60
-						F_Product.value =items[2].text;
88
+					} else {
89
+						F_Product.value = items[2].text;
61 90
 						F_Product.setAttribute("data-index", items[2].id);
62 91
 					}
63 92
 				});
64
-			}, false); 
93
+			}, false);
94
+			var rolePicker = new $.PopPicker({
95
+				layer: 1
96
+			});
97
+			rolePicker.setData(roleList)
98
+			var showRolePickerButton = doc.getElementById('showRolePickerProduct');
99
+			var role = doc.getElementById('role');
100
+			showRolePickerButton.addEventListener('tap', function(event) {
101
+				rolePicker.show(function(items) {
102
+					role.value = items[0].text
103
+					role.setAttribute("data-index", items[0].id);
104
+				});
105
+			}, false);
65 106
 		})
66 107
 	})(mui, document);
67 108
 })
68 109
 $('#xgPassword').on('tap', function() {
69
-	
70
-//	alert($('.F_UserName').val());
71
-//	alert($('.password').val());
72
-//	alert($("#F_ProductType").attr("data-index"));
73
-//	alert($(".F_Mobile").val());
74
-	if($('#F_CusName').val() == '') {
110
+
111
+	//	alert($('.F_UserName').val());
112
+	//	alert($('.password').val());
113
+	//	alert($("#F_ProductType").attr("data-index"));
114
+	//	alert($(".F_Mobile").val());
115
+	if ($('.F_UserName').val() == '') {
75 116
 		mui.alert('请输入用户名!')
76
-	} else if($('.password').val() == '') {
117
+	} else if ($('.password').val() == '') {
77 118
 		mui.alert('请输入密码!')
78
-	} else if($("#F_ProductType").val() == '') {
119
+	} else if ($("#F_ProductType").val() == '') {
79 120
 		mui.alert('请选择部门!')
121
+	} else if ($("#role").val() == '') {
122
+		mui.alert('请选择角色!')
80 123
 	}  else {
81 124
 		$.ajax({
82 125
 			type: "post",
@@ -86,19 +129,20 @@ $('#xgPassword').on('tap', function() {
86 129
 			data: {
87 130
 				username: $('.F_UserName').val(), //用户名
88 131
 				password: $('.password').val(), //密码
89
-				deptid:$("#F_ProductType").attr("data-index"), //部门
90
-				roleid: 53, 
91
-				mobile:$(".F_Mobile").val(),
132
+				deptid: $("#F_ProductType").attr("data-index"), //部门
133
+				roleid: $("#role").attr("data-index"),
134
+				mobile: $(".F_Mobile").val(),
92 135
 				token: localStorage.getItem("token")
93 136
 			},
94 137
 			success: function(data) {
95
-				if(data.state == "success") {
96
-					
97
-					mui.alert( '账号'+data.data.F_UserCode+'--密码'+data.data.F_Password,'添加成功', function() {
98
-						var wobj = plus.webview.getWebviewById("Setting_manage");
99
-						wobj.reload(true);
100
-					});
101
-					
138
+				if (data.state == "success") {
139
+
140
+					mui.alert('账号' + data.data.F_UserCode + '--密码' + data.data.F_Password, '添加成功',
141
+						function() {
142
+							var wobj = plus.webview.getWebviewById("Setting_manage");
143
+							wobj.reload(true);
144
+						});
145
+
102 146
 				} else {
103 147
 					mui.toast(data.message);
104 148
 				}
@@ -106,5 +150,3 @@ $('#xgPassword').on('tap', function() {
106 150
 		});
107 151
 	}
108 152
 })
109
-
110
-

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

@@ -16,6 +16,32 @@ mui.plusReady(function() {
16 16
 	var wv = plus.webview.currentWebview();
17 17
 	var nameid = wv.nameid;
18 18
 	var name = wv.name;
19
+	// 角色
20
+	var roleList = []
21
+	$.ajax({
22
+		type: "get",
23
+		url: huayi.config.callcenter_url + 'RoleInfo/GetRoleList',
24
+		async: false,
25
+		data: {
26
+			code: '',
27
+			name: '',
28
+			pageindex: 1,
29
+			pagesize: 100,
30
+			token: localStorage.getItem("token")
31
+		},
32
+		dataType: 'json',
33
+		success: function(res) {
34
+			res = res.rows;
35
+			if (res && res.length > 0) {
36
+				res.forEach(function(v, i) {
37
+					var obj = {};
38
+					obj.id = v.F_RoleId;
39
+					obj.text = v.F_RoleName;
40
+					roleList.push(obj);
41
+				});
42
+			}
43
+		}
44
+	});
19 45
 	mui.ajax(huayi.config.callcenter_url + '/UserAccount/GetUser', {
20 46
 		data: {
21 47
 			usercode:name,
@@ -32,7 +58,12 @@ mui.plusReady(function() {
32 58
 		success: function(data) {
33 59
 			var RoleCode = data.data; 
34 60
 			$("#UserId").val(RoleCode.F_UserId) //用户id
35
-			$("#RoldId").val(RoleCode.F_RoleId)
61
+			roleList.forEach((v,n) =>{
62
+				if(v.id == RoleCode.F_RoleId) {
63
+					$("#role").val(v.text)
64
+					$("#role").attr("data-index", v.id)
65
+				}
66
+			})
36 67
 			$(".F_UserName").val(RoleCode.F_UserName); //员工姓名
37 68
 			$(".F_SeatGroup").val(RoleCode.depname); //部门
38 69
 			$(".F_SeatGroup").attr("data-index",RoleCode.F_DeptId); //部门
@@ -71,6 +102,7 @@ mui.plusReady(function() {
71 102
 			}
72 103
 		}
73 104
 	});	
105
+	
74 106
 	(function($, doc) {
75 107
 		$.init(); 
76 108
 		$.ready(function() {
@@ -96,6 +128,18 @@ mui.plusReady(function() {
96 128
 					
97 129
 				});
98 130
 			}, false); 
131
+			var rolePicker = new $.PopPicker({
132
+				layer: 1
133
+			});
134
+			rolePicker.setData(roleList)
135
+			var showRolePickerButton = doc.getElementById('showRolePickerProduct');
136
+			var role = doc.getElementById('role');
137
+			showRolePickerButton.addEventListener('tap', function(event) {
138
+				rolePicker.show(function(items) {
139
+					role.value = items[0].text
140
+					role.setAttribute("data-index", items[0].id);
141
+				});
142
+			}, false);
99 143
 		})
100 144
 	})(mui, document);
101 145
 })
@@ -128,7 +172,8 @@ $('#deteBtn').on('tap', function() {
128 172
 	})
129 173
 	
130 174
 })
131
-$('#xgPassword').on('tap', function() {	
175
+$('#xgPassword').on('tap', function() {
176
+	
132 177
 	if ($("#RoldId").val()==F_RoleId&&$(".rolname").val()!=F_UserCode) {
133 178
 		mui.toast("没有修改权限");
134 179
 	}else{
@@ -148,6 +193,7 @@ $('#xgPassword').on('tap', function() {
148 193
 						Password: $('.password').val(), //密码
149 194
 						mobile:$(".F_Mobile").val(), //手机号
150 195
 						deptid:$("#F_ProductType").attr("data-index"), //部门
196
+						roleid:$("#role").attr("data-index"),
151 197
 						token: localStorage.getItem("token")
152 198
 					},
153 199
 					success: function(data) {

+ 8 - 1
双汇APP/Common/tj_manage.html

@@ -16,7 +16,7 @@
16 16
 				right: 0px;
17 17
 				top: 8px; 
18 18
 			}
19
-			#F_ProductType{
19
+			#F_ProductType, #role{
20 20
 				font-size: 14px;
21 21
 			}
22 22
 		</style>
@@ -44,6 +44,13 @@
44 44
 								<span class="type_down mui-icon mui-icon-arrowdown mui-pull-right"></span>
45 45
 							</div>
46 46
 						</li>
47
+						<li class="mui-table-view-cell" id="showRolePickerProduct">
48
+							<div class="mui-input-row">
49
+								<label class="label">角色:</label>
50
+								<input id='role'  data-index="" type="text" placeholder="请选择角色">
51
+								<span class="type_down mui-icon mui-icon-arrowdown mui-pull-right"></span>
52
+							</div>
53
+						</li>
47 54
 						<li class="mui-table-view-cell">
48 55
 							<div class="mui-input-row">
49 56
 								<label class="label">手机号:</label>

+ 8 - 1
双汇APP/Common/xg_manage.html

@@ -16,7 +16,7 @@
16 16
 				right: 0px;
17 17
 				top: 8px; 
18 18
 			}
19
-			#F_ProductType{
19
+			#F_ProductType,#role{
20 20
 				font-size: 14px;
21 21
 			}
22 22
 		</style>
@@ -52,6 +52,13 @@
52 52
 								<span class="type_down mui-icon mui-icon-arrowdown mui-pull-right"></span>
53 53
 							</div>
54 54
 						</li>
55
+						<li class="mui-table-view-cell" id="showRolePickerProduct">
56
+							<div class="mui-input-row">
57
+								<label class="label">角色:</label>
58
+								<input id='role'  data-index="" type="text" placeholder="请选择角色">
59
+								<span class="type_down mui-icon mui-icon-arrowdown mui-pull-right"></span>
60
+							</div>
61
+						</li>
55 62
 						<li class="mui-table-view-cell">
56 63
 							<div class="mui-input-row">
57 64
 								<label class="label">手机号:</label>

+ 1 - 1
双汇APP/js/huayi.config.js

@@ -4,7 +4,7 @@ if(huayi == undefined) {
4 4
 huayi.config = {
5 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, //菜单工单数量刷新间隔

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

@@ -35,6 +35,11 @@ $.ajax({
35 35
 		localStorage.setItem("F_See", data.data.user.F_See);
36 36
 		$(".rolname").text(data.data.user.rolname);
37 37
 		if(RoleCode == "0") { //调度   
38
+			if(data.data.role.F_RoleCode == 'CLZY') {
39
+				$(".cx").show()
40
+			}else{
41
+				$(".cx").hide()
42
+			}
38 43
 			$(".RoleCode_0").css('display', 'block')
39 44
 		} else if(RoleCode == "1") {
40 45
 			$(".RoleCode_1").css('display', 'block')

+ 13 - 0
双汇APP/manifest.json

@@ -3,7 +3,11 @@
3 3
     "id" : "H5BFC9619", /*应用的标识,创建应用时自动生成,勿手动修改*/
4 4
     "name" : "双汇售后服务平台", /*应用名称,程序桌面图标名称*/
5 5
     "version" : {
6
+<<<<<<< HEAD
6 7
         "name" : "1.5.4", /*应用版本名称*/
8
+=======
9
+        "name" : "1.6.1", /*应用版本名称*/
10
+>>>>>>> f29dad500623be9c7a8807978452db6bae1fdcea
7 11
         "code" : "83"
8 12
     },
9 13
     "description" : "", /*应用描述信息*/
@@ -202,7 +206,16 @@
202 206
             },
203 207
             "plugins" : {
204 208
                 "ad" : {},
209
+<<<<<<< HEAD
205 210
                 "push" : {}
211
+=======
212
+                "push" : {
213
+                    "unipush" : {}
214
+                }
215
+            },
216
+            "ios" : {
217
+                "dSYMs" : false
218
+>>>>>>> f29dad500623be9c7a8807978452db6bae1fdcea
206 219
             }
207 220
         },
208 221
         "adid" : "128026090911",

+ 8 - 0
双汇APP/personal.html

@@ -132,6 +132,14 @@
132 132
 						<div class="mui-media-body font-weight-bold">咨询工单</div>
133 133
 					</a> 
134 134
 				</li>
135
+				<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-4 cx" style="display: none;">
136
+					<a href="javascript:;" class="work-list" index="-1">
137
+						<div class="Icon icon-3">
138
+							<img src="img/icon-3.png" />
139
+							</i></div>
140
+						<div class="mui-media-body font-weight-bold">查询工单</div>
141
+					</a>
142
+				</li>
135 143
 			</ul>
136 144
 			
137 145
 			<!--客服-->

+ 8 - 2
双汇APP/workOrder/js/Work-list.js

@@ -7,6 +7,7 @@ window.onload = function() {
7 7
 		var F_RoleId = localStorage.getItem("F_RoleId");
8 8
 		var page = 1; //页数
9 9
 		var pageSize = 10; //每页显示条目
10
+		var comprehensive = -1
10 11
 		var total; //数据总条数
11 12
 		var wv = plus.webview.currentWebview();
12 13
 		var index = wv.index; //交办条件
@@ -32,6 +33,9 @@ window.onload = function() {
32 33
 			$(".Totle-box").text('已处理')
33 34
 		} else if(index == 11) {
34 35
 			$(".Totle-box").text('咨询')
36
+		}else if(index == -1) {
37
+			$(".Totle-box").text('查询')
38
+			comprehensive = 0
35 39
 		}
36 40
 		if(importClass == 1) {
37 41
 			$(".Totle-box").text('一级列表')
@@ -92,7 +96,8 @@ window.onload = function() {
92 96
 						offce:officeId,
93 97
 						extensionphone: 1,
94 98
 						pageindex: page,
95
-						pagesize: pageSize
99
+						pagesize: pageSize,
100
+						comprehensive:comprehensive
96 101
 					},
97 102
 					dataType: 'json', //服务器返回json格式数据
98 103
 					type: 'get', //HTTP请求类型
@@ -208,7 +213,8 @@ window.onload = function() {
208 213
 					extensionphone: 1,
209 214
 					keywords:keyw, 
210 215
 					page:1,
211
-					pageSize:10
216
+					pageSize:10,
217
+					comprehensive:comprehensive
212 218
 				},
213 219
 				dataType: 'json', //服务器返回json格式数据
214 220
 				type: 'get', //HTTP请求类型