liuyifan лет назад: 6
Родитель
Сommit
c16c5cd935

+ 1 - 1
WebUI/CallCenterWeb.UI/Business/WorkDC_EJ.html

@@ -737,7 +737,7 @@
737 737
                 type: 2,
738 738
                 content: "../CommonHtml/banli_zilei.html?wid=" + str + "&isProtect=" + isProtect, //iframe的url,no代表不显示滚动条
739 739
                 title: '办理工单',
740
-                area: ['60%', '80%'], //宽高
740
+                area: ['80%', '80%'], //宽高
741 741
             });
742 742
         }
743 743
         //派单

+ 1 - 1
WebUI/CallCenterWeb.UI/Business/WorkDC_Three.html

@@ -737,7 +737,7 @@
737 737
                 type: 2,
738 738
                 content: "../CommonHtml/banli_zilei.html?wid=" + str + "&isProtect=" + isProtect, //iframe的url,no代表不显示滚动条
739 739
                 title: '办理工单',
740
-                area: ['60%', '80%'], //宽高
740
+                area: ['80%', '80%'], //宽高
741 741
             });
742 742
         }
743 743
         //派单

+ 4 - 3
WebUI/CallCenterWeb.UI/Business/WorkYBL_zlei.html

@@ -637,6 +637,7 @@
637 637
                 var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
638 638
                 if (html1) {
639 639
                     html1 = html1.replace("data", val);
640
+                    html1 = html1.replace("isProtect", row.F_IsProtect);
640 641
                 }
641 642
                 html += html1;
642 643
 
@@ -726,12 +727,12 @@
726 727
             });
727 728
         }
728 729
         //办理
729
-        function bl(str) {
730
+        function bl(str, isProtect) {
730 731
             layer.open({
731 732
                 type: 2,
732
-                content: "../CommonHtml/banli_zilei.html?wid=" + str, //iframe的url,no代表不显示滚动条
733
+                content: "../CommonHtml/banli_zilei.html?wid=" + str + "&isProtect=" + isProtect, //iframe的url,no代表不显示滚动条
733 734
                 title: '办理工单',
734
-                area: ['60%', '80%'], //宽高
735
+                area: ['80%', '80%'], //宽高
735 736
             });
736 737
         }
737 738
         //派单

+ 127 - 18
WebUI/CallCenterWeb.UI/CommonHtml/WorkDatil.html

@@ -353,15 +353,21 @@
353 353
 						<table class="Table" border="" cellspacing="0" cellpadding="0">
354 354
 							<theard>
355 355
 								<tr>
356
-									<td class="text-center" style="min-width:100px;">办理人</td>
357
-									<td class="text-center" style="min-width:100px;">单位</td>
358
-									<td class="text-center" style="min-width:100px;">类型</td>
359
-									<td class="text-center" style="min-width:100px;">办理内容</td>
360
-
361
-									<td class="text-center" style="min-width:100px;">办理时间</td>
356
+									<td class="text-center" style="min-width:50px;">承办人</td>
357
+									<td class="text-center" style="min-width:50px;">单位</td>
358
+									<td class="text-center" style="min-width:50px;">类型</td>
359
+									<td class="text-center" style="min-width:50px;">办理内容</td>
360
+									<td class="text-center" style="min-width:50px;">办理时间</td>
361
+									<td class="text-center" style="min-width:50px;">是否有处理结果</td>
362
+									<td class="text-center" style="min-width:50px;">处理方案/进程</td>
363
+									<td class="text-center" style="min-width:50px;">是否保密</td>
364
+									<td class="text-center" style="min-width:50px;">联系方式</td>
365
+									<td class="text-center" style="min-width:50px;">沟通时间</td>
366
+									<td class="text-center" style="min-width:50px;">沟通方式</td>
367
+									<td class="text-center" style="min-width:50px;">答复内容</td>
368
+									<td class="text-center" style="min-width:50px;">是否满意</td>
362 369
 									<td class="text-center" style="min-width:50px;">附件</td>
363 370
 									<!--<td class="text-center authority" style="min-width:80px;">操作</td>-->
364
-
365 371
 								</tr>
366 372
 							</theard>
367 373
 							<tbody class="BLQK">
@@ -375,15 +381,21 @@
375 381
 						<table class="Table" border="" cellspacing="0" cellpadding="0">
376 382
 							<theard>
377 383
 								<tr>
378
-									<td class="text-center" style="min-width:100px;">办理人</td>
379
-									<td class="text-center" style="min-width:100px;">单位</td>
380
-									<td class="text-center" style="min-width:100px;">类型</td>
381
-									<td class="text-center" style="min-width:100px;">办理内容</td>
382
-
383
-									<td class="text-center" style="min-width:100px;">办理时间</td>
384
+									<td class="text-center" style="min-width:50px;">承办人</td>
385
+									<td class="text-center" style="min-width:50px;">单位</td>
386
+									<td class="text-center" style="min-width:50px;">类型</td>
387
+									<td class="text-center" style="min-width:50px;">办理内容</td>
388
+									<td class="text-center" style="min-width:50px;">办理时间</td>
389
+									<td class="text-center" style="min-width:50px;">是否有处理结果</td>
390
+									<td class="text-center" style="min-width:50px;">处理方案/进程</td>
391
+									<td class="text-center" style="min-width:50px;">是否保密</td>
392
+									<td class="text-center" style="min-width:50px;">联系方式</td>
393
+									<td class="text-center" style="min-width:50px;">沟通时间</td>
394
+									<td class="text-center" style="min-width:50px;">沟通方式</td>
395
+									<td class="text-center" style="min-width:50px;">答复内容</td>
396
+									<td class="text-center" style="min-width:50px;">是否满意</td>
384 397
 									<td class="text-center" style="min-width:50px;">附件</td>
385 398
 									<!--<td class="text-center authority" style="min-width:80px;">操作</td>-->
386
-
387 399
 								</tr>
388 400
 							</theard>
389 401
 							<tbody class="SJBLQK">
@@ -718,6 +730,7 @@
718 730
 							$(".BLQK").empty();
719 731
 							//console.log(result.data.bldata);
720 732
 							$(result.data.bldata).each(function(i, n) {
733
+								//类型
721 734
 								var bval = n.F_Type;
722 735
 								switch(bval + '') {
723 736
 									case '1':
@@ -727,13 +740,61 @@
727 740
 										bval = '协办';
728 741
 										break;
729 742
 								}
743
+								//是和否有处理结果
744
+								var isProResultValue = n.F_IsProResult + "";
745
+								switch (isProResultValue) {
746
+									case "0":
747
+										isProResultValue = "默认";
748
+										break;
749
+									case "1":
750
+										isProResultValue = "是";
751
+										break;
752
+									case "2":
753
+										isProResultValue = "否";
754
+										break;
755
+								}
756
+								//是否保密
757
+								var isProtectValue = n.F_IsProtect + "";
758
+								switch (isProtectValue) {
759
+									case "1":
760
+										isProtectValue = "是";
761
+										break;
762
+									case "0":
763
+										isProtectValue = "否";
764
+										break;
765
+								}
766
+								//是否保密
767
+								var isSatisfiedValue = n.F_IsSatisfied + "";
768
+								switch (isSatisfiedValue) {
769
+									case "0":
770
+										isSatisfiedValue = "未评价";
771
+										break;
772
+									case "1":
773
+										isSatisfiedValue = "满意";
774
+										break;
775
+									case "2":
776
+										isSatisfiedValue = "基本满意";
777
+										break;
778
+									case "3":
779
+										isSatisfiedValue = "不满意";
780
+										break;
781
+								}
730 782
 								htmls += '<tr>' +
731
-									'<td class="text-center">' + n.UserName + '</td>' +
783
+									'<td class="text-center">' + n.F_DealUser + '</td>' +
732 784
 									'<td class="text-center">' + n.DeptName + '</td>' +
733 785
 									'<td class="text-center" data-formatter="shtype">' + bval + '</td>' +
734 786
 									'<td class="text-center">' + n.F_Result + '</td>' +
735 787
 									'<td class="text-center">' + n.F_CreateTime + '</td>' +
736
-									'<td class="text-center">';
788
+									'<td class="text-center">' + isProResultValue + '</td>' +
789
+									'<td class="text-center">' + n.F_ProSituation + '</td>' +
790
+									'<td class="text-center">' + isProtectValue + '</td>' +
791
+									'<td class="text-center">' + n.F_DealUserContact + '</td>' +
792
+									'<td class="text-center">' + n.F_ConnectTime + '</td>' +
793
+									'<td class="text-center">' + n.F_ConnectMode + '</td>' +
794
+									'<td class="text-center">' + n.F_ReplyContent + '</td>' +
795
+									'<td class="text-center">' + isSatisfiedValue + '</td>' +
796
+									'<td class="text-center"></td>' +
797
+									'</tr>'
737 798
 								//办理情况附件
738 799
 								var FileHtml;
739 800
 								$(n.File).each(function(j, m) {
@@ -753,7 +814,6 @@
753 814
 									'<td class="text-center">' + n.UserName + '</td>' +
754 815
 									'</tr>';
755 816
 							}
756
-							//console.log(result.data.bldata);
757 817
 							$(result.data.ejbldata).each(function(i, n) {
758 818
 								var bval = n.F_Type;
759 819
 								switch(bval + '') {
@@ -764,13 +824,62 @@
764 824
 										bval = '协办';
765 825
 										break;
766 826
 								}
827
+								//是否有处理结果
828
+								var isProResultValue = n.F_IsProResult + "";
829
+								switch (isProResultValue) {
830
+									case "0":
831
+										isProResultValue = "默认";
832
+										break;
833
+									case "1":
834
+										isProResultValue = "是";
835
+										break;
836
+									case "2":
837
+										isProResultValue = "否";
838
+										break;
839
+								}
840
+								//是否保密
841
+								var isProtectValue = n.F_IsProtect + "";
842
+								switch (isProtectValue) {
843
+									case "1":
844
+										isProtectValue = "是";
845
+										break;
846
+									case "0":
847
+										isProtectValue = "否";
848
+										break;
849
+								}
850
+								//是否保密
851
+								var isSatisfiedValue = n.F_IsSatisfied + "";
852
+								switch (isSatisfiedValue) {
853
+									case "0":
854
+										isSatisfiedValue = "未评价";
855
+										break;
856
+									case "1":
857
+										isSatisfiedValue = "满意";
858
+										break;
859
+									case "2":
860
+										isSatisfiedValue = "基本满意";
861
+										break;
862
+									case "3":
863
+										isSatisfiedValue = "不满意";
864
+										break;
865
+								}
866
+
767 867
 								SJhtmls += '<tr>' +
768 868
 									'<td class="text-center">' + n.UserName + '</td>' +
769 869
 									'<td class="text-center">' + n.DeptName + '</td>' +
770 870
 									'<td class="text-center" data-formatter="shtype">' + bval + '</td>' +
771 871
 									'<td class="text-center">' + n.F_Result + '</td>' +
772 872
 									'<td class="text-center">' + n.F_CreateTime + '</td>' +
773
-									'<td class="text-center">';
873
+									'<td class="text-center">' + isProResultValue + '</td>' +
874
+									'<td class="text-center">' + n.F_ProSituation + '</td>' +
875
+									'<td class="text-center">' + isProtectValue + '</td>' +
876
+									'<td class="text-center">' + n.F_DealUserContact + '</td>' +
877
+									'<td class="text-center">' + n.F_ConnectTime + '</td>' +
878
+									'<td class="text-center">' + n.F_ConnectMode + '</td>' +
879
+									'<td class="text-center">' + n.F_ReplyContent + '</td>' +
880
+									'<td class="text-center">' + isSatisfiedValue + '</td>' +
881
+									'<td class="text-center"></td>' + 
882
+									'</tr>'
774 883
 								//办理情况附件
775 884
 								var FileHtml;
776 885
 								$(n.File).each(function(j, m) {

+ 63 - 44
WebUI/CallCenterWeb.UI/CommonHtml/XGBL.html

@@ -40,9 +40,6 @@
40 40
 	            <tr>
41 41
 	            	<th>是否有处理结果:</th>
42 42
 	            	<td id="isProResultRadio" style="font-size: 12px">
43
-	            		<label style="margin-right: 10px">
44
-	                    	<input type="radio" value="0" name="isDisposeResult" style="vertical-align: -2px;" checked="checked" />默认
45
-	            		</label>
46 43
 						<label style="margin-right: 10px">
47 44
 	                    	<input type="radio" value="1" name="isDisposeResult" style="vertical-align: -2px;" />是
48 45
 						</label>
@@ -70,7 +67,7 @@
70 67
 	            <tr class="connecttime-wrapper">
71 68
 	            	<th>沟通时间:</th>
72 69
 	            	<td>
73
-	            		<input type="text" id="connecttime">
70
+	            		<input type="text" class="laydate-icon" id="connecttime" style="width: 172px; height: 32px; border-color: rgb(158, 158, 158);" >
74 71
 	            	</td>
75 72
 	            </tr>
76 73
 	            <tr class="connectmode-wrapper">
@@ -89,7 +86,7 @@
89 86
 	            	<th>是否满意:</th>
90 87
 	            	<td id="isStaisfiedRadio" style="font-size: 12px">
91 88
 						<label style="margin-right: 10px;">
92
-	                    	<input type="radio" value="1" name="isstaisfied" style="vertical-align: -2px;" checked="checked" />满意
89
+	                    	<input type="radio" value="1" name="isstaisfied" style="vertical-align: -2px;" />满意
93 90
 						</label>
94 91
 	            		<label style="margin-right: 10px;">
95 92
 	                    	<input type="radio" value="2" name="isstaisfied" style="vertical-align: -2px;" />基本满意
@@ -127,6 +124,15 @@
127 124
 			var a=$("#ID").val()		
128 125
 				Detail();	
129 126
 			$(document).ready(function() {
127
+	        	laydate.skin('blue');
128
+	            laydate({
129
+	                elem: '#connecttime',
130
+	                event: 'focus',
131
+    		        istoday: true,
132
+			        istime: true,
133
+			        type: 'datetime',
134
+			        format: 'YYYY-MM-DD hh:mm:ss',
135
+	            });
130 136
 				
131 137
 			//上传附件
132 138
 				$("#scwj").click(function() {
@@ -160,6 +166,7 @@
160 166
 						JA();
161 167
 					}
162 168
 				})
169
+				
163 170
 				$(".prosituation-wrapper").hide(); //处理方案/进程
164 171
 				$(".annotation-wrapper").hide(); //注释
165 172
 				$(".dealcontact-wrapper").hide(); //联系方式
@@ -167,51 +174,22 @@
167 174
 				$(".connectmode-wrapper").hide(); //沟通方式
168 175
 				$(".replycontent-wrapper").hide(); //答复内容
169 176
 				$(".isstaisfied-wrapper").hide();  //是否满意
177
+
170 178
 				
171 179
 	            /*
172 180
 	             * 处理结果
173
-	             * 默认 0
174 181
 	             * 是 1
175 182
 	             * 否 2
176 183
 	             */
177 184
 				$('#isProResultRadio').find('input[type="radio"]').on('change', function() {
178
-						if($(this).val() === '0') {
179
-							$(".prosituation-wrapper").hide(); //处理方案/进程
180
-							$(".annotation-wrapper").hide(); //注释
181
-							$(".dealcontact-wrapper").hide(); //联系方式
182
-							$(".connecttime-wrapper").hide(); //沟通时间
183
-							$(".connectmode-wrapper").hide(); //沟通方式
184
-							$(".replycontent-wrapper").hide(); //答复内容
185
-							$(".isstaisfied-wrapper").hide();  //是否满意
186
-						} else if($(this).val() === '1') {
187
-							if (isProtect === "1" ) {
188
-								$(".prosituation-wrapper").hide(); //处理方案/进程
189
-								$(".annotation-wrapper").hide(); //注释
190
-								$(".dealcontact-wrapper").show(); //联系方式
191
-								$(".connecttime-wrapper").hide(); //沟通时间
192
-								$(".connectmode-wrapper").hide(); //沟通方式
193
-								$(".replycontent-wrapper").hide(); //答复内容
194
-								$(".isstaisfied-wrapper").hide();  //是否满意
195
-							} else if (isProtect === "0") {
196
-								$(".prosituation-wrapper").hide(); //处理方案/进程
197
-								$(".annotation-wrapper").hide(); //注释
198
-								$(".dealcontact-wrapper").hide(); //联系方式
199
-								$(".connecttime-wrapper").show(); //沟通时间
200
-								$(".connectmode-wrapper").show(); //沟通方式
201
-								$(".replycontent-wrapper").show(); //答复内容
202
-								$(".isstaisfied-wrapper").show();  //是否满意
203
-							}
204
-						} else if ($(this).val() === '2') {
205
-							$(".prosituation-wrapper").show(); //处理方案/进程
206
-							$(".annotation-wrapper").show(); //注释
207
-							$(".dealcontact-wrapper").hide(); //联系方式
208
-							$(".connecttime-wrapper").hide(); //沟通时间
209
-							$(".connectmode-wrapper").hide(); //沟通方式
210
-							$(".replycontent-wrapper").hide(); //答复内容
211
-							$(".isstaisfied-wrapper").hide();  //是否满意
212
-						}
185
+					$("#prosituation").val(""); //处理方案/进程
186
+					$("#dealcontact").val(""); //联系方式
187
+					$("#connecttime").val(""); //沟通时间
188
+					$("#connectmode").val(""); //沟通方式
189
+					$("#replycontent").val(""); //答复内容
190
+					$('#isStaisfiedRadio input[name="isstaisfied"]:checked').prop("checked", false);  //是否满意
191
+					isProResultJudge($(this).val())
213 192
 				});
214
-
215 193
 			});
216 194
 			//交办
217 195
 			function JA() {
@@ -251,8 +229,17 @@
251 229
 				}, function(result) {
252 230
 					if(result.state.toLowerCase() == "success") {
253 231
 						if(result.data.length>0){
254
-							$("#dealman").val(result.data[0].F_DealUser);
255
-						$('#result').val(result.data[0].F_Result);
232
+                        var IsProResultValue = result.data[0].F_IsProResult + "";
233
+						isProResultJudge(IsProResultValue);
234
+                        $("#dealman").val(result.data[0].F_DealUser); //承办人
235
+                        $("#result").val(result.data[0].F_Result); //办理内容
236
+                        $('#isProResultRadio input[name="isDisposeResult"][value="' + result.data[0].F_IsProResult +'"]').prop("checked", true);//是否有处理结果
237
+                        $("#prosituation").val(result.data[0].F_ProSituation); //处理方案/进程
238
+						$("#dealcontact").val(result.data[0].F_DealUserContact); //联系方式
239
+						$("#connecttime").val(result.data[0].F_ConnectTime); //沟通时间
240
+						$("#connectmode").val(result.data[0].F_ConnectMode); //沟通方式
241
+						$("#replycontent").val(result.data[0].F_ReplyContent); //答复内容
242
+						$('#isStaisfiedRadio input[name="isstaisfied"][value="' + result.data[0].F_IsSatisfied +'"]').prop("checked", true);  //是否满意
256 243
 						a=result.data[0].F_Id;
257 244
 						};
258 245
 
@@ -320,6 +307,38 @@
320 307
 					});
321 308
 				}
322 309
 			}
310
+			
311
+	        // 处理结果判断
312
+	        function isProResultJudge (isProResultdata) {
313
+				if(isProResultdata === '1') {
314
+					if (isProtect === "1" ) {
315
+						$(".prosituation-wrapper").hide(); //处理方案/进程
316
+						$(".annotation-wrapper").hide(); //注释
317
+						$(".dealcontact-wrapper").show(); //联系方式
318
+						$(".connecttime-wrapper").hide(); //沟通时间
319
+						$(".connectmode-wrapper").hide(); //沟通方式
320
+						$(".replycontent-wrapper").hide(); //答复内容
321
+						$(".isstaisfied-wrapper").hide();  //是否满意
322
+					} else if (isProtect === "0") {
323
+						$(".prosituation-wrapper").hide(); //处理方案/进程
324
+						$(".annotation-wrapper").hide(); //注释
325
+						$(".dealcontact-wrapper").hide(); //联系方式
326
+						$(".connecttime-wrapper").show(); //沟通时间
327
+						$(".connectmode-wrapper").show(); //沟通方式
328
+						$(".replycontent-wrapper").show(); //答复内容
329
+						$(".isstaisfied-wrapper").show();  //是否满意
330
+					}
331
+				} else if (isProResultdata === '2') {
332
+					$(".prosituation-wrapper").show(); //处理方案/进程
333
+					$(".annotation-wrapper").show(); //注释
334
+					$(".dealcontact-wrapper").hide(); //联系方式
335
+					$(".connecttime-wrapper").hide(); //沟通时间
336
+					$(".connectmode-wrapper").hide(); //沟通方式
337
+					$(".replycontent-wrapper").hide(); //答复内容
338
+					$(".isstaisfied-wrapper").hide();  //是否满意
339
+				}
340
+	        }
341
+
323 342
 		</script>
324 343
 	</body>
325 344
 

+ 62 - 44
WebUI/CallCenterWeb.UI/CommonHtml/banli.html

@@ -28,7 +28,7 @@
28 28
     <div class="Common">
29 29
         <table>
30 30
             <tr>
31
-                <th class="Importent">办人:</th>
31
+                <th class="Importent">办人:</th>
32 32
                 <td> <input id="dealman" type="text" style="height: 32px;"></td>
33 33
             </tr>
34 34
             <tr>
@@ -51,9 +51,6 @@
51 51
             <tr>
52 52
             	<th>是否有处理结果:</th>
53 53
             	<td id="isProResultRadio" style="font-size: 12px">
54
-            		<label style="margin-right: 10px">
55
-                    	<input type="radio" value="0" name="isDisposeResult" style="vertical-align: -2px;" checked="checked" />默认
56
-            		</label>
57 54
 					<label style="margin-right: 10px">
58 55
                     	<input type="radio" value="1" name="isDisposeResult" style="vertical-align: -2px;" />是
59 56
 					</label>
@@ -81,7 +78,7 @@
81 78
             <tr class="connecttime-wrapper">
82 79
             	<th>沟通时间:</th>
83 80
             	<td>
84
-            		<input type="text" id="connecttime">
81
+            		<input type="text" class="laydate-icon" id="connecttime" style="width: 172px; height: 32px; border-color: rgb(158, 158, 158);">
85 82
             	</td>
86 83
             </tr>
87 84
             <tr class="connectmode-wrapper">
@@ -100,7 +97,7 @@
100 97
             	<th>是否满意:</th>
101 98
             	<td id="isStaisfiedRadio" style="font-size: 12px">
102 99
 					<label style="margin-right: 10px;">
103
-                    	<input type="radio" value="1" name="isstaisfied" style="vertical-align: -2px;" checked="checked" />满意
100
+                    	<input type="radio" value="1" name="isstaisfied" style="vertical-align: -2px;" />满意
104 101
 					</label>
105 102
             		<label style="margin-right: 10px;">
106 103
                     	<input type="radio" value="2" name="isstaisfied" style="vertical-align: -2px;" />基本满意
@@ -141,6 +138,15 @@
141 138
         var a = $("#ID").val()
142 139
         Detail();
143 140
         $(document).ready(function () {
141
+	    	laydate.skin('blue');
142
+            laydate({
143
+                elem: '#connecttime',
144
+                event: 'focus',
145
+		        istoday: true,
146
+		        istime: true,
147
+		        type: 'datetime',
148
+		        format: 'YYYY-MM-DD hh:mm:ss',
149
+            });
144 150
 
145 151
             //上传附件
146 152
             $("#scwj").click(function () {
@@ -190,41 +196,13 @@
190 196
              * 否 2
191 197
              */
192 198
 			$('#isProResultRadio').find('input[type="radio"]').on('change', function() {
193
-					if($(this).val() === '0') {
194
-						$(".prosituation-wrapper").hide(); //处理方案/进程
195
-						$(".annotation-wrapper").hide(); //注释
196
-						$(".dealcontact-wrapper").hide(); //联系方式
197
-						$(".connecttime-wrapper").hide(); //沟通时间
198
-						$(".connectmode-wrapper").hide(); //沟通方式
199
-						$(".replycontent-wrapper").hide(); //答复内容
200
-						$(".isstaisfied-wrapper").hide();  //是否满意
201
-					} else if($(this).val() === '1') {
202
-						if (isProtect === "1" ) {
203
-							$(".prosituation-wrapper").hide(); //处理方案/进程
204
-							$(".annotation-wrapper").hide(); //注释
205
-							$(".dealcontact-wrapper").show(); //联系方式
206
-							$(".connecttime-wrapper").hide(); //沟通时间
207
-							$(".connectmode-wrapper").hide(); //沟通方式
208
-							$(".replycontent-wrapper").hide(); //答复内容
209
-							$(".isstaisfied-wrapper").hide();  //是否满意
210
-						} else if (isProtect === "0") {
211
-							$(".prosituation-wrapper").hide(); //处理方案/进程
212
-							$(".annotation-wrapper").hide(); //注释
213
-							$(".dealcontact-wrapper").hide(); //联系方式
214
-							$(".connecttime-wrapper").show(); //沟通时间
215
-							$(".connectmode-wrapper").show(); //沟通方式
216
-							$(".replycontent-wrapper").show(); //答复内容
217
-							$(".isstaisfied-wrapper").show();  //是否满意
218
-						}
219
-					} else if ($(this).val() === '2') {
220
-						$(".prosituation-wrapper").show(); //处理方案/进程
221
-						$(".annotation-wrapper").show(); //注释
222
-						$(".dealcontact-wrapper").hide(); //联系方式
223
-						$(".connecttime-wrapper").hide(); //沟通时间
224
-						$(".connectmode-wrapper").hide(); //沟通方式
225
-						$(".replycontent-wrapper").hide(); //答复内容
226
-						$(".isstaisfied-wrapper").hide();  //是否满意
227
-					}
199
+					$("#prosituation").val(""); //处理方案/进程
200
+					$("#dealcontact").val(""); //联系方式
201
+					$("#connecttime").val(""); //沟通时间
202
+					$("#connectmode").val(""); //沟通方式
203
+					$("#replycontent").val(""); //答复内容
204
+					$('#isStaisfiedRadio input[name="isstaisfied"]:checked').prop("checked", false);  //是否满意
205
+					isProResultJudge($(this).val())
228 206
 			});
229 207
             
230 208
         });
@@ -232,7 +210,7 @@
232 210
         function JA() {
233 211
             $.post(huayi.config.callcenter_url + 'WorkOrder/FeedBackWorkOrder', {
234 212
                 workorderid: wid,
235
-                dealman: $("#dealman").val(), //办
213
+                dealman: $("#dealman").val(), //办人
236 214
                 result: $("#result").val(), //办理内容
237 215
                 isproresult: $('#isProResultRadio input[name="isDisposeResult"]:checked').val(), //处理结果
238 216
                 prosituation: $("#prosituation").val(), //处理方案/进程
@@ -266,8 +244,17 @@
266 244
             }, function (result) {
267 245
                 if (result.state.toLowerCase() == "success") {
268 246
                     if (result.data.length > 0) {
269
-                        $("#dealman").val(result.data[0].F_DealUser);
270
-                        $('#result').val(result.data[0].F_Result);
247
+                        var IsProResultValue = result.data[0].F_IsProResult + "";
248
+						isProResultJudge(IsProResultValue);
249
+                        $("#dealman").val(result.data[0].F_DealUser); //承办人
250
+                        $("#result").val(result.data[0].F_Result); //办理内容
251
+                        $('#isProResultRadio input[name="isDisposeResult"][value="' + result.data[0].F_IsProResult +'"]').prop("checked", true);//是否有处理结果
252
+                        $("#prosituation").val(result.data[0].F_ProSituation); //处理方案/进程
253
+						$("#dealcontact").val(result.data[0].F_DealUserContact); //联系方式
254
+						$("#connecttime").val(result.data[0].F_ConnectTime); //沟通时间
255
+						$("#connectmode").val(result.data[0].F_ConnectMode); //沟通方式
256
+						$("#replycontent").val(result.data[0].F_ReplyContent); //答复内容
257
+						$('#isStaisfiedRadio input[name="isstaisfied"][value="' + result.data[0].F_IsSatisfied +'"]').prop("checked", true);  //是否满意
271 258
                         a = result.data[0].F_Id;
272 259
                     };
273 260
 
@@ -345,6 +332,37 @@
345 332
             })
346 333
             $("#file").val(Str);
347 334
         }
335
+        
336
+        // 处理结果判断
337
+        function isProResultJudge (isProResultdata) {
338
+			if(isProResultdata === '1') {
339
+				if (isProtect === "1" ) {
340
+					$(".prosituation-wrapper").hide(); //处理方案/进程
341
+					$(".annotation-wrapper").hide(); //注释
342
+					$(".dealcontact-wrapper").show(); //联系方式
343
+					$(".connecttime-wrapper").hide(); //沟通时间
344
+					$(".connectmode-wrapper").hide(); //沟通方式
345
+					$(".replycontent-wrapper").hide(); //答复内容
346
+					$(".isstaisfied-wrapper").hide();  //是否满意
347
+				} else if (isProtect === "0") {
348
+					$(".prosituation-wrapper").hide(); //处理方案/进程
349
+					$(".annotation-wrapper").hide(); //注释
350
+					$(".dealcontact-wrapper").hide(); //联系方式
351
+					$(".connecttime-wrapper").show(); //沟通时间
352
+					$(".connectmode-wrapper").show(); //沟通方式
353
+					$(".replycontent-wrapper").show(); //答复内容
354
+					$(".isstaisfied-wrapper").show();  //是否满意
355
+				}
356
+			} else if (isProResultdata === '2') {
357
+				$(".prosituation-wrapper").show(); //处理方案/进程
358
+				$(".annotation-wrapper").show(); //注释
359
+				$(".dealcontact-wrapper").hide(); //联系方式
360
+				$(".connecttime-wrapper").hide(); //沟通时间
361
+				$(".connectmode-wrapper").hide(); //沟通方式
362
+				$(".replycontent-wrapper").hide(); //答复内容
363
+				$(".isstaisfied-wrapper").hide();  //是否满意
364
+			}
365
+        }
348 366
     </script>
349 367
 </body>
350 368
 

+ 183 - 67
WebUI/CallCenterWeb.UI/CommonHtml/banli_zilei.html

@@ -48,13 +48,22 @@
48 48
         <table class="table" border="" cellspacing="0" cellpadding="0" style="border: 1px solid #e7eaec;">
49 49
             <theard>
50 50
                 <tr>
51
-                    <td class="text-center" style="min-width: 100px;">序号</td>
52
-                    <td class="text-center" style="min-width: 100px;">办理时间</td>
53
-                    <td class="text-center" style="min-width: 100px;">内容</td>
54
-                    <td class="text-center" style="min-width: 100px;">附件</td>
55
-                    <td class="text-center" style="min-width: 100px;">审批时间</td>
56
-                    <td class="text-center" style="min-width: 100px;">审批内容</td>
57
-                    <td class="text-center" style="min-width: 100px;">审批意见</td>
51
+                    <td class="text-center" style="min-width:50px;">序号</td>
52
+                    <td class="text-center" style="min-width:50px;">办理时间</td>
53
+                    <td class="text-center" style="min-width:50px;">内容</td>
54
+                    <td class="text-center" style="min-width:50px;">审批时间</td>
55
+                    <td class="text-center" style="min-width:50px;">审批内容</td>
56
+                    <td class="text-center" style="min-width:50px;">审批意见</td>
57
+					<td class="text-center" style="min-width:50px;">类型</td>
58
+					<td class="text-center" style="min-width:50px;">是否有处理结果</td>
59
+					<td class="text-center" style="min-width:50px;">处理方案/进程</td>
60
+					<td class="text-center" style="min-width:50px;">是否保密</td>
61
+					<td class="text-center" style="min-width:50px;">联系方式</td>
62
+					<td class="text-center" style="min-width:50px;">沟通时间</td>
63
+					<td class="text-center" style="min-width:50px;">沟通方式</td>
64
+					<td class="text-center" style="min-width:50px;">答复内容</td>
65
+					<td class="text-center" style="min-width:50px;">是否满意</td>
66
+                    <td class="text-center" style="min-width:50px;">附件</td>
58 67
                 </tr>
59 68
             </theard>
60 69
             <tbody class="HGXX" style="border-top: none; padding: 8px;"></tbody>
@@ -65,7 +74,7 @@
65 74
     <div class="Common">
66 75
         <table>
67 76
             <tr>
68
-                <th class="Importent">办人:</th>
77
+                <th class="Importent">办人:</th>
69 78
                 <td> <input id="dealman" type="text" style="height: 32px;"></td>
70 79
             </tr>
71 80
             <tr>
@@ -76,9 +85,6 @@
76 85
             <tr>
77 86
             	<th>是否有处理结果:</th>
78 87
             	<td id="isProResultRadio" style="font-size: 12px">
79
-            		<label style="margin-right: 10px">
80
-                    	<input type="radio" value="0" name="isDisposeResult" style="vertical-align: -2px;" checked="checked" />默认
81
-            		</label>
82 88
 					<label style="margin-right: 10px">
83 89
                     	<input type="radio" value="1" name="isDisposeResult" style="vertical-align: -2px;" />是
84 90
 					</label>
@@ -106,7 +112,7 @@
106 112
             <tr class="connecttime-wrapper">
107 113
             	<th>沟通时间:</th>
108 114
             	<td>
109
-            		<input type="text" id="connecttime">
115
+            		<input type="text" class="laydate-icon" id="connecttime" style="width: 172px; height: 32px; border-color: rgb(158, 158, 158);">
110 116
             	</td>
111 117
             </tr>
112 118
             <tr class="connectmode-wrapper">
@@ -165,12 +171,20 @@
165 171
         var a = $("#ID").val()
166 172
         Detail();
167 173
         $(document).ready(function () {
174
+        	laydate.skin('blue');
175
+            laydate({
176
+                elem: '#connecttime',
177
+                event: 'focus',
178
+		        istoday: true,
179
+		        istime: true,
180
+		        type: 'datetime',
181
+		        format: 'YYYY-MM-DD hh:mm:ss',
182
+            });
168 183
             HGXX();
169 184
             BLNR();
170 185
             //				Hove();
171 186
             //				LOAD();
172 187
 
173
-
174 188
             //上传附件
175 189
             $("#scwj").click(function () {
176 190
                 $("#upFile").trigger("click");
@@ -203,6 +217,7 @@
203 217
                     JA();
204 218
                 }
205 219
             })
220
+            
206 221
 			$(".prosituation-wrapper").hide(); //处理方案/进程
207 222
 			$(".annotation-wrapper").hide(); //注释
208 223
 			$(".dealcontact-wrapper").hide(); //联系方式
@@ -210,56 +225,27 @@
210 225
 			$(".connectmode-wrapper").hide(); //沟通方式
211 226
 			$(".replycontent-wrapper").hide(); //答复内容
212 227
 			$(".isstaisfied-wrapper").hide();  //是否满意
213
-			
228
+            
214 229
             /*
215 230
              * 处理结果
216
-             * 默认 0
217 231
              * 是 1
218 232
              * 否 2
219 233
              */
220 234
 			$('#isProResultRadio').find('input[type="radio"]').on('change', function() {
221
-					if($(this).val() === '0') {
222
-						$(".prosituation-wrapper").hide(); //处理方案/进程
223
-						$(".annotation-wrapper").hide(); //注释
224
-						$(".dealcontact-wrapper").hide(); //联系方式
225
-						$(".connecttime-wrapper").hide(); //沟通时间
226
-						$(".connectmode-wrapper").hide(); //沟通方式
227
-						$(".replycontent-wrapper").hide(); //答复内容
228
-						$(".isstaisfied-wrapper").hide();  //是否满意
229
-					} else if($(this).val() === '1') {
230
-						if (isProtect === "1" ) {
231
-							$(".prosituation-wrapper").hide(); //处理方案/进程
232
-							$(".annotation-wrapper").hide(); //注释
233
-							$(".dealcontact-wrapper").show(); //联系方式
234
-							$(".connecttime-wrapper").hide(); //沟通时间
235
-							$(".connectmode-wrapper").hide(); //沟通方式
236
-							$(".replycontent-wrapper").hide(); //答复内容
237
-							$(".isstaisfied-wrapper").hide();  //是否满意
238
-						} else if (isProtect === "0") {
239
-							$(".prosituation-wrapper").hide(); //处理方案/进程
240
-							$(".annotation-wrapper").hide(); //注释
241
-							$(".dealcontact-wrapper").hide(); //联系方式
242
-							$(".connecttime-wrapper").show(); //沟通时间
243
-							$(".connectmode-wrapper").show(); //沟通方式
244
-							$(".replycontent-wrapper").show(); //答复内容
245
-							$(".isstaisfied-wrapper").show();  //是否满意
246
-						}
247
-					} else if ($(this).val() === '2') {
248
-						$(".prosituation-wrapper").show(); //处理方案/进程
249
-						$(".annotation-wrapper").show(); //注释
250
-						$(".dealcontact-wrapper").hide(); //联系方式
251
-						$(".connecttime-wrapper").hide(); //沟通时间
252
-						$(".connectmode-wrapper").hide(); //沟通方式
253
-						$(".replycontent-wrapper").hide(); //答复内容
254
-						$(".isstaisfied-wrapper").hide();  //是否满意
255
-					}
235
+				$("#prosituation").val(""); //处理方案/进程
236
+				$("#dealcontact").val(""); //联系方式
237
+				$("#connecttime").val(""); //沟通时间
238
+				$("#connectmode").val(""); //沟通方式
239
+				$("#replycontent").val(""); //答复内容
240
+				$('#isStaisfiedRadio input[name="isstaisfied"]:checked').prop("checked", false);  //是否满意
241
+				isProResultJudge($(this).val());
256 242
 			});
257 243
         });
258 244
         //交办
259 245
         function JA() {
260 246
             $.post(huayi.config.callcenter_url + 'WorkOrder/DealWorkOrder', {
261 247
                 workorderid: wid,
262
-                dealman: $("#dealman").val(), //办
248
+                dealman: $("#dealman").val(), //承办人
263 249
                 result: $('#result').val(), //办理内容
264 250
                 isproresult: $('#isProResultRadio input[name="isDisposeResult"]:checked').val(), //处理结果
265 251
                 prosituation: $("#prosituation").val(), //处理方案/进程
@@ -298,27 +284,117 @@
298 284
                     var temp;
299 285
                     var Agree;
300 286
                     $.each(result.data.fkinfo, function (i, n) {
301
-                        //							var r = JSON.stringify(n.File);
302
-
287
+                        //	var r = JSON.stringify(n.File);
303 288
                         if (n.F_IsAudit == 1) {
304 289
                             Agree = "同意";
305 290
                         } else if (n.F_IsAudit == 2) {
306 291
                             Agree = "拒绝";
292
+                        } else if (n.F_IsAudit == 0) {
293
+                        	Agree = "";
307 294
                         }
308
-                        temp = '<tr><td class="text-center">' + (i + 1) + '</td><td class="text-center">'
309
-                            + n.F_CreateTime + '</td><td class="text-center">' + n.F_Result
310
-                            + '</td><td class="text-center FJ" style="color:#00a1cb;"></td><td class="text-center">'
311
-                            + n.F_AuditTime + '</td><td class="text-center">' + n.F_AuditReason
312
-                            + '</td><td class="text-center">' + Agree + '</td></tr>';
295
+						var bval = n.F_Type;
296
+						switch(bval + '') {
297
+							case '1':
298
+								bval = '主办';
299
+								break;
300
+							case '2':
301
+								bval = '协办';
302
+								break;
303
+						}
304
+						//是否有处理结果
305
+						var isProResultValue = n.F_IsProResult + "";
306
+						switch (isProResultValue) {
307
+							case "0":
308
+								isProResultValue = "默认";
309
+								break;
310
+							case "1":
311
+								isProResultValue = "是";
312
+								break;
313
+							case "2":
314
+								isProResultValue = "否";
315
+								break;
316
+						}
317
+						//是否保密
318
+						var isProtectValue = n.F_IsProtect + "";
319
+						switch (isProtectValue) {
320
+							case "1":
321
+								isProtectValue = "是";
322
+								break;
323
+							case "0":
324
+								isProtectValue = "否";
325
+								break;
326
+						}
327
+						//是否保密
328
+						var isSatisfiedValue = n.F_IsSatisfied + "";
329
+						switch (isSatisfiedValue) {
330
+							case "0":
331
+								isSatisfiedValue = "未评价";
332
+								break;
333
+							case "1":
334
+								isSatisfiedValue = "满意";
335
+								break;
336
+							case "2":
337
+								isSatisfiedValue = "基本满意";
338
+								break;
339
+							case "3":
340
+								isSatisfiedValue = "不满意";
341
+								break;
342
+						}
343
+						// 审批时间
344
+						var auditTimeValue
345
+						switch (n.F_AuditTime) {
346
+							case "":
347
+								auditTimeValue = ""
348
+								break;
349
+							case null:
350
+								auditTimeValue = ""
351
+								break;
352
+							default:
353
+								auditTimeValue = n.F_AuditTime
354
+								break;
355
+						}
356
+						//审批内容
357
+						var auditReasonValue
358
+						switch (n.F_AuditReason) {
359
+							case "":
360
+								auditReasonValue = ""
361
+								break;
362
+							case null:
363
+								auditReasonValue = ""
364
+								break;
365
+							default:
366
+								auditReasonValue = n.F_AuditReason
367
+								break;
368
+						}
313 369
 
370
+                        temp = '<tr>' +
371
+                        	'<td class="text-center">' + (i + 1) + '</td>' +
372
+                        	'<td class="text-center">' + n.F_CreateTime + '</td>' + 
373
+                        	'<td class="text-center">' + n.F_Result + '</td>' +
374
+                           	'<td class="text-center">' + auditTimeValue + '</td>' + 
375
+                           	'<td class="text-center">' + auditReasonValue + '</td>' + 
376
+                           	'<td class="text-center">' + Agree + '</td>' +
377
+							'<td class="text-center" data-formatter="shtype">' + bval + '</td>' +
378
+							'<td class="text-center">' + isProResultValue + '</td>' +
379
+							'<td class="text-center">' + n.F_ProSituation + '</td>' +
380
+							'<td class="text-center">' + isProtectValue + '</td>' +
381
+							'<td class="text-center">' + n.F_DealUserContact + '</td>' +
382
+							'<td class="text-center">' + n.F_ConnectTime + '</td>' +
383
+							'<td class="text-center">' + n.F_ConnectMode + '</td>' +
384
+							'<td class="text-center">' + n.F_ReplyContent + '</td>' +
385
+							'<td class="text-center">' + isSatisfiedValue + '</td>' +
386
+                           	'<td class="text-center FJ" style="color:#00a1cb;"></td>' + 
387
+                           	'</tr>';
314 388
 
315
-                        var tmp = '';
316
-                        if (n.File) {
317
-                            $.each(n.File, function (d, f) {
318
-                                tmp += '<a style="margin-right:5px;" href="' + f.F_FileUrl + '" download="' + f.F_FileUrl + '">' + f.F_FileName.substring(19) + '</a>';
319
-                            })
320
-                        }
321
-                        $(temp).appendTo($('.HGXX')).find('.FJ').append(tmp);
389
+//                      var tmp = '';
390
+//                      if (n.File) {
391
+//                          $.each(n.File, function (d, f) {
392
+//                              tmp += '<a style="margin-right:5px;" href="' + f.F_FileUrl + '" download="' + f.F_FileUrl + '">' + f.F_FileName.substring(19) + '</a>';
393
+//                          })
394
+//                      }
395
+                        $(temp).appendTo($('.HGXX'))
396
+//                      .find('.FJ')
397
+//                      .append(tmp);
322 398
 
323 399
                     });
324 400
 
@@ -395,8 +471,17 @@
395 471
             }, function (result) {
396 472
                 if (result.state.toLowerCase() == "success") {
397 473
                     if (result.data.length > 0) {
398
-                        $("#dealman").val(result.data[0].F_DealUser);
399
-                        $('#result').val(result.data[0].F_Result);
474
+                        var IsProResultValue = result.data[0].F_IsProResult + "";
475
+						isProResultJudge(IsProResultValue);
476
+                        $("#dealman").val(result.data[0].F_DealUser); //承办人
477
+                        $("#result").val(result.data[0].F_Result); //办理内容
478
+                        $('#isProResultRadio input[name="isDisposeResult"][value="' + result.data[0].F_IsProResult +'"]').prop("checked", true);//是否有处理结果
479
+                        $("#prosituation").val(result.data[0].F_ProSituation); //处理方案/进程
480
+						$("#dealcontact").val(result.data[0].F_DealUserContact); //联系方式
481
+						$("#connecttime").val(result.data[0].F_ConnectTime); //沟通时间
482
+						$("#connectmode").val(result.data[0].F_ConnectMode); //沟通方式
483
+						$("#replycontent").val(result.data[0].F_ReplyContent); //答复内容
484
+						$('#isStaisfiedRadio input[name="isstaisfied"][value="' + result.data[0].F_IsSatisfied +'"]').prop("checked", true);  //是否满意
400 485
                         a = result.data[0].F_Id;
401 486
                     };
402 487
 
@@ -474,6 +559,37 @@
474 559
             })
475 560
             $("#file").val(Str);
476 561
         }
562
+        // 处理结果判断
563
+        function isProResultJudge (isProResultdata) {
564
+			if(isProResultdata === '1') {
565
+				if (isProtect === "1" ) {
566
+					$(".prosituation-wrapper").hide(); //处理方案/进程
567
+					$(".annotation-wrapper").hide(); //注释
568
+					$(".dealcontact-wrapper").show(); //联系方式
569
+					$(".connecttime-wrapper").hide(); //沟通时间
570
+					$(".connectmode-wrapper").hide(); //沟通方式
571
+					$(".replycontent-wrapper").hide(); //答复内容
572
+					$(".isstaisfied-wrapper").hide();  //是否满意
573
+				} else if (isProtect === "0") {
574
+					$(".prosituation-wrapper").hide(); //处理方案/进程
575
+					$(".annotation-wrapper").hide(); //注释
576
+					$(".dealcontact-wrapper").hide(); //联系方式
577
+					$(".connecttime-wrapper").show(); //沟通时间
578
+					$(".connectmode-wrapper").show(); //沟通方式
579
+					$(".replycontent-wrapper").show(); //答复内容
580
+					$(".isstaisfied-wrapper").show();  //是否满意
581
+				}
582
+			} else if (isProResultdata === '2') {
583
+				$(".prosituation-wrapper").show(); //处理方案/进程
584
+				$(".annotation-wrapper").show(); //注释
585
+				$(".dealcontact-wrapper").hide(); //联系方式
586
+				$(".connecttime-wrapper").hide(); //沟通时间
587
+				$(".connectmode-wrapper").hide(); //沟通方式
588
+				$(".replycontent-wrapper").hide(); //答复内容
589
+				$(".isstaisfied-wrapper").hide();  //是否满意
590
+			}
591
+        }
592
+
477 593
     </script>
478 594
 </body>
479 595