ソースを参照

Merge branch 'master' of http://192.168.1.222:3000/zhoufan/12345_Base_Web

fanlongfei 8 年 前
コミット
ca05dd4bdf

+ 27 - 18
WebUI/CallCenterWeb.UI/Appeal/AddAppeal.html

104
 						<tr>
104
 						<tr>
105
 							<th>附件上传:</th>
105
 							<th>附件上传:</th>
106
 							<td colspan="7">
106
 							<td colspan="7">
107
+								<div class="fileBox">
108
+									<!--<span class="files">文件1<i class="fa fa-remove"></i></span>-->
109
+								</div>
107
 								<!--<input type="text" placeholder="输入附件详情" style="width:66%" />-->
110
 								<!--<input type="text" placeholder="输入附件详情" style="width:66%" />-->
108
-								<span class="fjnr"></span>
111
+								<!--<span class="fjnr"></span>-->
109
 								<input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
112
 								<input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
110
 								<input class="input" type="button" value="上传" id="scwj" />
113
 								<input class="input" type="button" value="上传" id="scwj" />
111
 								<input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />
114
 								<input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />
183
 					}else{
186
 					}else{
184
 						$(".Nows_box").hide();
187
 						$(".Nows_box").hide();
185
 					}
188
 					}
186
-					
187
 				})
189
 				})
188
-				
189
 				$(".BC").click(function() {
190
 				$(".BC").click(function() {
190
-
191
 					submit = 0;
191
 					submit = 0;
192
 					Add();
192
 					Add();
193
 				})
193
 				})
203
 					upload();
203
 					upload();
204
 				})
204
 				})
205
 				$("#scfj").click(function() {
205
 				$("#scfj").click(function() {
206
-					$(".fjnr").text("");
207
-					$("#scfj").hide();
206
+//					$(".fjnr").text("");
207
+//					$("#scfj").hide();
208
 				})
208
 				})
209
 			});
209
 			});
210
 
210
 
228
 				    layer.msg("请输入直办内容");
228
 				    layer.msg("请输入直办内容");
229
 
229
 
230
 				} else {
230
 				} else {
231
-
232
 					$.ajax({
231
 					$.ajax({
233
 						type: "post",
232
 						type: "post",
234
 						url: huayi.config.callcenter_url + "/WorkOrder/AddWorkOrder",
233
 						url: huayi.config.callcenter_url + "/WorkOrder/AddWorkOrder",
258
 						},
257
 						},
259
 						success: function(data) {
258
 						success: function(data) {
260
 							Clean();
259
 							Clean();
260
+							$('.fileBox').html('');
261
 							layer.msg("创建工单成功");
261
 							layer.msg("创建工单成功");
262
-
263
 						}
262
 						}
264
 					});
263
 					});
265
 				}
264
 				}
294
 							});
293
 							});
295
 							var r = $.parseJSON(result);
294
 							var r = $.parseJSON(result);
296
 							if(r.state.toLowerCase() == "success") {
295
 							if(r.state.toLowerCase() == "success") {
297
-								$(".fjnr").text(r.data[0].F_FileName);
296
+//								$(".fjnr").text(r.data[0].F_FileName);
298
 								var a = r.data;
297
 								var a = r.data;
299
-								var str = '';
300
-								var Str;
301
-
302
 								$(a).each(function(i, n) {
298
 								$(a).each(function(i, n) {
303
-									console.log(n.F_FileId);
304
-									str += n.F_FileId + ",";
305
-									Str = (str.substring(str.length - 1) == ',') ? str.substring(0, str.length - 1) : str;
306
-									console.log(Str);
299
+								var strs='<span class="files" fiel-num="'+ n.F_FileId +'">'+ n.F_FileName +'<i class="fa fa-remove del_file"></i></span>'
300
+								$(strs).appendTo($('.fileBox')).find('.del_file').click(function(event){
301
+									event.stopPropagation();
302
+									$(this).parent().remove();
303
+										file_num()
304
+								})
307
 								})
305
 								})
308
-								$("#file").val(Str);
309
-								$("#scfj").show();
306
+							file_num()
310
 							}
307
 							}
311
 						}
308
 						}
312
 					});
309
 					});
316
 					});
313
 					});
317
 				}
314
 				}
318
 			}
315
 			}
316
+			//上传文件隐藏域值
317
+			function file_num(){
318
+				var str = '';
319
+				var Str;
320
+				$('.fileBox .files').each(function(j,m){
321
+					var aa=$(m).attr("fiel-num")
322
+					console.log(aa);
323
+					str += aa + ",";
324
+					Str = (str.substring(str.length - 1) == ',') ? str.substring(0, str.length - 1) : str;
325
+				})
326
+				$("#file").val(Str);	
327
+			}
319
 			//来源
328
 			//来源
320
 			function LY(obj) {
329
 			function LY(obj) {
321
 				obj.empty();
330
 				obj.empty();

+ 1 - 1
WebUI/CallCenterWeb.UI/Appeal/Lawsuit.html

658
 				layer.open({
658
 				layer.open({
659
 					type: 2,
659
 					type: 2,
660
 					content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
660
 					content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
661
-					title: '领导批示',
661
+					title: '市长批示',
662
 					area: ['60%', '80%'], //宽高
662
 					area: ['60%', '80%'], //宽高
663
 				});
663
 				});
664
 			}
664
 			}

+ 39 - 18
WebUI/CallCenterWeb.UI/CommonHtml/AddAppeal.html

91
 						<tr>
91
 						<tr>
92
 							<th>附件上传:</th>
92
 							<th>附件上传:</th>
93
 							<td colspan="7">
93
 							<td colspan="7">
94
-								<!--<input type="text" placeholder="输入附件详情" style="width:66%" />-->
95
-								<span class="fjnr"></span>
94
+								<div class="fileBox">
95
+									
96
+								</div>
97
+								<!--<span class="fjnr"></span>-->
96
 								<input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
98
 								<input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
97
 								<input class="input" type="button" value="上传" id="scwj" />
99
 								<input class="input" type="button" value="上传" id="scwj" />
98
 								<input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />
100
 								<input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />
185
 				$("#upFile").change(function() {
187
 				$("#upFile").change(function() {
186
 					upload();
188
 					upload();
187
 				})
189
 				})
188
-				$("#scfj").click(function() {
189
-					$(".fjnr").text("");
190
-					$("#scfj").hide();
191
-				})
190
+//				$("#scfj").click(function() {
191
+//					$(".fjnr").text("");
192
+//					$("#scfj").hide();
193
+//				})
192
 				$(".SavedSubmit").click(function() {
194
 				$(".SavedSubmit").click(function() {
193
 					submit = 1;
195
 					submit = 1;
194
 					Add()
196
 					Add()
227
 							$(' input[name="banli"][value="' + Data[0].F_IsResult + '"]').prop("checked", "checked");
229
 							$(' input[name="banli"][value="' + Data[0].F_IsResult + '"]').prop("checked", "checked");
228
 							$('#sourceaddress').val(Data[0].F_SourceAddress);
230
 							$('#sourceaddress').val(Data[0].F_SourceAddress);
229
 							$('.F_FinalOpinion').val(Data[0].F_FinalOpinion);
231
 							$('.F_FinalOpinion').val(Data[0].F_FinalOpinion);
230
-							console.log(Data);
231
-
232
+							$(Data[0].File).each(function(k,q){
233
+								var strs='<span class="files" fiel-num="'+ q.F_FileId +'">'+ q.F_FileName +'<i class="fa fa-remove del_file"></i></span>'
234
+								$(strs).appendTo($('.fileBox')).find('.del_file').click(function(event){
235
+									event.stopPropagation();
236
+									$(this).parent().remove();
237
+										file_num()
238
+								})
239
+								file_num()
240
+							})
232
 						}
241
 						}
233
 					})
242
 					})
234
 
243
 
291
 								parent.layer.close(index); //再执行关闭
300
 								parent.layer.close(index); //再执行关闭
292
 								parent.load();
301
 								parent.load();
293
 								parent.layer.msg(data.message);
302
 								parent.layer.msg(data.message);
303
+								$('.fileBox').html('');
294
 							}
304
 							}
295
 
305
 
296
 						}
306
 						}
297
 					});
307
 					});
298
 				}
308
 				}
299
 			}
309
 			}
310
+				//上传文件隐藏域值
311
+			function file_num(){
312
+				var str = '';
313
+				var Str;
314
+				$('.fileBox .files').each(function(j,m){
315
+					var aa=$(m).attr("fiel-num")
316
+					console.log(aa);
317
+					str += aa + ",";
318
+					Str = (str.substring(str.length - 1) == ',') ? str.substring(0, str.length - 1) : str;
319
+				})
320
+				$("#file").val(Str);	
321
+			}
300
 			//来源
322
 			//来源
301
 			function LY(obj) {
323
 			function LY(obj) {
302
 				obj.empty();
324
 				obj.empty();
387
 							});
409
 							});
388
 							var r = $.parseJSON(result);
410
 							var r = $.parseJSON(result);
389
 							if(r.state.toLowerCase() == "success") {
411
 							if(r.state.toLowerCase() == "success") {
390
-								$(".fjnr").text(r.data[0].F_FileName);
391
 								var a = r.data;
412
 								var a = r.data;
392
-								var str = '';
393
-								var Str;
394
-
395
 								$(a).each(function(i, n) {
413
 								$(a).each(function(i, n) {
396
-									console.log(n.F_FileId);
397
-									str += n.F_FileId + ",";
398
-									Str = (str.substring(str.length - 1) == ',') ? str.substring(0, str.length - 1) : str;
399
-									console.log(Str);
414
+									var strs='<span class="files" fiel-num="'+ n.F_FileId +'">'+ n.F_FileName +'<i class="fa fa-remove del_file"></i></span>'
415
+								$(strs).appendTo($('.fileBox')).find('.del_file').click(function(event){
416
+									event.stopPropagation();
417
+									$(this).parent().remove();
418
+										file_num()
419
+								})
400
 								})
420
 								})
401
-								$("#file").val(Str);
402
-								$("#scfj").show();
421
+//								$("#file").val(Str);
422
+//								$("#scfj").show();
423
+									file_num()
403
 							}
424
 							}
404
 						}
425
 						}
405
 					});
426
 					});

+ 39 - 18
WebUI/CallCenterWeb.UI/CommonHtml/AddAppeals.html

98
 						<tr>
98
 						<tr>
99
 							<th>附件上传:</th>
99
 							<th>附件上传:</th>
100
 							<td colspan="7">
100
 							<td colspan="7">
101
+								<div class="fileBox">
102
+									
103
+								</div>
101
 								<!--<input type="text" placeholder="输入附件详情" style="width:66%" />-->
104
 								<!--<input type="text" placeholder="输入附件详情" style="width:66%" />-->
102
-								<span class="fjnr"></span>
105
+								<!--<span class="fjnr"></span>-->
103
 								<input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
106
 								<input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
104
 								<input class="input" type="button" value="上传" id="scwj" />
107
 								<input class="input" type="button" value="上传" id="scwj" />
105
-								<input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />
108
+								<!--<input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />-->
106
 								<input type="hidden" id="file" />
109
 								<input type="hidden" id="file" />
107
 							</td>
110
 							</td>
108
 						</tr>
111
 						</tr>
192
 				$("#upFile").change(function() {
195
 				$("#upFile").change(function() {
193
 					upload();
196
 					upload();
194
 				})
197
 				})
195
-				$("#scfj").click(function() {
196
-					$(".fjnr").text("");
197
-					$("#scfj").hide();
198
-				})
198
+//				$("#scfj").click(function() {
199
+//					$(".fjnr").text("");
200
+//					$("#scfj").hide();
201
+//				})
199
 				$(".SavedSubmit").click(function() {
202
 				$(".SavedSubmit").click(function() {
200
 					submit = 1;
203
 					submit = 1;
201
 					Add()
204
 					Add()
235
 							$(' input[name="mj"][value="' + Data[0].F_IsProtect + '"]').prop("checked", "checked");
238
 							$(' input[name="mj"][value="' + Data[0].F_IsProtect + '"]').prop("checked", "checked");
236
 							$('.F_SourceAddress').val(Data[0].F_SourceAddress);
239
 							$('.F_SourceAddress').val(Data[0].F_SourceAddress);
237
 							$('.F_FinalOpinion').val(Data[0].F_FinalOpinion);
240
 							$('.F_FinalOpinion').val(Data[0].F_FinalOpinion);
238
-							console.log(Data);
239
-
241
+							$(Data[0].File).each(function(k,q){
242
+								var strs='<span class="files" fiel-num="'+ q.F_FileId +'">'+ q.F_FileName +'<i class="fa fa-remove del_file"></i></span>'
243
+								$(strs).appendTo($('.fileBox')).find('.del_file').click(function(event){
244
+									event.stopPropagation();
245
+									$(this).parent().remove();
246
+										file_num()
247
+								})
248
+								file_num()
249
+							})
240
 						}
250
 						}
241
 					})
251
 					})
242
 
252
 
301
 								parent.layer.close(index); //再执行关闭
311
 								parent.layer.close(index); //再执行关闭
302
 								parent.load();
312
 								parent.load();
303
 								parent.layer.msg(data.message);
313
 								parent.layer.msg(data.message);
314
+									$('.fileBox').html('');
304
 							}
315
 							}
305
 
316
 
306
 						}
317
 						}
397
 							});
408
 							});
398
 							var r = $.parseJSON(result);
409
 							var r = $.parseJSON(result);
399
 							if(r.state.toLowerCase() == "success") {
410
 							if(r.state.toLowerCase() == "success") {
400
-								$(".fjnr").text(r.data[0].F_FileName);
411
+//								$(".fjnr").text(r.data[0].F_FileName);
401
 								var a = r.data;
412
 								var a = r.data;
402
-								var str = '';
403
-								var Str;
404
-
405
 								$(a).each(function(i, n) {
413
 								$(a).each(function(i, n) {
406
-									console.log(n.F_FileId);
407
-									str += n.F_FileId + ",";
408
-									Str = (str.substring(str.length - 1) == ',') ? str.substring(0, str.length - 1) : str;
409
-									console.log(Str);
414
+									var strs='<span class="files" fiel-num="'+ n.F_FileId +'">'+ n.F_FileName +'<i class="fa fa-remove del_file"></i></span>'
415
+									$(strs).appendTo($('.fileBox')).find('.del_file').click(function(event){
416
+									event.stopPropagation();
417
+									$(this).parent().remove();
418
+										file_num();
419
+									})
410
 								})
420
 								})
411
-								$("#file").val(Str);
412
-								$("#scfj").show();
421
+								file_num();
413
 							}
422
 							}
414
 						}
423
 						}
415
 					});
424
 					});
419
 					});
428
 					});
420
 				}
429
 				}
421
 			}
430
 			}
431
+					//上传文件隐藏域值
432
+			function file_num(){
433
+				var str = '';
434
+				var Str;
435
+				$('.fileBox .files').each(function(j,m){
436
+					var aa=$(m).attr("fiel-num")
437
+					console.log(aa);
438
+					str += aa + ",";
439
+					Str = (str.substring(str.length - 1) == ',') ? str.substring(0, str.length - 1) : str;
440
+				})
441
+				$("#file").val(Str);	
442
+			}
422
 		</script>
443
 		</script>
423
 	</body>
444
 	</body>
424
 
445
 

+ 33 - 16
WebUI/CallCenterWeb.UI/CommonHtml/Leader.html

39
 				<tr>
39
 				<tr>
40
 					<th>附件上传:</th>
40
 					<th>附件上传:</th>
41
 					<td colspan="7">
41
 					<td colspan="7">
42
-						<span class="fjnr"></span>
42
+						<!--<span class="fjnr"></span>-->
43
+							<div class="fileBox">
44
+							
45
+						</div>
43
 								<input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
46
 								<input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
44
 								<input class="input" type="button" value="上传" id="scwj" />
47
 								<input class="input" type="button" value="上传" id="scwj" />
45
-								<input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />
48
+								<!--<input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />-->
46
 								<input type="hidden" id="file" />
49
 								<input type="hidden" id="file" />
47
 					</td>
50
 					</td>
48
 				</tr>
51
 				</tr>
63
 				$("#upFile").change(function() {
66
 				$("#upFile").change(function() {
64
 					upload();
67
 					upload();
65
 				})
68
 				})
66
-				$("#scfj").click(function() {
67
-					$(".fjnr").text("");
68
-					$("#scfj").hide();
69
-				})
69
+//				$("#scfj").click(function() {
70
+//					$(".fjnr").text("");
71
+//					$("#scfj").hide();
72
+//				})
70
 				$(".btns").click(function(){
73
 				$(".btns").click(function(){
71
 					JA();
74
 					JA();
72
 				})
75
 				})
88
                     parent.layer.close(index); //再执行关闭
91
                     parent.layer.close(index); //再执行关闭
89
 						  parent.load();
92
 						  parent.load();
90
 						  parent.layer.msg("操作成功");
93
 						  parent.layer.msg("操作成功");
94
+						  $('.fileBox').html('');
91
                   	
95
                   	
92
 					}
96
 					}
93
 				})
97
 				})
120
 							});
124
 							});
121
 							var r = $.parseJSON(result);
125
 							var r = $.parseJSON(result);
122
 							if(r.state.toLowerCase() == "success") {
126
 							if(r.state.toLowerCase() == "success") {
123
-								$(".fjnr").text(r.data[0].F_FileName);
124
 								var a = r.data;
127
 								var a = r.data;
125
-								var str = '';
126
-								var Str;
127
-
128
 								$(a).each(function(i, n) {
128
 								$(a).each(function(i, n) {
129
-									console.log(n.F_FileId);
130
-									str += n.F_FileId + ",";
131
-									Str = (str.substring(str.length - 1) == ',') ? str.substring(0, str.length - 1) : str;
132
-									console.log(Str);
129
+									var strs='<span class="files" fiel-num="'+ n.F_FileId +'">'+ n.F_FileName +'<i class="fa fa-remove del_file"></i></span>'
130
+									$(strs).appendTo($('.fileBox')).find('.del_file').click(function(event){
131
+										event.stopPropagation();
132
+										$(this).parent().remove();
133
+											file_num();
134
+									});
133
 								})
135
 								})
134
-								$("#file").val(Str);
135
-								$("#scfj").show();
136
+								file_num();
136
 							}
137
 							}
137
 						}
138
 						}
138
 					});
139
 					});
142
 					});
143
 					});
143
 				}
144
 				}
144
 			}
145
 			}
146
+			
147
+			
148
+			//上传文件隐藏域值
149
+			function file_num(){
150
+				var str = '';
151
+				var Str;
152
+				$('.fileBox .files').each(function(j,m){
153
+					var aa=$(m).attr("fiel-num")
154
+					console.log(aa);
155
+					str += aa + ",";
156
+					Str = (str.substring(str.length - 1) == ',') ? str.substring(0, str.length - 1) : str;
157
+				})
158
+				$("#file").val(Str);	
159
+			}
160
+			
161
+			
145
 		</script>
162
 		</script>
146
 	</body>
163
 	</body>
147
 
164
 

+ 35 - 18
WebUI/CallCenterWeb.UI/CommonHtml/Supervision_.html

35
 				<tr>
35
 				<tr>
36
 					<th>附件上传:</th>
36
 					<th>附件上传:</th>
37
 					<td colspan="7">
37
 					<td colspan="7">
38
-						<span class="fjnr"></span>
39
-								<input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
40
-								<input class="input" type="button" value="上传" id="scwj" />
41
-								<input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />
42
-								<input type="hidden" id="file" />
38
+						<!--<span class="fjnr"></span>-->
39
+						<div class="fileBox">
40
+									<!--<span class="files">文件1<i class="fa fa-remove"></i></span>-->
41
+						</div>
42
+						<input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
43
+						<input class="input" type="button" value="上传" id="scwj" />
44
+						<input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />
45
+						<input type="hidden" id="file" />
43
 					</td>
46
 					</td>
44
 				</tr>
47
 				</tr>
45
 			</table>
48
 			</table>
83
 				$("#upFile").change(function() {
86
 				$("#upFile").change(function() {
84
 					upload();
87
 					upload();
85
 				})
88
 				})
86
-				$("#scfj").click(function() {
87
-					$(".fjnr").text("");
88
-					$("#scfj").hide();
89
-				})
89
+//				$("#scfj").click(function() {
90
+//					$(".fjnr").text("");
91
+//					$("#scfj").hide();
92
+//				})
90
 			})
93
 			})
91
 			//督察
94
 			//督察
92
 			function JA() {
95
 			function JA() {
104
 						parent.layer.close(index); //再执行关闭
107
 						parent.layer.close(index); //再执行关闭
105
 						parent.load();
108
 						parent.load();
106
 						parent.layer.msg("操作成功");
109
 						parent.layer.msg("操作成功");
107
-
110
+							$('.fileBox').html('');
108
 					}
111
 					}
109
 				})
112
 				})
110
 			}
113
 			}
139
 							if(r.state.toLowerCase() == "success") {
142
 							if(r.state.toLowerCase() == "success") {
140
 								$(".fjnr").text(r.data[0].F_FileName);
143
 								$(".fjnr").text(r.data[0].F_FileName);
141
 								var a = r.data;
144
 								var a = r.data;
142
-								var str = '';
143
-								var Str;
145
+//								var str = '';
146
+//								var Str;
144
 
147
 
145
 								$(a).each(function(i, n) {
148
 								$(a).each(function(i, n) {
146
-									console.log(n.F_FileId);
147
-									str += n.F_FileId + ",";
148
-									Str = (str.substring(str.length - 1) == ',') ? str.substring(0, str.length - 1) : str;
149
-									console.log(Str);
149
+									var strs='<span class="files" fiel-num="'+ n.F_FileId +'">'+ n.F_FileName +'<i class="fa fa-remove del_file"></i></span>'
150
+								$(strs).appendTo($('.fileBox')).find('.del_file').click(function(event){
151
+									event.stopPropagation();
152
+									$(this).parent().remove();
153
+										file_num();
154
+								})
150
 								})
155
 								})
151
-								$("#file").val(Str);
152
-								$("#scfj").show();
156
+								file_num();
153
 							}
157
 							}
154
 						}
158
 						}
155
 					});
159
 					});
159
 					});
163
 					});
160
 				}
164
 				}
161
 			}
165
 			}
166
+			
167
+				//上传文件隐藏域值
168
+			function file_num(){
169
+				var str = '';
170
+				var Str;
171
+				$('.fileBox .files').each(function(j,m){
172
+					var aa=$(m).attr("fiel-num")
173
+					console.log(aa);
174
+					str += aa + ",";
175
+					Str = (str.substring(str.length - 1) == ',') ? str.substring(0, str.length - 1) : str;
176
+				})
177
+				$("#file").val(Str);	
178
+			}
162
 		</script>
179
 		</script>
163
 	</body>
180
 	</body>
164
 
181
 

File diff suppressed because it is too large
+ 1 - 1
WebUI/CallCenterWeb.UI/CommonHtml/WorkDatil.html


+ 39 - 18
WebUI/CallCenterWeb.UI/CommonHtml/XGwordel.html

91
 						<tr>
91
 						<tr>
92
 							<th>附件上传:</th>
92
 							<th>附件上传:</th>
93
 							<td colspan="7">
93
 							<td colspan="7">
94
+								<div class="fileBox">
95
+									
96
+								</div>
94
 								<!--<input type="text" placeholder="输入附件详情" style="width:66%" />-->
97
 								<!--<input type="text" placeholder="输入附件详情" style="width:66%" />-->
95
-								<span class="fjnr"></span>
98
+								<!--<span class="fjnr"></span>-->
96
 								<input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
99
 								<input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
97
 								<input class="input" type="button" value="上传" id="scwj" />
100
 								<input class="input" type="button" value="上传" id="scwj" />
98
-								<input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />
101
+								<!--<input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />-->
99
 								<input type="hidden" id="file" />
102
 								<input type="hidden" id="file" />
100
 							</td>
103
 							</td>
101
 						</tr>
104
 						</tr>
173
 				$("#upFile").change(function() {
176
 				$("#upFile").change(function() {
174
 					upload();
177
 					upload();
175
 				})
178
 				})
176
-				$("#scfj").click(function() {
177
-					$(".fjnr").text("");
178
-					$("#scfj").hide();
179
-				})
179
+//				$("#scfj").click(function() {
180
+//					$(".fjnr").text("");
181
+//					$("#scfj").hide();
182
+//				})
180
 				$(".SavedSubmit").click(function() {
183
 				$(".SavedSubmit").click(function() {
181
 					submit = 1;
184
 					submit = 1;
182
 					Add()
185
 					Add()
215
 							
218
 							
216
 							$('#sourceaddress').val(Data[0].F_SourceAddress);
219
 							$('#sourceaddress').val(Data[0].F_SourceAddress);
217
 							$('.F_FinalOpinion').val(Data[0].F_FinalOpinion);
220
 							$('.F_FinalOpinion').val(Data[0].F_FinalOpinion);
218
-							console.log(Data);
219
-
221
+							$(Data[0].File).each(function(k,q){
222
+								var strs='<span class="files" fiel-num="'+ q.F_FileId +'">'+ q.F_FileName +'<i class="fa fa-remove del_file"></i></span>'
223
+								$(strs).appendTo($('.fileBox')).find('.del_file').click(function(event){
224
+									event.stopPropagation();
225
+									$(this).parent().remove();
226
+										file_num()
227
+								})
228
+								file_num()
229
+							})
220
 						}
230
 						}
221
 					})
231
 					})
222
 
232
 
274
 								parent.layer.close(index); //再执行关闭
284
 								parent.layer.close(index); //再执行关闭
275
 								parent.load();
285
 								parent.load();
276
 								parent.layer.msg(data.message);
286
 								parent.layer.msg(data.message);
287
+								$('.fileBox').html('');
288
+								
277
 							}
289
 							}
278
 
290
 
279
 						}
291
 						}
370
 							});
382
 							});
371
 							var r = $.parseJSON(result);
383
 							var r = $.parseJSON(result);
372
 							if(r.state.toLowerCase() == "success") {
384
 							if(r.state.toLowerCase() == "success") {
373
-								$(".fjnr").text(r.data[0].F_FileName);
374
 								var a = r.data;
385
 								var a = r.data;
375
-								var str = '';
376
-								var Str;
377
-
378
 								$(a).each(function(i, n) {
386
 								$(a).each(function(i, n) {
379
-									console.log(n.F_FileId);
380
-									str += n.F_FileId + ",";
381
-									Str = (str.substring(str.length - 1) == ',') ? str.substring(0, str.length - 1) : str;
382
-									console.log(Str);
387
+									var strs='<span class="files" fiel-num="'+ n.F_FileId +'">'+ n.F_FileName +'<i class="fa fa-remove del_file"></i></span>'
388
+									$(strs).appendTo($('.fileBox')).find('.del_file').click(function(event){
389
+									event.stopPropagation();
390
+									$(this).parent().remove();
391
+										file_num();
392
+										})
383
 								})
393
 								})
384
-								$("#file").val(Str);
385
-								$("#scfj").show();
394
+									file_num();
386
 							}
395
 							}
387
 						}
396
 						}
388
 					});
397
 					});
392
 					});
401
 					});
393
 				}
402
 				}
394
 			}
403
 			}
404
+					//上传文件隐藏域值
405
+			function file_num(){
406
+				var str = '';
407
+				var Str;
408
+				$('.fileBox .files').each(function(j,m){
409
+					var aa=$(m).attr("fiel-num")
410
+					console.log(aa);
411
+					str += aa + ",";
412
+					Str = (str.substring(str.length - 1) == ',') ? str.substring(0, str.length - 1) : str;
413
+				})
414
+				$("#file").val(Str);	
415
+			}
395
 		</script>
416
 		</script>
396
 	</body>
417
 	</body>
397
 
418
 

+ 28 - 16
WebUI/CallCenterWeb.UI/CommonHtml/shizhang.html

35
 				<tr>
35
 				<tr>
36
 					<th class="Importent">附件:</th>
36
 					<th class="Importent">附件:</th>
37
 					<td> 
37
 					<td> 
38
-						<span class="fjnr"></span>
38
+						<div class="fileBox">
39
+							
40
+						</div>
39
 								<input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
41
 								<input class="input" type="file" name="upFile" id="upFile" multiple="multiple" style="display: none;">
40
 								<input class="input" type="button" value="上传" id="scwj" />
42
 								<input class="input" type="button" value="上传" id="scwj" />
41
 								<input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />
43
 								<input class="input" type="button" value="删除附件" id="scfj" style="display:none;" />
63
 				$("#upFile").change(function() {
65
 				$("#upFile").change(function() {
64
 					upload();
66
 					upload();
65
 				})
67
 				})
66
-				$("#scfj").click(function() {
67
-					$(".fjnr").text("");
68
-					$("#scfj").hide();
69
-				})
68
+//				$("#scfj").click(function() {
69
+//					$(".fjnr").text("");
70
+//					$("#scfj").hide();
71
+//				})
70
 				$(".btns").click(function(){
72
 				$(".btns").click(function(){
71
 					if($("#superopinion").val()==''){
73
 					if($("#superopinion").val()==''){
72
 						layer.msg("意见不能为空");
74
 						layer.msg("意见不能为空");
92
                     parent.layer.close(index); //再执行关闭
94
                     parent.layer.close(index); //再执行关闭
93
 						  parent.load();
95
 						  parent.load();
94
 						  parent.layer.msg("操作成功");
96
 						  parent.layer.msg("操作成功");
95
-                  	
97
+						  $('.fileBox').html('');
96
 					}
98
 					}
97
 				})
99
 				})
98
 			}
100
 			}
125
 							});
127
 							});
126
 							var r = $.parseJSON(result);
128
 							var r = $.parseJSON(result);
127
 							if(r.state.toLowerCase() == "success") {
129
 							if(r.state.toLowerCase() == "success") {
128
-								$(".fjnr").text(r.data[0].F_FileName);
129
 								var a = r.data;
130
 								var a = r.data;
130
-								var str = '';
131
-								var Str;
132
-
133
 								$(a).each(function(i, n) {
131
 								$(a).each(function(i, n) {
134
-									console.log(n.F_FileId);
135
-									str += n.F_FileId + ",";
136
-									Str = (str.substring(str.length - 1) == ',') ? str.substring(0, str.length - 1) : str;
137
-									console.log(Str);
132
+									var strs='<span class="files" fiel-num="'+ n.F_FileId +'">'+ n.F_FileName +'<i class="fa fa-remove del_file"></i></span>'
133
+									$(strs).appendTo($('.fileBox')).find('.del_file').click(function(event){
134
+										event.stopPropagation();
135
+										$(this).parent().remove();
136
+											file_num();
137
+									})
138
 								})
138
 								})
139
-								$("#file").val(Str);
140
-								$("#scfj").show();
139
+							file_num();
141
 							}
140
 							}
142
 						}
141
 						}
143
 					});
142
 					});
147
 					});
146
 					});
148
 				}
147
 				}
149
 			}
148
 			}
149
+			
150
+				//上传文件隐藏域值
151
+			function file_num(){
152
+				var str = '';
153
+				var Str;
154
+				$('.fileBox .files').each(function(j,m){
155
+					var aa=$(m).attr("fiel-num")
156
+					console.log(aa);
157
+					str += aa + ",";
158
+					Str = (str.substring(str.length - 1) == ',') ? str.substring(0, str.length - 1) : str;
159
+				})
160
+				$("#file").val(Str);	
161
+			}
150
 		</script>
162
 		</script>
151
 	</body>
163
 	</body>
152
 
164
 

+ 29 - 0
WebUI/CallCenterWeb.UI/YeWu/businessBrief.html

10
     <link href="../css/init.css" rel="stylesheet" />
10
     <link href="../css/init.css" rel="stylesheet" />
11
     <script src="../js/laydate/laydate.js"></script>
11
     <script src="../js/laydate/laydate.js"></script>
12
     <script src="../js/jquery.table2excel.js"></script>
12
     <script src="../js/jquery.table2excel.js"></script>
13
+    <!--<script src="../js/excellentexport.js"></script>-->
13
     <style>
14
     <style>
14
         .Shows {
15
         .Shows {
15
             display: block !important;
16
             display: block !important;
211
                                 <span class="time-box"><i class="tub fa fa-calendar"></i><input class="photo x-color inputs laydate-icon" type="text" id="endTimes_1" /></span>
212
                                 <span class="time-box"><i class="tub fa fa-calendar"></i><input class="photo x-color inputs laydate-icon" type="text" id="endTimes_1" /></span>
212
                                 <button class="btns search_1">查询</button>
213
                                 <button class="btns search_1">查询</button>
213
                                 <button class="btns export_1">导出</button>
214
                                 <button class="btns export_1">导出</button>
215
+                                <!--<a id="export_1" class="btns export_1" href="">导出</a>-->
214
                             </div>
216
                             </div>
215
                         </div>
217
                         </div>
216
                         <!--startprint1-->
218
                         <!--startprint1-->
539
                                 <span class="time-box"><i class="tub fa fa-calendar"></i><input class="photo x-color inputs laydate-icon" type="text" id="monthDateTimes" /></span>
541
                                 <span class="time-box"><i class="tub fa fa-calendar"></i><input class="photo x-color inputs laydate-icon" type="text" id="monthDateTimes" /></span>
540
                                 <button class="btns search_2">查询</button>
542
                                 <button class="btns search_2">查询</button>
541
                                 <button class="btns export_2">导出</button>
543
                                 <button class="btns export_2">导出</button>
544
+                                <!--<a id="export_2" class="btns export_2" href="">导出</a>-->
542
                             </div>
545
                             </div>
543
                         </div>
546
                         </div>
544
                         <!--startprint2-->
547
                         <!--startprint2-->
994
             initTableBrief(briefIndex);
997
             initTableBrief(briefIndex);
995
         });
998
         });
996
         $(".export_1").click(function () {
999
         $(".export_1").click(function () {
1000
+
1001
+            //var url = huayi.config.callcenter_url + "DataAnalysis/GetSimpleReport?token=" + $.cookie("token");
1002
+            //url += "&html=" + encodeURIComponent($("#weeklist").html()) + "&isdc=1";
1003
+            //$(".export_1").attr('href', url);
1004
+
1005
+            //return ExcellentExport.convert({
1006
+            //    anchor: 'export_1',
1007
+            //    filename: '业务简报周报',
1008
+            //    format: 'xlsx'
1009
+            //}, [{
1010
+            //    name: 'Sheet',
1011
+            //    from: {
1012
+            //        table: 'weeklist'
1013
+            //    }
1014
+            //}]);
1015
+
997
             $("#weeklist").table2excel({
1016
             $("#weeklist").table2excel({
998
                 exclude: ".noExl",
1017
                 exclude: ".noExl",
999
                 name: "业务简报周报",
1018
                 name: "业务简报周报",
1004
             });
1023
             });
1005
         });
1024
         });
1006
         $(".export_2").click(function () {
1025
         $(".export_2").click(function () {
1026
+            //return ExcellentExport.convert({
1027
+            //    anchor: 'export_2',
1028
+            //    filename: '业务简报月报',
1029
+            //    format: 'xlsx'
1030
+            //}, [{
1031
+            //    name: 'Sheet',
1032
+            //    from: {
1033
+            //        table: 'monthlist'
1034
+            //    }
1035
+            //}]);
1007
             $("#monthlist").table2excel({
1036
             $("#monthlist").table2excel({
1008
                 exclude: ".noExl",
1037
                 exclude: ".noExl",
1009
                 name: "业务简报月报",
1038
                 name: "业务简报月报",

+ 41 - 8
WebUI/CallCenterWeb.UI/css/init.css

280
 	background-color: #00A1CB;
280
 	background-color: #00A1CB;
281
 }
281
 }
282
 .Reds{
282
 .Reds{
283
-				color:#ed5565;
284
-			}
285
-			.Greens{
286
-				color: #46be8a;
287
-			}
288
-			.Yellows{
289
-				color: #FF9800;
290
-			}
283
+		color:#ed5565;
284
+	}
285
+	.Greens{
286
+		color: #46be8a;
287
+	}
288
+	.Yellows{
289
+		color: #FF9800;
290
+	}
291
+	/*工单上传附件*/
292
+	.files{
293
+			display: inline-block;
294
+			background: #666;
295
+		    color: #fff!important;
296
+		    font-size: 12px;
297
+		    padding: 0 5px!important;
298
+			border: 0!important;
299
+			margin-left: 8px!important;
300
+			    margin-bottom: 3px;
301
+		}
302
+		.files i{
303
+			margin-left: 3px;
304
+			color: #a9a5a5;
305
+			cursor: pointer;
306
+		}
307
+		.files:hover i{
308
+			color: #fff;
309
+		}
310
+		#scwj{
311
+			padding: 0 12px!important;
312
+			outline: none;
313
+		}
314
+		#scwj:hover{
315
+			background: #03a0cb;
316
+			color: #fff;
317
+			transition: .25s;
318
+		}
319
+		.fileBox{
320
+			display: inline-block;
321
+		}
322
+
323
+

+ 0 - 3
WebUI/CallCenterWeb.UI/css/wh.css

85
     display: none !important;
85
     display: none !important;
86
    
86
    
87
 }
87
 }
88
-
89
 .img {
88
 .img {
90
     display: block;
89
     display: block;
91
     width: 27px;
90
     width: 27px;
95
     right: 0;
94
     right: 0;
96
     top: 15px;
95
     top: 15px;
97
 }
96
 }
98
-
99
 .WH_Itop {
97
 .WH_Itop {
100
     position: relative;
98
     position: relative;
101
 }
99
 }
102
-
103
     .WH_Itop input {
100
     .WH_Itop input {
104
         width: 100%;
101
         width: 100%;
105
         font-size: 30px;
102
         font-size: 30px;

+ 1 - 1
WebUI/CallCenterWeb.UI/index.html

1185
 						<li><span style="font-size: 20px;" class="khgsd"></span></li>
1185
 						<li><span style="font-size: 20px;" class="khgsd"></span></li>
1186
 						<!-- <li class="nikeName"><i></i><span class="ldname">未知</span><i></i></li>-->
1186
 						<!-- <li class="nikeName"><i></i><span class="ldname">未知</span><i></i></li>-->
1187
 						<li style="color: #4cd964;">当前通话时长:<span class="thsc">00:00</span></li>
1187
 						<li style="color: #4cd964;">当前通话时长:<span class="thsc">00:00</span></li>
1188
-						<li class="lahei">
1188
+						<li class="lahei" style="display: none;">
1189
 							<div class="la-before"><i class="push"></i> 移至黑名单</div>
1189
 							<div class="la-before"><i class="push"></i> 移至黑名单</div>
1190
 							<div class="la-after" style="display: none;">
1190
 							<div class="la-after" style="display: none;">
1191
 								<p class="la-time">拉黑时间:<span class="lhtime"></span></p>
1191
 								<p class="la-time">拉黑时间:<span class="lhtime"></span></p>

File diff suppressed because it is too large
+ 18 - 0
WebUI/CallCenterWeb.UI/js/excellentexport.js


+ 19 - 3
WebUI/CallCenterWeb.UI/js/main.js

1494
 		if(result.state.toLowerCase() == "success") {
1494
 		if(result.state.toLowerCase() == "success") {
1495
 			$(".ldcr-bottom .detail-con ul").empty();
1495
 			$(".ldcr-bottom .detail-con ul").empty();
1496
 			$(result.data).each(function(i, n) {
1496
 			$(result.data).each(function(i, n) {
1497
-				var html = '<li>' +
1497
+				var key_w=$(".search").val();
1498
+			 		if(key_w){
1499
+			 			var after_w=n.F_Title.replace(key_w,'<span style="color:red;">'+ key_w +'</span>');
1500
+			 			var html = '<li>' +
1498
 					'   <div class="zhishi-title clearfix">' +
1501
 					'   <div class="zhishi-title clearfix">' +
1499
-					'	    <a href="javascript:void(0);" >' + n.F_Title + '</a>' +
1502
+					'	    <a href="javascript:void(0);" class="titless" >' + after_w+ '</a>'+
1500
 					'	    <em >' + n.F_CreateOn + '</em>' +
1503
 					'	    <em >' + n.F_CreateOn + '</em>' +
1501
 					'   </div>' +
1504
 					'   </div>' +
1502
 					'   <div class="explancon">' +
1505
 					'   <div class="explancon">' +
1503
 					n.F_Content +
1506
 					n.F_Content +
1504
 					'   </div>' +
1507
 					'   </div>' +
1505
 					'</li>';
1508
 					'</li>';
1509
+			 		}else{
1510
+			 			var html = '<li>' +
1511
+					'   <div class="zhishi-title clearfix">' +
1512
+					'	    <a href="javascript:void(0);" class="titless" >' + n.F_Title+ '</a>'+
1513
+					'	    <em >' + n.F_CreateOn + '</em>' +
1514
+					'   </div>' +
1515
+					'   <div class="explancon">' +
1516
+					n.F_Content +
1517
+					'   </div>' +
1518
+					'</li>';
1519
+			 		}
1520
+
1521
+					
1506
 				$(html).appendTo($(".ldcr-bottom .detail-con ul")).find(".zhishi-title").click(function(event) {
1522
 				$(html).appendTo($(".ldcr-bottom .detail-con ul")).find(".zhishi-title").click(function(event) {
1507
 					event.stopPropagation();
1523
 					event.stopPropagation();
1508
 					if($(this).hasClass("active")) {
1524
 					if($(this).hasClass("active")) {
1514
 				})
1530
 				})
1515
 			})
1531
 			})
1516
 		}
1532
 		}
1533
+		
1517
 	})
1534
 	})
1518
 }
1535
 }
1519
-
1520
 //外呼弹屏
1536
 //外呼弹屏
1521
 function whtp() {
1537
 function whtp() {
1522
 	$("#Result").val("");
1538
 	$("#Result").val("");