ソースを参照

工单按钮及超时时限修改

liuzhen 5 年 前
コミット
193f9bba2e
共有5 個のファイルを変更した625 個の追加118 個の削除を含む
  1. 3 9
      CallCenterWeb.UI/js/WorkOrder/WorkOrder.js
  2. 8 9
      WeChat/client-side/details.html
  3. 5 8
      WeChat/details.html
  4. 218 0
      WeChat/fisrt_comprehensive/css/details.css
  5. 391 92
      WeChat/fisrt_comprehensive/details.html

+ 3 - 9
CallCenterWeb.UI/js/WorkOrder/WorkOrder.js

@@ -1217,17 +1217,11 @@ function getWorkOrderDetails() {
1217 1217
 				$("#xq_details").text(data.F_DealContent);//处理详情
1218 1218
 				$("#xq_bitye").text(data.F_VisitRemarks); //备注
1219 1219
 				if (data.F_limit!=0) {
1220
-					$("#Work_overtime").text(data.F_limit); //超时时限
1220
+					$("#Work_overtime").text(data.F_limitTime); //超时时限
1221 1221
 				}
1222
-				if (data.RemainingTime>=0) {
1223
-					$(".surplusText").html("剩余时间:")
1224
-					$("#surplus").text(data.RemainingTime+"小时")
1225
-					if (data.RemainingTime==0) {
1226
-						$("#surplus").text("")
1227
-					}
1228
-				} else if(data.RemainingTime<0){
1222
+				if (data.RemainingTime) {
1229 1223
 					$(".surplusText").html("超时时间:")
1230
-					$("#surplus").text(Math.abs(data.RemainingTime)+"小时")
1224
+					$("#surplus").text(data.RemainingTime)
1231 1225
 				}
1232 1226
 				
1233 1227
 				$("#xq_zhujie").text(data.F_Annotation); //注解

+ 8 - 9
WeChat/client-side/details.html

@@ -840,6 +840,7 @@
840 840
 			var openid = helper.cookies.get("openid");
841 841
 			var UserType = helper.cookies.get("usertype");
842 842
 			console.log(UserType)
843
+			console.log(itypeQs)
843 844
 			mui.previewImage();
844 845
 			if(isReply == 0) {
845 846
 				$('.btn_reply').show();
@@ -946,7 +947,8 @@
946 947
 								$(".type8").hide();
947 948
 								$(".type9").hide();
948 949
 							}
949
-							
950
+							console.log(itype)
951
+							console.log(UserType)
950 952
 							if(itype == 0) {
951 953
 								$(".dispose1").hide();
952 954
 								$(".dispose2").show();
@@ -1106,8 +1108,8 @@
1106 1108
 							$(".Work_last").text(result.F_DealResult); //处理结果
1107 1109
 							$("#Work_workOrderID").text(result.F_DealReasons); //未处理原因
1108 1110
 							$("#Work_wor").text(result.F_IsVisit); //是否回访
1109
-							if(result.F_limit != 0) {
1110
-								$("#Work_overtime").text(result.F_limit); //超时时限
1111
+							if(result.F_limitTime != 0) {
1112
+								$("#Work_overtime").text(result.F_limitTime); //超时时限
1111 1113
 							}
1112 1114
 
1113 1115
 							$("#xq_suggestion").text(result.SuperiorOpinion); //上级处理意见
@@ -1115,13 +1117,10 @@
1115 1117
 							$("#Work_note").text("注解内容:" + result.F_Annotation); //注解内容
1116 1118
 							$("#Work_timeOut").text("超期原因:" + result.F_Reasontimeout); //注解内容
1117 1119
 							
1118
-							if(result.RemainingTime >= 0) {
1119
-								$(".surplusText").html("剩余时间")
1120
-								$("#surplus").text(result.RemainingTime + "小时")
1121
-							} else if(result.RemainingTime < 0) {
1120
+							if(result.RemainingTime) {
1122 1121
 								$(".surplusText").html("超时时间")
1123
-								$("#surplus").text(Math.abs(result.RemainingTime) + "小时")
1124
-							}
1122
+								$("#surplus").text(result.RemainingTime)
1123
+							} 
1125 1124
 							if($("#section").text == "质量管理部") {
1126 1125
 								$("#depment").show();
1127 1126
 							} else {

+ 5 - 8
WeChat/details.html

@@ -624,8 +624,8 @@
624 624
 							$(".Work_last").text(result.F_DealResult); //处理结果
625 625
 							$("#Work_workOrderID").text(result.F_DealReasons); //未处理原因
626 626
 							$("#Work_wor").text(result.F_IsVisit); //是否回访
627
-							if(result.F_limit != 0) {
628
-								$("#Work_overtime").text(result.F_limit); //超时时限
627
+							if(result.F_limitTime != 0) {
628
+								$("#Work_overtime").text(result.F_limitTime); //超时时限
629 629
 							}
630 630
 
631 631
 							$("#xq_suggestion").text(result.SuperiorOpinion); //上级处理意见
@@ -633,13 +633,10 @@
633 633
 							$("#Work_note").text("注解内容:" + result.F_Annotation); //注解内容
634 634
 							$("#Work_timeOut").text("超期原因:" + result.F_Reasontimeout); //注解内容
635 635
 							
636
-							if(result.RemainingTime >= 0) {
637
-								$(".surplusText").html("剩余时间")
638
-								$("#surplus").text(result.RemainingTime + "小时")
639
-							} else if(result.RemainingTime < 0) {
636
+							if(result.RemainingTime) {
640 637
 								$(".surplusText").html("超时时间")
641
-								$("#surplus").text(Math.abs(result.RemainingTime) + "小时")
642
-							}
638
+								$("#surplus").text(result.RemainingTime)
639
+							} 
643 640
 							if($("#section").text == "质量管理部") {
644 641
 								$("#depment").show();
645 642
 							} else {

+ 218 - 0
WeChat/fisrt_comprehensive/css/details.css

@@ -919,6 +919,78 @@ a {
919 919
 		opacity: 0;
920 920
 	}
921 921
 }
922
+
923
+/*申请延时*/
924
+
925
+.pop_up_div7 {
926
+	margin: auto;
927
+	position: fixed;
928
+	left: 10%;
929
+	bottom: 30%;
930
+	width: 80%;
931
+	height: 240px;
932
+	background: #FFFFFF;
933
+	z-index: 334;
934
+	-moz-border-radius: 5px;
935
+	/* Firefox */
936
+	-webkit-border-radius: 5px;
937
+	/* Safari 和 Chrome */
938
+	border-radius: 5px;
939
+	/* Opera 10.5+, 以及使用了IE-CSS3的IE浏览器 */
940
+	display: none;
941
+}
942
+
943
+.pop_up_div7 .tit {
944
+	width: 100%;
945
+	line-height: 44px;
946
+	height: 44px;
947
+	text-align: center;
948
+	font-size: 13px;
949
+	color: #666666;
950
+}
951
+
952
+.pop_up_div7 .contain {
953
+	width: 90%;
954
+	margin: 0 auto;
955
+}
956
+
957
+.pop_up_div7 .contain textarea {
958
+	width: 100%;
959
+	height: 120px;
960
+	background: #f5f5f6;
961
+	text-indent: 2em;
962
+	font-size: 12px;
963
+	padding: 5px;
964
+	line-height: 20px;
965
+	margin: 0;
966
+	border: none;
967
+}
968
+
969
+.pop_up_div7 .btn {
970
+	width: 65%;
971
+	margin: 0 auto;
972
+	/*overflow: hidden;*/
973
+	position: absolute;
974
+	left: 20%;
975
+	bottom: 60px;
976
+}
977
+
978
+.pop_up_div7 .btn button {
979
+	padding: 3px 25px !important;
980
+}
981
+
982
+.pop_up_div7 .btn .fl {
983
+	position: absolute;
984
+	top: 10px;
985
+	left: 5%;
986
+	color: #666666;
987
+}
988
+
989
+.pop_up_div7 .btn .fr {
990
+	position: absolute;
991
+	top: 10px;
992
+	right: 5%;
993
+}
922 994
 /*注解*/
923 995
 .pop_up_div11 {
924 996
 	margin: 0 auto;
@@ -988,7 +1060,153 @@ a {
988 1060
 	top: 10px;
989 1061
 	right: 5%;
990 1062
 }
1063
+.type1,
1064
+.type2,
1065
+.type3,
1066
+.type4,
1067
+.type5 {
1068
+	display: none;
1069
+}
1070
+
1071
+.pop_up_div9 {
1072
+	margin: 0 auto;
1073
+	position: fixed;
1074
+	left: 10%;
1075
+	bottom: 30%;
1076
+	width: 80%;
1077
+	height: 300px;
1078
+	background: #FFFFFF;
1079
+	z-index: 334;
1080
+	-moz-border-radius: 5px;
1081
+	/* Firefox */
1082
+	-webkit-border-radius: 5px;
1083
+	/* Safari 和 Chrome */
1084
+	border-radius: 5px;
1085
+	/* Opera 10.5+, 以及使用了IE-CSS3的IE浏览器 */
1086
+	display: none;
1087
+}
1088
+
1089
+.pop_up_div9 .tit {
1090
+	width: 100%;
1091
+	line-height: 44px;
1092
+	height: 44px;
1093
+	text-align: center;
1094
+	font-size: 13px;
1095
+	color: #666666;
1096
+}
1097
+
1098
+.pop_up_div9 .contain {
1099
+	width: 90%;
1100
+	margin: 0 auto;
1101
+}
1102
+
1103
+.pop_up_div9 .contain textarea {
1104
+	width: 100%;
1105
+	height: 180px;
1106
+	background: #f5f5f6;
1107
+	text-indent: 2em;
1108
+	font-size: 12px;
1109
+	padding: 5px;
1110
+	line-height: 20px;
1111
+	margin: 0;
1112
+	border: none;
1113
+}
1114
+
1115
+.pop_up_div9 .btn {
1116
+	width: 65%;
1117
+	margin: 0 auto;
1118
+	/*overflow: hidden;*/
1119
+	position: absolute;
1120
+	left: 20%;
1121
+	bottom: 60px;
1122
+}
1123
+
1124
+.pop_up_div9 .btn button {
1125
+	padding: 3px 25px !important;
1126
+}
1127
+
1128
+.pop_up_div9 .btn .fl {
1129
+	position: absolute;
1130
+	top: 10px;
1131
+	left: 5%;
1132
+	color: #666666;
1133
+}
1134
+
1135
+.pop_up_div9 .btn .fr {
1136
+	position: absolute;
1137
+	top: 10px;
1138
+	right: 5%;
1139
+}
1140
+
1141
+.pop_up_div10 {
1142
+	margin: 0 auto;
1143
+	position: fixed;
1144
+	left: 10%;
1145
+	bottom: 30%;
1146
+	width: 80%;
1147
+	height: 180px;
1148
+	background: #FFFFFF;
1149
+	z-index: 334;
1150
+	-moz-border-radius: 5px;
1151
+	/* Firefox */
1152
+	-webkit-border-radius: 5px;
1153
+	/* Safari 和 Chrome */
1154
+	border-radius: 5px;
1155
+	/* Opera 10.5+, 以及使用了IE-CSS3的IE浏览器 */
1156
+	display: none;
1157
+}
1158
+
1159
+.pop_up_div10 .tit {
1160
+	width: 100%;
1161
+	line-height: 44px;
1162
+	height: 44px;
1163
+	text-align: center;
1164
+	font-size: 13px;
1165
+	color: #666666;
1166
+}
1167
+
1168
+.pop_up_div10 .contain {
1169
+	width: 90%;
1170
+	margin: 0 auto;
1171
+}
1172
+
1173
+.pop_up_div10 .contain textarea {
1174
+	width: 100%;
1175
+	height: 180px;
1176
+	background: #f5f5f6;
1177
+	text-indent: 2em;
1178
+	font-size: 12px;
1179
+	padding: 5px;
1180
+	line-height: 20px;
1181
+	margin: 0;
1182
+	border: none;
1183
+}
1184
+
1185
+.pop_up_div10 .btn {
1186
+	width: 65%;
1187
+	margin: 0 auto;
1188
+	/*overflow: hidden;*/
1189
+	position: absolute;
1190
+	left: 20%;
1191
+	bottom: 60px;
1192
+}
991 1193
 
1194
+.pop_up_div10 .btn button {
1195
+	padding: 3px 25px !important;
1196
+}
1197
+
1198
+.pop_up_div10 .btn .fl {
1199
+	position: absolute;
1200
+	top: 10px;
1201
+	left: 5%;
1202
+	color: #666666;
1203
+}
1204
+
1205
+.pop_up_div10 .btn .fr {
1206
+	position: absolute;
1207
+	top: 10px;
1208
+	right: 5%;
1209
+}
992 1210
 
993 1211
 
994 1212
 

+ 391 - 92
WeChat/fisrt_comprehensive/details.html

@@ -500,9 +500,139 @@
500 500
 			<ul class="mui-table-view mui-grid-view">
501 501
 				<h4 class="mui-ellipsis size-16 mui_btn1_tit">操作按钮:</h4>
502 502
 				<div class="type1">
503
-					<li class=" mui-media mui-col-xs-3">
504
-						<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block noteBtn">注解</button>
505
-					</li>
503
+					<!--待派单-->
504
+					<div class="mui_btn1 dispose1">
505
+						<li class=" mui-media mui-col-xs-3 shenpi">
506
+							<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block receiving">办理</button>
507
+						</li>
508
+						<li class=" mui-media mui-col-xs-3">
509
+							<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block noteBtn">注解</button>
510
+						</li>
511
+					</div>
512
+					<!--待处理-->
513
+					<div class="mui_btn1 dispose2">
514
+						<li class=" mui-media mui-col-xs-3">
515
+							<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block edit">修改</button>
516
+						</li>
517
+						<li class=" mui-media mui-col-xs-3">
518
+							<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block sendback">退回</button>
519
+						</li>
520
+						<li class=" mui-media mui-col-xs-3">
521
+							<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block noteBtn">注解</button>
522
+						</li>
523
+					</div>
524
+					<!--已完成-->
525
+					<div class="mui_btn1 dispose3">
526
+						<li class=" mui-media mui-col-xs-3">
527
+							<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block edit">修改</button>
528
+						</li>
529
+						<li class=" mui-media mui-col-xs-3">
530
+							<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block noteBtn">注解</button>
531
+						</li>
532
+					</div>
533
+					<div class="mui_btn1 dispose4">
534
+						<!--<li class=" mui-media mui-col-xs-3 itypeQs">
535
+							<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block edit">修改</button>
536
+						</li>-->
537
+						<li class=" mui-media mui-col-xs-3 shenpi">
538
+							<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block receiving">办理</button>
539
+						</li>
540
+						<li class=" mui-media mui-col-xs-3">
541
+							<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block noteBtn">注解</button>
542
+						</li>
543
+					</div>
544
+
545
+				</div>
546
+				<div class="type2">
547
+					<!--待派单-->
548
+					<div class="mui_btn1 dispose1">
549
+						<li class=" mui-media mui-col-xs-3">
550
+							<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block rece">接单</button>
551
+						</li>
552
+						<li class=" mui-media mui-col-xs-3">
553
+							<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block sendback">退回</button>
554
+						</li>
555
+						<li class=" mui-media mui-col-xs-3">
556
+							<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block noteBtn">注解</button>
557
+						</li>
558
+					</div>
559
+					<!--待处理-->
560
+					<div class="mui_btn1 dispose2">
561
+						<li class=" mui-media mui-col-xs-3">
562
+							<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block allot">指派</button>
563
+						</li>
564
+						<li class=" mui-media mui-col-xs-3">
565
+							<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block abnormal">异常退回</button>
566
+						</li>
567
+						<li class=" mui-media mui-col-xs-3">
568
+							<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block postpone">申请延期</button>
569
+						</li>
570
+						<li class=" mui-media mui-col-xs-3">
571
+							<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block noteBtn">注解</button>
572
+						</li>
573
+						<li class=" mui-media mui-col-xs-3">
574
+							<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block disp">完结</button>
575
+						</li>
576
+					</div>
577
+				</div>
578
+				<div class="type3">
579
+					<div class="mui_btn1 dispose2">
580
+						<li class=" mui-media mui-col-xs-3">
581
+							<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block approva">高层办理</button>
582
+						</li>
583
+						<li class=" mui-media mui-col-xs-3">
584
+							<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block noteBtn">注解</button>
585
+						</li>
586
+					</div>
587
+				</div>
588
+				<div class="type4">
589
+					<!--待派单-->
590
+					<div class="mui_btn1  ">
591
+						<li class=" mui-media mui-col-xs-3">
592
+							<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block receiving">接单</button>
593
+						</li>
594
+						<li class=" mui-media mui-col-xs-3">
595
+							<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block noteBtn">注解</button>
596
+						</li>
597
+					</div>
598
+					<!--待处理-->
599
+					<div class="mui_btn1 dispose2">
600
+						<li class=" mui-media mui-col-xs-3">
601
+							<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block daal">处理</button>
602
+						</li>
603
+						<li class=" mui-media mui-col-xs-3">
604
+							<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block noteBtn">注解</button>
605
+						</li>
606
+					</div>
607
+				</div>
608
+				<div class="type5">
609
+					<!--待处理-->
610
+					<div class="mui_btn1 dispose3">
611
+						<li class=" mui-media mui-col-xs-3">
612
+							<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block daal">催单</button>
613
+						</li>
614
+						<li class=" mui-media mui-col-xs-3">
615
+							<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block noteBtn">注解</button>
616
+						</li>
617
+					</div>
618
+					<!--待处理-->
619
+					<div class="mui_btn1 dispose1">
620
+						<li class=" mui-media mui-col-xs-3">
621
+							<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block daal">催单</button>
622
+						</li>
623
+						<li class=" mui-media mui-col-xs-3">
624
+							<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block noteBtn">注解</button>
625
+						</li>
626
+					</div>
627
+					<!--已完成-->
628
+					<div class="mui_btn1 dispose2">
629
+						<li class=" mui-media mui-col-xs-3">
630
+							<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block comment">评论</button>
631
+						</li>
632
+						<li class=" mui-media mui-col-xs-3">
633
+							<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block noteBtn">注解</button>
634
+						</li>
635
+					</div>
506 636
 				</div>
507 637
 			</ul>
508 638
 			<div id="slider" class="mui-slider">
@@ -599,17 +729,6 @@
599 729
 				<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary fr showUserPicker" id="showUserPicker">下一步</button>
600 730
 			</div>
601 731
 		</div>
602
-		<!--注解-->
603
-		<div class="pop_up_div11">
604
-			<div class="tit">请输入注解内容</div>
605
-			<div class="contain">
606
-				<textarea class="noteReaa"></textarea>
607
-			</div>
608
-			<div class="btn">
609
-				<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-royal fl">取消</button>
610
-				<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary fr">确定</button>
611
-			</div>
612
-		</div>
613 732
 		<!--//申请延期弹出框-->
614 733
 		<div class="pop_up_div8">
615 734
         	<div class="tit">请输入延期说明</div>
@@ -641,6 +760,49 @@
641 760
 				<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary fr showUserPicker" id="showUserPicker">确定</button>
642 761
 			</div>
643 762
 		</div>
763
+		<!--审批弹窗-->
764
+		<div class="pop_up_div9">
765
+			<div class="tit">请输入审批意见</div>
766
+			<div class="contain">
767
+				<textarea class="reasaa" name="" rows="" cols="" style="height: 50px;"></textarea>
768
+			</div>
769
+			<div class="tit">审批结果</div>
770
+			<div class="mui-input-row mui-radio mui-left radio_box order_ty">
771
+				<label>同意上报</label>
772
+				<input type="radio" type="radio" name="form" checked="checked" value="0" class="size-14" />
773
+			</div>
774
+			<div class="mui-input-row mui-radio mui-left radio_box order_ty">
775
+				<label>驳回修订</label>
776
+				<input type="radio" type="radio" name="form" value="1" class="size-14" />
777
+			</div>
778
+
779
+			<div class="btn">
780
+				<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-royal fl">取消</button>
781
+				<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary fr showUserPicker" id="showUserPicker">确定</button>
782
+			</div>
783
+		</div>
784
+		<!--高层审批弹框-->
785
+		<div class="pop_up_div10">
786
+			<div class="tit">请输入审批意见</div>
787
+			<div class="contain">
788
+				<textarea class="reaa" name="" rows="" cols="" style="height: 50px;"></textarea>
789
+			</div>
790
+			<div class="btn">
791
+				<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-royal fl">取消</button>
792
+				<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary fr showUserPicker" id="showUserPicker">确定</button>
793
+			</div>
794
+		</div>
795
+		<!--弹框4-->
796
+		<div class="pop_up_div11">
797
+			<div class="tit">请输入注解内容</div>
798
+			<div class="contain">
799
+				<textarea class="noteReaa"></textarea>
800
+			</div>
801
+			<div class="btn">
802
+				<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-royal fl">取消</button>
803
+				<button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary fr">确定</button>
804
+			</div>
805
+		</div>
644 806
 		<script src="../js/jquery.min.js"></script>
645 807
 		<script src="js/details.js"></script>
646 808
 		<script src="../Script/Common/huayi.config.js"></script>
@@ -651,48 +813,69 @@
651 813
 		<script src="js/city.data-3.js"></script>
652 814
 		<script>
653 815
 			var id = helper.request.queryString("id");
654
-			var itype = helper.request.queryString("itype");		
816
+			var itype = helper.request.queryString("itype");	
817
+			var itypeQs = helper.request.queryString("itype");
818
+			var state = helper.request.queryString("state");
655 819
 			var isReply = helper.request.queryString("IsReply"); // 是否已回复 0 未回复 1已回复
656 820
 			var openid = helper.cookies.get("openid");
657 821
 			var UserType = helper.cookies.get("usertype");
822
+			console.log(itypeQs)
658 823
 //			var openid = "oXF5e1mWpX5DajW5_yjNLPKb8ThE";
659
-			if(isReply == 0){
824
+			if(isReply == 0) {
660 825
 				$('.btn_reply').show();
661 826
 			}
662
-			
663
-			if (UserType==-1) {
827
+			if(UserType == -1) {
664 828
 				$(".type1").hide();
665 829
 				$(".type2").hide();
666
-				$(".type3").hide();
830
+				$(".type3").show();
667 831
 				$(".type4").hide();
668 832
 				$(".type5").hide();
669
-				
670
-			} else if(UserType==0){
671
-//				alert(UserType)
672
-				$(".type1").hide();
833
+			} else if(UserType == 0) {
834
+				$(".type1").show();
673 835
 				$(".type2").hide();
674 836
 				$(".type3").hide();
675 837
 				$(".type4").hide();
676 838
 				$(".type5").hide();
677
-			}else if(UserType==1){
678
-//				alert(UserType)
839
+				$(".type6").hide();
840
+				$(".type7").hide();
841
+				$(".type8").hide();
842
+				$(".type9").hide();
843
+			} else if(UserType == 1) {
679 844
 				$(".type1").hide();
680 845
 				$(".type2").hide();
681
-				$(".type3").hide();
846
+				$(".type3").show();
682 847
 				$(".type4").hide();
683 848
 				$(".type5").hide();
684
-			}else if(UserType==2){
849
+			} else if(UserType == 2) {
685 850
 				$(".type1").hide();
686 851
 				$(".type2").hide();
687
-				$(".type3").hide();
852
+				$(".type3").show();
688 853
 				$(".type4").hide();
689 854
 				$(".type5").hide();
690
-			}else if(UserType==3){
855
+				$(".type6").hide();
856
+				$(".type7").hide();
857
+				$(".type8").hide();
858
+				$(".type9").hide();
859
+			} else if(UserType == 3) {
691 860
 				$(".type1").hide();
861
+				$(".type2").show();
862
+				$(".type3").hide();
863
+				$(".type4").hide();
864
+				$(".type5").hide();
865
+				$(".type6").hide();
866
+				$(".type7").hide();
867
+				$(".type8").hide();
868
+				$(".type9").hide();
869
+			} else if(UserType == 4) {
870
+				$(".type1").show();
692 871
 				$(".type2").hide();
693 872
 				$(".type3").hide();
694 873
 				$(".type4").hide();
695 874
 				$(".type5").hide();
875
+				$(".type6").hide();
876
+				$(".type7").hide();
877
+				$(".type8").hide();
878
+				$(".type9").hide();
696 879
 			}
697 880
 			Ajax();
698 881
 			flow();
@@ -717,24 +900,123 @@
717 900
 							} else {
718 901
 								$("#source").show();
719 902
 							}
720
-							$('.type1').show();
903
+//							$('.type1').show();
721 904
 							var itype=result.F_State;
722 905
 //							
906
+							var itype = result.F_State;
907
+							if(state == 1) {
908
+								//								alert(state);
909
+								$(".type1").hide();
910
+								$(".type2").hide();
911
+								$(".type3").hide();
912
+								$(".type4").hide();
913
+								$(".type5").hide();
914
+								$(".type6").hide();
915
+								$(".type7").hide();
916
+								$(".type8").hide();
917
+								$(".type9").hide();
918
+							}
919
+							if(state == 11) {
920
+								//								alert(state);
921
+								$(".type1").hide();
922
+								$(".type2").hide();
923
+								$(".type3").hide();
924
+								$(".type4").hide();
925
+								$(".type5").hide();
926
+								$(".type6").hide();
927
+								$(".type7").hide();
928
+								$(".type8").hide();
929
+								$(".type9").hide();
930
+							}
931
+							console.log(itype)
932
+							console.log(UserType)
723 933
 							if(itype == 0) {
724 934
 								$(".dispose1").hide();
725
-								$(".dispose2").hide();
726
-							}else if(itype == 1) {
727
-								//alert(itype)
728
-								$(".dispose1").hide();
935
+								$(".dispose2").show();
936
+							} else if(itype == 1) {
937
+								$(".dispose1").show();
938
+								debugger
939
+								if(UserType==4 || UserType==0){
940
+									$(".type1").show();
941
+									$(".dispose1").show();
942
+									$(".shenpi").remove();
943
+								}
944
+								
729 945
 							} else if(itype == 2) {
946
+//								$(".dispose2").show();
947
+								if(UserType==4 ){
948
+									$(".type1").show();
949
+									$(".dispose1").show();
950
+									$(".shenpi").remove();
951
+								}else if(UserType==0){
952
+									$(".type1").show();
953
+									$(".dispose1").show();
954
+									$(".shenpi").remove();
955
+								}else{
956
+									$(".dispose2").show();
957
+								}
730 958
 								
731
-								$(".dispose2").hide();
732 959
 							} else if(itype == 3) {
733
-								$(".dispose3").hide();
734
-							}else if(itype == 4) {
960
+								if(UserType == 3) {
961
+									$(".dispose2").show();
962
+								}
963
+								$(".dispose3").show();
964
+							} else if(itype == 4) {
735 965
 								$(".dispose2").hide();
736
-							}else if(itype == 5) {
966
+								$(".dispose1").show();
967
+//								if(UserType == 3) {
968
+//									$(".dispose2").show();
969
+//								}
970
+							} else if(itype == 5) {
737 971
 								$(".dispose2").hide();
972
+							} else if(itype == 10) {
973
+								if(UserType == 2 ) {
974
+									$(".dispose1").hide();
975
+									$(".dispose2").show();
976
+								}else if(UserType == 3 || UserType == 4){
977
+									$(".type1").show();
978
+									$(".dispose1").show();
979
+									$(".shenpi").remove();
980
+								}
981
+							} else if(itype == 12) {
982
+								$(".dispose2").show();
983
+								if(UserType == 0) {
984
+									$(".dispose2").hide();
985
+									$(".dispose4").show();
986
+								}
987
+
988
+							} else if(itype == 16) {
989
+								//								$(".dispose2").show();
990
+								if(UserType == 4) {
991
+									if(state==1){
992
+										$(".type1").show();
993
+										$(".dispose1").show();
994
+										$(".shenpi").remove();
995
+									}else{
996
+										$(".dispose3").show();
997
+										$(".shenpi").remove();
998
+									}
999
+//									$(".dispose1").show();
1000
+									
1001
+								} else if(UserType == 0) {
1002
+									$(".dispose4").show();
1003
+								}
1004
+
1005
+							}else if(itype == 11){
1006
+								$(".type1").show();
1007
+								$(".dispose1").show();
1008
+								$(".shenpi").remove();
1009
+							}
1010
+							if(itypeQs == 123) {
1011
+
1012
+								$(".itypeQs").hide();
1013
+							}
1014
+							if(itypeQs == 111) {
1015
+
1016
+								$(".type2").hide();
1017
+							}
1018
+							if(itypeQs == 333) {
1019
+								$(".type3").hide();
738 1020
 							}
739 1021
 							if(result.F_TypeName=='投诉'){
740 1022
                                 $('.question_category').text('问题类别3:')
@@ -825,21 +1107,25 @@
825 1107
 							$(".Work_last").text(result.F_DealResult); //处理结果
826 1108
 							$("#Work_workOrderID").text(result.F_DealReasons); //未处理原因
827 1109
 							$("#Work_wor").text(result.F_IsVisit); //是否回访
828
-							if(result.F_limit != 0) {
829
-								$("#Work_overtime").text(result.F_limit); //超时时限
1110
+							if(result.F_limitTime != 0) {
1111
+								$("#Work_overtime").text(result.F_limitTime); //超时时限
830 1112
 							}
831 1113
 
832 1114
 							$("#xq_suggestion").text(result.SuperiorOpinion); //上级处理意见
833 1115
 							$("#Work_detail").text("问题描述:" + result.F_Description); //描述详情
834 1116
 							$("#Work_note").text("注解内容:" + result.F_Annotation); //注解内容
835 1117
 							$("#Work_timeOut").text("超期原因:" + result.F_Reasontimeout); //注解内容
836
-							if(result.RemainingTime >= 0) {
837
-								$(".surplusText").html("剩余时间")
838
-								$("#surplus").text(result.RemainingTime + "小时")
839
-							} else if(result.RemainingTime < 0) {
1118
+//							if(result.RemainingTime >= 0) {
1119
+//								$(".surplusText").html("剩余时间")
1120
+//								$("#surplus").text(result.RemainingTime + "小时")
1121
+//							} else if(result.RemainingTime < 0) {
1122
+//								$(".surplusText").html("超时时间")
1123
+//								$("#surplus").text(Math.abs(result.RemainingTime) + "小时")
1124
+//							}
1125
+							if(result.RemainingTime) {
840 1126
 								$(".surplusText").html("超时时间")
841
-								$("#surplus").text(Math.abs(result.RemainingTime) + "小时")
842
-							}
1127
+								$("#surplus").text(result.RemainingTime)
1128
+							} 
843 1129
 							//	判断数据为空隐藏li
844 1130
 							if($("#Work_gohao").text() == '') { //抽检时间
845 1131
 								$('#Work_gohao').parent().parent().remove();
@@ -1013,7 +1299,7 @@
1013 1299
 			//跳转页面
1014 1300
 			//修改
1015 1301
 			$('.edit').on('tap', function() {
1016
-				window.location.href = "editWorkolder.html?id=" + id+'&itype='+itype;
1302
+				window.location.href = "../client-side/editWorkolder.html?id=" + id+'&itype='+itype;
1017 1303
 
1018 1304
 			});
1019 1305
 			//返回列表
@@ -1297,12 +1583,12 @@
1297 1583
 			//转派弹框
1298 1584
 			$(".allot").click(function() {
1299 1585
 				var areaID = $("#Work_areaname").attr('data-index')
1300
-				window.location.href = "redeploy.html?id=" + id+'&itype='+itype+'&areaID='+areaID;
1586
+				window.location.href = "../client-side/redeploy.html?id=" + id+'&itype='+itype+'&areaID='+areaID;
1301 1587
 			})
1302 1588
 //			处理提单框
1303 1589
 			$(".disp").click(function() {
1304 1590
 				var areaID = $("#Work_areaname").attr('data-index')
1305
-				window.location.href = "dispose.html?id=" + id+'&itype='+itype+'&areaID='+areaID;
1591
+				window.location.href = "../client-side/dispose.html?id=" + id+'&itype='+itype+'&areaID='+areaID;
1306 1592
 			})
1307 1593
 			//评论工单
1308 1594
 			$(".comment").click(function(){   
@@ -1387,7 +1673,7 @@
1387 1673
 								debugger
1388 1674
 								mui.toast('处理成功');
1389 1675
 								
1390
-								window.location.href = "pend_index.html";
1676
+								window.location.href = "inquire.html";
1391 1677
 							} else {
1392 1678
 								mui.toast(data.message);
1393 1679
 							}
@@ -1483,7 +1769,7 @@
1483 1769
 								debugger
1484 1770
 								mui.toast('处理成功');
1485 1771
 								
1486
-								window.location.href = "pend_index.html?id=" + id+'&itype='+itype;
1772
+								window.location.href = "inquire.html";
1487 1773
 							} else {
1488 1774
 								mui.toast(data.message);
1489 1775
 							}
@@ -1510,7 +1796,7 @@
1510 1796
 							success: function(data) {
1511 1797
 								if(data.state == "success") {
1512 1798
 									mui.toast('操作成功');
1513
-									window.location.href = "client_index.html?id=" + id+'&itype='+itype;
1799
+									window.location.href = "inquire.html";
1514 1800
 								} else {
1515 1801
 									mui.toast(data.message);
1516 1802
 								}
@@ -1541,7 +1827,7 @@
1541 1827
 //								alert(data.state)
1542 1828
 								if(data.state == "success") {
1543 1829
 									mui.toast('接单成功');
1544
-									window.location.href = "Waiting_list.html";
1830
+									window.location.href = "inquire.html";
1545 1831
 								} else {
1546 1832
 									mui.toast(data.message);
1547 1833
 								}
@@ -1554,37 +1840,54 @@
1554 1840
 				})
1555 1841
 			})
1556 1842
 			//审批
1557
-			$(".receiving").click(function(){
1558
-				var btnArray = ['否', '是'];
1559
-				mui.confirm('确定审批?', '提示', btnArray, function(f) {
1560
-				    
1561
-					if(f.index == 1) {
1562
-						$.ajax({
1563
-							type: "get",
1564
-							dataType: 'json',
1565
-							url: huayi.config.callcenter_url + 'WxLogin/GetApproval',
1566
-							async: true,
1567
-							data: {
1568
-								orderid: id, //否	strubg	工单编号
1569
-								OpenId: openid, //微信openid 测试用
1570
-								AuditCont:"没意见",
1571
-								IsAudit:1,
1572
-								AuditState:0,
1573
-							},
1574
-							success: function(data) {
1575
-								if(data.state == "success") {
1576
-									mui.toast('审批成功');
1577
-									window.location.href = "client_index.html?id=" + id+'&itype='+itype;
1578
-								} else {
1579
-									mui.toast(data.message);
1580
-								}
1843
+			$(".receiving").click(function() {
1844
+				$(".pop_up_bj").fadeIn();
1845
+				$(".pop_up_div9").fadeIn();
1846
+			})
1847
+			$(".pop_up_bj").click(function() {
1848
+				$(".pop_up_bj").hide();
1849
+				$(".pop_up_div9").hide();
1850
+			})
1851
+			$(".pop_up_div9 .btn .fl").click(function() {
1852
+				$(".pop_up_bj").hide();
1853
+				$(".pop_up_div9").hide();
1854
+			})
1855
+			$(".pop_up_div9 .btn .fr").click(function() {
1856
+				//				$("#cont").text("");
1857
+				$(".pop_up_bj").hide();
1858
+				$(".pop_up_div9").hide();
1859
+				if($(".reasaa").val() == "") {
1860
+					mui.alert("请输入审批意见.");
1861
+				} else {
1862
+					$(".pop_up_bj").hide();
1863
+					$(".pop_up_div9").hide();
1864
+					$.ajax({
1865
+						type: "get",
1866
+						dataType: 'json',
1867
+						url: huayi.config.callcenter_url + 'WxLogin/GetApproval',
1868
+						async: true,
1869
+						data: {
1870
+							orderid: id, //否	strubg	工单编号
1871
+							OpenId: openid,
1872
+							AuditCont: $(".reasaa").val(),
1873
+							IsAudit: 1,
1874
+							AuditState: $('.order_ty').find('input[type="radio"]:checked').val(), //工单类型
1875
+
1876
+						},
1877
+
1878
+						success: function(data) {
1879
+							debugger
1880
+							if(data.state == "success") {
1881
+								debugger
1882
+								mui.toast('申请成功');
1883
+								window.location.href = "inquire.html";
1884
+							} else {
1885
+								mui.toast(data.message);
1581 1886
 							}
1582
-						});
1583
-							
1584
-					} else {
1585
-						mui.toast("取消");
1586
-					}
1587
-				})
1887
+						}
1888
+					});
1889
+				}
1890
+
1588 1891
 			})
1589 1892
 			//退回
1590 1893
 			$(".sendback").click(function(){   
@@ -1624,7 +1927,7 @@
1624 1927
 							if(data.state == "success") {
1625 1928
 								debugger
1626 1929
 								mui.toast('退回成功');
1627
-								window.location.href = "Waiting_list.html?id=" + id+'&itype='+itype;
1930
+								window.location.href = "inquire.html";
1628 1931
 							} else {
1629 1932
 								mui.toast(data.message);
1630 1933
 							}
@@ -1674,7 +1977,7 @@
1674 1977
 							if(data.state == "success") {
1675 1978
 								debugger
1676 1979
 								mui.toast('申请成功');
1677
-								window.location.href = "haveorder_list.html?id=" + id+'&itype='+itype;
1980
+								window.location.href = "inquire.html";
1678 1981
 							} else {
1679 1982
 								mui.toast(data.message);
1680 1983
 							}
@@ -1721,7 +2024,7 @@
1721 2024
 							if(data.state == "success") {
1722 2025
 								debugger
1723 2026
 								mui.toast('退回成功');
1724
-								window.location.href = "Waiting_list.html?id=" + id+'&itype='+itype;
2027
+								window.location.href = "inquire.html";
1725 2028
 							} else {
1726 2029
 								mui.toast(data.message);
1727 2030
 							}
@@ -1748,11 +2051,7 @@
1748 2051
 								if(data.state == "success") {
1749 2052
 									debugger
1750 2053
 									mui.toast('删除成功');
1751
-									if (itype==2) {
1752
-										window.location.href = "pend_index.html";
1753
-									} else if(itype==3){
1754
-										window.location.href = "finsh_index.html";
1755
-									}
2054
+										window.location.href = "inquire.html";
1756 2055
 									
1757 2056
 								} else {
1758 2057
 									mui.toast(data.message);
@@ -1801,7 +2100,7 @@
1801 2100
 							if(data.state == "success") {
1802 2101
 								debugger
1803 2102
 								mui.toast('催单成功');
1804
-								window.location.href = "pend_index.html?id=" + id+'&itype='+itype;
2103
+								window.location.href = "inquire.html";
1805 2104
 							} else {
1806 2105
 								mui.toast(data.message);
1807 2106
 							}