zhaomin 3 年 前
コミット
6d7eebba9c

+ 11 - 0
newWX/newWX/Script/Common/huayi.http.js

@@ -337,6 +337,17 @@ helper.filter = {
337 337
 		return content;
338 338
 	}
339 339
 };
340
+helper.antiShake = {
341
+	debounce: function(fun, mil) {
342
+		var timer;
343
+		return function() {
344
+			clearTimeout(timer);
345
+			timer = setTimeout(function() {
346
+				fun();
347
+			}, mil);
348
+		};
349
+	}
350
+}
340 351
 
341 352
 function str2asc(strstr) {
342 353
 	return("0" + strstr.charCodeAt(0).toString(16)).slice(-2);

+ 9 - 0
newWX/newWX/client-side/AddWorkolder.html

@@ -94,6 +94,9 @@
94 94
 				bottom: 5px;
95 95
 				left: 25%;
96 96
 			}
97
+			#__vconsole .vc-switch{
98
+				display: none !important;
99
+			}
97 100
 		</style>
98 101
 	</head>
99 102
 
@@ -564,6 +567,12 @@
564 567
 		<div class="back_bj">
565 568
 			<img src="../img/loading-0.gif" />
566 569
 		</div>
570
+		<script>
571
+			var imgdata = [];
572
+			var imgList = [];
573
+			
574
+		</script>
575
+		<script src="https://cdn.bootcss.com/vConsole/3.3.4/vconsole.min.js"></script>
567 576
 		<script src="../js/mui.js"></script>
568 577
 		<script src="../js/zepto.js"></script>
569 578
 		<script src="../js/mui.picker.min.js"></script>

+ 42 - 47
newWX/newWX/client-side/js/add.js

@@ -17,8 +17,9 @@ var rennn = [] // 县
17 17
 var villl = [] //乡
18 18
 var orderTypeState = '0' 
19 19
 var questionType = ''
20
-
21 20
 var fileData, filetype, fileName;
21
+// 初始化
22
+var vConsole = new VConsole();
22 23
 mui('#order_time').each(function(i, btn) {
23 24
 	btn.addEventListener('tap', function() {
24 25
 		var dtPicker = new mui.DtPicker({
@@ -591,51 +592,43 @@ function uploadHandle() {
591 592
 			formData.append('size', Files[i].size);
592 593
 		}
593 594
 		var typeName = Files[0].name.split('.')[1];
594
-		if (typeName == "png" || typeName == 'jpg' || typeName == 'mp4' || typeName == 'avi' || typeName ==
595
-			'wmv' || typeName == 'mp3' || typeName == 'pdf' || typeName == 'doc' || typeName == 'docx' ||
596
-			typeName == 'xls' || typeName == 'xlsx') {
597
-			$.ajax({
598
-				url: huayi.config.callcenter_url + "Knowledge/UpLoadProcessApp",
599
-				type: "POST",
600
-				data: formData,
601
-				/**
602
-				 *必须false才会自动加上正确的Content-Type
603
-				 */
604
-				contentType: false,
605
-				/**
606
-				 * 必须false才会避开jQuery对 formdata 的默认处理
607
-				 * XMLHttpRequest会对 formdata 进行正确的处理
608
-				 */
609
-				processData: false,
610
-				success: function(result) {
611
-					document.getElementById("upFileHandle").outerHTML = document.getElementById(
612
-						"upFileHandle").outerHTML;
613
-					$("#upFileHandle").change(function() {
614
-						uploadHandle();
615
-					});
616
-					var r = $.parseJSON(result);
617
-					if (r.state.toLowerCase() == "success") {
618
-						mui.hideLoading()
619
-						mui.toast(r.message)
620
-						fileData = r.data;
621
-						filetype = Files[0].type.split('/')[0]
622
-						fileName =  Files[0].name
623
-						imgdata.push({
624
-							fileData: r.data,
625
-							filetype: Files[0].type.split('/')[0],
626
-							fileName: Files[0].name,
627
-							id: r.data.F_FileId
628
-						})
629
-						imgList = imgdata
630
-						getFileData(fileData,filetype,fileName)
631
-						
632
-					}
595
+		$.ajax({
596
+			url: huayi.config.callcenter_url + "Knowledge/UpLoadProcessApp",
597
+			type: "POST",
598
+			data: formData,
599
+			/**
600
+			 *必须false才会自动加上正确的Content-Type
601
+			 */
602
+			contentType: false,
603
+			/**
604
+			 * 必须false才会避开jQuery对 formdata 的默认处理
605
+			 * XMLHttpRequest会对 formdata 进行正确的处理
606
+			 */
607
+			processData: false,
608
+			success: function(result) {
609
+				document.getElementById("upFileHandle").outerHTML = document.getElementById("upFileHandle").outerHTML;
610
+				$("#upFileHandle").change(function() {
611
+					uploadHandle();
612
+				});
613
+				var r = $.parseJSON(result);
614
+				if (r.state.toLowerCase() == "success") {
615
+					mui.toast(r.message)
616
+					fileData = r.data;
617
+					filetype = Files[0].type.split('/')[0]
618
+					fileName =  Files[0].name
619
+					imgdata.push({
620
+						fileData: r.data,
621
+						filetype: Files[0].type.split('/')[0],
622
+						fileName: Files[0].name,
623
+						id: r.data.F_FileId
624
+					})
625
+					imgList = imgdata
626
+					console.log(fileData,filetype,fileName)
627
+					getFileData(fileData,filetype,fileName)
628
+					
633 629
 				}
634
-			});
635
-		} else {
636
-			mui.toast("格式不正确");
637
-			mui.hideLoading()
638
-		}
630
+			}
631
+		});
639 632
 	} else {
640 633
 		var btnArray = ['否', '是'];
641 634
 		mui.confirm('提示', '请正确上传文件', btnArray, function(e) {})
@@ -643,6 +636,7 @@ function uploadHandle() {
643 636
 }
644 637
 function getFileData(fileData, filetype, fileName) {
645 638
 	$(fileData).each(function(i, n) {
639
+		console.log(i)
646 640
 		var imgOriName = n.F_FileType.split('/')[1]
647 641
 		var $list = $("#fileList"),
648 642
 			$li;
@@ -651,8 +645,7 @@ function getFileData(fileData, filetype, fileName) {
651 645
 				'<li class="filesHandle" fiel-num="' + n
652 646
 				.F_FileId +
653 647
 				'"><span class="img_mask"><i class="img_del"></i></span>' +
654
-				'<img src="' + huayi.config.img_url + n
655
-				.F_FileUrl + '"/>' +
648
+				'<img src="' + huayi.config.img_url + n.F_FileUrl + '"/>' +
656 649
 				'<span class="img_state"><i></i></span>' +
657 650
 				'<span class="file_name">' + fileName +
658 651
 				'</span>' +
@@ -670,6 +663,7 @@ function getFileData(fileData, filetype, fileName) {
670 663
 				'</li>'
671 664
 			)
672 665
 		}
666
+		console.log($li)
673 667
 		$list.append($li)
674 668
 		imgList = []
675 669
 		$('.img_del').click(function(e) {
@@ -700,6 +694,7 @@ function file_numHandle() {
700 694
 	})
701 695
 	console.log(Str)
702 696
 	$("#fileHandle").val(Str);
697
+	mui.hideLoading()
703 698
 }
704 699
 function typeProInfor() {
705 700
 	let orderType = $('input:radio[name="form"]:checked').val();

+ 0 - 2
newWX/newWX/client-side/js/comAdd.js

@@ -1,5 +1,3 @@
1
-var imgdata = [];
2
-var imgList = []
3 1
 //暂存
4 2
 $('#storage').on('tap', function() {
5 3
 	console.log(imgList,imgdata)

+ 40 - 135
newWX/newWX/client-side/js/detail.js

@@ -651,6 +651,7 @@ function Ajax() {
651 651
 }
652 652
 //返回列表
653 653
 $('.return').on('tap', function() {
654
+	
654 655
 	if (csstate) {
655 656
 		window.location.href = "recive_index.html"
656 657
 	}else if(searchSate) {
@@ -849,12 +850,12 @@ function flow(lineState) {
849 850
 //转派弹框
850 851
 $(".allot").click(function() {
851 852
 	var areaID = $("#Work_areaname").attr('data-index')
852
-	window.location.href = "redeploy.html?id=" + id + '&itype=' + itype + '&areaID=' + areaID;
853
+	window.location.href = "redeploy.html?id=" + id + '&itype=' + itype + '&areaID=' + areaID + '&stateNum=' + helper.request.queryString("orderState");
853 854
 })
854 855
 //			处理提单框
855 856
 $(".disp").click(function() {
856 857
 	var areaID = $("#Work_areaname").attr('data-index')
857
-	window.location.href = "dispose.html?id=" + id + '&itype=' + itype + '&areaID=' + areaID;
858
+	window.location.href = "dispose.html?id=" + id + '&itype=' + itype + '&areaID=' + areaID + '&stateNum=' + helper.request.queryString("orderState");
858 859
 })
859 860
 //评论工单
860 861
 $(".comment").click(function() {
@@ -892,7 +893,7 @@ $(".evaluate").click(function() {
892 893
 			success: function(data) {
893 894
 				if (data.state == "success") {
894 895
 					mui.toast('评论成功');
895
-					window.location.href = "details.html?id=" + id + '&itype=' + itype;
896
+					window.location.href = "details.html?id=" + id + '&itype=' + itype+ '&orderState=' + helper.request.queryString("orderState");
896 897
 				} else {
897 898
 					mui.toast(data.message);
898 899
 				}
@@ -901,127 +902,8 @@ $(".evaluate").click(function() {
901 902
 	}
902 903
 })
903 904
 //完结
904
-$(".finsh").click(function() {
905
-	$(".pop_up_bj").fadeIn();
906
-	$(".pop_up_div2").fadeIn();
907
-})
908
-$(".pop_up_bj").click(function() {
909
-	$(".pop_up_bj").hide();
910
-	$(".pop_up_div2").hide();
911
-})
912
-$(".pop_up_div2 .btn .fl").click(function() {
913
-	$(".pop_up_bj").hide();
914
-	$(".pop_up_div2").hide();
915
-	mui.alert("取消");
916
-})
917
-$(".pop_up_div2 .btn .fr").click(function() {
918
-	$("#finsh_cont").text("");
919
-	$(".pop_up_bj").hide();
920
-	$(".pop_up_div2").hide();
921
-	if ($(".textcont").val() == "") {
922
-		mui.alert("请输入完结内容");
923
-	} else {
924
-		$(".pop_up_bj").hide();
925
-		$(".pop_up_div2").hide();
926
-		$.ajax({
927
-			type: "post",
928
-			dataType: 'json',
929
-			url: huayi.config.callcenter_url + '/WxLogin/DealWorkOrder',
930
-			async: true,
931
-			data: {
932
-				orderid: id, //否	strubg	工单编号
933
-				isend: 1, //否	int	你看一下前端是什么参数
934
-				cont: $("#finsh_cont").val(), //否	int	处理内容
935
-				openid: openid, //微信openid,
936
-			},
937
-			success: function(data) {
938
-				if (data.state == "success") {
939
-					mui.toast('处理成功');
940
-					window.location.href = "client_index.html?id=" + id + '&itype=' + itype;
941
-				} else {
942
-					mui.toast(data.message);
943
-				}
944
-			}
945
-		});
946
-	}
947
-
948
-})
949 905
 //处理
950
-$(".deal").click(function() {
951
-	$(".pop_up_bj").fadeIn();
952
-	$(".pop_up_div4").fadeIn();
953
-})
954
-$(".pop_up_bj").click(function() {
955
-	$(".pop_up_bj").hide();
956
-	$(".pop_up_div4").hide();
957
-})
958
-$(".pop_up_div4 .btn .fl").click(function() {
959
-	$(".pop_up_bj").hide();
960
-	$(".pop_up_div4").hide();
961
-	mui.alert("取消");
962
-})
963
-$(".pop_up_div4 .btn .fr").click(function() {
964
-	//				$("#cont").text("");
965
-	$(".pop_up_bj").hide();
966
-	$(".pop_up_div4").hide();
967
-	if ($(".textcont_deal").val() == "") {
968
-		mui.alert("请输入处理内容");
969
-	} else {
970
-		$(".pop_up_bj").hide();
971
-		$(".pop_up_div4").hide();
972
-		$.ajax({
973
-			type: "post",
974
-			dataType: 'json',
975
-			url: huayi.config.callcenter_url + '/WxLogin/DealWorkOrder',
976
-			async: true,
977
-			data: {
978
-				orderid: id, //否	strubg	工单编号
979
-				isend: itype, //否	int	你看一下前端是什么参数
980
-				cont: $("#textcont_deal").val(), //否	int	处理内容
981
-				Openid: openid, //微信openid,
982
-			},
983
-			success: function(data) {
984
-				if (data.state == "success") {
985
-					mui.toast('处理成功');
986
-					window.location.href = "pend_index.html?id=" + id + '&itype=' + itype;
987
-				} else {
988
-					mui.toast(data.message);
989
-				}
990
-			}
991
-		});
992
-	}
993
-
994
-})
995
-
996 906
 //回复
997
-$(".btn_reply").click(function() {
998
-	var btnArray = ['取消', '确定'];
999
-	mui.confirm('确定回复?', '提示', btnArray, function(f) {
1000
-		if (f.index == 1) {
1001
-			$.ajax({
1002
-				type: "post",
1003
-				dataType: 'json',
1004
-				url: huayi.config.callcenter_url + 'WxLogin/ReplyWorkOrder',
1005
-				async: true,
1006
-				data: {
1007
-					openid: openid, //	是	strubg	openid
1008
-					orderid: id //	是	string	工单号码
1009
-				},
1010
-				success: function(data) {
1011
-					if (data.state == "success") {
1012
-						mui.toast('操作成功');
1013
-						window.location.href = "client_index.html?id=" + id + '&itype=' +
1014
-							itype;
1015
-					} else {
1016
-						mui.toast(data.message);
1017
-					}
1018
-				}
1019
-			});
1020
-		} else {
1021
-			mui.toast("取消操作");
1022
-		}
1023
-	})
1024
-});
1025 907
 //撤回
1026 908
 $(".returnBack").click(function() {
1027 909
 	$(".returnO").fadeIn();
@@ -1064,6 +946,8 @@ function revokeWo(data) {
1064 946
 		success: function(data) {
1065 947
 			if (data.state == "success") {
1066 948
 				mui.toast('撤回成功');
949
+				$(".pop_up_bj").hide();
950
+				$(".returnO").hide();
1067 951
 				// window.location.href = 'Waiting_list.html'
1068 952
 				window.location.href = "details.html?id=" + id + '&itype=' + itype +
1069 953
 					'&orderState=' + helper.request.queryString("orderState");
@@ -1079,13 +963,14 @@ $(".copy").click(function() {
1079 963
 		'&cusname='+encodeURI(cusname)+'&createby='+encodeURI(createby)+
1080 964
 		'&createtel='+encodeURI(createtel)+'&State='+State+'&searchSate='+1 +
1081 965
 		'&description='+encodeURI(description)+'&ordertype='+ordertype+'&workOrderid='+workOrderid+'&sc_Chanp='+encodeURI(sc_Chanp)+
1082
-		'&question=' +encodeURI(question)+'&question1=' +encodeURI(question1)+ '&question2=' +encodeURI(question2);
966
+		'&question=' +encodeURI(question)+'&question1=' +encodeURI(question1)+ '&question2=' +encodeURI(question2) +  '&stateNum=' + helper.request.queryString("orderState");
1083 967
 	}else{
1084
-		window.location.href = "reciveOrder.html?id=" + id + '&itype=' + itype + '&areaID=' + areaID;
968
+		window.location.href = "reciveOrder.html?id=" + id + '&itype=' + itype + '&areaID=' + areaID + '&stateNum=' + helper.request.queryString("orderState");;
1085 969
 	}
1086 970
 })
1087 971
 //接单
1088 972
 $(".rece").click(function() {
973
+	console.log(111)
1089 974
 	var btnArray;
1090 975
 	let data = {
1091 976
 		orderid: id, //否	strubg	工单编号
@@ -1158,6 +1043,12 @@ $(".pop_up_div9 .btn .fr").click(function() {
1158 1043
 		dataType: 'json',
1159 1044
 		url: huayi.config.callcenter_url + 'WxLogin/GetApproval',
1160 1045
 		async: true,
1046
+		beforeSend: function() {
1047
+			// 禁用按钮防止重复提交
1048
+			$(".pop_up_div11 .btn .fr").attr({
1049
+				disabled: "disabled"
1050
+			});
1051
+		},
1161 1052
 		data: {
1162 1053
 			orderid: id, //否	strubg	工单编号
1163 1054
 			OpenId: openid,
@@ -1201,6 +1092,12 @@ $(".pop_up_div10 .btn .fr").click(function() {
1201 1092
 		dataType: 'json',
1202 1093
 		url: huayi.config.callcenter_url + 'WxLogin/HigApprovalOrder',
1203 1094
 		async: true,
1095
+		beforeSend: function() {
1096
+			// 禁用按钮防止重复提交
1097
+			$(".pop_up_div10 .btn .fr").attr({
1098
+				disabled: "disabled"
1099
+			});
1100
+		},
1204 1101
 		data: {
1205 1102
 			orderid: id, //否	strubg	工单编号
1206 1103
 			OpenId: openid,
@@ -1233,14 +1130,11 @@ $(".pop_up_div11 .btn .fl").click(function() {
1233 1130
 	$(".pop_up_div11").hide();
1234 1131
 })
1235 1132
 $(".pop_up_div11 .btn .fr").click(function() {
1236
-	//				$("#cont").text("");
1237 1133
 	$(".pop_up_bj").hide();
1238 1134
 	$(".pop_up_div11").hide();
1239 1135
 	if ($(".noteReaa").val() == "") {
1240 1136
 		mui.alert("请输入注解意见");
1241 1137
 	} else {
1242
-		$(".pop_up_bj").hide();
1243
-		$(".pop_up_div11").hide();
1244 1138
 		$.ajax({
1245 1139
 			type: "get",
1246 1140
 			dataType: 'json',
@@ -1320,24 +1214,30 @@ $(".pop_up_div7 .btn .fr").click(function() {
1320 1214
 		if (inoutflag == 1) {
1321 1215
 			mui.confirm('退回内线还是外线', '提示', btnArray, function(f) {
1322 1216
 				if (f.index == 1) {
1323
-					backWorkOrder(0, 1)
1217
+					backWorkOrder($('.pop_up_div7 .btn .fr'),0, 1)
1324 1218
 				} else {
1325
-					backWorkOrder(0, 2)
1219
+					backWorkOrder($('.pop_up_div7 .btn .fr'),0, 2)
1326 1220
 				}
1327 1221
 			})
1328 1222
 		} else {
1329
-			backWorkOrder(0, '')
1223
+			backWorkOrder($('.pop_up_div7 .btn .fr'),0, '')
1330 1224
 		}
1331 1225
 	}
1332 1226
 
1333 1227
 })
1334 1228
 
1335
-function backWorkOrder(type, inoutflag) {
1229
+function backWorkOrder(obj,type, inoutflag) {
1336 1230
 	$.ajax({
1337 1231
 		type: "get",
1338 1232
 		dataType: 'json',
1339 1233
 		url: huayi.config.callcenter_url + 'WxLogin/BackWorkOrder',
1340 1234
 		async: true,
1235
+		beforeSend: function() {
1236
+			// 禁用按钮防止重复提交
1237
+			obj.attr({
1238
+				disabled: "disabled"
1239
+			});
1240
+		},
1341 1241
 		data: {
1342 1242
 			orderid: id, //否	strubg	工单编号
1343 1243
 			type: type, // 0是退回 1 是异常退回
@@ -1369,7 +1269,6 @@ $(".pop_up_div8 .btn .fl").click(function() {
1369 1269
 	$(".pop_up_div8").hide();
1370 1270
 })
1371 1271
 $(".pop_up_div8 .btn .fr").click(function() {
1372
-	//				$("#cont").text("");
1373 1272
 	$(".pop_up_bj").hide();
1374 1273
 	$(".pop_up_div8").hide();
1375 1274
 	if ($(".reas").val() == "") {
@@ -1382,6 +1281,12 @@ $(".pop_up_div8 .btn .fr").click(function() {
1382 1281
 			dataType: 'json',
1383 1282
 			url: huayi.config.callcenter_url + 'WxLogin/DelayWorkOrder',
1384 1283
 			async: true,
1284
+			beforeSend: function() {
1285
+				// 禁用按钮防止重复提交
1286
+				$(".pop_up_div8 .btn .fr").attr({
1287
+					disabled: "disabled"
1288
+				});
1289
+			},
1385 1290
 			data: {
1386 1291
 				orderid: id, //否	strubg	工单编号
1387 1292
 				//							type: 0, //否	int	你看一下前端是什么参数   reas
@@ -1429,13 +1334,13 @@ $(".pop_up_div6 .btn .fr").click(function() {
1429 1334
 		if (inoutflag == 1) {
1430 1335
 			mui.confirm('异常退回内线还是外线', '提示', btnArray, function(f) {
1431 1336
 				if (f.index == 1) {
1432
-					backWorkOrder(1, 1)
1337
+					backWorkOrder($('.pop_up_div6 .btn .fr'),1, 1)
1433 1338
 				} else {
1434
-					backWorkOrder(1, 2)
1339
+					backWorkOrder($('.pop_up_div6 .btn .fr'),1, 2)
1435 1340
 				}
1436 1341
 			})
1437 1342
 		} else {
1438
-			backWorkOrder(1, '')
1343
+			backWorkOrder($('.pop_up_div6 .btn .fr'),1, '')
1439 1344
 		}
1440 1345
 	}
1441 1346
 

+ 5 - 13
newWX/newWX/client-side/js/dispose.js

@@ -4,6 +4,7 @@ var id = helper.request.queryString("id");
4 4
 var itype = helper.request.queryString("itype");
5 5
 var areaID = helper.request.queryString("areaID");
6 6
 var openid = helper.cookies.get("openid");
7
+var stateNum = helper.request.queryString("stateNum");
7 8
 var inoutflag = 0;
8 9
 var qualdepts = [12,36,295,245]
9 10
 var markdepts = [37,57,74,88,268,422,339,213,427,433,424 ]
@@ -58,21 +59,15 @@ $(function() {
58 59
 					Fquantity: $("#order_receipts").val(), //确认实收数量
59 60
 				}
60 61
 				localStorage.setItem('dispose', JSON.stringify(dataInfor))
61
-				window.location.href = "details.html?id=" + id + '&itype=' + itype;
62
+				window.location.href = "details.html?id=" + id + '&itype=' + itype + '&orderState=' + stateNum;
62 63
 			}else{
63
-				window.location.href = "details.html?id=" + id + '&itype=' + itype;
64
+				window.location.href = "details.html?id=" + id + '&itype=' + itype+ '&orderState=' + stateNum;
64 65
 			}
65 66
 		})	
66 67
 	});
67
-	// $(".order_unit").on("click", function() {
68
-	// 	var ichk = $("input:checkbox:checked").map(function() {
69
-	// 		return $(this).val();
70
-	// 	}).get().join(",");
71
-	// 	$("#zerenSel").val(ichk);
72
-	// })
73 68
 	Ajax() //获取详情
74 69
 	//提交按钮
75
-	$('#submit').on('tap', function() {
70
+	$('#submit').click(helper.antiShake.debounce(function() {
76 71
 		var str_ary = '';
77 72
 		$(".image-box").each(function(i, n) {
78 73
 			var a = $(n).attr("indexs");
@@ -149,11 +144,8 @@ $(function() {
149 144
 			}
150 145
 			
151 146
 		}
152
-	})
153
-
147
+	},500))
154 148
  function dealWorkOrder(data){
155
-	 // console.log(data)
156
-	 // return
157 149
 	 $.ajax({
158 150
 	 	type: "post",
159 151
 	 	dataType: 'json',

+ 7 - 5
newWX/newWX/client-side/js/redeploy.js

@@ -4,6 +4,7 @@ var id = helper.request.queryString("id");
4 4
 var itype = helper.request.queryString("itype");
5 5
 var areaID = helper.request.queryString("areaID");
6 6
 var openid = helper.cookies.get("openid");
7
+var stateNum = helper.request.queryString("stateNum");
7 8
 var preserveData;
8 9
 var qualdepts = [12, 36, 295, 245]
9 10
 var markdepts = [37, 57, 74, 88, 268, 422, 339, 213, 213, 427, 433,424]
@@ -202,9 +203,9 @@ $(function() {
202 203
 					jsonstr: allarr
203 204
 				}
204 205
 				localStorage.setItem('data', JSON.stringify(dataInfor))
205
-				window.location.href = "details.html?id=" + id + '&itype=' + itype;
206
+				window.location.href = "details.html?id=" + id + '&itype=' + itype+ '&orderState=' + stateNum;
206 207
 			} else {
207
-				window.location.href = "details.html?id=" + id + '&itype=' + itype;
208
+				window.location.href = "details.html?id=" + id + '&itype=' + itype+ '&orderState=' + stateNum;
208 209
 				localStorage.removeItem('data')
209 210
 			}
210 211
 		})
@@ -219,7 +220,7 @@ $(function() {
219 220
 	//暂存详情
220 221
 
221 222
 	//提交按钮
222
-	$('#submit').on('tap', function() {
223
+	$('#submit').click(helper.antiShake.debounce(function() {
223 224
 		var str_ary = '';
224 225
 		$(".image-box").each(function(i, n) {
225 226
 			var a = $(n).attr("indexs");
@@ -394,8 +395,7 @@ $(function() {
394 395
 				assignWorkOrder(leve)
395 396
 			}
396 397
 		}
397
-	})
398
-
398
+	},500))
399 399
 	function assignWorkOrder(leve) {
400 400
 		// debugger
401 401
 		let data = {
@@ -735,6 +735,8 @@ $(function() {
735 735
 				//异常处理;
736 736
 			}
737 737
 		})
738
+		$('.noSamplTime').hide()
739
+		$('.SamplTime').hide()
738 740
 	}
739 741
 	//附件
740 742
 	$("#scwjHandle").click(function() {

+ 6 - 6
newWX/newWX/client-side/reciveOrder.html

@@ -85,6 +85,7 @@
85 85
 			var itype = helper.request.queryString("itype");
86 86
 			var areaID = helper.request.queryString("areaID");
87 87
 			var openid = helper.cookies.get("openid");
88
+			var stateNum = helper.request.queryString("stateNum"); 
88 89
 			var recive = [];
89 90
 			var userData = []
90 91
 			var csDepts = ''
@@ -215,8 +216,7 @@
215 216
 					})
216 217
 				}, false)
217 218
 			}
218
-			$('#submit').click(function() {
219
-				console.log(userData)
219
+			$('#submit').click(helper.antiShake.debounce(function() {
220 220
 				$.ajax({
221 221
 					type: "get",
222 222
 					dataType: 'json',
@@ -245,17 +245,17 @@
245 245
 								'&sc_Chanp='+encodeURI(sc_Chanp) + 
246 246
 								'&workOrderid='+encodeURI(workOrderid) + 
247 247
 								'&question=' +encodeURI(question)+'&question1=' +encodeURI(question1)+ '&question2=' +encodeURI(question2)+
248
-								'&searchSate='+1;;
248
+								'&searchSate='+1+ '&orderState=' + stateNum;
249 249
 							}else{
250
-								window.location.href = "details.html?id=" + id + '&itype=' + itype;
250
+								window.location.href = "details.html?id=" + id + '&itype=' + itype + '&orderState=' + stateNum;
251 251
 							}
252 252
 						}
253 253
 					}
254 254
 				});
255
-			})
255
+			},500))
256 256
 			//返回列表
257 257
 			$('.return').on('tap', function() {
258
-				window.location.href = "details.html?id=" + id + '&itype=' + itype;
258
+				window.location.href = "details.html?id=" + id + '&itype=' + itype + '&orderState=' + stateNum;
259 259
 			});
260 260
 		</script>
261 261
 	</body>