Ver Código Fonte

报表问题修改

liuyifan 6 anos atrás
pai
commit
0198925a43

+ 327 - 0
CallCenterWeb.UI/ReportForm/complaintProductDateSheet.html

@@ -0,0 +1,327 @@
1
+<!DOCTYPE html>
2
+<html>
3
+
4
+	<head>
5
+
6
+		<meta charset="utf-8">
7
+		<meta name="viewport" content="width=device-width, initial-scale=1.0">
8
+		<title>产品日期分布情况表</title>
9
+		<!--[if lt IE 9]>
10
+	    <meta http-equiv="refresh" content="0;ie.html" />
11
+    	<![endif]-->
12
+	    <script src="../Script/Common/huayi.load.js"></script>
13
+        <script src="../Script/Common/huayi.config.js"></script>
14
+		<link rel="stylesheet" href="../js/select2/css/select2.min.css" />
15
+		<link rel="stylesheet" href="../css/init.css" />
16
+		<style>
17
+			.zxtable {
18
+				font-size: 12px;
19
+				background: #F5F5F5;
20
+			}
21
+			
22
+			.zxt-top {
23
+				background: #FFFFFF;
24
+				height: 60px;
25
+				width: 95%;
26
+				margin: 40px auto 0 auto;
27
+				padding: 10px 20px;
28
+			}
29
+			
30
+			.topCon {
31
+				float: right;
32
+				margin-right: 45px;
33
+			}
34
+			.zxt-content {
35
+				width: 95%;
36
+				margin: 0 auto;
37
+			}
38
+			
39
+			.zxt-table {
40
+				overflow-x: auto;
41
+			}
42
+			
43
+			.zxt-table table {
44
+				font-size: 12px;
45
+				margin: 40px auto;
46
+				width: 85%;
47
+				max-width: 100%;
48
+				background: #FFFFFF;
49
+			}
50
+			
51
+			.zxt-table table tr td {
52
+				/*background: #1ab394;*/
53
+				/*color: #fff;*/
54
+			}
55
+			.header-num-date{
56
+				position: relative;
57
+			}
58
+			
59
+			.num-header{
60
+				position: absolute;
61
+				top: 10px;
62
+				right: 10px;
63
+			}
64
+			
65
+			.date-header{
66
+				position: absolute;
67
+				left: 10px;
68
+				bottom: 10px;
69
+			}
70
+			
71
+		</style>
72
+	</head>
73
+
74
+	<body class="gray-bg" style="background: #fefefe;">
75
+		<div class="zxtable">
76
+			<div class="daoHang clearfix">
77
+					<div class="dhLeft">
78
+					<sapn><i class="syIcon"></i>位置:<a id="ReIndex" href="javaScript:;">首页</a>&gt;<a href="javaScript:;">报表分析</a>&gt;<a href="javaScript:;">业务数据分析</a>&gt;<a href="" class="nowPosition">产品日期分布情况表</a></sapn>
79
+				</div>
80
+					<div class="dhRight">
81
+            		<a href="#" title="刷新"><i class="fa fa-refresh"></i></a>
82
+            	</div>
83
+			</div>
84
+			<div class="zxt-top clearfix">
85
+				<div class="topCon">
86
+					<div class="form-inline th-bar clearfix">
87
+					<div class="time-box form-group" >
88
+						<i class="tub fa fa-calendar"></i>
89
+						<input class="form-control" type="text" id="startTime" placeholder="请选择起止时间" style="width: 228px;">
90
+					</div>
91
+					<div class="form-group tool_bars pull-right">
92
+						<button class="btns sear">搜索</button>
93
+					<a class="btns export">导出</a>
94
+					</div>
95
+					
96
+					</div>
97
+					
98
+				</div>
99
+			</div>
100
+
101
+			<div class="zxt-content">
102
+
103
+				<div class="zxt-table">
104
+					<table class="table table-bordered text-center zjTable">
105
+					</table>
106
+				</div>
107
+			</div>
108
+		</div>
109
+
110
+		<script src="../js/jquery.min.js?v=2.1.4"></script>
111
+		<script src="../js/bootstrap.min.js?v=3.3.6"></script>
112
+		<script src="../js/jquery.cookie.js"></script>
113
+		<script src="../js/laydate/laydate.js"></script>
114
+		<script src="../js/select2/js/select2.min.js"></script>
115
+    
116
+		<script>
117
+			$(function() {
118
+				//日期
119
+				laydate.render({
120
+					elem: '#startTime',
121
+					type: 'date',
122
+					theme: '#1ab394',
123
+//					range: '~',
124
+				});
125
+
126
+				reportForm();
127
+				//点击搜索事件
128
+				$('.sear').click(function() {
129
+					reportForm();
130
+				})
131
+				//按enter搜索
132
+				document.onkeydown = function (e) { // 回车提交表单
133
+				    var theEvent = window.event || e;
134
+    				var code = theEvent.keyCode || theEvent.which || theEvent.charCode;
135
+    				if (code == 13) {
136
+    					reportForm(); 
137
+				    }
138
+				}
139
+				//表格
140
+				function reportForm () {
141
+					$.ajax({
142
+						type: "get",
143
+						dataType: "json",
144
+						url: huayi.config.callcenter_url+"Business/Distribution",
145
+						async: true,
146
+						data: {
147
+							token: $.cookie("token"),
148
+							datetime: $("#startTime").val(),
149
+							isdc: 0,
150
+						},
151
+						success: function(data) {
152
+							if (data.state.toLowerCase() == 'success') {
153
+								var content = data.data.rows;
154
+								$('.table').html('');
155
+								$('.table').append(
156
+									'<tr>'+
157
+									'<td rowspan="1" colspan="12" style="font-size: 16px; font-weight: 700">'+ data.data.msg + '</td>'+
158
+									'</tr>'+
159
+									'<tr>'+
160
+									'<td rowspan="2" colspan="1" class="header-num-date"><div class="num-header">数量</div><div class="date-header">日期</div></td>'+
161
+									'<td rowspan="1" colspan="1">投诉产品</td>'+
162
+									'<td rowspan="1" colspan="2" class="month-count-1name"></td>'+
163
+									'<td rowspan="1" colspan="2" class="month-count-2name"></td>'+
164
+									'<td rowspan="1" colspan="2" class="month-count-3name"></td>'+
165
+									'<td rowspan="1" colspan="2" class="month-count-4name"></td>'+
166
+									'<td rowspan="1" colspan="2" class="month-count-5name"></td>'+
167
+									'</tr>'+
168
+									'<tr>'+
169
+									'<td>数量</td>'+
170
+									'<td>数量</td>'+
171
+									'<td>占比</td>'+
172
+									'<td>数量</td>'+
173
+									'<td>占比</td>'+
174
+									'<td>数量</td>'+
175
+									'<td>占比</td>'+
176
+									'<td>数量</td>'+
177
+									'<td>占比</td>'+
178
+									'<td>数量</td>'+
179
+									'<td>占比</td>'+
180
+									'</tr>'
181
+								);
182
+								//投诉产品日期分布情况表
183
+								$(".month-count-1name").html(content.dates[0].MonthCount1name);
184
+								$(".month-count-2name").html(content.dates[0].MonthCount2name);
185
+								$(".month-count-3name").html(content.dates[0].MonthCount3name);
186
+								$(".month-count-4name").html(content.dates[0].MonthCount4name);
187
+								$(".month-count-5name").html(content.dates[0].MonthCount5name);
188
+								
189
+								for (var i = 0; i < content.dates.length; i++){
190
+									$(".table").append('<tr>'+ 
191
+									'<td>'+ content.dates[i].name + '</td>' +
192
+									'<td>'+ content.dates[i].total + '</td>' +
193
+									'<td>'+ content.dates[i].MonthCount1 + '</td>' +
194
+									'<td>'+ content.dates[i].MonthCountmix1 + '</td>' +
195
+									'<td>'+ content.dates[i].MonthCount2 + '</td>' +
196
+									'<td>'+ content.dates[i].MonthCountmix2 + '</td>' +
197
+									'<td>'+ content.dates[i].MonthCount3 + '</td>' +
198
+									'<td>'+ content.dates[i].MonthCountmix3 + '</td>' +
199
+									'<td>'+ content.dates[i].MonthCount4 + '</td>' +
200
+									'<td>'+ content.dates[i].MonthCountmix4 + '</td>' +
201
+									'<td>'+ content.dates[i].MonthCount5 + '</td>' +
202
+									'<td>'+ content.dates[i].MonthCountmix5 + '</td>' +
203
+									'</tr>')
204
+								}
205
+								
206
+								//工厂投诉比,各质量问题占比,结构占比
207
+								var factoryLen = content.factory.length;
208
+								var cyclesNum = content.problem.length + content.product.length;
209
+								var factoryLenHalfCeil = Math.ceil(factoryLen / 2) ;
210
+								for (var i=0,num=0,p=0; num < cyclesNum; i+=2, num++){
211
+									if (i === 0) {
212
+										$(".table").append('<tr>'+
213
+										'<td rowspan="'+ cyclesNum + '">工厂投诉占比</td>'+
214
+										'<td>' + content.factory[i].name + '</td>'+
215
+										'<td>' + content.factory[i].number + '</td>'+
216
+										'<td>' + content.factory[i].proportion + '</td>'+
217
+										'<td>' + content.factory[i+1].name + '</td>'+
218
+										'<td>' + content.factory[i+1].number + '</td>'+
219
+										'<td>' + content.factory[i+1].proportion + '</td>'+
220
+										'<td rowspan="'+ content.problem.length + '">各质量问题占比</td>'+
221
+										'<td colspan="2">' + content.problem[num].name + '</td>'+
222
+										'<td>' + content.problem[num].number + '</td>'+
223
+										'<td>' + content.problem[num].proportion + '</td>'+
224
+										'</tr>')
225
+									} else if (i > 0 && i < factoryLen) {
226
+										if (num < content.problem.length){
227
+											$(".table").append('<tr>'+
228
+											'<td>' + content.factory[i].name +'</td>'+
229
+											'<td>' + content.factory[i].number +'</td>'+
230
+											'<td>' + content.factory[i].proportion +'</td>'+
231
+											'<td>' + content.factory[i+1].name +'</td>'+
232
+											'<td>' + content.factory[i+1].number +'</td>'+
233
+											'<td>' + content.factory[i+1].proportion +'</td>'+
234
+											'<td colspan="2">' + content.problem[num].name + '</td>'+
235
+											'<td>' + content.problem[num].number + '</td>'+
236
+											'<td>' + content.problem[num].proportion + '</td>'+
237
+											'</tr>')
238
+										} else if (num >= content.problem.length) {
239
+											if(p === 0){
240
+												$(".table").append('<tr>'+
241
+												'<td>' + content.factory[i].name +'</td>'+
242
+												'<td>' + content.factory[i].number +'</td>'+
243
+												'<td>' + content.factory[i].proportion +'</td>'+
244
+												'<td>' + content.factory[i+1].name +'</td>'+
245
+												'<td>' + content.factory[i+1].number +'</td>'+
246
+												'<td>' + content.factory[i+1].proportion +'</td>'+
247
+												'<td rowspan="'+ content.product.length + '">结构占比</td>'+
248
+												'<td colspan="2">' + content.product[p].name + '</td>'+
249
+												'<td>' + content.product[p].number + '</td>'+
250
+												'<td>' + content.product[p].proportion + '</td>'+
251
+												'</tr>')
252
+											} else if (0 < p && p < content.product.length) {
253
+												$(".table").append('<tr>'+
254
+												'<td>' + content.factory[i].name +'</td>'+
255
+												'<td>' + content.factory[i].number +'</td>'+
256
+												'<td>' + content.factory[i].proportion +'</td>'+
257
+												'<td>' + content.factory[i+1].name +'</td>'+
258
+												'<td>' + content.factory[i+1].number +'</td>'+
259
+												'<td>' + content.factory[i+1].proportion +'</td>'+
260
+												'<td colspan="2">' + content.product[p].name + '</td>'+
261
+												'<td>' + content.product[p].number + '</td>'+
262
+												'<td>' + content.product[p].proportion + '</td>'+
263
+												'</tr>')
264
+											}
265
+											p += 1;
266
+										}
267
+									} else if ( i >= factoryLen) {
268
+										if (num < content.problem.length){
269
+											$(".table").append('<tr>'+
270
+											'<td></td>'+
271
+											'<td></td>'+
272
+											'<td></td>'+
273
+											'<td></td>'+
274
+											'<td></td>'+
275
+											'<td></td>'+
276
+											'<td colspan="2">' + content.problem[num].name + '</td>'+
277
+											'<td>' + content.problem[num].number + '</td>'+
278
+											'<td>' + content.problem[num].proportion + '</td>'+
279
+											'</tr>')
280
+										} else if (num >= content.problem.length) {
281
+											if(p === 0){
282
+												$(".table").append('<tr>'+
283
+												'<td></td>'+
284
+												'<td></td>'+
285
+												'<td></td>'+
286
+												'<td></td>'+
287
+												'<td></td>'+
288
+												'<td></td>'+
289
+												'<td rowspan="'+ content.product.length + '">结构占比</td>'+
290
+												'<td colspan="2">' + content.product[p].name + '</td>'+
291
+												'<td>' + content.product[p].number + '</td>'+
292
+												'<td>' + content.product[p].proportion + '</td>'+
293
+												'</tr>')
294
+											} else if (0 < p && p < content.product.length) {
295
+												$(".table").append('<tr>'+
296
+												'<td></td>'+
297
+												'<td></td>'+
298
+												'<td></td>'+
299
+												'<td></td>'+
300
+												'<td></td>'+
301
+												'<td></td>'+
302
+												'<td colspan="2">' + content.product[p].name + '</td>'+
303
+												'<td>' + content.product[p].number + '</td>'+
304
+												'<td>' + content.product[p].proportion + '</td>'+
305
+												'</tr>')
306
+											}
307
+											p += 1;
308
+										}
309
+									}
310
+								}
311
+							} else {
312
+								layer.msg(data.message);
313
+							}
314
+						}
315
+					});
316
+				}
317
+				//导出
318
+	        	$(".export").click(function () {
319
+	            	var url = huayi.config.callcenter_url + "Business/Distribution?token=" + $.cookie("token");
320
+	            	url += "&datetime=" + $("#startTime").val() + "&isdc=1";
321
+					window.location.href = url;
322
+	        	});
323
+			})
324
+		</script>
325
+	</body>
326
+
327
+</html>

+ 430 - 0
CallCenterWeb.UI/ReportForm/marketInformationBriefing.html

@@ -0,0 +1,430 @@
1
+<!DOCTYPE html>
2
+<html>
3
+
4
+	<head>
5
+		<meta charset="utf-8">
6
+		<meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+		<title>市场信息简报</title>
8
+		<!--[if lt IE 9]>
9
+	    <meta http-equiv="refresh" content="0;ie.html" />
10
+	    <![endif]-->
11
+		<script src="../Script/Common/huayi.load.js"></script>
12
+		<script src="../Script/Common/huayi.config.js"></script>
13
+		<link rel="stylesheet" href="../js/layui/css/layui.css" />
14
+		<link rel="stylesheet" href="../css/init.css" />
15
+		<script src="../js/laydate/laydate.js"></script>
16
+		<style>
17
+			.zxt-top {
18
+				background: #fefefe;
19
+				height: 60px;
20
+				padding: 10px 20px;
21
+			}
22
+			
23
+			.topCon {
24
+				float: right;
25
+				margin-right: 45px;
26
+			}
27
+			
28
+			.zxt-content {
29
+				width: 90%;
30
+				margin: 20px auto 0 auto;
31
+			}
32
+			.select2-container--default .select2-selection--single{
33
+				border-color: #e5e6e7;
34
+			}
35
+			.time-box select{
36
+				height: 32px;
37
+				line-height: 32px;
38
+			}
39
+			.time-box select option{
40
+				line-height: 32px;
41
+			}
42
+	        .Shows {
43
+	            display: block !important;
44
+	        }
45
+	
46
+	        .complain {
47
+	            display: none;
48
+	        }
49
+	
50
+	        .daoHang {
51
+	            margin-bottom: 15px;
52
+	        }
53
+	
54
+	
55
+	        #main {
56
+	            width: 788.8px;
57
+	            margin: 0 auto;
58
+	            margin-top: 20px;
59
+	            -webkit-box-shadow: 1px 1px 9px 2px #D2D2D2;
60
+	            box-shadow: 1px 1px 9px 2px #D2D2D2;
61
+	            background-color: #fff;
62
+	            padding: 30px 60px 80px 60px;
63
+	        }
64
+	
65
+	        .alignC {
66
+	            text-align: center;
67
+	        }
68
+	
69
+	            .alignC h2 {
70
+	                font-family: "宋体";
71
+	                font-weight: bold;
72
+	                font-size: 22pt;
73
+	                letter-spacing: -1px;
74
+	            }
75
+	
76
+	        .headerAlign h3 div:nth-of-type(1) {
77
+	            font-size: 14pt;
78
+	            padding-top: 20px;
79
+	            text-align: left;
80
+	            font-weight: normal;
81
+	            margin-left: 48px;
82
+	        }
83
+	
84
+	        #main table {
85
+	            margin: 0 auto;
86
+	            width: 600px;
87
+	            border-collapse: collapse;
88
+	            font-size: 13pt;
89
+	            font-family: "仿宋";
90
+	        }
91
+	
92
+	            #main table tr {
93
+	                min-height: 49px;
94
+	            }
95
+	
96
+	        tbody td {
97
+	            min-width: 10%;
98
+	            padding: 6px 0 6px 0;
99
+	        }
100
+	
101
+	        .alignC .tableHead {
102
+	            text-align: center;
103
+	            padding-left: 10px;
104
+	            font-weight: 600;
105
+	        }
106
+	
107
+	        .btn {
108
+	            margin-top: 4px;
109
+	            margin-bottom: 4px;
110
+	            background: #00a1cb;
111
+	            color: #fff;
112
+	        }
113
+	
114
+	        .time-box {
115
+	            display: inline-block;
116
+	            position: relative;
117
+	        }
118
+	
119
+	        .toolLeft input {
120
+	            padding-right: 30px;
121
+	            width: 150px;
122
+	        }
123
+	
124
+	        .tub {
125
+	            position: absolute;
126
+	            right: 8px;
127
+	            top: 5px;
128
+	            font-size: 18px;
129
+	            color: #00a0ca;
130
+	        }
131
+	    </style>
132
+	</head>
133
+
134
+	<body class="gray-bg">
135
+	        <div class="daoHang clearfix">
136
+	            <div class="dhLeft">
137
+	                <sapn>
138
+	                    <i class="syIcon"></i>位置:
139
+	                    <a href="javaScript:;" id="ReIndex">首页</a>&gt;
140
+						<a href="javaScript:;">报表分析</a>&gt;
141
+	                    <a href="javaScript:;">业务数据分析</a>&gt;
142
+	                    <a href="" class="nowPosition">市场信息简报</a>
143
+	                </sapn>
144
+	            </div>
145
+	            <div class="dhRight">
146
+	                <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
147
+	            </div>
148
+	        </div>
149
+	    <div class="wrapper wrapper-content">
150
+	
151
+	        <div class="Content_box">
152
+	            <div class="complain Shows">
153
+	                <div class="tab-content">
154
+	                    <div class="tab-pane fade active in">
155
+			 	    		<div class="zxt-top clearfix">
156
+								<div class="topCon">
157
+									<div class="form-inline th-bar clearfix">
158
+										<div class="time-box form-group">
159
+											<i class="tub fa fa-calendar"></i>
160
+											<input class="form-control" type="text" id="startTime" placeholder="请选择时间" style="width: 228px;">
161
+										</div>
162
+										<div class="form-group tool_bars pull-right">
163
+											<button class="btns sear">搜索</button>
164
+											<a class="btns export">导出</a>
165
+										</div>
166
+									</div>
167
+								</div>
168
+							</div>
169
+	                        
170
+	                        <!--startprint1-->
171
+	                        <div id="main">
172
+	                            <div class="alignC headerAlign">
173
+	                                <br />
174
+	                                <h2 style="margin-bottom: 15px;">市场信息简报</h2>
175
+	                            </div>
176
+	                            <table id="weeklist" class="alignC" border="1" cellpadding="4" cellspacing="0" bordercolor="#cbcbcb">
177
+	                                <tbody>
178
+	
179
+	                                    <tr>
180
+	                                        <td colspan="8">
181
+	                                            <h3>
182
+	                                            	时间:
183
+	                                                <span class="startTimeBrief">-</span>
184
+	                                                <span>至</span>
185
+	                                                <span class="endTimeBrief">-</span>
186
+	                                            </h3>
187
+	                                        </td>
188
+	                                    </tr>
189
+	                                    <tr>
190
+	                                        <td colspan="8" class="tableHead">
191
+							            		产品投诉情况
192
+	                                        </td>
193
+	                                    </tr>
194
+	                                    <tr>
195
+	                                        <td width="20%">
196
+	                                        	总计
197
+	                                        </td>
198
+	                                        <td width="15%">
199
+	                                            <span class="total-number"></span>
200
+	                                        </td>
201
+	                                        <td width="15%">
202
+	                                            <span class="total-proportion"></span>
203
+	                                        </td>
204
+	                                        <td width="20%">G</td>
205
+	                                        <td width="15%">
206
+	                                            <span class="g-number"></span>
207
+	                                        </td>
208
+	                                        <td width="15%">
209
+	                                            <span class="g-proportion"></span>
210
+	                                        </td>
211
+	                                    </tr>
212
+	                                    <tr>
213
+	                                        <td>G1</td>
214
+	                                        <td>
215
+	                                            <span class="g1-number"></span>
216
+	                                        </td>
217
+	                                        <td>
218
+	                                            <span class="g1-proportion"></span>
219
+	                                        </td>
220
+	                                        <td>D</td>
221
+	                                        <td>
222
+	                                            <span class="d-number"></span>
223
+	                                        </td>
224
+	                                        <td>
225
+	                                            <span class="d-proportion"></span>
226
+	                                        </td>
227
+	                                    </tr>
228
+	                                    <tr>
229
+	                                        <td>B</td>
230
+	                                        <td>
231
+	                                            <span class="b-number"></span>
232
+	                                        </td>
233
+	                                        <td>
234
+	                                            <span class="b-proportion"></span>
235
+	                                        </td>
236
+	                                        <td>P</td>
237
+	                                        <td>
238
+	                                            <span class="p-number"></span>
239
+	                                        </td>
240
+	                                        <td>
241
+	                                            <span class="p-proportion"></span>
242
+	                                        </td>
243
+	                                    </tr>
244
+	                                    <tr>
245
+	                                        <td>Q</td>
246
+	                                        <td>
247
+	                                            <span class="q-number"></span>
248
+	                                        </td>
249
+	                                        <td>
250
+	                                            <span class="q-proportion"></span>
251
+	                                        </td>
252
+	                                        <td>ZBM</td>
253
+	                                        <td>
254
+	                                            <span class="zbm-number"></span>
255
+	                                        </td>
256
+	                                        <td>
257
+	                                            <span class="zbm-proportion"></span>
258
+	                                        </td>
259
+	                                    </tr>
260
+	                                    <tr>
261
+	                                        <td>ZCY</td>
262
+	                                        <td>
263
+	                                            <span class="zcy-number"></span>
264
+	                                        </td>
265
+	                                        <td>
266
+	                                            <span class="zcy-proportion"></span>
267
+	                                        </td>
268
+	                                        <td>ZTF</td>
269
+	                                        <td>
270
+	                                            <span class="ztf-number"></span>
271
+	                                        </td>
272
+	                                        <td>
273
+	                                            <span class="ztf-proportion"></span>
274
+	                                        </td>
275
+	                                    </tr>
276
+	                                    <tr>
277
+	                                        <td>ZQT</td>
278
+	                                        <td>
279
+	                                            <span class="zqt-number"></span>
280
+	                                        </td>
281
+	                                        <td>
282
+	                                            <span class="zqt-proportion"></span>
283
+	                                        </td>
284
+	                                        <td>QSZ</td>
285
+	                                        <td>
286
+	                                            <span class="qsz-number"></span>
287
+	                                        </td>
288
+	                                        <td>
289
+	                                            <span class="qsz-proportion"></span>
290
+	                                        </td>
291
+	                                    </tr>
292
+	                                    <tr>
293
+	                                        <td>QJL</td>
294
+	                                        <td>
295
+	                                            <span class="qjl-number"></span>
296
+	                                        </td>
297
+	                                        <td>
298
+	                                            <span class="qjl-proportion"></span>
299
+	                                        </td>
300
+	                                        <td colspan="4"></td>
301
+	                                    </tr>
302
+	                                    <!--服务投诉情况-->
303
+	                                    <tr>
304
+	                                        <td colspan="8" class="tableHead">
305
+	                                        	服务投诉情况
306
+	                                        </td>
307
+	                                    </tr>
308
+	                                     <tr>
309
+	                                        <td colspan="8" class="tableHead">
310
+	                                        	涉媒投诉
311
+	                                        </td>
312
+	                                    </tr>
313
+	                                    <tr>
314
+	                                        <td>涉媒</td>
315
+	                                        <td>
316
+	                                            <span class="sediainvolved-number"></span>
317
+	                                        </td>
318
+	                                        <td>
319
+	                                            <span class="sediainvolved-proportion"></span>
320
+	                                        </td>
321
+	                                        <td colspan="4"></td>
322
+	                                    </tr>
323
+	                                    <!--市场抽检-->
324
+	                                    <tr>
325
+	                                        <td colspan="8" class="tableHead">
326
+	                                        	市场抽检
327
+	                                        </td>
328
+	                                    </tr>
329
+	                                    <!--其他信息-->
330
+	                                    <tr>
331
+	                                        <td colspan="8" class="tableHead">
332
+	                                        	其他信息
333
+	                                        </td>
334
+	                                    </tr>
335
+	                                </tbody>
336
+	                            </table>
337
+	                        </div><!--endprint1-->
338
+	                    </div>
339
+	                </div>
340
+	            </div>
341
+	        </div>
342
+	    </div>
343
+	    
344
+	    
345
+	    <script>
346
+	        $(document).ready(function () {
347
+            	laydate.render({
348
+					elem: '#startTime',
349
+					range: '~',
350
+					theme: '#1ab394',
351
+					calendar: 'true'
352
+				});
353
+				
354
+				initTableBrief();
355
+	        })
356
+	        //表格
357
+	        function initTableBrief(brieftype) {
358
+	            $.getJSON(huayi.config.callcenter_url + 'Business/MarketInformation', {
359
+	                sdate: $('#startTime').val() ? $('#startTime').val().split('~')[0]:"",
360
+	                edate: $('#startTime').val() ? $('#startTime').val().split('~')[1]:"",
361
+	                token: $.cookie("token")
362
+	            }, function (result) {
363
+	                if (result.state.toLowerCase() == "success") {
364
+	                    var content = result.rows;
365
+	                    // 产品投诉
366
+	                    $('#main' + ' .total-number').html(content.product[0].number);
367
+	                    $('#main' + ' .total-proportion').html(content.product[0].Proportion);
368
+	                    $('#main' + ' .g-number').html(content.product[1].number);
369
+	                    $('#main' + ' .g-proportion').html(content.product[1].Proportion);
370
+	                    $('#main' + ' .g1-number').html(content.product[2].number);
371
+	                    $('#main' + ' .g1-proportion').html(content.product[2].Proportion);
372
+	                    $('#main' + ' .d-number').html(content.product[3].number);
373
+	                    $('#main' + ' .d-proportion').html(content.product[3].Proportion);
374
+	                    $('#main' + ' .b-number').html(content.product[4].number);
375
+	                    $('#main' + ' .b-proportion').html(content.product[4].Proportion);
376
+	                    $('#main' + ' .p-number').html(content.product[5].number);
377
+	                    $('#main' + ' .p-proportion').html(content.product[5].Proportion);
378
+	                    $('#main' + ' .q-number').html(content.product[6].number);
379
+	                    $('#main' + ' .q-proportion').html(content.product[6].Proportion);
380
+	                    $('#main' + ' .zbm-number').html(content.product[7].number);
381
+	                    $('#main' + ' .zbm-proportion').html(content.product[7].Proportion);
382
+	                    $('#main' + ' .zcy-number').html(content.product[8].number);
383
+	                    $('#main' + ' .zcy-proportion').html(content.product[8].Proportion);
384
+	                    $('#main' + ' .ztf-number').html(content.product[9].number);
385
+	                    $('#main' + ' .ztf-proportion').html(content.product[9].Proportion);
386
+	                    $('#main' + ' .zqt-number').html(content.product[10].number);
387
+	                    $('#main' + ' .zqt-proportion').html(content.product[10].Proportion);
388
+	                    $('#main' + ' .qsz-number').html(content.product[11].number);
389
+	                    $('#main' + ' .qsz-proportion').html(content.product[11].Proportion);
390
+	                    $('#main' + ' .qjl-number').html(content.product[12].number);
391
+	                    $('#main' + ' .qjl-proportion').html(content.product[12].Proportion);
392
+						//涉媒投诉
393
+	                    $('#main' + ' .sediainvolved-number').html(content.sediainvolved.number);
394
+	                    $('#main' + ' .sediainvolved-proportion').html(content.sediainvolved.Proportion);
395
+	                }
396
+	            })
397
+	        }
398
+	        
399
+	        //搜索
400
+	        $(".sear").click(function () {
401
+	            initTableBrief();
402
+	            addTime();
403
+	        });
404
+	        //按回车搜索
405
+	        document.onkeydown = function (e) { // 回车提交表单
406
+ 			   	var theEvent = window.event || e;
407
+    			var code = theEvent.keyCode || theEvent.which || theEvent.charCode;
408
+    			if (code == 13) {
409
+        			initTableBrief();
410
+        			addTime();
411
+    			}
412
+			}
413
+	        //导出
414
+	        $(".export").click(function () {
415
+	            var url = huayi.config.callcenter_url + "Business/MarketInformation?token=" + $.cookie("token");
416
+	            url += "&sdate=" + ($('#startTime').val() ? $('#startTime').val().split('~')[0] : '') + "&edate=" + ($('#startTime').val() ? $('#startTime').val().split('~')[1] : '') + "&isdc=1";
417
+	            $(".export").attr('href', url);
418
+	        });
419
+	        //添加时间
420
+	        function addTime() {
421
+	        	var addStartTime = $('#startTime').val() ? $('#startTime').val().split('~')[0] : '';
422
+	        	var addEndTime = $('#startTime').val() ? $('#startTime').val().split('~')[1] : '';
423
+                $('.startTimeBrief' + '').html(addStartTime);
424
+                $('.endTimeBrief' + '').html(addEndTime);
425
+	        	
426
+	        }
427
+	    </script>
428
+	</body>
429
+
430
+</html>

+ 282 - 0
CallCenterWeb.UI/ReportForm/repeatComplaintForm.html

@@ -0,0 +1,282 @@
1
+<!DOCTYPE html>
2
+<html>
3
+
4
+	<head>
5
+
6
+		<meta charset="utf-8">
7
+		<meta name="viewport" content="width=device-width, initial-scale=1.0">
8
+
9
+		<title>重复投诉表</title>
10
+		<!--[if lt IE 9]>
11
+	    <meta http-equiv="refresh" content="0;ie.html" />
12
+	    <![endif]-->
13
+		<script src="../Script/Common/huayi.load.js"></script>
14
+		<script src="../Script/Common/huayi.config.js"></script>
15
+		<link rel="stylesheet" href="../js/layui/css/layui.css" />
16
+		<link rel="stylesheet" href="../css/init.css" />
17
+		<style>
18
+			.zxt-top {
19
+				background: #f3f3f4;
20
+				height: 60px;
21
+				padding: 10px 20px;
22
+			}
23
+			
24
+			.topCon {
25
+				float: right;
26
+				margin-right: 45px;
27
+			}
28
+			
29
+			.zxt-content {
30
+				width: 90%;
31
+				margin: 20px auto 0 auto;
32
+			}
33
+			.select2-container--default .select2-selection--single{
34
+				border-color: #e5e6e7;
35
+			}
36
+			.time-box select{
37
+				height: 32px;
38
+				line-height: 32px;
39
+			}
40
+			.time-box select option{
41
+				line-height: 32px;
42
+			}
43
+		</style>
44
+	</head>
45
+
46
+	<body class="gray-bg" style="background: #fefefe;">
47
+		<div class="zxtable">
48
+			<div class="daoHang clearfix">
49
+				<div class="dhLeft">
50
+					<sapn><i class="syIcon"></i>位置:
51
+						<a id="ReIndex" href="javaScript:;">首页</a>&gt;
52
+						<a href="javaScript:;">报表分析</a>&gt;
53
+						<a href="javaScript:;">业务数据分析</a>&gt;
54
+						<a href="" class="nowPosition">重复投诉表</a>
55
+					</sapn>
56
+				</div>
57
+				<div class="dhRight">
58
+					<a href="#" title="刷新"><i class="fa fa-refresh"></i></a>
59
+				</div>
60
+			</div>
61
+			<div class="zxt-top clearfix">
62
+				<div class="topCon">
63
+					<div class="form-inline th-bar clearfix">
64
+						<div class="time-box form-group">
65
+							<select class="form-control" type="text" id="isTime" style="width: 228px;">
66
+								<option value="">请选择本日/本月</option>
67
+								<option value ="0">本日</option>
68
+								<option value ="1">本月</option>
69
+							</select>
70
+						</div>
71
+						<div class="time-box form-group">
72
+							<i class="tub fa fa-calendar"></i>
73
+							<input class="form-control" type="text" id="startTime" placeholder="请选择时间" style="width: 228px;">
74
+						</div>
75
+						<!-- <div class="time-box form-group">
76
+							销售基地:
77
+							<select id="bumen">
78
+								<option value="">请选择</option>
79
+							</select>
80
+						</div>
81
+						<div class="time-box form-group">
82
+							渠道类型:
83
+							<select id="channel">
84
+								<option value="">请选择</option>
85
+							</select>
86
+						</div> -->
87
+						<div class="form-group tool_bars pull-right">
88
+							<button class="btns sear">搜索</button>
89
+							<a class="btns export">导出</a>
90
+						</div>
91
+					</div>
92
+				</div>
93
+			</div>
94
+
95
+			<div class="zxt-content">
96
+				<table class="layui-hide" id="t_callTotal"></table>
97
+			</div>
98
+		</div>
99
+
100
+		<script src="../js/layui/layui.js"></script>
101
+		<script src="../js/select2/js/select2.min.js"></script>
102
+
103
+		<script>
104
+			var token = $.cookie("token");
105
+			var stime = ''; //开始时间
106
+			var endtime = ''; //结束时间
107
+			var isTime = ''; //本日本月
108
+			$(function() {
109
+				var regNum = /^[0-9]+$/;
110
+				layui.use('laydate', function() {
111
+					var laydate = layui.laydate;
112
+					//日期
113
+					laydate.render({
114
+						elem: '#startTime',
115
+						range: '~',
116
+						theme: '#1ab394',
117
+						calendar: 'true'
118
+					});
119
+				});
120
+				getTableDataList(); //获取表格数据
121
+				//搜索事件
122
+				$(".sear").click(function() {
123
+					stime = $('#startTime').val() && $('#startTime').val().split(' ~ ')[0];
124
+					endtime = $('#startTime').val() && $('#startTime').val().split(' ~ ')[1];
125
+					getTableDataList(); //获取表格数据
126
+				});
127
+				//导出
128
+				$('.export').click(function() {
129
+					stime = $('#startTime').val() && $('#startTime').val().split(' ~ ')[0];
130
+					endtime = $('#startTime').val() && $('#startTime').val().split(' ~ ')[1];
131
+					isTime = $("#isTime").val();
132
+					dcexcel(this);
133
+				});
134
+			});
135
+
136
+			function dcexcel(obj) {
137
+				var isExport = 1;
138
+				var url = huayi.config.callcenter_url + "WorkOrder/GetList?token=" + token;
139
+				url += "&starttime=" + stime + "&endtime=" + endtime + "&istime=" + isTime + "&isdc=" + isExport + "&duplicate=" + 1;
140
+				window.location.href = url;
141
+			}
142
+			//按回车搜索
143
+			document.onkeydown = function (e) { // 回车提交表单
144
+ 				var theEvent = window.event || e;
145
+    			var code = theEvent.keyCode || theEvent.which || theEvent.charCode;
146
+    			stime = $('#startTime').val() && $('#startTime').val().split(' ~ ')[0];
147
+				endtime = $('#startTime').val() && $('#startTime').val().split(' ~ ')[1];
148
+    			if (code == 13) {
149
+        			getTableDataList();
150
+    			}
151
+			}
152
+			//加载表格
153
+			function getTableDataList() {
154
+				layui.use('table', function() {
155
+					var table = layui.table;
156
+					//方法级渲染
157
+					table.render({
158
+						elem: '#t_callTotal',
159
+						url: huayi.config.callcenter_url + "WorkOrder/GetList",
160
+						method: 'get', //如果无需自定义HTTP类型,可不加该参数
161
+						skin: 'row', //line (行边框风格) row (列边框风格) nob (无边框风格)
162
+						even: true, //开启隔行背景
163
+						size: 'md', //sm,lg,md尺寸的表格
164
+						cellMinWidth: 160,
165
+						where: {
166
+							starttime: stime,
167
+							endtime: endtime,
168
+							token: token,
169
+							duplicate: 1,
170
+							istime: $("#isTime").val(),
171
+							isdc: 0,
172
+						}, 
173
+						request: {
174
+						    pageName: 'pageindex', //页码的参数名称,默认:page
175
+    						limitName: 'pagesize', //每页数据量的参数名,默认:limit
176
+						}, //如果无需自定义请求参数,可不加该参数
177
+						response: {
178
+							statusName: 'state', //数据状态的字段名称,默认:code
179
+							statusCode: 'success', //成功的状态码,默认:0
180
+							// msgName: 'message', //状态信息的字段名称,默认:msg
181
+							countName: 'total', //数据总数的字段名称,默认:count
182
+							dataName: 'rows', //数据列表的字段名称,默认:data
183
+						}, //如果无需自定义数据响应名称,可不加该参数
184
+						page: { //支持传入 laypage 组件的所有参数(某些参数除外,如:jump/elem) - 详见文档
185
+					      layout: ['limit', 'count', 'prev', 'page', 'next', 'skip'] //自定义分页布局
186
+					   	},
187
+					   	page:true,
188
+						cols: [
189
+							[
190
+								{
191
+									field: 'F_SerialNumber',
192
+									title: '序号',
193
+									align: 'center',
194
+									width: '',
195
+								},
196
+								{
197
+									field: 'F_CusName',
198
+									title: '姓名',
199
+									align: 'center',
200
+									width: '',
201
+								},
202
+								{
203
+									field: 'F_AddRess',
204
+									title: '地址',
205
+									align: 'center',
206
+									width: '',
207
+								},
208
+								{
209
+									field: 'F_ProductType',
210
+									title: '产品代码',
211
+									align: 'center',
212
+									width: '',
213
+								},
214
+								{
215
+									field: 'F_ProductName',
216
+									title: '产品名称',
217
+									align: 'center',
218
+									width: '',
219
+								},
220
+								{
221
+									field: 'F_Specifications',
222
+									title: '规格',
223
+									align: 'center',
224
+									width: '',
225
+								},
226
+								{
227
+									field: 'F_ProductDate',
228
+									title: '生产日期',
229
+									align: 'center',
230
+									width: '',
231
+								},
232
+								{
233
+									field: 'F_BatchNumber',
234
+									title: '产品编码',
235
+									align: 'center',
236
+									width: '',
237
+								},
238
+								{
239
+									field: 'F_Manufacturer',
240
+									title: '生产厂家',
241
+									align: 'center',
242
+									width: '',
243
+								},
244
+								{
245
+									field: 'F_ProblemCode',
246
+									title: '问题代码',
247
+									align: 'center',
248
+									width: '',
249
+								},
250
+								{
251
+									field: 'F_QualityProblem',
252
+									title: '质量问题',
253
+									align: 'center',
254
+									width: '',
255
+								},
256
+								{
257
+									field: 'F_Notifications',
258
+									title: '通知人',
259
+									align: 'center',
260
+									width: '',
261
+								},
262
+								{
263
+									field: 'F_ReceivingPerson',
264
+									title: '接听人',
265
+									align: 'center',
266
+									width: '',
267
+								},
268
+								{
269
+									field: 'F_DealResult',
270
+									title: '落实情况',
271
+									align: 'center',
272
+									width: '',
273
+								},
274
+							]
275
+						],
276
+					});
277
+				});
278
+			}
279
+		</script>
280
+	</body>
281
+
282
+</html>