miaofuhao 4 anni fa
parent
commit
82f4644763

+ 1 - 1
CallCenterWeb.UI/js/WorkOrder/WorkOrder.js

@@ -501,7 +501,7 @@ function formayizhipai(val, row) {
501 501
 	if ($.cookie("userRoleCode")=="XTGLY") {
502 502
 		scBtn='<li><a href="javascript:;" class="aBtn" authorize="yes" id="HY_delete_' + row.ID + '" onclick="btn_deleteid(\'' + row.F_ID + '\')" title="删除">删除</a></li>'+
503 503
 		'<li><a href="javascript:;" class="aBtn" authorize="yes" id="HY_edit_' + row.ID + '" onclick="btn_edit(\'' + row.F_ID + '\')" title="修改">修改</a></li>'
504
-	}else if($.cookie("userRoleCode")=="SCGLY" || $.cookie("userRoleCode")=="JDYPTZX"){
504
+	}else if($.cookie("userRoleCode")=="JDYPTZX"){
505 505
 		scBtn='<li><a href="javascript:;" class="aBtn" authorize="yes" id="HY_edit_' + row.ID + '" onclick="btn_edit(\'' + row.F_ID + '\')" title="修改">修改</a></li>'
506 506
 	}
507 507
 	return '<ul class="tool_downs">' +scBtn+

+ 258 - 0
WeChat/client-side/js/searchDropDown.js

@@ -0,0 +1,258 @@
1
+var token = localStorage.getItem("token");
2
+var result = $('.dataTime');
3
+var btns = $('.btn');
4
+btns.each(function(i, btn) {
5
+	btn.addEventListener('tap', function() {
6
+		var optionsJson = this.getAttribute('data-options') || '{}';
7
+		var options = JSON.parse(optionsJson);
8
+		var id = this.getAttribute('id');
9
+		var picker = new mui.DtPicker(options);
10
+		//alert(i+"++"+btn)
11
+		picker.show(function(rs) {
12
+			result[i].value = rs.text;
13
+			picker.dispose();
14
+		});
15
+	}, false);
16
+});
17
+//工单类型
18
+var typeList = [];
19
+$.ajax({
20
+	type: "get",
21
+	url: huayi.config.callcenter_url + 'Dictionary/GetDicValueListById?',
22
+	async: false,
23
+	data: {
24
+		id: 2
25
+	},
26
+	dataType: 'json',
27
+	success: function(data) {
28
+		var type_data = data.data;
29
+		$(type_data).each(function(i, n) {
30
+			var obj = {};
31
+			obj.value = n.F_ValueId;
32
+			obj.text = n.F_Value;
33
+			typeList.push(obj)
34
+		})
35
+	}
36
+});
37
+//主题词
38
+var keyList = [];
39
+$.ajax({
40
+	type: "get",
41
+	url: huayi.config.callcenter_url + 'Dictionary/GetDicValueListById?',
42
+	async: false,
43
+	data: {
44
+		id: 3
45
+	},
46
+	dataType: 'json',
47
+	success: function(data) {
48
+		var key_data = data.data;
49
+		$(key_data).each(function(i, n) {
50
+			var obj = {};
51
+			obj.value = n.F_ValueId;
52
+			obj.text = n.F_Value;
53
+			keyList.push(obj)
54
+		})
55
+	}
56
+});
57
+//工单状态
58
+var orderList = [{
59
+		"value": "0",
60
+		"text": "新工单"
61
+	},
62
+	{
63
+		"value": "1",
64
+		"text": "待交办"
65
+	},
66
+	{
67
+		"value": "10",
68
+		"text": "待审核"
69
+	},
70
+	{
71
+		"value": "2",
72
+		"text": "待查收"
73
+	},
74
+	{
75
+		"value": "3",
76
+		"text": "退回审核中"
77
+	},
78
+	{
79
+		"value": "4",
80
+		"text": "办理中"
81
+	},
82
+	{
83
+		"value": "5",
84
+		"text": "延时审核中"
85
+	},
86
+	{
87
+		"value": "6",
88
+		"text": "已办理"
89
+	},
90
+	{
91
+		"value": "7",
92
+		"text": "已回访"
93
+	},
94
+	{
95
+		"value": "11",
96
+		"text": "重办待交办"
97
+	},
98
+	{
99
+		"value": "13",
100
+		"text": "重办驳回"
101
+	},
102
+	{
103
+		"value": "8",
104
+		"text": "重办中"
105
+	},
106
+	{
107
+		"value": "9",
108
+		"text": "已结案"
109
+	}
110
+];
111
+//调度员
112
+var dispatchList = [];
113
+$.ajax({
114
+	type: "get",
115
+	url: huayi.config.callcenter_url + 'UserAccount/GetUsersList',
116
+	async: false,
117
+	data: {
118
+		rolecode: "ZXLD",
119
+		token: token
120
+	},
121
+	dataType: 'json',
122
+	success: function(data) {
123
+		var type_data = data.data;
124
+		$(type_data).each(function(i, n) {
125
+			var obj = {};
126
+			obj.value = n.F_UserCode;
127
+			obj.text = n.F_UserName;
128
+			dispatchList.push(obj)
129
+		})
130
+
131
+	}
132
+});
133
+//交办单位
134
+var dwList;
135
+$.ajax({
136
+	type: "get",
137
+	url: huayi.config.callcenter_url + 'Department/GetDeptListtree',
138
+	async: false,
139
+	data: {
140
+		token: token
141
+	},
142
+	dataType: 'json',
143
+	success: function(data) {
144
+		dwList = data.data;
145
+		console.log(dwList);
146
+	}
147
+});
148
+//坐席
149
+var zxList = [];
150
+$.ajax({
151
+	type: "get",
152
+	url: huayi.config.callcenter_url + 'UserAccount/GetSeatList',
153
+	async: false,
154
+	data: {
155
+		token: token
156
+	},
157
+	dataType: 'json',
158
+	success: function(data) {
159
+		var type_data = data.data;
160
+		$(type_data).each(function(i, n) {
161
+			var obj = {};
162
+			obj.value = n.F_UserCode;
163
+			obj.text = n.F_UserName;
164
+			zxList.push(obj)
165
+		})
166
+	}
167
+});
168
+(function($, doc) {
169
+
170
+	$.ready(function() {
171
+		//诉求类型
172
+		var userPicker = new $.PopPicker();
173
+		userPicker.setData(typeList);
174
+		var showUserPickerButton = doc.getElementById('showUserPicker');
175
+		var userResult = doc.getElementById('userResult');
176
+		showUserPickerButton.addEventListener('tap', function(event) {
177
+			userPicker.show(function(items) {
178
+				console.log(items)
179
+				userResult.value = items[0].text;
180
+				userResult.setAttribute("data-index", items[0].value);
181
+				//返回 false 可以阻止选择框的关闭
182
+				//return false;
183
+			});
184
+		}, false);
185
+		//主题词
186
+		var zhuTiPicker = new $.PopPicker();
187
+		zhuTiPicker.setData(keyList);
188
+		var showZhuTiPickerButton = doc.getElementById('showZhuTiPicker');
189
+		var zhuTiResult = doc.getElementById('zhuTiResult');
190
+		showZhuTiPickerButton.addEventListener('tap', function(event) {
191
+			zhuTiPicker.show(function(items) {
192
+				console.log(items)
193
+				zhuTiResult.value = items[0].text;
194
+				zhuTiResult.setAttribute("data-index", items[0].value);
195
+				//返回 false 可以阻止选择框的关闭
196
+				//return false;
197
+			});
198
+		}, false);
199
+		//工单状态
200
+		var orderPicker = new $.PopPicker();
201
+		orderPicker.setData(orderList);
202
+		var showOrderPickerButton = doc.getElementById('showOrderPicker');
203
+		var orderResult = doc.getElementById('orderResult');
204
+		showOrderPickerButton.addEventListener('tap', function(event) {
205
+			orderPicker.show(function(items) {
206
+				console.log(items)
207
+				orderResult.value = items[0].text;
208
+				orderResult.setAttribute("data-index", items[0].value);
209
+				//返回 false 可以阻止选择框的关闭
210
+				//return false;
211
+			});
212
+		}, false);
213
+		//调度员 dispatch
214
+		var dispatchPicker = new $.PopPicker();
215
+		dispatchPicker.setData(dispatchList);
216
+		var showDispatchPickerButton = doc.getElementById('showDispatchPicker');
217
+		var dispatchResult = doc.getElementById('dispatchResult');
218
+		showDispatchPickerButton.addEventListener('tap', function(event) {
219
+			dispatchPicker.show(function(items) {
220
+				console.log(items)
221
+				dispatchResult.value = items[0].text;
222
+				dispatchResult.setAttribute("data-index", items[0].value);
223
+				//返回 false 可以阻止选择框的关闭
224
+				//return false;
225
+			});
226
+		}, false);
227
+		//交办单位
228
+		var ZTiPickers = new $.PopPicker({
229
+			layer: 3
230
+		});
231
+		ZTiPickers.setData(dwList);
232
+		var ZXs = doc.getElementById('DW');
233
+		var ZXResults = doc.getElementById('DWResult');
234
+		ZXs.addEventListener('tap', function(event) {
235
+			ZTiPickers.show(function(items) {
236
+				console.log(items)
237
+				ZXResults.value = items[2].text;
238
+				ZXResults.setAttribute("data-index", items[2].id);
239
+				//返回 false 可以阻止选择框的关闭
240
+				//return false;
241
+			});
242
+		}, false);
243
+		//坐席
244
+		var ZTiPicker = new $.PopPicker();
245
+		ZTiPicker.setData(zxList);
246
+		var ZX = doc.getElementById('ZX');
247
+		var ZXResult = doc.getElementById('ZXResult');
248
+		ZX.addEventListener('tap', function(event) {
249
+			ZTiPicker.show(function(items) {
250
+				console.log(items)
251
+				ZXResult.value = items[0].text;
252
+				ZXResult.setAttribute("data-index", items[0].value);
253
+				//返回 false 可以阻止选择框的关闭
254
+				//return false;
255
+			});
256
+		}, false);
257
+	})
258
+})(mui, document);

+ 6 - 0
WeChat/fisrt_comprehensive/Seach.html

@@ -57,6 +57,12 @@
57 57
 						<input type="text" id="description" placeholder="请输入问题描述">
58 58
 					</div>
59 59
 				</li>
60
+				<li class="mui-table-view-cell">
61
+					<div class="mui-input-row">
62
+						<label class="label">产品名称:</label>
63
+						<input type="text" id="sc_Chanp" placeholder="请输入产品名称">
64
+					</div>
65
+				</li>
60 66
 				<li class="mui-table-view-cell" id="showCityPicker3">
61 67
 					<div class="mui-input-row">
62 68
 						<label class="label">投诉类型:</label>

+ 4 - 0
WeChat/fisrt_comprehensive/inquire.html

@@ -38,6 +38,7 @@
38 38
 			var createby= decodeURI(helper.request.queryString("createby")); //业务员姓名
39 39
 			var createtel= decodeURI(helper.request.queryString("createtel")); //业务员电话
40 40
 			var description= decodeURI(helper.request.queryString("description")); //问题描述
41
+			var sc_Chanp= decodeURI(helper.request.queryString("sc_Chanp")); //问题描述
41 42
 			var Complaint = helper.request.queryString("Complaint"); //投诉类型
42 43
 			var State = helper.request.queryString("State"); //工单状态
43 44
 			var Handler = decodeURI(helper.request.queryString("handler")); //处理人
@@ -48,6 +49,7 @@
48 49
 			var page = 1; //页数
49 50
 			var pageSize = 10; //每页显示条目
50 51
 			var total; //数据总条数
52
+			console.log(sc_Chanp)
51 53
 			if(itype == "") {
52 54
 				itype = -1;
53 55
 			} else {
@@ -90,6 +92,7 @@
90 92
 							pageindex: page,
91 93
 							pagesize: pageSize,
92 94
 							keywords:Keyword, //关键词
95
+							category:sc_Chanp,
93 96
 							type:Complaint, //投诉类型
94 97
 							condition:State, //工单状态
95 98
 							createby:createby, //业务员姓名
@@ -178,6 +181,7 @@
178 181
 							type:Complaint, //投诉类型
179 182
 							condition:State, //工单状态
180 183
 							createby:createby, //业务员姓名
184
+							category:sc_Chanp,
181 185
 							createtel:createtel, //业务员电话
182 186
 							description:description, //问题描述
183 187
 							handler:Handler,//处理人

+ 3 - 2
WeChat/fisrt_comprehensive/js/serch.js

@@ -51,6 +51,7 @@ $('.submit').on('tap', function() {
51 51
 	description = $("#description").val();  //问题描述
52 52
 	Start_data = $("#start_data").val(); //开始日期
53 53
 	End_data = $("#end_data").val(); //结束日期
54
+	sc_Chanp = $("#sc_Chanp").val(); //产品名称
54 55
 //	window.location.href = "editWorkolder.html?id=" + id+'&itype='+itype;
55 56
 	var start = new Date(Start_data.replace("-", "/").replace("-", "/"));
56 57
 	var end = new Date(End_data.replace("-", "/").replace("-", "/"));
@@ -58,12 +59,12 @@ $('.submit').on('tap', function() {
58 59
 //	alert(start);
59 60
 //	alert(end);
60 61
 	if(start<end){
61
-		window.location.href = "inquire.html?Keyword=" + encodeURI(keywords)+'&handler='+encodeURI(handler)+'&createby='+encodeURI(createby)+'&createtel='+encodeURI(createtel)+'&State='+State+'&description='+encodeURI(description)+'&Complaint='+Complaint+'&State='+State+'&Start_data='+Start_data+'&End_data='+End_data;
62
+		window.location.href = "inquire.html?Keyword=" + encodeURI(keywords)+'&handler='+encodeURI(handler)+'&createby='+encodeURI(createby)+'&createtel='+encodeURI(createtel)+'&State='+State+'&description='+encodeURI(description)+'&Complaint='+Complaint+'&State='+State+'&Start_data='+Start_data+'&End_data='+End_data+'&sc_Chanp='+encodeURI(sc_Chanp);
62 63
 	}else if(start>end){
63 64
 		alert("开始时间大于结束时间,请重新选择");
64 65
 		return
65 66
 	}
66
-	window.location.href = "inquire.html?Keyword=" + encodeURI(keywords)+'&handler='+encodeURI(handler)+'&createby='+encodeURI(createby)+'&createtel='+encodeURI(createtel)+'&State='+State+'&description='+encodeURI(description)+'&Complaint='+Complaint+'&State='+State+'&Start_data='+Start_data+'&End_data='+End_data;
67
+	window.location.href = "inquire.html?Keyword=" + encodeURI(keywords)+'&handler='+encodeURI(handler)+'&createby='+encodeURI(createby)+'&createtel='+encodeURI(createtel)+'&State='+State+'&description='+encodeURI(description)+'&Complaint='+Complaint+'&State='+State+'&Start_data='+Start_data+'&End_data='+End_data+'&sc_Chanp='+encodeURI(sc_Chanp);
67 68
 });
68 69
 
69 70
 

+ 15 - 43
WeChat/login.html

@@ -18,43 +18,27 @@
18 18
 //			alert(UserType)
19 19
 //			判断
20 20
 			if(UserType){
21
-				if(UserType == "-1") { //系统管理员
22
-					window.location.href = "client-side/client_index.html";
23
-				} else if(UserType == "0") { //大区经理/分公司经理
24
-					window.location.href = "client-side/client_index.html";
25
-				} else if(UserType == "1") { //办理人员
26
-					window.location.href = "client-side/client_index.html";
27
-				} else if(UserType == "2") { //区域客服
21
+				if(UserType == "0") { //分公司经理
28 22
 					window.location.href = "client-side/client_index.html";
23
+				} else if(UserType == "2") { //高层
24
+					window.location.href = "client-side/high_list.html";
29 25
 				} else if(UserType == "3") { //办理人员
30
-					window.location.href = "client-side/press_list.html";
26
+					window.location.href = "client-side/Waiting_list.html";
31 27
 				} else if(UserType == "4") { //业务员
32 28
 					window.location.href = "client-side/Have_list.html";
33
-				} else if(UserType == "5") { //游客
34
-					window.location.href = "client-side/establish.html";
35 29
 				} 
36 30
 			}
37 31
 			if(UserCode) {
38 32
 				 
39
-				if(UserType == "-1") { //系统管理员
40
-					window.location.href = "client-side/client_index.html";
41
-				} else if(UserType == "0") { //接待部
33
+				if(UserType == "0") { //分公司经理
42 34
 					window.location.href = "client-side/client_index.html";
43
-				} else if(UserType == "1") { //办理人员
44
-					window.location.href = "client-side/client_index.html";
45
-				} else if(UserType == "2") { //区域客服
46
-					window.location.href = "client-side/client_index.html";
47
-				} else if(UserType == "3") { //监管
48
-					window.location.href = "client-side/press_list.html";
35
+				} else if(UserType == "2") { //高层
36
+					window.location.href = "client-side/high_list.html";
37
+				} else if(UserType == "3") { //办理人员
38
+					window.location.href = "client-side/Waiting_list.html";
49 39
 				} else if(UserType == "4") { //业务员
50 40
 					window.location.href = "client-side/Have_list.html";
51
-				} else if(UserType == "5") { //游客
52
-					window.location.href = "client-side/establish.html";
53 41
 				} 
54
-//				else if(UserType == "5") { //业主
55
-//					helper.cookies.set("usercode", "", -1);
56
-//					window.location.href = "login.html";
57
-//				}
58 42
 			}
59 43
 		</script>
60 44
 	</head>
@@ -119,43 +103,31 @@
119 103
 //						debugger
120 104
 						if(data.state == "success") {
121 105
 							debugger
122
-							
123 106
 							var UserType = data.data.usertype;
124 107
 							var UserCode = data.data.usercode;
125 108
 							var UserName = data.data.UserName;
126 109
 							var rolename = data.data.rolename;
127
-//							UserWord = $("#password").val();
128
-							//alert(JSON.stringify(data.data))
129 110
 							var UserCode = data.data.usercode;
130 111
 							helper.cookies.set("usercode", data.data.usercode, 7);
131 112
 							helper.cookies.set("usertype", data.data.usertype, 7);
132 113
 							helper.cookies.set("userword", $("#password").val(), 7);
133 114
 							helper.cookies.set("UserName", data.data.UserName, 7);
134 115
 							helper.cookies.set("rolename", data.data.rolename, 7);
135
-							
136 116
 							helper.cookies.set("area", data.data.area, 7);
137 117
 							helper.cookies.set("offic", data.data.offic, 7);
138 118
 							helper.cookies.set("region", data.data.region, 7);
139
-//							window.location.href = "client-side/client_index.html";
140 119
 							//helper.cookies.set("openid", 'oXF5e1mWpX5DajW5_yjNLPKb8ThE', 7);//微信openid 测试用
141
-							//window.location.href = "client-side/client_index.html?menuCode=LDDL";
142
-							//window.location.href = "client-side/client_index.html";
143
-							if(UserType == "-1") { //系统管理员
144
-								window.location.href = "client-side/client_index.html";
145
-							} else if(UserType == 0) { //接待部
146
-								window.location.href = "client-side/client_index.html";
147
-							} else if(UserType == 1) { //办理人员
120
+							
121
+							if(UserType == "0") { //分公司经理,大区经理
148 122
 								window.location.href = "client-side/client_index.html";
149
-							} else if(UserType == 2) { //区域客服
123
+							} else if(UserType == "2") { //高层
150 124
 								window.location.href = "client-side/high_list.html";
151
-							} else if(UserType == 3) { //监管
125
+							} else if(UserType == "3") { //办理人员
152 126
 								window.location.href = "client-side/Waiting_list.html";
153
-							} else if(UserType == 4) { //监管
127
+							} else if(UserType == "4") { //业务员
154 128
 								window.location.href = "client-side/Have_list.html";
155 129
 							} 
156
-//							else if(UserType == "5") { //业主
157
-//								window.location.href = "user/client_index.html";
158
-//							}
130
+							
159 131
 
160 132
 						} else {
161 133
 							mui.alert(data.message);