Pārlūkot izejas kodu

三元微信修改

miaofuhao 6 gadi atpakaļ
vecāks
revīzija
0a9fc22343

+ 224 - 0
WeChat/content/css/AddWorkolder.css

@@ -0,0 +1,224 @@
1
+body {
2
+	font-size: 14px;
3
+}
4
+/*导航*/
5
+.mui-nav{ 
6
+	position: fixed;
7
+	width: 100%;
8
+	top: 0px;
9
+	height: 44px;
10
+	line-height: 44px;
11
+	text-align: center;
12
+	background: #007aff;
13
+	z-index: 333;
14
+	color: #FFFFFF;
15
+	font-size: 17px;}
16
+.mui-nav a{ 
17
+	position: absolute;
18
+	left: 15px;
19
+	line-height: 44px;
20
+	color: #FFFFFF;
21
+	}
22
+.mui-nav span{
23
+	position: absolute;
24
+	right: 15px;
25
+	line-height: 44px;
26
+	font-size: 13px;
27
+}
28
+/*内容部分*/
29
+.mui-bar-popover {
30
+	width: 30%;
31
+}
32
+
33
+.mui-popover.mui-bar-popover .mui-table-view {
34
+	width: 100%;
35
+}
36
+
37
+.mui-table-view .mui-table-view-cell>a:not(.mui-btn) {
38
+	text-align: center;
39
+}
40
+.mui-input-row label~input, .mui-input-row label~select, .mui-input-row label~textarea{
41
+	float: left;
42
+	color: #222222;
43
+}
44
+.mui-input-row label~input:-webkit-input-placeholder { 
45
+    color:#222222;  /* WebKit browsers */
46
+}
47
+.mui-input-row label~input:-moz-placeholder { 
48
+    color:    #222222;  /* Mozilla Firefox 4 to 18 */
49
+}
50
+.mui-input-row label~input:-moz-placeholder { 
51
+    color:    #222222;  /* Mozilla Firefox 19+ */
52
+}
53
+.mui-input-row label~input:-ms-input-placeholder { 
54
+    color:    #222222;  /* Internet Explorer 10+ */
55
+}
56
+.mui-table-view-cell {
57
+	padding: 0px!important;
58
+}
59
+.mui-table-view-cell:after{
60
+	left: 0px;
61
+	background-color: #f5f5f6;
62
+}
63
+.mui-table-view-cell-line:after{
64
+	position: absolute;
65
+    right: 0;
66
+    bottom: 0;
67
+    left: 0px;
68
+    height: 5px;
69
+    content: '';
70
+    -webkit-transform: scaleY(.5);
71
+    transform: scaleY(.5);
72
+    background-color: #f5f5f6;
73
+}
74
+.radio_box {
75
+	display: inline-block;
76
+}
77
+
78
+.mui-radio input[type=radio]:before {
79
+	font-size: 20px;
80
+	vertical-align: middle;
81
+}
82
+
83
+.mui-radio.mui-left input[type=radio] {
84
+	line-height: 24px!important;
85
+}
86
+
87
+.mui-radio.mui-left label {
88
+	padding-right: 1px!important;
89
+	padding-left: 40px!important;
90
+	color: #222222;
91
+}
92
+.mui-content>.mui-table-view:first-child{
93
+	margin-top: 0px;
94
+}
95
+.mui-input-row font{ 
96
+	padding: 10px 20px;
97
+	float: left;
98
+	color: #222222;}
99
+.ztext {
100
+	width: 100%;
101
+	margin: 0;
102
+	border: 0;
103
+}
104
+
105
+.action {
106
+	padding: 5px 15px;
107
+}
108
+
109
+.type_down {
110
+	float: right!important;
111
+	display: inline-block!important;
112
+	vertical-align: middle!important;
113
+	line-height: 42px;
114
+	margin-right: 10px;
115
+}
116
+
117
+.type_con {
118
+	width: 55%!important;
119
+	float: left!important;
120
+	vertical-align: middle!important;
121
+	display: inline-block!important;
122
+	padding: 10px 0!important;
123
+}
124
+
125
+.label {
126
+	width: 28%!important;
127
+	padding:14px 5px 14px 10px!important;
128
+	text-align: left !important;
129
+}
130
+.get_yzm {
131
+	padding: 5px!important;
132
+	width: auto!important;
133
+}
134
+
135
+.yzm_con {
136
+	float: left!important;
137
+	width: 40%!important;
138
+}
139
+
140
+.mui-bar-nav {
141
+	background-color: #393a3f;
142
+}
143
+.mui-title{color: #FFFFFF;}
144
+.mui-input-row label {
145
+	text-align: -webkit-right;
146
+	color: #595959;
147
+}
148
+
149
+.mui-btn-block {
150
+	padding: 10px;
151
+	width: 100%;
152
+}
153
+
154
+a {
155
+	color: #000;
156
+}
157
+
158
+.size-14 {
159
+	font-size: 14px;
160
+}
161
+
162
+.mui-input-row label~input,
163
+.mui-input-row label~select,
164
+{
165
+	line-height: 1.1;
166
+	font-size: 14px;
167
+}
168
+.submit-btn{
169
+	width: 100%;
170
+	position: fixed;
171
+	bottom: 0px;
172
+	overflow: hidden;
173
+	-moz-box-shadow: 0px -1px 1px #d2d2d2; /* Firefox */
174
+  	-webkit-box-shadow: 0px -1px 1px #d2d2d2; /* Safari 和 Chrome */
175
+ 	 box-shadow: 0px -1px 1px #d2d2d2; /* Opera 10.5+, 以及使用了IE-CSS3的IE浏览器 */
176
+}
177
+.submit-btn button{ 
178
+	width: 100%;
179
+	float: left;
180
+	display: block;
181
+	border: none;
182
+	padding: 0;
183
+	margin: 0;
184
+	height: 50px;
185
+	border-radius: 0px;}
186
+/*.submit-btn>button:first-child{
187
+	background: #FFFFFF !important;
188
+	color: #000000;
189
+}*/
190
+
191
+
192
+
193
+
194
+#order_responsible{
195
+	position: absolute;
196
+	left: 25%;
197
+	width: 65%;
198
+	z-index: 333;
199
+}
200
+#order_recive{
201
+	position: absolute;
202
+	left: 25%;
203
+	width: 65%;
204
+	z-index: 333;
205
+}
206
+.complaintOrder{
207
+	position: relative;
208
+	line-height: 44px;
209
+}
210
+.complaintOrder option{
211
+	line-height: 44px;
212
+}
213
+.receive{
214
+	position: relative;
215
+	line-height: 44px;
216
+}
217
+.receive option{
218
+	line-height: 44px;
219
+}
220
+.mui-checkbox.mui-left input[type=checkbox], .mui-radio.mui-left input[type=radio]{
221
+	left: 5px;
222
+}
223
+
224
+

+ 2 - 2
WeChat/content/css/serve.css

@@ -30,6 +30,6 @@
30 30
 	line-height: 44px;
31 31
 	font-size: 13px;
32 32
 }
33
-.cont-margin{
33
+/*.cont-margin{
34 34
 	margin-top: 54px;
35
-}
35
+}*/

+ 100 - 51
WeChat/content/js/orderDetail.js

@@ -2,30 +2,48 @@ mui.init({})
2 2
 var id = helper.request.queryString("id");
3 3
 var state = helper.request.queryString("type");
4 4
 var openid = helper.cookies.get("openid");
5
-var turn=1;
5
+var roleCode = helper.cookies.get("RoleCode");
6
+var backType=0,turn=1;
6 7
 if (!openid) {
7 8
 	var openid = helper.request.queryString("openid");
8 9
 }
9 10
 function formatterDealDetail(val, row) {
10 11
 	return str;
11 12
 }
13
+if (roleCode=="XTGLY"||roleCode=="CJGLY") {
14
+	$(".sendBackBtn").remove();
15
+} else if(roleCode=="JG"){
16
+	$(".sendBackBtn").show();
17
+	$(".unusualBtn").show();
18
+}else if(roleCode=="BLRY"){
19
+	$(".unusualBtn").show();
20
+	$(".allotBtn").hide();
21
+	backType=1; 
22
+}
23
+
12 24
 $(function () {
13 25
 	Ajax();
14
-	if (state=="1") {
26
+	if (state=="0") {
15 27
 		$(".dispose1").show();
16
-	} else if(state=="2"){
28
+	} else if (state=="1") {
17 29
 		$(".dispose2").show();
18
-	} else if(state=="3"){
30
+	} else if(state=="2"){
19 31
 		$(".dispose3").show();
32
+	} else if(state=="3"){
33
+		$(".dispose4").show();
20 34
 	}
21 35
 	//返回列表
22 36
 	$('.return').on('tap', function() {   
23
-		if (state==1) {
37
+		if (state==0) {
24 38
 			window.location.href = "orderList.html?Itype=" + state+'&turn='+turn;
25
-		}if (state==2) {
39
+		}else if (state==1) {
40
+			window.location.href = "orderList.html?Itype=" + state+'&turn='+turn;
41
+		}else if (state==2) {
26 42
 			window.location.href = "orderList.html?Itype=" + state+'&turn='+turn;
27 43
 		} else if (state==3){
28 44
 			window.location.href = "orderList.html?Itype=" + state+'&turn='+turn;
45
+		}else if (state==4){
46
+			window.location.href = "orderList.html?Itype=" + state+'&turn='+turn;
29 47
 		}
30 48
 		//window.location.href = "client_index.html?Itype=" + itype;
31 49
 	});
@@ -59,6 +77,60 @@ $(".redeploy").click(function(){
59 77
 		}
60 78
 	})
61 79
 })
80
+//退回
81
+$(".backBtn").click(function(){   
82
+    $(".pop_up_bj").fadeIn();
83
+    $(".pop_up_div3").fadeIn();
84
+    backType=0;
85
+    itype=1;
86
+})
87
+$(".unusualBtn").click(function(){   
88
+    $(".pop_up_bj").fadeIn();
89
+    $(".pop_up_div3").fadeIn();
90
+    backType=1;
91
+    itype=2;
92
+})
93
+$(".pop_up_bj" ).click(function(){   
94
+    $(".pop_up_bj").hide();
95
+    $(".pop_up_div3").hide();
96
+    
97
+})
98
+$(".pop_up_div3 .btn .fl" ).click(function(){   
99
+    $(".pop_up_bj").hide();
100
+    $(".pop_up_div3").hide();
101
+    mui.alert("取消");
102
+})
103
+$(".pop_up_div3 .btn .fr").click(function(){
104
+	if($(".textcont_back").val()=="") {
105
+		mui.alert("请输入处理内容");
106
+	}else{
107
+		$(".pop_up_bj").hide();
108
+	    $(".pop_up_div3").hide();
109
+		$.ajax({
110
+			type: "post",
111
+			dataType: 'json',
112
+			url: huayi.config.callcenter_url + '/WxLogin/BackWorkOrder',
113
+			async: true,
114
+			data: {
115
+				openid: openid, //微信openid 测试用
116
+				orderid: id, //否	strubg	工单编号
117
+				cont:$(".textcont_back").val(),
118
+				type:backType,
119
+			},
120
+			success: function(data) {
121
+				if(data.state == "success") {
122
+					debugger
123
+					mui.toast('退回成功');
124
+					window.location.href = "orderList.html?Itype="+itype;
125
+				} else {
126
+					mui.toast(data.message);
127
+				}
128
+			}
129
+		});
130
+	}
131
+	
132
+})
133
+	
62 134
 //处理
63 135
 $(".deal").click(function(){   
64 136
     $(".pop_up_bj").fadeIn();
@@ -74,8 +146,7 @@ $(".pop_up_div4 .btn .fl" ).click(function(){
74 146
     mui.alert("取消");
75 147
 })
76 148
 $(".pop_up_div4 .btn .fr" ).click(function(){ 
77
-//				$("#cont").text("");
78
-    $(".pop_up_bj").hide();
149
+	$(".pop_up_bj").hide();
79 150
     $(".pop_up_div4").hide();
80 151
     if($(".textcont_deal").val()=="") {
81 152
 		mui.alert("请输入处理内容");
@@ -89,15 +160,14 @@ $(".pop_up_div4 .btn .fr" ).click(function(){
89 160
 			async: true,
90 161
 			data: {
91 162
 				orderid: id, //否	strubg	工单编号
92
-				isend: 1, //否	int	你看一下前端是什么参数
93
-				cont: $("#textcont_deal").val(), //否	int	处理内容
163
+				isover:$('.order_state').find('input[type="radio"]:checked').val(), //处理状态
164
+				cont: $(".textcont_deal").val(), //否	int	处理内容
94 165
 				openid: openid, //微信openid,
95 166
 			},
96 167
 			success: function(data) {
97 168
 				if(data.state == "success") {
98 169
 					debugger
99 170
 					mui.toast('处理成功');
100
-					
101 171
 					window.location.href = "orderList.html?Itype=2";
102 172
 				} else {
103 173
 					mui.toast(data.message);
@@ -107,14 +177,15 @@ $(".pop_up_div4 .btn .fr" ).click(function(){
107 177
 	}
108 178
 		
109 179
 })
110
-
180
+$(".allot").click(function(){ 
181
+	window.location.href = "redeploy.html?id=" + id + '&itype=' + state;
182
+})
111 183
 function Ajax() {
112 184
 	$.ajax({
113 185
 		url: huayi.config.callcenter_url + '/WxLogin/GetWoInfo',
114 186
 		data: {
115 187
 			workorderid: id, //工单编号
116 188
 			openid: openid, //微信openid,
117
-			//openid: 'oXF5e1mWpX5DajW5_yjNLPKb8ThE',
118 189
 		},
119 190
 		async: true,
120 191
 		dataType: 'json',
@@ -124,11 +195,20 @@ function Ajax() {
124 195
 				var result = data.data.data[0]
125 196
 				var stateText
126 197
 				if (result.State==0) {
127
-					stateText="进行中"
198
+					stateText="待指派"
128 199
 				}else if(result.State==1){
129
-					stateText="已完成"
130
-				}if(result.State==2){
131
-					stateText="已完成"
200
+					stateText="待接单"
201
+				}else if(result.State==2){
202
+					stateText="待处理"
203
+					$(".allotBtn").hide();
204
+				}else if(result.State==3){
205
+					stateText="退回待处理"
206
+				}else if(result.State==4){
207
+					stateText="异常退回待处理"
208
+				}else if(result.State==5){
209
+					stateText="处理中"
210
+				}else if(result.State==10){
211
+					stateText="已完结"
132 212
 				}
133 213
 				console.log(result.State);
134 214
 				$("#workOrderID").text(result.WorkOrderID); //工单编号
@@ -153,40 +233,9 @@ function Ajax() {
153 233
 				var record=data.data.item;
154 234
 				if(data.data.item &&record.length > 0) {
155 235
 					$(record).each(function(i, row) {
156
-						var str = '';
157
-						if(!row.IsLast && !row.DealTime && !row.SureUserName && !row.ToDeptName){
158
-							str = str + row.CreateUserName + " 创建了工单。" + "<br>";
159
-						}
160
-						if(row.IsLast) {
161
-							str = str + row.CreateUserName + " 完结工单。" + "<br>";
162
-						}
163
-						if(row.DealTime) {
164
-							str = str + row.CreateUserName + " 处理工单:" + "<br>";
165
-							str = str + row.Detail + "<br>";
166
-						}
167
-						if(row.SureUserName) {
168
-							str = str + row.SureUserName + " 接单。" + "<br>";
169
-						}
170
-						if(row.ToDeptName) {
171
-							if(row.State != 6){
172
-								str = str + row.CreateUserName + " 指派工单给 " + row.ToDeptName + ":";
173
-								if(row.ToUserName) {
174
-									str = str + row.ToUserName;
175
-								}
176
-							}
177
-							if(row.State === 6){
178
-								str = str +  row.ToDeptName + ":" + row.ToUserName  + " 将工单退回给 " + row.CreateUserName;
179
-							}
180
-							str = str + "<br>";
181
-						}
182
-						
183
-						if(row.IsStart) {
184
-							str = str + row.CreateUserName + " 重新开启工单。" + "<br>";
185
-						}
186
-						
187
-						$('<h5 class="mui-badge-success mui-badge-inverted">' + record[i].CreateTime+
188
-						'</h5><h5><span>跟踪信息:'+
189
-						'</span><span class="Font">' + str + 
236
+						$('<h5 class="mui-badge-success mui-badge-inverted">' + record[i].F_CreateTime+
237
+						'</h5><h5><span style="line-height: 20px;">跟踪信息:'+
238
+						'</span><span class="Font" style="line-height: 20px;">' + record[i].F_OptContent + 
190 239
 						'</span></h5>').appendTo("#GDgz")
191 240
 						
192 241
 					})

+ 34 - 15
WeChat/content/js/orderList.js

@@ -1,19 +1,17 @@
1 1
 mui.init({})
2 2
 var state=1;
3
-var openid = helper.cookies.get("openid");
4
-//var openid = 'oXF5e1mWpX5DajW5_yjNLPKb8ThE';
3
+var openid = helper.cookies.set("openid");
4
+var roleCode = helper.cookies.get("RoleCode");
5 5
 var Itype = helper.request.queryString("Itype");
6 6
 var turn = helper.request.queryString("turn");
7
-
8 7
 $(function () {
9
-	
10 8
 	if (turn) {
11 9
 		$(".mui-nav").show();
12
-		$(".cont-margin").css("margin-top","50px");
13
-		$("#OA_task").css("margin-top","90px");
10
+		$(".cont-margin").css("margin-top","44px");
11
+		$("#OA_task").css("margin-top","88px");
14 12
 	}else{
15 13
 		$("#OA_task").css("margin-top","0px");
16
-		$(".cont-margin").css("margin-top","50px");
14
+		$(".cont-margin").css("margin-top","44px");
17 15
 	}
18 16
 	if (Itype=="1") {
19 17
 		$(".titdyna li").removeClass("tab_color");
@@ -30,9 +28,13 @@ $(function () {
30 28
 		$(".titdyna li").removeClass("tab_color");
31 29
 		$(".titdyna li:eq(2)").addClass("tab_color");
32 30
 		Ajax();
33
-	}else{
31
+	}else if(Itype=="4"){
32
+		state=4
33
+		$(".titdyna li").removeClass("tab_color");
34
+		$(".titdyna li:eq(3)").addClass("tab_color");
34 35
 		Ajax();
35
-	}
36
+	}else
37
+	Ajax();
36 38
 })
37 39
 $(".titdyna ul li").click(function () {
38 40
 	$(".titdyna li").removeClass("tab_color");
@@ -57,22 +59,32 @@ $(".titdyna ul li").click(function () {
57 59
 					if (n.State==0) {
58 60
 						stateText="待指派"
59 61
 					}else if (n.State==1) {
60
-						stateText="进行中"
62
+						stateText="待接单"
61 63
 					}else if(n.State==2){
64
+						stateText="待处理"
65
+					}else if(n.State==3){
66
+						stateText="退回待处理"
67
+					}else if(n.State==4){
68
+						stateText="异常退回待处理"
69
+					}else if(n.State==5){
70
+						stateText="处理中"
71
+						
72
+					}else if(n.State==10){
62 73
 						stateText="已完成"
63 74
 					}
75
+				
64 76
 					if (n.TypeClassName=="") {
65 77
 						titleText=n.GDLXName;
66 78
 					}else{
67 79
 						titleText=n.TypeClassName;
68 80
 					}
69
-					$('<li class="mui-table-view-cell order" data-index="' + n.WorkOrderID + '">' +
81
+					$('<li class="mui-table-view-cell order" data-index="' + n.ID + '">' +
70 82
 						'<div class="mui-table">' +
71
-						'<div class="mui-table-cell mui-col-xs-10">' +
83
+						'<div class="mui-table-cell mui-col-xs-8">' +
72 84
 						'<h4 class="mui-ellipsis">' + titleText +
73 85
 						'</h4><h5>' + n.CreateTime +
74 86
 						'</h5></div>'+
75
-						'<div class="mui-table-cell mui-col-xs-2 mui-text-right">'+
87
+						'<div class="mui-table-cell mui-col-xs-4 mui-text-right">'+
76 88
 						'<span class="mui-h5">'+stateText+
77 89
 						'</span></div></div></li>').appendTo('#OA_task');
78 90
 				});
@@ -110,11 +122,18 @@ function Ajax() {
110 122
 				$(data.rows).each(function(i, n) {
111 123
 					var stateText;
112 124
 					var titleText;
125
+					
113 126
 					if (n.State==0) {
114 127
 						stateText="待指派"
115 128
 					}else if (n.State==1) {
116
-						stateText="进行中"
129
+						stateText="待接单"
117 130
 					}else if(n.State==2){
131
+						stateText="待处理"
132
+					}else if(n.State==3){
133
+						stateText="退回待处理"
134
+					}else if(n.State==4){
135
+						stateText="处理中"
136
+					}else if(n.State==5){
118 137
 						stateText="已完成"
119 138
 					}
120 139
 					if (n.TypeClassName=="") {
@@ -123,7 +142,7 @@ function Ajax() {
123 142
 						
124 143
 						titleText=n.TypeClassName;
125 144
 					}
126
-					$('<li class="mui-table-view-cell order" data-index="' + n.WorkOrderID + '">' +
145
+					$('<li class="mui-table-view-cell order" data-index="' + n.ID + '">' +
127 146
 						'<div class="mui-table">' +
128 147
 						'<div class="mui-table-cell mui-col-xs-10">' +
129 148
 						'<h4 class="mui-ellipsis">' + titleText +

+ 150 - 0
WeChat/content/js/redeploy.js

@@ -0,0 +1,150 @@
1
+mui.init({})
2
+var UserCode = helper.cookies.get("usercode");
3
+var id = helper.request.queryString("id");
4
+var itype = helper.request.queryString("itype");
5
+var openid = helper.cookies.get("openid");
6
+//alert(id);
7
+$(function() {
8
+	//	接收人员
9
+	$('#order_recive').on('tap', function() {
10
+		//alert("ddd");
11
+		getReceiveUser();
12
+		$("#order_recive option").remove();
13
+	});
14
+	//返回列表
15
+	$('.return').on('tap', function() {
16
+		window.location.href = "orderDetail.html?id=" + id + '&type=' + itype;
17
+	});
18
+	//提交按钮
19
+	$('#submit').on('tap', function() {
20
+		if($('#recive_type').attr('data-index')== '') {
21
+			mui.alert('请选择部门!') //请输入工单类型
22
+		} else if($('#ower_recive').attr('data-index')== '') {
23
+			mui.alert('请选择接收人!') //请输入工单类型
24
+		} else if($('#order_reception').val() == '') {
25
+			mui.alert('请输入转派理由!') //填写详细描述
26
+		} else {
27
+			$.ajax({
28
+				type: "post",
29
+				dataType: 'json',
30
+				url: huayi.config.callcenter_url + '/WxLogin/DealWorkOrder',
31
+				async: true,
32
+				data: {
33
+					orderid: id, //否	strubg	工单编号
34
+					clbm: $('#recive_type').attr('data-index'), //是	int	部门Id
35
+					clid: $("#ower_recive").attr('data-index'), //否	int	接收人用户id
36
+					cont: $("#order_reception").text(), //否	int	处理内容
37
+					openid: openid, //微信openid,
38
+//					openid: 'oXF5e1mWpX5DajW5_yjNLPKb8ThE', //微信openid 测试用
39
+				},
40
+				success: function(data) {
41
+					if(data.state == "success") {
42
+						debugger
43
+						mui.toast('成功');
44
+						window.location.href="orderList.html?Itype=2";	
45
+					} else {
46
+						mui.toast(data.message);
47
+					}
48
+				}
49
+			});
50
+		}
51
+	})
52
+
53
+	//	接收部门
54
+	function getDepts() {}
55
+	var recive = [];
56
+	$.ajax({
57
+		type: "get",
58
+		url: huayi.config.callcenter_url + 'Department/GetDeptList',
59
+		async: false,
60
+		data: {},
61
+		dataType: 'json',
62
+		success: function(data) {
63
+			console.log(data)
64
+			recive = data.data;
65
+			//alert(JSON.stringify(data));
66
+		}
67
+	});
68
+	//接收人员
69
+	function getReceiveUser() {
70
+		renyuan = []
71
+		$.ajax({
72
+			url: huayi.config.callcenter_url + 'UserAccount/GetDeptUserList',
73
+			type: 'get',
74
+			data: {
75
+				deptid: $('#recive_type').attr('data-index'),
76
+			},
77
+			dataType: "json",
78
+			async: true,
79
+			success: function(res) {
80
+				if(res.state.toLowerCase() === "success") {
81
+					res = res.data;
82
+					if(res && res.length > -1) {
83
+						res.forEach(function(v, i) {
84
+							var obj = {};
85
+							obj.value = v.F_UserId;
86
+							obj.text = v.F_UserCode;
87
+							renyuan.push(obj);
88
+							//$('<option value="' + v.F_UserId + '">' + v.F_UserName + '</option>').appendTo('#order_recive');
89
+						});
90
+						cityPicker5.setData(renyuan);
91
+					}
92
+				}
93
+			},
94
+		});
95
+	}
96
+	(function($, doc) {
97
+		$.init();
98
+		$.ready(function() {
99
+			//接收部门
100
+			var RCiPickers = new $.PopPicker({
101
+				layer: 3
102
+			});
103
+			RCiPickers.setData(recive);
104
+			var RCs = doc.getElementById('showUserPicker1');
105
+			var RCResults = doc.getElementById('recive_type');
106
+			var RCResults2 = doc.getElementById('recive_type1');
107
+			var RCResults3 = doc.getElementById('recive_type2');
108
+			RCs.addEventListener('tap', function(event) {
109
+				RCiPickers.show(function(items) {
110
+					console.log(items)
111
+					if(items[2].text == undefined) {
112
+						RCResults.value = items[1].text;
113
+						RCResults.setAttribute("data-index", items[1].id);
114
+					} else
115
+					if(items[1].text == undefined) {
116
+						RCResults.value = items[0].text;
117
+						RCResults.setAttribute("data-index", items[0].id);
118
+					} else {
119
+						RCResults.value = items[2].text
120
+						RCResults.setAttribute("data-index", items[2].id);
121
+					}
122
+					//RCResults.value =items[0].text + "-" + items[1].text + "-" + items[2].text;
123
+					//RCResults.setAttribute("data-index", items[0].id);
124
+					//RCResults2.setAttribute("data-index", items[1].id);
125
+					//RCResults3.setAttribute("data-index", items[2].id);
126
+					//返回 false 可以阻止选择框的关闭
127
+					//return false;
128
+				});
129
+			}, false);
130
+			//	接收人员
131
+			cityPicker5 = new $.PopPicker();
132
+			var showCityPickerButton5 = doc.getElementById('showCityPicker5');
133
+			var cityResult5 = doc.getElementById('ower_recive');
134
+			showCityPickerButton5.addEventListener('tap', function(event) {
135
+				getReceiveUser();
136
+				cityPicker5.show(function(items) {
137
+					if (items[0].text!=undefined) {
138
+						cityResult5.value = items[0].text;
139
+						cityResult5.setAttribute("data-index", items[0].value);
140
+					}
141
+					
142
+					//返回 false 可以阻止选择框的关闭
143
+					//return false;
144
+				});
145
+			}, false);
146
+
147
+		})
148
+	})(mui, document);
149
+
150
+})

+ 112 - 5
WeChat/content/orderDetail.html

@@ -46,6 +46,62 @@
46 46
 		  	height: 100%;
47 47
 		  	display: none;   
48 48
 		}
49
+		/*弹框3*/
50
+		.pop_up_div3{
51
+			margin: auto;  
52
+		  	position: fixed;  
53
+		  	top: 0; 
54
+		  	left: 0; 
55
+		  	bottom: 0; 
56
+		  	right: 0;
57
+		  	width: 80%;
58
+		  	height:185px;
59
+		  	background: #FFFFFF;
60
+		  	z-index: 334;
61
+		  	-moz-border-radius: 5px; /* Firefox */
62
+		  	-webkit-border-radius: 5px; /* Safari 和 Chrome */
63
+		  	border-radius: 5px; /* Opera 10.5+, 以及使用了IE-CSS3的IE浏览器 */
64
+		  	display: none; 
65
+		  	
66
+		}
67
+		.pop_up_div3 .tit{
68
+			width: 100%;
69
+			line-height: 44px;
70
+			height: 44px;
71
+			text-align: center;
72
+			font-size: 13px;
73
+			color: #666666;
74
+		}
75
+		.pop_up_div3 .contain{
76
+			width: 90%;
77
+			margin: 0 auto;
78
+		}
79
+		.pop_up_div3 .contain textarea{
80
+			width:100%;
81
+			height: 102px;
82
+			background: #f5f5f6;
83
+			text-indent: 2em;
84
+			font-size: 12px;
85
+			padding: 5px;
86
+			line-height: 20px;
87
+			margin: 0;
88
+			border: none;
89
+		}
90
+		.pop_up_div3 .btn{
91
+			width: 65%;
92
+			margin: 0 auto;
93
+			overflow: hidden;
94
+		}
95
+		.pop_up_div3 .btn button{
96
+			padding:3px 25px !important;
97
+		}
98
+		.pop_up_div3 .btn .fl{
99
+			float: left;
100
+			color: #666666;
101
+		}
102
+		.pop_up_div3 .btn .fr{
103
+			float: right;
104
+		}
49 105
 		/*弹框4*/
50 106
 		.pop_up_div4{
51 107
 			margin: auto;  
@@ -55,7 +111,7 @@
55 111
 		  	bottom: 0; 
56 112
 		  	right: 0;
57 113
 		  	width: 80%;
58
-		  	height:185px;
114
+		  	height:235px;
59 115
 		  	background: #FFFFFF;
60 116
 		  	z-index: 334;
61 117
 		  	-moz-border-radius: 5px; /* Firefox */
@@ -102,6 +158,26 @@
102 158
 		.pop_up_div4 .btn .fr{
103 159
 			float: right;
104 160
 		}
161
+		.mui-left{
162
+			float: left;
163
+			clear: none;
164
+		}
165
+		.mui-radio input[type=radio]:before {
166
+		    font-size: 20px;
167
+		    vertical-align: middle;
168
+		}
169
+		.mui-radio.mui-left input[type=radio] {
170
+		    line-height: 24px!important;
171
+		}
172
+		.mui-input-row label{
173
+			padding: 11px 0px 11px 15px;
174
+			
175
+			
176
+		}
177
+		.labelText{
178
+			padding-right: 0px !important;
179
+    		padding-left: 45px !important;
180
+		}
105 181
 	</style>
106 182
 	<body>
107 183
 		<div class="mui-nav">
@@ -122,7 +198,7 @@
122 198
 					<div class="mui-input-row">
123 199
 						<label class="label font-color5">工单来源</label>
124 200
 						<div class="mui-radio mui-right radio_box">
125
-							<label class="font-color6" id="GDLYName"></label>
201
+							<label class="font-color6" id="gdlyName"></label>
126 202
 						</div>
127 203
 					</div>
128 204
 				</li>
@@ -178,19 +254,28 @@
178 254
 				<h4 class="mui-ellipsis size-16 mui_btn1_tit">操作按钮:</h4>
179 255
 				<div class="type1">
180 256
 					<!--待接单-->
181
-					<div class="mui_btn1 dispose1">
257
+					<div class="mui_btn1 dispose2">
182 258
 						<li class=" mui-media mui-col-xs-3">
183 259
 							<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block redeploy">接单</button>
184 260
 						</li>
261
+						<li class="mui-media mui-col-xs-3 sendBackBtn">
262
+							<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block backBtn">退回</button>
263
+						</li>
185 264
 					</div>
186 265
 					<!--待处理-->
187
-					<div class="mui_btn1 dispose2">
266
+					<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
+						<li class=" mui-media mui-col-xs-3 allotBtn">
271
+							<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block allot">分配</button>
272
+						</li>
188 273
 						<li class=" mui-media mui-col-xs-3">
189 274
 							<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block deal">处理</button>
190 275
 						</li>
191 276
 					</div>
192 277
 					<!--已完成-->
193
-					<div class="mui_btn1 dispose3">
278
+					<div class="mui_btn1 dispose4">
194 279
 						<!--<li class=" mui-media mui-col-xs-3">
195 280
 							<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block edit">修改</button>
196 281
 						</li>-->
@@ -218,6 +303,17 @@
218 303
 		<!--弹框4-->
219 304
 		<div class="pop_up_div4">
220 305
 			<div class="tit">请输入处理内容</div>
306
+			<div class="mui-input-row">
307
+				<label class="label" style="float: left; width: 30%;">处理状态:</label>
308
+				<div class="mui-input-row mui-radio mui-left order_state">
309
+					<label class="labelText">完结</label>
310
+					<input type="radio" type="radio" name="form" checked="checked" value="1" class="size-14" />
311
+				</div>
312
+				<div class="mui-input-row mui-radio mui-left order_state">
313
+					<label class="labelText">未完结</label>
314
+					<input type="radio" type="radio" name="form" value="0" class="size-14" />
315
+				</div>
316
+			</div>
221 317
 			<div class="contain">
222 318
 				<textarea class="textcont_deal"></textarea>
223 319
 			</div>
@@ -226,6 +322,17 @@
226 322
 				<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary fr">确定</button>
227 323
 			</div>
228 324
 		</div>
325
+		<!--弹框4-->
326
+		<div class="pop_up_div3">
327
+			<div class="tit">请输入退回内容</div>
328
+			<div class="contain">
329
+				<textarea class="textcont_back"></textarea>
330
+			</div>
331
+			<div class="btn">
332
+				<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-royal fl">取消</button>
333
+				<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary fr">确定</button>
334
+			</div>
335
+		</div>
229 336
 		<script src="../js/mui.min.js?"></script>
230 337
 		<script src="../js/mui.picker.js"></script>
231 338
 		<script src="../js/mui.poppicker.js"></script>

+ 8 - 3
WeChat/content/orderList.html

@@ -18,6 +18,7 @@
18 18
 				width: 100%;
19 19
 				top: 0px;
20 20
 				background: #FFFFFF;
21
+				z-index: 3;
21 22
 			}
22 23
 			.titdyna ul{
23 24
 				padding: 0;
@@ -26,7 +27,7 @@
26 27
 			}
27 28
 			.titdyna ul li{
28 29
 				display: block;
29
-				width: 33%;
30
+				width: 25%;
30 31
 				float: left;
31 32
 				text-align: center;
32 33
 				height: 38px;
@@ -35,10 +36,11 @@
35 36
 			}
36 37
 			.tab_color{color: #2cc6a7 !important;}
37 38
 			#OA_task{
38
-				margin-top: 46px;
39
+				/*margin-top: 46px;*/
40
+				margin-top: 42px;
39 41
 			}
40 42
 			.cont-margin{
41
-				margin-top: 46px;
43
+				border-top: 1px solid #CCCCCC;
42 44
 			}
43 45
 		</style>
44 46
 	</head>
@@ -60,6 +62,9 @@
60 62
 					<li data-index="3">
61 63
 						已完成
62 64
 					</li>
65
+					<li data-index="4">
66
+						参与的
67
+					</li>
63 68
 				</ul>
64 69
 			</div>
65 70
  		    <ul id="OA_task" class="mui-table-view mui-table-view-striped mui-table-view-condensed">

+ 60 - 0
WeChat/content/redeploy.html

@@ -0,0 +1,60 @@
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 href="../css/mui.picker.css" rel="stylesheet" />
12
+		<link href="../css/mui.poppicker.css" rel="stylesheet" />
13
+		<link href="../css/iconfont.css"  rel="stylesheet"/>
14
+		<link href="css/AddWorkolder.css"  rel="stylesheet"/>
15
+	</head>
16
+	<body>
17
+		<div class="mui-nav">
18
+			<a class="mui-icon mui-icon-arrowleft return"></a>
19
+			分配工单
20
+		</div>
21
+		<div class="mui-content" style="margin-top: 44px;">
22
+			<ul class="mui-table-view">
23
+				<li class="mui-table-view-cell receive" id="showUserPicker1">
24
+					<div class="mui-input-row">
25
+						<label class="label">接收部门:</label>
26
+						<input type="text" id='recive_type' class="ui-alert type_con size-14" data-index="" readonly="readonly" />
27
+						<a href=""><span class="type_down mui-icon mui-icon mui-icon-arrowdown mui-pull-right"></span></a>
28
+						<input id="recive_type1" style="display: none;" data-index=""></input>
29
+						<input id="recive_type2" style="display: none;" data-index=""></input>
30
+					</div>
31
+				</li>
32
+				<li class="mui-table-view-cell receive" id="showCityPicker5">
33
+					<div class="mui-input-row">
34
+						<label class="label">接收人员:</label>
35
+						<input type="text" id='ower_recive' class="ui-alert type_con size-14" data-index="" readonly="readonly" />
36
+						<a href=""><span class="type_down mui-icon mui-icon mui-icon-arrowdown mui-pull-right"></span></a>
37
+					</div>
38
+				</li>
39
+				<li class="mui-table-view-cell">
40
+					<div class="mui-input-row">
41
+						<label class="label">转派理由:</label>
42
+						<textarea class="ztext content size-14" placeholder="请输入转派理由" name="" id="order_reception" rows="3" cols="" placeholder="请详细描述您的问题和建议..."></textarea>
43
+					</div>
44
+				</li>
45
+			</ul>
46
+			<div class="submit-btn">
47
+				<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block block_button submit" id="submit">提交</button>
48
+			</div>
49
+		</div>
50
+		<script src="../js/mui.js"></script>
51
+		<script src="../js/mui.picker.js"></script>
52
+		<script src="../js/mui.poppicker.js"></script>
53
+		<script src="js/city.data-3.js"></script>
54
+		<script src="../js/jquery.min.js"></script>
55
+		<script src="../Script/Common/huayi.config.js"></script>
56
+		<script src="../Script/Common/huayi.http.js"></script>
57
+		<script src="js/redeploy.js"></script>
58
+	</body>
59
+
60
+</html>

+ 6 - 3
WeChat/index.html

@@ -16,12 +16,10 @@
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 openid = 'oXF5e1mWpX5DajW5_yjNLPKb8ThE';
20 19
 			var code = helper.request.queryString("code");
21 20
 			var menucode = helper.request.queryString("menucode");
22 21
 			var typeUser = helper.cookies.get("typeUser");
23 22
 			if(!openid) {
24
-				
25 23
 				$.ajax({
26 24
 					type: "get",
27 25
 					url: huayi.config.callcenter_url + 'WxLogin/GetOpenId',
@@ -31,7 +29,6 @@
31 29
 					dataType: 'json',
32 30
 					success: function(result) {
33 31
 						if(result.state.toLowerCase() == "success") {
34
-							
35 32
 							var openid=result.data.openid;
36 33
 							window.location.replace("login.html?menuCode="+menucode+'&openid='+openid);
37 34
 						}
@@ -64,6 +61,9 @@
64 61
 					case "GDLB":
65 62
 						window.location.replace("content/orderList.html");
66 63
 						break; //工单列表
64
+					case "GDXQ":
65
+						window.location.replace("content/orderDetail.html");
66
+						break; //工单详情
67 67
 					default:
68 68
 						window.location.replace("error.html");
69 69
 						break;
@@ -89,6 +89,9 @@
89 89
 					case "GDLB":
90 90
 						window.location.replace("content/orderList.html");
91 91
 						break; //工单列表
92
+					case "GDXQ":
93
+						window.location.replace("content/orderDetail.html");
94
+						break; //工单详情
92 95
 					default:
93 96
 						window.location.replace("error.html");
94 97
 						break;

+ 7 - 0
WeChat/login.html

@@ -98,6 +98,7 @@
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);
101 102
 							debugger
102 103
 							if (openid) {
103 104
 								helper.cookies.set("openid", openid, 7);
@@ -132,6 +133,9 @@
132 133
 					case "GDLB":
133 134
 						window.location.replace("content/orderList.html");
134 135
 						break; //工单列表
136
+					case "GDXQ":
137
+						window.location.replace("content/orderDetail.html");
138
+						break; //工单详情
135 139
 					default:
136 140
 						window.location.replace("error.html");
137 141
 						break;
@@ -157,6 +161,9 @@
157 161
 					case "GDLB":
158 162
 						window.location.replace("content/orderList.html");
159 163
 						break; //工单列表
164
+					case "GDXQ":
165
+						window.location.replace("content/orderDetail.html");
166
+						break; //工单详情
160 167
 					default:
161 168
 						window.location.replace("error.html");
162 169
 						break;