Browse Source

三元微信

miaofuhao 6 years ago
parent
commit
c396a165f0

+ 1 - 0
WeChat/content/js/InvoiceList.js

@@ -3,6 +3,7 @@ var openid = helper.cookies.get("openid");
3 3
 var turn = helper.request.queryString("turn");
4 4
 if (turn) {
5 5
 	$(".mui-nav").show();
6
+	$(".cont-margin").css("margin-top","45px");
6 7
 }else{
7 8
 	$(".cont-margin").css("margin-top","0px");
8 9
 }

+ 30 - 14
WeChat/content/js/orderDetail.js

@@ -1,12 +1,28 @@
1 1
 mui.init({})
2 2
 var id = helper.request.queryString("id");
3 3
 var state = helper.request.queryString("type");
4
+var staff = helper.request.queryString("typeStaff");
4 5
 var openid = helper.cookies.get("openid");
5 6
 //var openid = "oXF5e1mWpX5DajW5_yjNLPKb8ThE";
6 7
 var roleCode = helper.cookies.get("RoleCode");
8
+var typeUser = helper.cookies.get("typeUser");
7 9
 var backType=0,turn=1;
8
-if (!openid) {
9
-	var openid = helper.request.queryString("openid");
10
+//var staff=1;
11
+//var state=1;
12
+if(!state){
13
+	// 显示导航
14
+	$('#mNavbar').hide();
15
+	$('#mContent').css('marginTop', '0px');	
16
+	$('#mContentList').css('marginTop', '0px');	
17
+}
18
+if(staff==1){
19
+	// 显示导航
20
+	$('#mNavbar').show();
21
+	$('#mContent').css('marginTop', '45px');	
22
+	$('#mContentList').css('marginTop', '10px');	
23
+}
24
+if(typeUser==1){
25
+	$(".typeStaff").show();
10 26
 }
11 27
 function formatterDealDetail(val, row) {
12 28
 	return str;
@@ -21,18 +37,8 @@ if (roleCode=="JDYPTZX"||roleCode=="JDYBZZX") {
21 37
 	$(".allotBtn").hide();
22 38
 	backType=1; 
23 39
 }
24
-
25 40
 $(function () {
26 41
 	Ajax();
27
-	if (state=="0") {
28
-		$(".dispose1").show();
29
-	} else if (state=="1") {
30
-		$(".dispose2").show();
31
-	} else if(state=="2"){
32
-		$(".dispose3").show();
33
-	} else if(state=="3"){
34
-		$(".dispose4").show();
35
-	}
36 42
 	//返回列表
37 43
 	$('.return').on('tap', function() {   
38 44
 		if (state==0) {
@@ -45,6 +51,8 @@ $(function () {
45 51
 			window.location.href = "orderList.html?Itype=" + state+'&turn='+turn;
46 52
 		}else if (state==4){
47 53
 			window.location.href = "orderList.html?Itype=" + state+'&turn='+turn;
54
+		}else if(staff==1){
55
+			window.location.href = "orderList.html?turn=" + turn;
48 56
 		}
49 57
 		//window.location.href = "client_index.html?Itype=" + itype;
50 58
 	});
@@ -193,20 +201,27 @@ function Ajax() {
193 201
 		type: 'get', //HTTP请求类型
194 202
 		success: function(data) {
195 203
 			if(data.state.toLowerCase() == "success") {
204
+				
196 205
 				var result = data.data.data[0]
197
-				var stateText
206
+				var stateText;
198 207
 				if (result.State==0) {
199 208
 					stateText="待指派"
200 209
 				}else if(result.State==1){
201 210
 					stateText="待接单"
211
+					$(".dispose2").show();
202 212
 				}else if(result.State==2){
203 213
 					stateText="待处理"
204
-					$(".allotBtn").hide();
214
+					$(".dispose3").show();
205 215
 				}else if(result.State==3){
216
+					$(".dispose3").show();
217
+					$(".unbackBtn").remove();
206 218
 					stateText="退回待处理"
207 219
 				}else if(result.State==4){
220
+					$(".dispose3").show();
221
+					$(".unbackBtn").remove();
208 222
 					stateText="异常退回待处理"
209 223
 				}else if(result.State==5){
224
+					$(".dispose3").show();
210 225
 					stateText="处理中"
211 226
 				}else if(result.State==10){
212 227
 					stateText="已完结"
@@ -217,6 +232,7 @@ function Ajax() {
217 232
 				$("#gdlyName").text(result.GDLYName); //工单来源
218 233
 				$("#state").text(stateText); //工单状态
219 234
 				$("#customer").text(result.Customer); //客户姓名
235
+				$("#clDetail").text(result.clcontent); //客户姓名
220 236
 				if (state==3) {
221 237
 					var str="";
222 238
 					var val1 = result.CustomerTel.substring(0, 3);

+ 33 - 18
WeChat/content/js/orderList.js

@@ -1,10 +1,13 @@
1 1
 mui.init({})
2 2
 var state=1;
3
+//var Staff=1;
3 4
 var openid = helper.cookies.get("openid");
4 5
 var roleCode = helper.cookies.get("RoleCode");
6
+var typeUser = helper.cookies.get("typeUser");
5 7
 var Itype = helper.request.queryString("Itype");
6 8
 var turn = helper.request.queryString("turn");
7
-var turn=1;
9
+//var turn=1;
10
+//var typeUser=5;
8 11
 //var openid = "oXF5e1mWpX5DajW5_yjNLPKb8ThE";
9 12
 $(function () {
10 13
 	if (turn) {
@@ -18,25 +21,37 @@ $(function () {
18 21
 	if (Itype=="1") {
19 22
 		$(".titdyna li").removeClass("tab_color");
20 23
 		$(".titdyna li:eq(0)").addClass("tab_color");
21
-		state=1
22
-		Ajax();
24
+		state=1;
25
+		Ajax(state);
23 26
 	}else if(Itype=="2"){
24 27
 		$(".titdyna li").removeClass("tab_color");
25 28
 		$(".titdyna li:eq(1)").addClass("tab_color");
26
-		state=2
27
-		Ajax();
29
+		state=2;
30
+		Ajax(state);
28 31
 	}else if(Itype=="3"){
29
-		state=3
32
+		state=3;
30 33
 		$(".titdyna li").removeClass("tab_color");
31 34
 		$(".titdyna li:eq(2)").addClass("tab_color");
32
-		Ajax();
35
+		Ajax(state);
33 36
 	}else if(Itype=="4"){
34
-		state=4
37
+		state=4;
35 38
 		$(".titdyna li").removeClass("tab_color");
36 39
 		$(".titdyna li:eq(3)").addClass("tab_color");
37
-		Ajax();
38
-	}else
39
-	Ajax();
40
+		Ajax(state);
41
+	}
42
+	if(typeUser==5){
43
+		$(".titdyna").hide();
44
+		$("#OA_task").css("margin-top","45px");
45
+		state="";
46
+		Staff=1;
47
+		Ajax(state);
48
+	}else if(typeUser==1){
49
+		$(".titdyna").show();
50
+		$("#OA_task").css("margin-top","85px");
51
+		state=1;
52
+		Staff="";
53
+		Ajax(state);
54
+	}
40 55
 })
41 56
 $(".titdyna ul li").click(function () {
42 57
 	$(".titdyna li").removeClass("tab_color");
@@ -70,7 +85,6 @@ $(".titdyna ul li").click(function () {
70 85
 						stateText="异常退回待处理"
71 86
 					}else if(n.State==5){
72 87
 						stateText="处理中"
73
-						
74 88
 					}else if(n.State==10){
75 89
 						stateText="已完成"
76 90
 					}
@@ -105,7 +119,7 @@ $(".titdyna ul li").click(function () {
105 119
 		}
106 120
 	})
107 121
 })
108
-function Ajax() {
122
+function Ajax(state) {
109 123
 	//$(".order").remove();
110 124
 	$.ajax({
111 125
 		url: huayi.config.callcenter_url + 'WxLogin/GetWoList',
@@ -124,7 +138,6 @@ function Ajax() {
124 138
 				$(data.rows).each(function(i, n) {
125 139
 					var stateText;
126 140
 					var titleText;
127
-					
128 141
 					if (n.State==0) {
129 142
 						stateText="待指派"
130 143
 					}else if (n.State==1) {
@@ -134,8 +147,10 @@ function Ajax() {
134 147
 					}else if(n.State==3){
135 148
 						stateText="退回待处理"
136 149
 					}else if(n.State==4){
137
-						stateText="处理"
150
+						stateText="异常退回待处理"
138 151
 					}else if(n.State==5){
152
+						stateText="处理中"
153
+					}else if(n.State==10){
139 154
 						stateText="已完成"
140 155
 					}
141 156
 					if (n.TypeClassName=="") {
@@ -146,18 +161,18 @@ function Ajax() {
146 161
 					}
147 162
 					$('<li class="mui-table-view-cell order" data-index="' + n.ID + '">' +
148 163
 						'<div class="mui-table">' +
149
-						'<div class="mui-table-cell mui-col-xs-10">' +
164
+						'<div class="mui-table-cell mui-col-xs-8">' +
150 165
 						'<h4 class="mui-ellipsis">' + titleText +
151 166
 						'</h4><h5>' + n.CreateTime +
152 167
 						'</h5></div>'+
153
-						'<div class="mui-table-cell mui-col-xs-2 mui-text-right">'+
168
+						'<div class="mui-table-cell mui-col-xs-4 mui-text-right">'+
154 169
 						'<span class="mui-h5">'+stateText+
155 170
 						'</span></div></div></li>').appendTo('#OA_task');
156 171
 				});
157 172
 				//工单跳转
158 173
 				$('.order').on('tap', function() {
159 174
 					var index = $(this).attr('data-index');
160
-					window.location.href = "orderDetail.html?id=" + index+'&type='+state;
175
+					window.location.href = "orderDetail.html?id=" + index+'&type='+state+'&typeStaff='+Staff;
161 176
 				});
162 177
 			} else {
163 178
 				$(".noinfor").text("暂无信息");

+ 19 - 12
WeChat/content/orderDetail.html

@@ -13,7 +13,6 @@
13 13
 		<link href="css/serveDetail.css" rel="stylesheet" />
14 14
 	</head>
15 15
 	<style>
16
-		
17 16
 		#GDgz{
18 17
 			background: #FFFFFF;
19 18
 		}
@@ -178,14 +177,17 @@
178 177
 			padding-right: 0px !important;
179 178
     		padding-left: 45px !important;
180 179
 		}
180
+		.typeStaff{
181
+			display: none;
182
+		}
181 183
 	</style>
182 184
 	<body>
183
-		<div class="mui-nav">
185
+		<div class="mui-nav" id="mNavbar">
184 186
 			<a class="mui-icon mui-icon-arrowleft return"></a>
185 187
 			工单详情
186 188
 		</div>
187
-		<div class="mui-content" style="margin-top: 54px;">
188
-			<ul class="mui-table-view mui-table-view-ul">
189
+		<div class="mui-content" id="mContent" style="margin-top: 54px;">
190
+			<ul class="mui-table-view mui-table-view-ul" id="mContentList">
189 191
 				<li class="mui-table-view-cell mui-table-view-li">
190 192
 					<div class="mui-input-row">
191 193
 						<label class="label font-color5">工单编号</label>
@@ -245,12 +247,17 @@
245 247
 				<li class="mui-table-view-cell mui-table-view-li">
246 248
 					<div class="mui-input-row" style="margin-left: 8px;">
247 249
 						工单内容:
248
-						<p id="detail" ></p>
250
+						<p id="detail" style="text-indent: 2em;"></p>
251
+					</div>
252
+				</li>
253
+				<li class="mui-table-view-cell mui-table-view-li">
254
+					<div class="mui-input-row" style="margin-left: 8px;">
255
+						处理内容:
256
+						<p id="clDetail" style="text-indent: 2em;"></p>
249 257
 					</div>
250 258
 				</li>
251
-				
252 259
 			</ul>
253
-			<ul class="mui-table-view mui-grid-view">
260
+			<ul class="mui-table-view typeStaff">
254 261
 				<h4 class="mui-ellipsis size-16 mui_btn1_tit">操作按钮:</h4>
255 262
 				<div class="type1">
256 263
 					<!--待接单-->
@@ -264,15 +271,15 @@
264 271
 					</div>
265 272
 					<!--待处理-->
266 273
 					<div class="mui_btn1 dispose3">
267
-						<li class="mui-media mui-col-xs-3 unusualBtn">
268
-							<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block unbackBtn">异常退回</button>
269
-						</li>
270 274
 						<li class=" mui-media mui-col-xs-3 allotBtn">
271 275
 							<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block allot">分配</button>
272 276
 						</li>
273 277
 						<li class=" mui-media mui-col-xs-3">
274 278
 							<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block deal">处理</button>
275 279
 						</li>
280
+						<li class="mui-media mui-col-xs-3 unusualBtn">
281
+							<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block unbackBtn">异常退回</button>
282
+						</li>
276 283
 					</div>
277 284
 					<!--已完成-->
278 285
 					<div class="mui_btn1 dispose4">
@@ -282,13 +289,13 @@
282 289
 					</div>
283 290
 				</div>
284 291
 			</ul>
285
-			<div class="mui-table-view work-content ">
292
+			<div class="mui-table-view work-content typeStaff">
286 293
 				<div class="mui-table-cell mui-col-xs-10">
287 294
 					<h4 class="mui-ellipsis size-16" style="padding: 6px ;">工单跟踪信息</h4>
288 295
 				</div>
289 296
 			</div>
290 297
 			<!--工单进度-->
291
-			<div class="mui-padding" style="padding: 6px;" id="GDgz">
298
+			<div class="mui-padding typeStaff" style="padding: 6px;" id="GDgz">
292 299
 				<!--<h5 class="mui-badge-success mui-badge-inverted">时间<h5>
293 300
 					<span>操作人:</span>
294 301
 					<span> + Agree</span>

+ 1 - 0
WeChat/content/orderList.html

@@ -19,6 +19,7 @@
19 19
 				top: 0px;
20 20
 				background: #FFFFFF;
21 21
 				z-index: 3;
22
+				display: none;
22 23
 			}
23 24
 			.titdyna ul{
24 25
 				padding: 0;

+ 4 - 2
WeChat/index.html

@@ -16,6 +16,7 @@
16 16
 		<script src="Script/Common/huayi.http.js"></script>
17 17
 		<script type="text/javascript">
18 18
 			var openid = helper.cookies.get("openid");
19
+			var id = helper.request.queryString("id");
19 20
 			var code = helper.request.queryString("code");
20 21
 			var menucode = helper.request.queryString("menucode");
21 22
 			var typeUser = helper.cookies.get("typeUser");
@@ -30,6 +31,7 @@
30 31
 					success: function(result) {
31 32
 						if(result.state.toLowerCase() == "success") {
32 33
 							var openid=result.data.openid;
34
+							helper.cookies.set("RoleCode", result.data.rolecode, 7);
33 35
 							window.location.replace("login.html?menuCode="+menucode+'&openid='+openid);
34 36
 						}
35 37
 					}
@@ -62,7 +64,7 @@
62 64
 						window.location.replace("content/orderList.html");
63 65
 						break; //工单列表
64 66
 					case "GDXQ":
65
-						window.location.replace("content/orderDetail.html");
67
+						window.location.replace("content/orderDetail.html?id="+id);
66 68
 						break; //工单详情
67 69
 					default:
68 70
 						window.location.replace("error.html");
@@ -90,7 +92,7 @@
90 92
 						window.location.replace("content/orderList.html");
91 93
 						break; //工单列表
92 94
 					case "GDXQ":
93
-						window.location.replace("content/orderDetail.html");
95
+						window.location.replace("content/orderDetail.html?id="+id);
94 96
 						break; //工单详情
95 97
 					default:
96 98
 						window.location.replace("error.html");

+ 0 - 1
WeChat/login.html

@@ -98,7 +98,6 @@
98 98
 							var UserWord=$("#password").val();
99 99
 							helper.cookies.set("typeUser", typeUser, 7);
100 100
 							helper.cookies.set("UserWord", UserWord, 7);
101
-							helper.cookies.set("RoleCode", data.data.rolecode, 7);
102 101
 							debugger
103 102
 							if (openid) {
104 103
 								helper.cookies.set("openid", openid, 7);