zhoufan il y a 7 ans
Parent
commit
46e9652d58

+ 141 - 330
CallCenterWeb.UI/WorkOrder/AddWorkOrder.html

@@ -29,7 +29,6 @@
29 29
 			
30 30
 			.common table {
31 31
 				width: 100%;
32
-				display: none;
33 32
 			}
34 33
 			
35 34
 			.common table th {
@@ -86,16 +85,6 @@
86 85
 				border-top: 0;
87 86
 				height: auto!important;
88 87
 			}
89
-			
90
-			#TreeDemo1 li {
91
-				float: initial;
92
-			}
93
-			#typeclass1 {
94
-				background: #fff;
95
-			}
96
-			#typeclass_market1 {
97
-				background: #fff;
98
-			}
99 88
 			.addTree1 {
100 89
 			    background: #fff;
101 90
 			    position: absolute;
@@ -148,18 +137,7 @@
148 137
 				background-color: #E43926;
149 138
 				color: #fff;
150 139
 			}
151
-			
152
-			#testInput1,
153
-			#testInput2,
154
-			#testInput3,
155
-			#testInput4 {
156
-				outline: none;
157
-				border: 1px solid #ccc;
158
-				padding-left: 10px;
159
-				outline-color: #fff;
160
-                display:none;
161
-			}
162
-			
140
+						
163 141
 			.ke-container {
164 142
 				width: 100%!important;
165 143
 			}
@@ -181,314 +159,147 @@
181 159
 		</div>
182 160
 		<div class="clearfix wrapper wrapper-content animated fadeInRight">
183 161
 			<div class="common">
184
-				<!--思念组-->
185 162
 				<table class="customerService">
186
-					<tbody>
187
-						<tr>
188
-							<th>姓名:</th>
189
-							<td>
190
-								<div class="form-group">
191
-									<input type="text" class="form-control" id="name" />
192
-								</div>
193
-							</td>
194
-							<th>电话:</th>
195
-							<td>
196
-								<div class="form-group">
197
-									<input type="text" class="form-control" id="tel" />
198
-								</div>
199
-							</td>
200
-							
201
-						</tr>
202
-						<tr>
203
-							
204
-							<th>产品名称:</th>
205
-							<td>
206
-								<div class="form-group">
207
-									<input type="text" class="form-control" id="productname" />
208
-								</div>
209
-							</td>
210
-							<th>产品类别:</th>
211
-							<td style="position: relative;">
212
-								<div class="form-group">
213
-									<select name="" class="form-control productType1" id="productType">
214
-									
215
-									</select>
216
-								</div>
217
-							</td>
218
-							<th>生产批号:</th>
219
-							<td>
220
-								<div class="form-group">
221
-									<input type="text" class="form-control" id="batchNumber" />
222
-								</div>
223
-							</td>
224
-						</tr>
225
-						<tr>
226
-							
227
-							<th>购买日期:</th>
228
-							<td style="position: relative;">
229
-								<div class="time-box form-group">
230
-									<i class="tub fa fa-calendar"></i>
231
-									<input class="form-control search_time buyDate" type="text" placeholder="请选择时间">
232
-								</div>
233
-							</td>
234
-							<th>食用日期:</th>
235
-							<td style="position: relative;">
236
-								<div class="time-box form-group">
237
-									<i class="tub fa fa-calendar"></i>
238
-									<input class="form-control search_time userDate" type="text" placeholder="请选择时间">
239
-								</div>
240
-							</td>
241
-						</tr>
242
-						<tr>
243
-							<th>购买地址:</th>
244
-							<td>
245
-								<div class="form-group">
246
-									<input type="text" class="form-control" id="buyAddress"/>
247
-								</div>
248
-							</td>
249
-							<th>工单来源:</th>
250
-							<td>
251
-								<div class="form-group">
252
-									<select name="" class="form-control" id="DicValueList">
253
-									
254
-									</select>
255
-								</div>
256
-							</td>
257
-							<th>工单类型:</th>
258
-							<td>
259
-								<div class="form-group">
260
-									<select name="" class="form-control orderType1">
261
-									
262
-									</select>
263
-								</div>
264
-								
265
-							</td>
266
-						</tr>	
267
-						<tr class="complainDiv">
268
-							<th>投诉类型:</th>
269
-							<td>
270
-								<div class="form-group">
271
-									<select name="" class="form-control complaintType">
272
-									</select>
273
-								</div>
274
-							</td>
275
-						</tr>
276
-						<tr>
277
-							
278
-							<th>样品寄回:</th>
279
-							<td style="position: relative;">
280
-								<select name="" class="form-control" id="sendBack">
281
-									<option value="0">否</option>
282
-									<option value="1">是</option>
283
-								</select>
284
-							</td>
285
-							<th>客诉专员:</th>
286
-							<td>
287
-								<div class="form-group">
288
-									<select name="" class="form-control" id="vipName">
289
-										
290
-									</select>
291
-								</div>
292
-							</td>
293
-						</tr>				
294
-						<tr>
295
-							<th>专员电话:</th>
296
-							<td style="position: relative;">
297
-								<div class="form-group">
298
-									<input type="text" class="form-control" id="vipTel"/>
299
-								</div>
300
-							</td>
301
-							<th>区域:</th>
302
-							<td style="position: relative;">
303
-								<div class="form-group">
304
-									<input type="text" class="form-control" id="areaInps"/>
305
-								</div>
306
-							</td>
307
-							<th>省市:</th>
308
-							<td>
309
-								<div class="time-box">
310
-									<i class="tub fa fa-caret-down areaDown" style="color: #676b6d;"></i>
311
-									<input class="form-control" type="text" id="typeclass1" readonly="readonly">
312
-									<input type="text" class="inps2">
313
-									<input type="text" class="inps3">
314
-									<input type="hidden" id="typeclassId1" />
315
-									<div class="addTree1 treeList1">
316
-										<ul id="TreeDemo1" class="ztree">
163
+                    <tbody>
164
+                        <tr>
165
+                            <th>姓名:</th>
166
+                            <td>
167
+                                <div class="form-group">
168
+                                    <input type="text" class="form-control" id="name" />
169
+                                </div>
170
+                            </td>
171
+                            <th>电话:</th>
172
+                            <td>
173
+                                <div class="form-group">
174
+                                    <input type="text" class="form-control" id="tel" />
175
+                                </div>
176
+                            </td>
317 177
 
318
-										</ul>
319
-									</div>
320
-								</div>
321
-							</td>
322
-						</tr>
323
-						<tr>
324
-							<th>投诉事件描述:</th>
325
-							<td colspan="5">
326
-								<textarea name="" rows="5" cols="" placeholder="" id="content"></textarea>
327
-							</td>
328
-						</tr>
329
-						<tr>
330
-							<td colspan="6" style="text-align: center;">
331
-								<button class="btns customerSubmit">保&nbsp;存</button>
332
-							</td>
333
-						</tr>
334
-					</tbody>
335
-				</table>
178
+                        </tr>
179
+
180
+                        <tr>
181
+
182
+                            <th>工单来源:</th>
183
+                            <td>
184
+                                <div class="form-group">
185
+                                    <select name="" class="form-control" id="DicValueList"></select>
186
+                                </div>
187
+                            </td>
188
+                            <th>工单类型:</th>
189
+                            <td>
190
+                                <div class="form-group">
191
+                                    <select name="" class="form-control orderType"></select>
192
+                                </div>
193
+                            </td>
194
+
195
+                            <th class="complainDiv">投诉类型:</th>
196
+                            <td class="complainDiv">
197
+                                <div class="form-group">
198
+                                    <select name="" class="form-control complaintType"></select>
199
+                                </div>
200
+                            </td>
201
+                        </tr>
202
+                        <tr>
203
+
204
+                            <th>产品名称:</th>
205
+                            <td>
206
+                                <div class="form-group">
207
+                                    <input type="text" class="form-control" id="productname" />
208
+                                </div>
209
+                            </td>
210
+                            <th>产品类别:</th>
211
+                            <td style="position: relative;">
212
+                                <div class="form-group">
213
+                                    <select name="" class="form-control productType" id="productType"></select>
214
+                                </div>
215
+                            </td>
216
+                            <th>生产批号:</th>
217
+                            <td>
218
+                                <div class="form-group">
219
+                                    <input type="text" class="form-control" id="batchNumber" />
220
+                                </div>
221
+                            </td>
336 222
 
337
-				<!--杜康组-->
338
-				<table class="market">
339
-					<tbody>
340
-						<tr>
341
-							<th>客户:</th>
342
-							<td>
343
-								<div class="form-group">
344
-									<input type="text" class="form-control" id="name" />
345
-								</div>
346
-							</td>
347
-							<th>电话:</th>
348
-							<td>
349
-								<div class="form-group">
350
-									<input type="text" class="form-control" id="tel" />
351
-								</div>
352
-							</td>
353
-							<th>对接人:</th>
354
-							<td>
355
-								<div class="form-group">
356
-									<select name="" class="form-control" id="customerName">
357
-									
358
-									</select>
359
-								</div>
360
-							</td>
361
-						</tr>
362
-						<tr>
363
-							<th>区域:</th>
364
-							<td style="position: relative;">
365
-								<div class="form-group">
366
-									<input type="text" class="form-control" id="areaInps"/>
367
-								</div>
368
-							</td>
369
-							<th>省市:</th>
370
-							<td>
371
-								<div class="time-box">
372
-									<i class="tub fa fa-caret-down areaDown" style="color: #676b6d;"></i>
373
-									<input class="form-control" type="text" id="typeclass_market1" readonly="readonly">
374
-									<input type="text" class="inps2">
375
-									<input type="text" class="inps3">
376
-									<input type="hidden" id="typeclassId1" />
377
-									<div class="addTree1 treeList_market1">
378
-										<ul id="TreeDemo_market1" class="ztree">
379
-										</ul>
380
-									</div>
381
-								</div>
382
-							</td>
383
-							<th>对接人电话:</th>
384
-							<td style="position: relative;">
385
-								<div class="form-group">
386
-									<input type="text" class="form-control" id="customerTel"/>
387
-								</div>
388
-							</td>
389
-						</tr>
390
-						<tr>
391
-							<th>问题分类:</th>
392
-							<td>
393
-								<div class="form-group">
394
-									<select name="" class="form-control orderType2">
395
-									
396
-									</select>
397
-								</div>
398
-								
399
-							</td>
400
-							<th>工单来源:</th>
401
-							<td>
402
-								<div class="form-group">
403
-									<select name="" class="form-control" id="DicValueList">
404
-									
405
-									</select>
406
-								</div>
407
-							</td>
408
-							<th>购买地址:</th>
409
-							<td>
410
-								<div class="form-group">
411
-									<input type="text" class="form-control" id="buyAddress"/>
412
-								</div>
413
-							</td>
414
-						</tr>
415
-						<tr class="complainDiv">
416
-							<th>投诉类型:</th>
417
-							<td>
418
-								<div class="form-group">
419
-									<select name="" class="form-control complaintType">
420
-									</select>
421
-								</div>
422
-							</td>
423
-						</tr>
424
-						<tr>
425
-							<th>产品名称:</th>
426
-							<td>
427
-								<div class="form-group">
428
-									<input type="text" class="form-control" id="productname" />
429
-								</div>
430
-							</td>
431
-							<th>产品类别:</th>
432
-							<td style="position: relative;">
433
-								<div class="form-group">
434
-									<select name="" class="form-control productType2" id="productType">
435
-									
436
-									</select>
437
-								</div>
438
-							</td>
439
-							<th>生产批号:</th>
440
-							<td>
441
-								<div class="form-group">
442
-									<input type="text" class="form-control" id="batchNumber" />
443
-								</div>
444
-							</td>
445
-							
446
-							
447
-						</tr>
448
-						<tr>
449
-							<th>生产日期:</th>
450
-							<td style="position: relative;">
451
-								<div class="time-box form-group">
452
-									<i class="tub fa fa-calendar"></i>
453
-									<input class="form-control search_time" id="proDuctdate"  type="text" placeholder="请选择时间">
454
-								</div>
455
-							</td>
456
-							<th>购买日期:</th>
457
-							<td style="position: relative;">
458
-								<div class="time-box form-group">
459
-									<i class="tub fa fa-calendar"></i>
460
-									<input class="form-control search_time buyDate"  type="text" placeholder="请选择时间">
461
-								</div>
462
-							</td>
463
-							<th>使用日期:</th>
464
-							<td style="position: relative;">
465
-								<div class="time-box form-group">
466
-									<i class="tub fa fa-calendar"></i>
467
-									<input class="form-control search_time userDate" type="text" placeholder="请选择时间">
468
-								</div>
469
-							</td>
470
-						</tr>
471
-						<tr>
472
-							<th>样品寄回:</th>
473
-							<td style="position: relative;">
474
-								<select name="" class="form-control" id="sendBack">
475
-									<option value="0">否</option>
476
-									<option value="1">是</option>
477
-								</select>
478
-							</td>
479
-						</tr>
480
-						<tr>
481
-							<th>投诉事件描述:</th>
482
-							<td colspan="5">
483
-								<textarea name="" rows="5" cols="" placeholder="" id="content"></textarea>
484
-							</td>
485
-						</tr>
486
-						<tr>
487
-							<td colspan="6" style="text-align: center;">
488
-								<button class="btns marketSubmit">保&nbsp;存</button>
489
-							</td>
490
-						</tr>
491
-					</tbody>
223
+                            <th>购买地址:</th>
224
+                            <td>
225
+                                <div class="form-group">
226
+                                    <input type="text" class="form-control" id="buyAddress" />
227
+                                </div>
228
+                            </td>
229
+                        </tr>
230
+                        <tr>
231
+                            <th>生产日期:</th>
232
+                            <td style="position: relative;">
233
+                                <div class="time-box form-group">
234
+                                    <i class="tub fa fa-calendar"></i>
235
+                                    <input class="form-control search_time " id="productDate" type="text" placeholder="请选择时间">
236
+                                </div>
237
+                            </td>
238
+                            <th>购买日期:</th>
239
+                            <td style="position: relative;">
240
+                                <div class="time-box form-group">
241
+                                    <i class="tub fa fa-calendar"></i>
242
+                                    <input class="form-control search_time buyDate" type="text" placeholder="请选择时间">
243
+                                </div>
244
+                            </td>
245
+                            <th><span id="usedate">食用日期:</span></th>
246
+                            <td style="position: relative;">
247
+                                <div class="time-box form-group">
248
+                                    <i class="tub fa fa-calendar"></i>
249
+                                    <input class="form-control search_time userDate" type="text" placeholder="请选择时间">
250
+                                </div>
251
+                            </td>
252
+                            <th>样品寄回:</th>
253
+                            <td style="position: relative;">
254
+                                <label><input type="radio" name="sendBack" id="sendBack" value="0" checked="checked" />否</label>
255
+                                <label><input type="radio" name="sendBack" id="sendBack" value="1" />是</label>
256
+                            </td>
257
+                        </tr>
258
+                        <tr>
259
+                            <th>区域:</th>
260
+                            <td style="position: relative;">
261
+                                <div class="form-group">
262
+                                    <input type="text" class="form-control" id="areaInps" />
263
+                                </div>
264
+                            </td>
265
+                            <th>省市:</th>
266
+                            <td>
267
+                                <div class="time-box">
268
+                                    <i class="tub fa fa-caret-down areaDown" style="color: #676b6d;"></i>
269
+                                    <input class="form-control" type="text" id="typeclass" readonly="readonly">
270
+                                    <input type="text" class="inps2">
271
+                                    <input type="text" class="inps3">
272
+                                    <input type="hidden" id="typeclassId" />
273
+                                    <div class="addTree1 treeList1">
274
+                                        <ul id="TreeDemo1" class="ztree"></ul>
275
+                                    </div>
276
+                                </div>
277
+                            </td>
278
+                            <th><span id="vipid">客诉专员:</span></th>
279
+                            <td>
280
+                                <div class="form-group">
281
+                                    <select name="" class="form-control" id="vipName"></select>
282
+                                </div>
283
+                            </td>
284
+                            <th><span id="vipphone">专员电话:</span></th>
285
+                            <td style="position: relative;">
286
+                                <div class="form-group">
287
+                                    <input type="text" class="form-control" id="vipTel" />
288
+                                </div>
289
+                            </td>
290
+                        </tr>
291
+                        <tr>
292
+                            <th>投诉事件描述:</th>
293
+                            <td colspan="7">
294
+                                <textarea name="" rows="5" cols="" placeholder="" id="content"></textarea>
295
+                            </td>
296
+                        </tr>
297
+                        <tr>
298
+                            <td colspan="8" style="text-align: center;">
299
+                                <button class="btns customerSubmit">保&nbsp;存</button>
300
+                            </td>
301
+                        </tr>
302
+                    </tbody>
492 303
 				</table>
493 304
 			</div>
494 305
 			<input type="hidden" id="CallID" />
@@ -499,8 +310,8 @@
499 310
 		<script src="../js/bootstrap-select/js/bootstrap-select.js"></script>
500 311
 		<script src="../js/WorkOrder/jquery.editable-select.js"></script>
501 312
 		<script src="../js/comboSelect/jquery.combo.select.js"></script>
502
-		<script src="../js/kindeditor/kindeditor.js"></script>
503
-		<script src="../js/kindeditor/lang/zh_CN.js"></script>
313
+		<!--<script src="../js/kindeditor/kindeditor.js"></script>
314
+		<script src="../js/kindeditor/lang/zh_CN.js"></script>-->
504 315
 		<script src="../js/laydate/laydate.js"></script>
505 316
 		<script src="../js/WorkOrder/AddWorkOrder.js"></script>
506 317
 	</body>

+ 311 - 482
CallCenterWeb.UI/WorkOrder/Xga.html

@@ -1,493 +1,322 @@
1 1
 <!DOCTYPE html>
2 2
 <html>
3 3
 
4
-	<head>
5
-		<meta charset="UTF-8">
6
-		<meta name="viewport" content="width=device-width, initial-scale=1.0">
7
-		<link href="../css/init.css" rel="stylesheet" />
8
-		<script src="../Script/Common/huayi.load.js"></script>
9
-		<script src="../Script/Common/huayi.config.js"></script>
10
-		<script src="../Script/Common/huayi.http.js"></script>
11
-		<link href="../css/WorkOrder/Search.css" rel="stylesheet">
12
-		<link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
13
-		<link href="../js/bootstrap-select/css/bootstrap-select.css" rel="stylesheet" />
14
-		<link rel="stylesheet" href="../css/WorkOrder/jquery.editable-select.css" />
15
-			<link rel="stylesheet" href="../js/comboSelect/combo.select.css" />
16
-		<link href="../css/init.css" rel="stylesheet" />
17
-		<title>手工制单</title>
18
-		<style>
19
-			ul li {
20
-				float: initial;
21
-				list-style: none;
22
-			}
23
-			
24
-			.common {
25
-				width: 100%;
26
-				text-align: center;
27
-				padding: 10px 15px;
28
-			}
29
-			
30
-			.common table {
31
-				width: 100%;
32
-				display: none;
33
-			}
34
-			
35
-			.common table th {
36
-				padding: 5px 8px 5px 0;
37
-				text-align: right;
38
-				/* width: 20%;*/
39
-			}
40
-			
41
-			.common table td {
42
-				padding: 6px 0 5px 10px;
43
-				text-align: left;
44
-				color: #717171;
45
-				line-height: 200%;
46
-			}
47
-			
48
-			.common table td textarea {
49
-				width: 100%;
50
-				vertical-align: middle;
51
-				resize: none;
52
-				outline: none;
53
-			}
54
-			
55
-			.time-box {
56
-				display: inline-block;
57
-				position: relative;
58
-				width: 100%;
59
-			}
60
-			
61
-			i.tub {
62
-				position: absolute;
63
-				right: 8px;
64
-				top: 8px;
65
-				font-size: 18px;
66
-				color: #00a0ca;
67
-			}
68
-			
69
-			.treeList {
70
-				top: 34px!important;
71
-				border: 1px solid #e5e6e7!important;
72
-				border-top: 0;
73
-				height: auto!important;
74
-			}
75
-			
76
-			#TreeDemo li {
77
-				float: initial;
78
-			}
79
-			
80
-			#typeclass {
81
-				background: #fff;
82
-			}
83
-			
84
-			.form-group {
85
-				margin-bottom: 0;
86
-			}
87
-			
88
-			.bootstrap-select>.dropdown-toggle.bs-placeholder {
89
-				background-color: #ffffff!important;
90
-				border-color: #e5e6e7!important;
91
-			}
92
-			
93
-			.filter-option {
94
-				color: #676b6d;
95
-			}
96
-			
97
-			.bootstrap-select>.dropdown-toggle.btn-default {
98
-				background-color: #ffffff!important;
99
-				border-color: #e5e6e7!important;
100
-				color: #555;
101
-			}
102
-			
103
-			.testInput-list {
104
-				position: absolute;
105
-				z-index: 999;
106
-				border: 1px solid rgb(204, 204, 204);
107
-				background-color: rgb(255, 255, 255);
108
-				z-index: 99999;
109
-				padding-left: 0;
110
-				width: 97.6%;
111
-				display: none;
112
-			}
113
-			
114
-			.testInput-list li {
115
-				padding: 5px;
116
-			}
117
-			
118
-			.testInput-list li:hover {
119
-				background-color: #E43926;
120
-				color: #fff;
121
-			}
122
-			
123
-			#testInput1,
124
-			#testInput2,
125
-			#testInput3,
126
-			#testInput4 {
127
-				outline: none;
128
-				border: 1px solid #ccc;
129
-				padding-left: 10px;
130
-				outline-color: #fff;
131
-			}
132
-			
133
-			.ke-container {
134
-				width: 100%!important;
135
-			}
136
-			.inps2,.inps3,.inps4{
137
-				display: none;
138
-			}
139
-			.treeList1 {
140
-				top: 34px!important;
141
-				border: 1px solid #e5e6e7!important;
142
-				border-top: 0;
143
-				height: auto!important;
144
-			}
145
-			
146
-			#TreeDemo1 li {
147
-				float: initial;
148
-			}
149
-			#typeclass1 {
150
-				background: #fff;
151
-			}
152
-			.addTree1 {
153
-			    background: #fff;
154
-			    position: absolute;
155
-			    width: 100%;
156
-			    border: 1px solid darkgrey;
157
-			    right: 0;
158
-			    top: 26px;
159
-			    z-index: 10;
160
-			    display: none;
161
-			    height: 100px;
162
-			    overflow-y: auto;
163
-			}
4
+<head>
5
+    <meta charset="UTF-8">
6
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+    <link href="../css/init.css" rel="stylesheet" />
8
+    <script src="../Script/Common/huayi.load.js"></script>
9
+    <script src="../Script/Common/huayi.config.js"></script>
10
+    <link href="../css/WorkOrder/Search.css" rel="stylesheet">
11
+    <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
12
+    <link href="../js/bootstrap-select/css/bootstrap-select.css" rel="stylesheet" />
13
+    <link rel="stylesheet" href="../css/WorkOrder/jquery.editable-select.css" />
14
+    <link rel="stylesheet" href="../js/comboSelect/combo.select.css" />
15
+    <link rel="stylesheet" href="../css/init.css" />
16
+    <link rel="stylesheet" href="../css/WorkOrder/NewAddWorkOrder.css" />
17
+    <title>手工制单</title>
18
+    <style>
19
+        ul li {
20
+            float: initial;
21
+            list-style: none;
22
+        }
164 23
 
165
-		</style>
166
-	</head>
24
+        .common {
25
+            width: 100%;
26
+            text-align: center;
27
+            padding: 10px 15px;
28
+        }
167 29
 
168
-	<body class="gray-bg">
169
-		<div class="clearfix wrapper wrapper-content animated fadeInRight">
170
-			
171
-			<div class="common">
172
-				
173
-				<!--客服部-->
174
-				<table class="customerService">
175
-					<tbody>
176
-						<tr>
177
-							<th>姓名:</th>
178
-							<td>
179
-								<div class="form-group">
180
-									<input type="text" class="form-control" id="name" />
181
-								</div>
182
-							</td>
183
-							<th>电话:</th>
184
-							<td>
185
-								<div class="form-group">
186
-									<input type="text" class="form-control" id="tel" />
187
-								</div>
188
-							</td>
189
-						</tr>
190
-						<tr>
191
-							
192
-							<th>产品名称:</th>
193
-							<td>
194
-								<div class="form-group">
195
-									<input type="text" class="form-control" id="productname" />
196
-								</div>
197
-							</td>
198
-							<th>产品类别:</th>
199
-							<td style="position: relative;">
200
-								<div class="form-group">
201
-									<select name="" class="form-control productType1" id="productType">
202
-									
203
-									</select>
204
-								</div>
205
-							</td>
206
-							<th>生产批号:</th>
207
-							<td>
208
-								<div class="form-group">
209
-									<input type="text" class="form-control" id="batchNumber" />
210
-								</div>
211
-							</td>
212
-						</tr>
213
-						
214
-						<tr>
215
-							<th>购买日期:</th>
216
-							<td style="position: relative;">
217
-								<div class="time-box form-group">
218
-									<i class="tub fa fa-calendar"></i>
219
-									<input class="form-control search_time" id="buyDate" type="text" placeholder="请选择时间">
220
-								</div>
221
-							</td>
222
-							<th>食用日期:</th>
223
-							<td style="position: relative;">
224
-								<div class="time-box form-group">
225
-									<i class="tub fa fa-calendar"></i>
226
-									<input class="form-control search_time" id="userDate" type="text" placeholder="请选择时间">
227
-								</div>
228
-							</td>
229
-						</tr>
230
-						<tr>
231
-							<th>购买地址:</th>
232
-							<td>
233
-								<div class="form-group">
234
-									<input type="text" class="form-control" id="buyAddress"/>
235
-								</div>
236
-							</td>
237
-							<th>工单来源:</th>
238
-							<td>
239
-								<div class="form-group">
240
-									<select name="" class="form-control" id="DicValueList">
241
-									
242
-									</select>
243
-								</div>
244
-							</td>
245
-							<th>工单类型:</th>
246
-							<td>
247
-								<div class="form-group">
248
-									<select name="" class="form-control" id="orderType1">
249
-									</select>
250
-								</div>
251
-							</td>
252
-						</tr>
253
-						<tr class="complainDiv">
254
-							<th>投诉类型:</th>
255
-							<td>
256
-								<div class="form-group">
257
-									<select name="" class="form-control complaintType">
258
-									</select>
259
-								</div>
260
-							</td>
261
-						</tr>
262
-						<tr>
263
-							<th>样品寄回:</th>
264
-							<td style="position: relative;">
265
-								<select name="" class="form-control" id="sendBack">
266
-									<option value="0">否</option>
267
-									<option value="1">是</option>
268
-								</select>
269
-							</td>
270
-							<th>客诉专员:</th>
271
-							<td>
272
-								<div class="form-group">
273
-									<select name="" class="form-control" id="vipName">
274
-									</select>
275
-								</div>
276
-							</td>
277
-						</tr>
278
-						<tr>
279
-							<th>专员电话:</th>
280
-							<td style="position: relative;">
281
-								<div class="form-group">
282
-									<input type="text" class="form-control" id="vipTel"/>
283
-								</div>
284
-							</td>
285
-							<th>区域:</th>
286
-							<td style="position: relative;">
287
-								<div class="form-group">
288
-									<input type="text" class="form-control" id="areaInps"/>
289
-								</div>
290
-							</td>
291
-							<th>省市:</th>
292
-							<td>
293
-								<div class="time-box">
294
-									<i class="tub fa fa-caret-down areaDown" style="color: #676b6d;"></i>
295
-									<input class="form-control" type="text" id="typeclass1" readonly="readonly">
296
-									<input type="text" class="inps2">
297
-									<input type="text" class="inps3">
298
-									<input type="hidden" id="typeclassId1" />
299
-									<div class="addTree1 treeList1">
300
-										<ul id="TreeDemo1" class="ztree">
301
-										</ul>
302
-									</div>
303
-								</div>
304
-							</td>
305
-						</tr>
306
-						<tr>
307
-							<th>投诉事件描述:</th>
308
-							<td colspan="5">
309
-								<textarea name="" rows="5" cols="" placeholder="" id="content"></textarea>
310
-							</td>
311
-						</tr>
312
-						<tr>
313
-							<td colspan="6" style="text-align: center;">
314
-								<button class="btns customerSubmit">保&nbsp;存</button>
315
-							</td>
316
-						</tr>
317
-					</tbody>
318
-				</table>
30
+            .common table {
31
+                width: 100%;
32
+            }
319 33
 
320
-				<!--市场部-->
321
-				<table class="market">
322
-					<tbody>
323
-						<tr>
324
-							<th>客户:</th>
325
-							<td>
326
-								<div class="form-group">
327
-									<input type="text" class="form-control" id="name" />
328
-								</div>
329
-							</td>
330
-							<th>电话:</th>
331
-							<td>
332
-								<div class="form-group">
333
-									<input type="text" class="form-control" id="tel" />
334
-								</div>
335
-							</td>
336
-							<th>对接人:</th>
337
-							<td>
338
-								<div class="form-group">
339
-									<select name="" class="form-control" id="customerName">
340
-									
341
-									</select>
342
-								</div>
343
-							</td>
344
-						</tr>
345
-						<tr>
346
-							<th>区域:</th>
347
-							<td style="position: relative;">
348
-								<div class="form-group">
349
-									<input type="text" class="form-control" id="areaInps"/>
350
-								</div>
351
-							</td>
352
-							<th>省市:</th>
353
-							<td>
354
-								<div class="time-box">
355
-									<i class="tub fa fa-caret-down areaDown" style="color: #676b6d;"></i>
356
-									<input class="form-control" type="text" id="typeclass_market1" readonly="readonly">
357
-									<input type="text" class="inps2">
358
-									<input type="text" class="inps3">
359
-									<input type="hidden" id="typeclassId1" />
360
-									<div class="addTree1 treeList_market1">
361
-										<ul id="TreeDemo_market1" class="ztree">
362
-										</ul>
363
-									</div>
364
-								</div>
365
-							</td>
366
-							<th>对接人电话:</th>
367
-							<td style="position: relative;">
368
-								<div class="form-group">
369
-									<input type="text" class="form-control" id="customerTel"/>
370
-								</div>
371
-							</td>
372
-						</tr>
373
-						<tr>
374
-							<th>问题分类:</th>
375
-							<td>
376
-								<div class="form-group">
377
-									<select name="" class="form-control orderType2">
378
-									
379
-									</select>
380
-								</div>
381
-								
382
-							</td>
383
-							<th>工单来源:</th>
384
-							<td>
385
-								<div class="form-group">
386
-									<select name="" class="form-control" id="DicValueList">
387
-									
388
-									</select>
389
-								</div>
390
-							</td>
391
-							<th>购买地址:</th>
392
-							<td>
393
-								<div class="form-group">
394
-									<input type="text" class="form-control" id="buyAddress"/>
395
-								</div>
396
-							</td>
397
-						</tr>
398
-						<tr class="complainDiv">
399
-							<th>投诉类型:</th>
400
-							<td>
401
-								<div class="form-group">
402
-									<select name="" class="form-control complaintType">
403
-									</select>
404
-								</div>
405
-							</td>
406
-						</tr>
407
-						<tr>
408
-							<th>产品名称:</th>
409
-							<td>
410
-								<div class="form-group">
411
-									<input type="text" class="form-control" id="productname" />
412
-								</div>
413
-							</td>
414
-							<th>产品类别:</th>
415
-							<td style="position: relative;">
416
-								<div class="form-group">
417
-									<select name="" class="form-control productType2" id="productType">
418
-									
419
-									</select>
420
-								</div>
421
-							</td>
422
-							<th>生产批号:</th>
423
-							<td>
424
-								<div class="form-group">
425
-									<input type="text" class="form-control" id="batchNumber" />
426
-								</div>
427
-							</td>
428
-							
429
-							
430
-						</tr>
431
-						
432
-						<tr>
433
-							<th>生产日期:</th>
434
-							<td style="position: relative;">
435
-								<div class="time-box form-group">
436
-									<i class="tub fa fa-calendar"></i>
437
-									<input class="form-control search_time" type="text" id="proDuctdate" placeholder="请选择时间">
438
-								</div>
439
-							</td>
440
-							<th>购买日期:</th>
441
-							<td style="position: relative;">
442
-								<div class="time-box form-group">
443
-									<i class="tub fa fa-calendar"></i>
444
-									<input class="form-control search_time" type="text" id="buyDate" placeholder="请选择时间">
445
-								</div>
446
-							</td>
447
-							<th>使用日期:</th>
448
-							<td style="position: relative;">
449
-								<div class="time-box form-group">
450
-									<i class="tub fa fa-calendar"></i>
451
-									<input class="form-control search_time" type="text" id="userDate" placeholder="请选择时间">
452
-								</div>
453
-							</td>
454
-						</tr>
455
-						<tr>
456
-							<th>样品寄回:</th>
457
-							<td style="position: relative;">
458
-								<select name="" class="form-control" id="sendBack">
459
-									<option value="0">否</option>
460
-									<option value="1">是</option>
461
-								</select>
462
-							</td>
463
-						</tr>
464
-						<tr>
465
-							<th>投诉事件描述:</th>
466
-							<td colspan="5">
467
-								<textarea name="" rows="5" cols="" placeholder="" id="content"></textarea>
468
-							</td>
469
-						</tr>
470
-						<tr>
471
-							<td colspan="6" style="text-align: center;">
472
-								<button class="btns marketSubmit">保&nbsp;存</button>
473
-							</td>
474
-						</tr>
475
-					</tbody>
34
+                .common table th {
35
+                    padding: 5px 8px 5px 0;
36
+                    text-align: right;
37
+                    /* width: 20%;*/
38
+                }
476 39
 
477
-				</table>
478
-			</div>
479
-			<input type="hidden" id="CallID" />
40
+                .common table td {
41
+                    padding: 6px 0 5px 10px;
42
+                    text-align: left;
43
+                    color: #717171;
44
+                    line-height: 200%;
45
+                }
480 46
 
481
-		</div>
47
+                    .common table td textarea {
48
+                        width: 100%;
49
+                        vertical-align: middle;
50
+                        resize: none;
51
+                        outline: none;
52
+                    }
482 53
 
483
-		<script src="../js/zTree/jquery.ztree.core.js"></script>
484
-		<script src="../js/kindeditor/kindeditor.js"></script>
485
-		<script src="../js/kindeditor/lang/zh_CN.js"></script>
486
-		<script src="../js/bootstrap-select/js/bootstrap-select.js"></script>
487
-		<script src="../js/comboSelect/jquery.combo.select.js"></script>
488
-		<script src="../js/laydate/laydate.js"></script>
489
-		<script src="../js/WorkOrder/xgWork.js"></script>
490
-		<script src="../js/WorkOrder/jquery.editable-select.js"></script>
491
-	</body>
54
+        .time-box {
55
+            display: inline-block;
56
+            position: relative;
57
+            width: 100%;
58
+        }
59
+
60
+        i.tub {
61
+            position: absolute;
62
+            right: 8px;
63
+            top: 8px;
64
+            font-size: 18px;
65
+            color: #00a0ca;
66
+        }
67
+
68
+        .treeList {
69
+            top: 34px !important;
70
+            border: 1px solid #e5e6e7 !important;
71
+            border-top: 0;
72
+            height: auto !important;
73
+        }
74
+
75
+        #TreeDemo li {
76
+            float: initial;
77
+        }
78
+
79
+        #typeclass {
80
+            background: #fff;
81
+        }
82
+
83
+        .treeList1 {
84
+            top: 34px !important;
85
+            border: 1px solid #e5e6e7 !important;
86
+            border-top: 0;
87
+            height: auto !important;
88
+        }
89
+
90
+        .addTree1 {
91
+            background: #fff;
92
+            position: absolute;
93
+            width: 100%;
94
+            border: 1px solid darkgrey;
95
+            right: 0;
96
+            top: 26px;
97
+            z-index: 10;
98
+            display: none;
99
+            height: 100px;
100
+            overflow-y: auto;
101
+        }
102
+
103
+        .form-group {
104
+            margin-bottom: 0;
105
+        }
106
+
107
+        .bootstrap-select > .dropdown-toggle.bs-placeholder {
108
+            background-color: #ffffff !important;
109
+            border-color: #e5e6e7 !important;
110
+        }
111
+
112
+        .filter-option {
113
+            color: #676b6d;
114
+        }
115
+
116
+        .bootstrap-select > .dropdown-toggle.btn-default {
117
+            background-color: #ffffff !important;
118
+            border-color: #e5e6e7 !important;
119
+            color: #555;
120
+        }
121
+
122
+        .testInput-list {
123
+            position: absolute;
124
+            z-index: 999;
125
+            border: 1px solid rgb(204, 204, 204);
126
+            background-color: rgb(255, 255, 255);
127
+            z-index: 99999;
128
+            padding-left: 0;
129
+            width: 97.6%;
130
+            display: none;
131
+            height: 400px;
132
+            overflow-y: auto;
133
+        }
134
+
135
+            .testInput-list li {
136
+                padding: 5px;
137
+            }
138
+
139
+                .testInput-list li:hover {
140
+                    background-color: #E43926;
141
+                    color: #fff;
142
+                }
143
+
144
+        .ke-container {
145
+            width: 100% !important;
146
+        }
147
+
148
+        button[disabled] {
149
+            background-color: #999;
150
+        }
151
+    </style>
152
+</head>
153
+
154
+<body class="gray-bg">
155
+    <div class="daoHang clearfix" style="margin-bottom: 20px;">
156
+        <div class="dhLeft">
157
+            <sapn>
158
+                <i class="syIcon"></i>位置:
159
+                <a href="javaScript:;" id="ReIndex">首页</a>&gt;
160
+                <a href="javaScript:;">工单管理</a>&gt;
161
+                <a href="" class="nowPosition">手工制单</a>
162
+            </sapn>
163
+        </div>
164
+    </div>
165
+    <div class="clearfix wrapper wrapper-content animated fadeInRight">
166
+        <div class="common">
167
+            <table class="customerService">
168
+                <tbody>
169
+                    <tr>
170
+                        <th>姓名:</th>
171
+                        <td>
172
+                            <div class="form-group">
173
+                                <input type="text" class="form-control" id="name" />
174
+                            </div>
175
+                        </td>
176
+                        <th>电话:</th>
177
+                        <td>
178
+                            <div class="form-group">
179
+                                <input type="text" class="form-control" id="tel" />
180
+                            </div>
181
+                        </td>
182
+
183
+                    </tr>
184
+
185
+                    <tr>
186
+
187
+                        <th>工单来源:</th>
188
+                        <td>
189
+                            <div class="form-group">
190
+                                <select name="" class="form-control" id="DicValueList"></select>
191
+                            </div>
192
+                        </td>
193
+                        <th>工单类型:</th>
194
+                        <td>
195
+                            <div class="form-group">
196
+                                <select name="" class="form-control orderType" disabled></select>
197
+                            </div>
198
+                        </td>
199
+
200
+                        <th class="complainDiv">投诉类型:</th>
201
+                        <td class="complainDiv">
202
+                            <div class="form-group">
203
+                                <select name="" class="form-control complaintType"></select>
204
+                            </div>
205
+                        </td>
206
+                    </tr>
207
+                    <tr>
208
+
209
+                        <th>产品名称:</th>
210
+                        <td>
211
+                            <div class="form-group">
212
+                                <input type="text" class="form-control" id="productname" />
213
+                            </div>
214
+                        </td>
215
+                        <th>产品类别:</th>
216
+                        <td style="position: relative;">
217
+                            <div class="form-group">
218
+                                <select name="" class="form-control productType" id="productType"></select>
219
+                            </div>
220
+                        </td>
221
+                        <th>生产批号:</th>
222
+                        <td>
223
+                            <div class="form-group">
224
+                                <input type="text" class="form-control" id="batchNumber" />
225
+                            </div>
226
+                        </td>
227
+
228
+                        <th>购买地址:</th>
229
+                        <td>
230
+                            <div class="form-group">
231
+                                <input type="text" class="form-control" id="buyAddress" />
232
+                            </div>
233
+                        </td>
234
+                    </tr>
235
+                    <tr>
236
+                        <th>生产日期:</th>
237
+                        <td style="position: relative;">
238
+                            <div class="time-box form-group">
239
+                                <i class="tub fa fa-calendar"></i>
240
+                                <input class="form-control search_time " id="productDate" type="text" placeholder="请选择时间">
241
+                            </div>
242
+                        </td>
243
+                        <th>购买日期:</th>
244
+                        <td style="position: relative;">
245
+                            <div class="time-box form-group">
246
+                                <i class="tub fa fa-calendar"></i>
247
+                                <input class="form-control search_time buyDate" type="text" placeholder="请选择时间">
248
+                            </div>
249
+                        </td>
250
+                        <th><span id="usedate">食用日期:</span></th>
251
+                        <td style="position: relative;">
252
+                            <div class="time-box form-group">
253
+                                <i class="tub fa fa-calendar"></i>
254
+                                <input class="form-control search_time userDate" type="text" placeholder="请选择时间">
255
+                            </div>
256
+                        </td>
257
+                        <th>样品寄回:</th>
258
+                        <td style="position: relative;">
259
+                            <label><input type="radio" name="sendBack" id="sendBack" value="0" checked="checked" />否</label>
260
+                            <label><input type="radio" name="sendBack" id="sendBack" value="1" />是</label>
261
+                        </td>
262
+                    </tr>
263
+                    <tr>
264
+                        <th>区域:</th>
265
+                        <td style="position: relative;">
266
+                            <div class="form-group">
267
+                                <input type="text" class="form-control" id="areaInps" />
268
+                            </div>
269
+                        </td>
270
+                        <th>省市:</th>
271
+                        <td>
272
+                            <div class="time-box">
273
+                                <i class="tub fa fa-caret-down areaDown" style="color: #676b6d;"></i>
274
+                                <input class="form-control" type="text" id="typeclass" readonly="readonly">
275
+                                <input type="text" class="inps2">
276
+                                <input type="text" class="inps3">
277
+                                <input type="hidden" id="typeclassId" />
278
+                                <div class="addTree1 treeList1">
279
+                                    <ul id="TreeDemo1" class="ztree"></ul>
280
+                                </div>
281
+                            </div>
282
+                        </td>
283
+                        <th><span id="vipid">客诉专员:</span></th>
284
+                        <td>
285
+                            <div class="form-group">
286
+                                <select name="" class="form-control" id="vipName"></select>
287
+                            </div>
288
+                        </td>
289
+                        <th><span id="vipphone">专员电话:</span></th>
290
+                        <td style="position: relative;">
291
+                            <div class="form-group">
292
+                                <input type="text" class="form-control" id="vipTel" />
293
+                            </div>
294
+                        </td>
295
+                    </tr>
296
+                    <tr>
297
+                        <th>投诉事件描述:</th>
298
+                        <td colspan="7">
299
+                            <textarea name="" rows="5" cols="" placeholder="" id="content"></textarea>
300
+                        </td>
301
+                    </tr>
302
+                    <tr>
303
+                        <td colspan="8" style="text-align: center;">
304
+                            <button class="btns customerSubmit">保&nbsp;存</button>
305
+                        </td>
306
+                    </tr>
307
+                </tbody>
308
+            </table>
309
+        </div>
310
+    </div>
311
+
312
+    <script src="../js/zTree/jquery.ztree.core.js"></script>
313
+    <script src="../js/bootstrap-select/js/bootstrap-select.js"></script>
314
+    <script src="../js/WorkOrder/jquery.editable-select.js"></script>
315
+    <script src="../js/comboSelect/jquery.combo.select.js"></script>
316
+    <!--<script src="../js/kindeditor/kindeditor.js"></script>
317
+    <script src="../js/kindeditor/lang/zh_CN.js"></script>-->
318
+    <script src="../js/laydate/laydate.js"></script>
319
+    <script src="../js/WorkOrder/XgWork.js"></script>
320
+</body>
492 321
 
493 322
 </html>

Fichier diff supprimé car celui-ci est trop grand
+ 730 - 1237
CallCenterWeb.UI/callScreen/call.js


+ 232 - 416
CallCenterWeb.UI/callScreen/callScreen.html

@@ -372,10 +372,9 @@
372 372
 			}
373 373
 			
374 374
 			.treeList {
375
-				top: 34px!important;
376 375
 				border: 1px solid #e5e6e7!important;
377 376
 				border-top: 0;
378
-				height: auto!important;
377
+				height: 400px!important;
379 378
 			}
380 379
 			
381 380
 			#TreeDemo li {
@@ -385,33 +384,22 @@
385 384
 			#typeclass {
386 385
 				background: #fff;
387 386
 			}
388
-			
389
-			.treeList1 {
390
-				top: 34px!important;
391
-				border: 1px solid #e5e6e7!important;
392
-				border-top: 0;
393
-				height: auto!important;
394
-			}
387
+
388
+            .treeList1 {
389
+                border: 1px solid #e5e6e7 !important;
390
+                border-top: 0;
391
+                height: 400px !important;
392
+            }
395 393
 			
396 394
 			#TreeDemo1 li {
397 395
 				float: initial;
398 396
 			}
399 397
 			
400
-			#typeclass1 {
401
-				/*background: #fff;*/
402
-			}
403
-			
404
-			#typeclass_market1 {
405
-				background: #fff;
406
-			}
407
-			
408 398
 			.addTree1 {
409 399
 				background: #fff;
410 400
 				position: absolute;
411
-				width: 100%;
401
+				width: 180px;
412 402
 				border: 1px solid darkgrey;
413
-				right: 0;
414
-				top: 26px;
415 403
 				z-index: 10;
416 404
 				display: none;
417 405
 				height: 100px;
@@ -441,7 +429,7 @@
441 429
 			.tub {
442 430
 				position: absolute;
443 431
 				right: 10px;
444
-				top: 8px;
432
+				top: 15px;
445 433
 			}
446 434
 			
447 435
 			.add_bj {
@@ -467,8 +455,16 @@
467 455
 			.ld-sercon input {
468 456
 			    /* width: 128px; */
469 457
 			    height: 36px;
470
-			  
471 458
 			}
459
+            .form-group {
460
+                margin:0;
461
+            }
462
+            .customerService tr {
463
+                height:40px;
464
+            }
465
+            .customerService th {
466
+                width: 100px;
467
+            }
472 468
 		</style>
473 469
 		<script>
474 470
 			function clearInter() {
@@ -569,32 +565,25 @@
569 565
 						<tr>
570 566
 							<th>区域:</th>
571 567
 							<td>
572
-								<input type="text" value="" id="areaInps"/>
573
-								<input type="hidden" value="" id="khid" />
568
+								<input type="text" value="" id="kharea"/>
574 569
 							</td>
575 570
 						</tr>
576 571
 						<tr>
577 572
 							<th>省份:</th>
578
-							<td>
579
-								<input type="text" value="" class="countryName" autocomplete="off" />
580
-								<!--<select id="testInput1"></select>-->
581
-								<div class="time-box time-box_flbox" style="position: relative;">
582
-									<input class="form-control" type="text" id="typeclass1" readonly="readonly" autocomplete="off">
583
-									<input type="text" class="inps2">
584
-									<input type="text" class="inps3">
585
-									<input type="text" class="inps4">
586
-									<input type="hidden" id="typeclassId1" />
587
-									<div class="addTree1 treeList1">
588
-										<ul id="TreeDemo1" class="ztree">
589
-										</ul>
590
-									</div>
591
-								</div>
592
-							</td>
573
+                            <td>
574
+                                <input type="text" id="shengshi" readonly="readonly">
575
+                                <div class="time-box time-box_flbox" style="position: relative;">
576
+                                    <input type="hidden" class="khprovince">
577
+                                    <input type="hidden" class="khcity">
578
+                                    <div class="addTree1 treeList">
579
+                                        <ul id="TreeDemo" class="ztree"></ul>
580
+                                    </div>
581
+                                </div>
582
+                            </td>
593 583
 						</tr>
594 584
 						<tr>
595 585
 							<th>联系电话:</th>
596 586
 							<td><input type="text" value="" class="ldtel1" /></td>
597
-							<input type="hidden" id="fkdep" />
598 587
 						</tr>
599 588
 						<tr>
600 589
 							<th>来电时间:</th>
@@ -612,394 +601,221 @@
612 601
 				<!--右侧内容-->
613 602
 				<div class="ldtp-cr col-sm-9">
614 603
 					<ul class="ld-service clearfix">
615
-						<li style="border-bottom:1px solid #f95a83;" itemtype="2" class="cr-click">新增工单</li>
616
-						<li style="border-bottom:1px solid #243747;" itemtype="0">历史记录</li>
617
-						<li style="border-bottom:1px solid #69cbd0;display: none;" itemtype="1" class="KF">历史工单</li>
618
-						<li style="border-bottom:1px solid #243747;display: none;" itemtype="3" class="SC">历史工单</li>
604
+						<li style="border-bottom:1px solid #f95a83;" itemtype="0" class="cr-click">新增工单</li>
605
+						<li style="border-bottom:1px solid #243747;" itemtype="1">历史记录</li>
606
+						<li style="border-bottom:1px solid #69cbd0;" itemtype="2" >历史工单</li>
619 607
 					</ul>
620
-					<div class="ld-sercon">
621
-						<div class="complain" style="display:none;">
622
-							<div class="ld-sercon-con clearfix">
623
-								<div class="Ps-chaxun">
624
-									<span>查询: <input type="text" id="old_startTime" class="laydate-icon" />&nbsp;——&nbsp;<input type="text" id="old_endTime" class="laydate-icon" /></span>
625
-									<span class="searchbtn"></span>
626
-								</div>
627
-								<div class="table-responsive col-sm-12 tbold" style="padding-left: 0;">
628
-									<table id="oldlist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
629
-										<thead>
630
-											<tr>
631
-												<th data-field="CallNumber">电话号码</th>
632
-												<th data-field="CallState" data-formatter="GetCallState">呼叫状态</th>
633
-												<th data-field="DealType" data-formatter="formatterDealType" data-align="center">处理方式</th>
634
-												<th data-field="UserCode">坐席工号</th>
635
-												<th data-field="UserName">坐席姓名</th>
636
-												<th data-field="BeginTime">开始时间</th>
637
-												<th data-field="TalkStartTime">通话开始时间</th>
638
-												<th data-field="TalkEndTime">通话结束时间</th>
639
-												<th data-field="TalkLongTime">通话时长(s)</th>
640
-												<th data-field="FilePath" data-formatter="setCode">录音</th>
641
-											</tr>
642
-										</thead>
643
-										<tbody class="list"></tbody>
644
-									</table>
645
-								</div>
646
-							</div>
647
-
648
-						</div>
649
-						
650
-						<div class="complain" style="display:none;">
651
-							<div class="ld-sercon-con clearfix">
652
-								<div class="Ps-chaxun">
653
-									<span>
654
-										查询: <input type="text" id="con_startTime" class="laydate-icon" />
655
-										&nbsp;——&nbsp;
656
-										<input type="text" id="con_endTime" class="laydate-icon" />
657
-									</span>
658
-									<span class="searchbtn"></span>
659
-								</div>
660
-								<div id="zxlbs" class="table-responsive col-sm-12 tbold" style="padding-left: 0;">
661
-
662
-									<table id="orderlist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
663
-										<thead>
664
-											<tr>
665
-												<th data-field="F_WorkOrderId" data-align="center">工单编号</th>
666
-												<th data-field="F_State" data-formatter="GetStateName" data-align="center">工单状态</th>
667
-												<th data-field="SourceName" data-align="center">工单来源</th>
668
-												<th data-field="TypeName" data-align="center">工单类型</th>
669
-												<th data-field="F_CusName" data-align="center" data-class="E73">姓名</th>
670
-												<th data-field="F_CusPhone" data-align="center">客户电话</th>
671
-												<th data-field="F_DealUser" data-align="center">受理人</th>
672
-												<th data-field="F_CreateTime" data-align="center">创建时间</th>
673
-												<th data-field="F_Content" data-align="center" data-formatter="Detail" style="width:500px;">投诉事件描述</th>
674
-											</tr>
675
-										</thead>
676
-										<tbody class="list"></tbody>
677
-									</table>
678
-								</div>
679
-							</div>
680
-
681
-						</div>
682
-						
683
-						<div class="complain" style="display: block;">
684
-							<div class="Pre-second second-con addgd" style="display:none;">
685
-								<form>
686
-									<table class="market">
687
-										<tbody>
688
-											<tr>
689
-												<th>客户:</th>
690
-												<td>
691
-													<div class="form-group">
692
-														<input type="text" class="form-control" id="name" />
693
-													</div>
694
-												</td>
695
-												<th>电话:</th>
696
-												<td>
697
-													<div class="form-group">
698
-														<input type="text" class="form-control" id="tel" />
699
-													</div>
700
-												</td>
701
-												<th>对接人:</th>
702
-												<td>
703
-													<div class="form-group">
704
-														<select name="" class="form-control" id="vipName">
608
+                    <div class="ld-sercon">
609
+                        <div class="complain" style="display: block;">
610
+                            <div class="Pre-second second-con addgd">
611
+                                <div class="common">
612
+                                    <table class="customerService">
613
+                                        <tbody>
614
+                                            <tr>
615
+                                                <th>姓名:</th>
616
+                                                <td>
617
+                                                    <div class="form-group">
618
+                                                        <input type="text" class="form-control" id="name" />
619
+                                                    </div>
620
+                                                </td>
621
+                                                <th>电话:</th>
622
+                                                <td>
623
+                                                    <div class="form-group">
624
+                                                        <input type="text" class="form-control" id="tel" />
625
+                                                    </div>
626
+                                                </td>
705 627
 
706
-														</select>
707
-													</div>
708
-												</td>
709
-												
710
-											</tr>
711
-											<tr>
712
-												
713
-												<th>对接人电话:</th>
714
-												<td style="position: relative;">
715
-													<div class="form-group">
716
-														<input type="text" class="form-control" id="vipTel" />
717
-													</div>
718
-												</td>
719
-												<th>区域:</th>
720
-												<td style="position: relative;">
721
-													<div class="form-group">
722
-														<input type="text" class="form-control" id="areaInps1"/>
723
-													</div>
724
-												</td>
725
-												<th>省市:</th>
726
-												<td>
727
-													<div class="form-group" style="position: relative;">
728
-														<i class="tub fa fa-caret-down areaDown" style="color: #676b6d;"></i>
729
-														<input class="form-control" type="text" id="typeclass_market1" readonly="readonly">
730
-														<input type="text" class="inps2">
731
-														<input type="text" class="inps3">
732
-														<input type="hidden" id="typeclassId1" />
733
-														<div class="addTree1 treeList_market1">
734
-															<ul id="TreeDemo_market1" class="ztree">
628
+                                            </tr>
735 629
 
736
-															</ul>
737
-														</div>
738
-													</div>
739
-												</td>
740
-											</tr>
741
-											<tr>
742
-												<th>问题分类:</th>
743
-												<td>
744
-													<div class="form-group">
745
-														<select name="" class="form-control orderType1">
630
+                                            <tr>
746 631
 
747
-														</select>
748
-													</div>
632
+                                                <th>工单来源:</th>
633
+                                                <td>
634
+                                                    <div class="form-group">
635
+                                                        <select name="" class="form-control" id="DicValueList"></select>
636
+                                                    </div>
637
+                                                </td>
638
+                                                <th>工单类型:</th>
639
+                                                <td>
640
+                                                    <div class="form-group">
641
+                                                        <select name="" class="form-control orderType"></select>
642
+                                                    </div>
643
+                                                </td>
749 644
 
750
-												</td>
751
-												<th>工单来源:</th>
752
-												<td>
753
-													<div class="form-group">
754
-														<select name="" class="form-control" id="DicValueList">
645
+                                                <th class="complainDiv">投诉类型:</th>
646
+                                                <td class="complainDiv">
647
+                                                    <div class="form-group">
648
+                                                        <select name="" class="form-control complaintType"></select>
649
+                                                    </div>
650
+                                                </td>
651
+                                            </tr>
652
+                                            <tr>
755 653
 
756
-														</select>
757
-													</div>
758
-												</td>
759
-												<th>产品类别:</th>
760
-												<td style="position: relative;">
761
-													<div class="form-group">
762
-														<select name="" class="form-control productType1" id="productType">
763
-														
764
-														</select>
765
-													</div>
766
-												</td>
767
-											</tr>
768
-											<tr class="complainDiv">
769
-												<th>投诉类型:</th>
770
-												<td>
771
-													<div class="form-group">
772
-														<select name="" class="form-control complaintType1">
773
-														</select>
774
-													</div>
775
-												</td>
776
-											</tr>
777
-											<tr>
778
-												<th>产品名称:</th>
779
-												<td>
780
-													<div class="form-group">
781
-														<input type="text" class="form-control" id="productname" />
782
-													</div>
783
-												</td>
784
-												<th>生产批号:</th>
785
-												<td>
786
-													<div class="form-group">
787
-														<input type="text" class="form-control" id="batchNumber" />
788
-													</div>
789
-												</td>
790
-												<th>购买地址:</th>
791
-												<td>
792
-													<div class="form-group">
793
-														<input type="text" class="form-control" id="buyAddress" />
794
-													</div>
795
-												</td>
796
-											</tr>
797
-											<tr>
798
-												<th>生产日期:</th>
799
-												<td style="position: relative;">
800
-													<div class="time-box form-group">
801
-														<input type="text" id="proDuctdate" class="laydate-icon" autocomplete="off" />
802
-													</div>
803
-												</td>
804
-												<th>购买日期:</th>
805
-												<td style="position: relative;">
654
+                                                <th>产品名称:</th>
655
+                                                <td>
656
+                                                    <div class="form-group">
657
+                                                        <input type="text" class="form-control" id="productname" />
658
+                                                    </div>
659
+                                                </td>
660
+                                                <th>产品类别:</th>
661
+                                                <td style="position: relative;">
662
+                                                    <div class="form-group">
663
+                                                        <select name="" class="form-control productType" id="productType"></select>
664
+                                                    </div>
665
+                                                </td>
666
+                                                <th>生产批号:</th>
667
+                                                <td>
668
+                                                    <div class="form-group">
669
+                                                        <input type="text" class="form-control" id="batchNumber" />
670
+                                                    </div>
671
+                                                </td>
806 672
 
807
-													<div class="time-box form-group">
808
-														<input type="text" id="buyDate" class="laydate-icon" autocomplete="off" />
809
-													</div>
810
-												</td>
811
-												<th>使用日期:</th>
812
-												<td style="position: relative;">
813
-													<div class="time-box form-group">
814
-														<input type="text" id="userDate" class="laydate-icon" autocomplete="off" />
815
-													</div>
673
+                                                <th>购买地址:</th>
674
+                                                <td>
675
+                                                    <div class="form-group">
676
+                                                        <input type="text" class="form-control" id="buyAddress" />
677
+                                                    </div>
678
+                                                </td>
679
+                                            </tr>
680
+                                            <tr>
681
+                                                <th>生产日期:</th>
682
+                                                <td style="position: relative;">
683
+                                                    <div class="time-box form-group">
684
+                                                        <i class="tub fa fa-calendar"></i>
685
+                                                        <input class="form-control search_time " id="productDate" type="text" placeholder="请选择时间">
686
+                                                    </div>
687
+                                                </td>
688
+                                                <th>购买日期:</th>
689
+                                                <td style="position: relative;">
690
+                                                    <div class="time-box form-group">
691
+                                                        <i class="tub fa fa-calendar"></i>
692
+                                                        <input class="form-control search_time buyDate" id="buyDate" type="text" placeholder="请选择时间">
693
+                                                    </div>
694
+                                                </td>
695
+                                                <th><span id="usedate">食用日期:</span></th>
696
+                                                <td style="position: relative;">
697
+                                                    <div class="time-box form-group">
698
+                                                        <i class="tub fa fa-calendar"></i>
699
+                                                        <input class="form-control search_time userDate" id="userDate" type="text" placeholder="请选择时间">
700
+                                                    </div>
701
+                                                </td>
702
+                                                <th>样品寄回:</th>
703
+                                                <td style="position: relative;">
704
+                                                    <label style="vertical-align: middle;font-weight: normal; margin-right:20px;"><input style="vertical-align: middle" type="radio" name="sendBack" id="sendBack" value="0" checked="checked" />否</label>
705
+                                                    <label style="vertical-align: middle;font-weight: normal;"><input style="vertical-align: middle" type="radio" name="sendBack" id="sendBack" value="1" />是</label>
706
+                                                </td>
707
+                                            </tr>
708
+                                            <tr>
709
+                                                <th>区域:</th>
710
+                                                <td style="position: relative;">
711
+                                                    <div class="form-group">
712
+                                                        <input type="text" class="form-control" id="areaInps" />
713
+                                                    </div>
714
+                                                </td>
715
+                                                <th>省市:</th>
716
+                                                <td>
717
+                                                    <div class="time-box">
718
+                                                        <i class="tub fa fa-caret-down areaDown" style="color: #676b6d;"></i>
719
+                                                        <input class="form-control" type="text" id="typeclass" readonly="readonly">
720
+                                                        <input type="text" class="inps2">
721
+                                                        <input type="text" class="inps3">
722
+                                                        <div class="addTree1 treeList1">
723
+                                                            <ul id="TreeDemo1" class="ztree"></ul>
724
+                                                        </div>
725
+                                                    </div>
726
+                                                </td>
727
+                                                <th><span id="vipid">客诉专员:</span></th>
728
+                                                <td>
729
+                                                    <div class="form-group">
730
+                                                        <select name="" class="form-control" id="vipName"></select>
731
+                                                    </div>
732
+                                                </td>
733
+                                                <th><span id="vipphone">专员电话:</span></th>
734
+                                                <td style="position: relative;">
735
+                                                    <div class="form-group">
736
+                                                        <input type="text" class="form-control" id="vipTel" />
737
+                                                    </div>
738
+                                                </td>
739
+                                            </tr>
740
+                                            <tr>
741
+                                                <th>投诉事件描述:</th>
742
+                                                <td colspan="7">
743
+                                                    <textarea name="" rows="5" cols="" placeholder="" id="content" style="margin-top:10px;"></textarea>
744
+                                                </td>
745
+                                            </tr>
746
+                                            <tr>
747
+                                                <td colspan="8" style="text-align: center;">
748
+                                                    <button class="btns customerSubmit">保&nbsp;存</button>
749
+                                                </td>
750
+                                            </tr>
751
+                                        </tbody>
752
+                                    </table>
753
+                                </div>
754
+                            </div>
755
+                        </div>
816 756
 
817
-												</td>
818
-											</tr>
819
-											<tr>
820
-												<th>样品寄回:</th>
821
-												<td style="position: relative;">
822
-													<div class="time-box form-group">
823
-														<select name="" class="form-control" id="sendBack">
824
-															<option value="0">否</option>
825
-															<option value="1">是</option>
826
-														</select>
827
-													</div>
828
-												</td>
829
-												
830
-											</tr>
831
-											<tr>
832
-												<th>投诉事件描述:</th>
833
-												<td colspan="5">
834
-													<textarea name="" rows="5" cols="" placeholder="" id="content"></textarea>
835
-												</td>
836
-											</tr>
837
-											<tr>
838
-												<td colspan="6" style="text-align: center;">
839
-													<span class="addts add_bj">保&nbsp;存</span>
757
+                        <div class="complain" style="display:none;">
758
+                            <div class="ld-sercon-con clearfix">
759
+                                <div class="Ps-chaxun">
760
+                                    <span>查询: <input type="text" id="old_startTime" class="laydate-icon" />&nbsp;——&nbsp;<input type="text" id="old_endTime" class="laydate-icon" /></span>
761
+                                    <span class="searchbtn"></span>
762
+                                </div>
763
+                                <div class="table-responsive col-sm-12 tbold" style="padding-left: 0;">
764
+                                    <table id="oldlist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
765
+                                        <thead>
766
+                                            <tr>
767
+                                                <th data-field="CallNumber">电话号码</th>
768
+                                                <th data-field="CallState" data-formatter="GetCallState">呼叫状态</th>
769
+                                                <th data-field="DealType" data-formatter="formatterDealType" data-align="center">处理方式</th>
770
+                                                <th data-field="UserCode">坐席工号</th>
771
+                                                <th data-field="UserName">坐席姓名</th>
772
+                                                <th data-field="BeginTime">开始时间</th>
773
+                                                <th data-field="TalkStartTime">通话开始时间</th>
774
+                                                <th data-field="TalkEndTime">通话结束时间</th>
775
+                                                <th data-field="TalkLongTime">通话时长(s)</th>
776
+                                                <th data-field="FilePath" data-formatter="setCode">录音</th>
777
+                                            </tr>
778
+                                        </thead>
779
+                                        <tbody class="list"></tbody>
780
+                                    </table>
781
+                                </div>
782
+                            </div>
840 783
 
841
-												</td>
842
-											</tr>
843
-										</tbody>
844
-									</table>
845
-								</form>
846
-							</div>
847
-
848
-							<div class="Pre-second second-con zxbg " style="display: none;">
849
-								<form>
850
-									<table class="customerService">
851
-										<tbody>
852
-											<tr>
853
-												<th>姓名:</th>
854
-												<td>
855
-													<div class="form-group">
856
-														<input type="text" class="form-control" id="namem" autocomplete="off" />
857
-													</div>
858
-												</td>
859
-												<th>电话:</th>
860
-												<td>
861
-													<div class="form-group">
862
-														<input type="text" class="form-control" id="telm" autocomplete="off" />
863
-													</div>
864
-												</td>
865
-											</tr>
866
-											<tr>
867
-												<th>产品名称:</th>
868
-												<td>
869
-													<div class="form-group">
870
-														<input type="text" class="form-control" id="productnamem" autocomplete="off" />
871
-													</div>
872
-												</td>
873
-												<th>产品类别:</th>
874
-												<td style="position: relative;">
875
-													<div class="form-group">
876
-														<select name="" class="form-control productType2" id="productTypem">
877
-														
878
-														</select>
879
-													</div>
880
-												</td>
881
-												<th>生产批号:</th>
882
-												<td>
883
-													<div class="form-group">
884
-														<input type="text" class="form-control" id="batchNumberm" autocomplete="off" />
885
-													</div>
886
-												</td>
887
-											</tr>
888
-											<tr>
889
-												<th>购买日期:</th>
890
-												<td style="position: relative;">
891
-													<div class="time-box form-group">
892
-														<input type="text" id="buyDatem" class="laydate-icon" autocomplete="off" />
893
-													</div>
894
-												</td>
895
-												<th>食用日期:</th>
896
-												<td style="position: relative;">
897
-													<div class="time-box form-group">
898
-														<input type="text" id="userDatem" class="laydate-icon" autocomplete="off" />
899
-													</div>
900
-												</td>
901
-											</tr>
902
-											<tr>
903
-												<th>购买地址:</th>
904
-												<td>
905
-													<div class="form-group">
906
-														<input type="text" class="form-control" id="buyAddressm" autocomplete="off" />
907
-													</div>
908
-												</td>
909
-												<th>工单来源:</th>
910
-												<td>
911
-													<div class="form-group">
912
-														<select name="" class="form-control" id="DicValueListm">
913
-
914
-														</select>
915
-													</div>
916
-												</td>
917
-												<th>工单类型:</th>
918
-												<td>
919
-													<div class="form-group">
920
-														<select name="" class="form-control orderType2">
784
+                        </div>
921 785
 
922
-														</select>
923
-													</div>
786
+                        <div class="complain" style="display:none;">
787
+                            <div class="ld-sercon-con clearfix">
788
+                                <div class="Ps-chaxun">
789
+                                    <span>
790
+                                        查询: <input type="text" id="con_startTime" class="laydate-icon" />
791
+                                        &nbsp;——&nbsp;
792
+                                        <input type="text" id="con_endTime" class="laydate-icon" />
793
+                                    </span>
794
+                                    <span class="searchbtn"></span>
795
+                                </div>
796
+                                <div id="zxlbs" class="table-responsive col-sm-12 tbold" style="padding-left: 0;">
924 797
 
925
-												</td>
926
-											</tr>
927
-											<tr class="complainDiv">
928
-												<th>投诉类型:</th>
929
-												<td>
930
-													<div class="form-group">
931
-														<select name="" class="form-control complaintType2">
932
-														</select>
933
-													</div>
934
-												</td>
935
-											</tr>
936
-											<tr>
937
-												<th>样品寄回:</th>
938
-												<td style="position: relative;">
939
-													<select name="" class="form-control" id="sendBack">
940
-														<option value="0">否</option>
941
-														<option value="1">是</option>
942
-													</select>
943
-												</td>
944
-												<th>客诉专员:</th>
945
-												<td>
946
-													<div class="form-group">
947
-														<select name="" class="form-control" id="vipNamem">
798
+                                    <table id="orderlist" data-row-style="rowStyle" data-query-params="queryParams" data-pagination="true">
799
+                                        <thead>
800
+                                            <tr>
801
+                                                <th data-field="F_WorkOrderId" data-align="center">工单编号</th>
802
+                                                <th data-field="F_State" data-formatter="GetStateName" data-align="center">工单状态</th>
803
+                                                <th data-field="SourceName" data-align="center">工单来源</th>
804
+                                                <th data-field="TypeName" data-align="center">工单类型</th>
805
+                                                <th data-field="F_CusName" data-align="center" data-class="E73">姓名</th>
806
+                                                <th data-field="F_CusPhone" data-align="center">客户电话</th>
807
+                                                <th data-field="F_DealUser" data-align="center">受理人</th>
808
+                                                <th data-field="F_CreateTime" data-align="center">创建时间</th>
809
+                                                <th data-field="F_Content" data-align="center" data-formatter="Detail" style="width:500px;">投诉事件描述</th>
810
+                                            </tr>
811
+                                        </thead>
812
+                                        <tbody class="list"></tbody>
813
+                                    </table>
814
+                                </div>
815
+                            </div>
948 816
 
949
-														</select>
950
-													</div>
951
-												</td>
952
-												
953
-											</tr>
954
-											<tr>
955
-												<th>专员电话:</th>
956
-												<td style="position: relative;">
957
-													<div class="form-group">
958
-														<input type="text" class="form-control" id="vipTelm" />
959
-													</div>
960
-												</td>
961
-												<th>区域:</th>
962
-												<td style="position: relative;">
963
-													<div class="form-group">
964
-														<input type="text" class="form-control" id="areaInpsm"/>
965
-													</div>
966
-												</td>
967
-												<th>省市:</th>
968
-												<td>
969
-													<div class="form-group" style="position: relative;">
970
-														<i class="tub fa fa-caret-down areaDown" style="color: #676b6d;"></i>
971
-														<input class="form-control" type="text" id="typeclass_market1m" readonly="readonly" autocomplete="off">
972
-														<input type="text" class="inps2">
973
-														<input type="text" class="inps3">
974
-														<input type="text" class="inps4">
975
-														<input type="hidden" id="typeclassId1" />
976
-														<div class="addTree1 TreeDemo_market1m">
977
-															<ul id="TreeDemo_market1m" class="ztree">
978
-															</ul>
979
-														</div>
980
-													</div>
981
-												</td>
982
-											</tr>
983
-											<tr>
984
-												<th>投诉事件描述:</th>
985
-												<td colspan="5">
986
-													<textarea name="" rows="5" cols="" placeholder="" id="contentm"></textarea>
987
-												</td>
988
-											</tr>
989
-											<tr>
990
-												<td colspan="6" style="text-align: center;">
991
-													<span class="add_ add_bj">保&nbsp;存</span>
992
-
993
-												</td>
994
-											</tr>
995
-										</tbody>
996
-									</table>
997
-								</form>
998
-							</div>
999
-
1000
-						</div>
1001
-
1002
-					</div>
817
+                        </div>
818
+                    </div>
1003 819
 					<!--右侧下方内容区-->
1004 820
 					<div class="ldcr-bottom" style="margin-top:10px;">
1005 821
 						<div class="ldcrb-top clearfix">

+ 1 - 5
CallCenterWeb.UI/callScreen/css/call.css

@@ -196,11 +196,7 @@
196 196
 			top: 0;
197 197
 			right: 0;
198 198
 		}*/
199
-		.ld-sercon select {
200
-			/*height: 22px;*/
201
-			width: 128px;
202
-			padding-left: 20px;
203
-		}
199
+
204 200
 		.ld-sercon textarea{
205 201
 			width: 70%;
206 202
 			vertical-align: middle;

+ 130 - 316
CallCenterWeb.UI/js/WorkOrder/AddWorkOrder.js

@@ -1,35 +1,15 @@
1
-var ns;
2
-var id = helper.request.queryString("id");
3
-var phone = helper.request.queryString("phone");
4
-var depName = helper.request.queryString("depName");
5
-var name = helper.request.queryString("name");
6
-var objs = {};
7
-$.ajax({
8
-	type: "get",
9
-	url: huayi.config.callcenter_url + "CallInScreen/GetCurrUserDep",
10
-	dataType: 'json',
11
-	async: false,
12
-	data: {
13
-		token: $.cookie("token")
14
-	},
15
-	success: function(data) {
16
-		if(data.state.toLowerCase() == 'success') {
17
-			if(data.data.groname == '思念组') {
18
-				//console.log(data.data.groname)
19
-				$('.customerService').show();
20
-				$('.market').remove();
21
-				ns = 1;
22
-			} else {
23
-				$('.market').show();
24
-				$('.customerService').remove();
25
-				ns = 2;
26
-			}
27
-			
28
-		}
29
-	}
30
-});
1
+
2
+$(document).ready(function () {
3
+    var groupcode = $('#groupcode', top.document).val();
4
+    if (groupcode == 'SCZ') {
5
+        $("#usedate").text("饮用日期:");
6
+        $("#vipid").text("对接人:");
7
+        $("#vipphone").text("对接人电话:");
8
+    }
9
+    var id = helper.request.queryString("id");
10
+    var phone = helper.request.queryString("phone");
11
+    var name = helper.request.queryString("name");
31 12
 
32
-$(document).ready(function() {
33 13
 	laydate.render({
34 14
 		elem: '.userDate',
35 15
 		theme: '#1ab394',
@@ -39,19 +19,13 @@ $(document).ready(function() {
39 19
 		elem: '.buyDate',
40 20
 		theme: '#1ab394',
41 21
 		calendar: 'true'
42
-		//type: 'datetime',
43
-		//max : 31,
44
-		//min: 0,
45 22
 	});
46 23
 	laydate.render({
47
-		elem: '#proDuctdate',
24
+        elem: '#productDate',
48 25
 		theme: '#1ab394',
49 26
 		calendar: 'true'
50
-		//type: 'datetime',
51
-		//max : 31,
52
-		//min: 0,
53
-	});
54
-	
27
+    });
28
+
55 29
 	//工单来源
56 30
 	getOrderSource();
57 31
 	//工单类型
@@ -62,31 +36,22 @@ $(document).ready(function() {
62 36
 	getProductType();
63 37
 	
64 38
 	//区域
65
-	getOrderType1();
66
-	//工单状态
67
-	getOrderState();
39
+    getAreaType();
68 40
 	//客诉专员
69 41
 	ComplaintVip();
70
-	//来电单位
71
-	$('#testInput1').comboSelect();
72
-	$('#testInput2').comboSelect();
73
-	$('#testInput3').comboSelect();
74
-	$('#testInput4').comboSelect();
75
-	//编辑器配置 客服部
76
-	KindEditor.ready(function(K) {
77
-		window.changeEditor = K.create('#feedBackCon'); //修改弹出框编辑器
78
-	})
79
-	//编辑器配置 市场部 备注
80
-	KindEditor.ready(function(K) {
81
-		window.marketEditor = K.create('#remark_market');
82
-	})
42
+
43
+	////编辑器配置 客服部
44
+	//KindEditor.ready(function(K) {
45
+	//	window.changeEditor = K.create('#feedBackCon'); //修改弹出框编辑器
46
+	//})
47
+	////编辑器配置 市场部 备注
48
+	//KindEditor.ready(function(K) {
49
+	//	window.marketEditor = K.create('#remark_market');
50
+	//})
83 51
 	//保存
84 52
 	$('.customerSubmit').click(function() {
85 53
 		saveCustomer();
86 54
 	})
87
-	$('.marketSubmit').click(function() {
88
-		saveMarket();
89
-	})
90 55
 	if(id) {
91 56
 		$("#CallID").val(id);
92 57
 		$("#tel").val(phone);
@@ -95,13 +60,37 @@ $(document).ready(function() {
95 60
 			$("#name_market").val(unescape(decodeURI(name)));
96 61
 			$("#name").val(unescape(decodeURI(name)));
97 62
 		}
98
-		
99
-		if(unescape(decodeURI(depName)) != 'null' && unescape(decodeURI(depName)) != 'undefined') {
100
-			$("#testInput1_input").val(unescape(decodeURI(depName)));
101
-			$("#testInput3_input").val(unescape(decodeURI(depName)));
102
-		}
103
-		
104
-	}
63
+    }
64
+
65
+    $('.areaDown').click(function () {
66
+        if ($('.treeList1').css('display') == 'block') {
67
+            $('.treeList1').css('display', 'none')
68
+        } else {
69
+            $('.treeList1').css('display', 'block')
70
+        }
71
+    })
72
+    $('#typeclass').click(function () {
73
+        $('.treeList1').css('display', 'block')
74
+    })
75
+    $('.treeList1').mouseleave(function () {
76
+        $(this).css('display', 'none')
77
+    })
78
+
79
+    $(".orderType").change(function () {
80
+        if ($(".orderType option:selected").text() != "投诉") {
81
+            $(".complainDiv").hide();
82
+        } else {
83
+            $(".complainDiv").show();
84
+        }
85
+    });
86
+    //获取专员手机号
87
+    $("#vipName").change(function () {
88
+        $("#vipTel").val($("#vipName option:selected").attr("index"));
89
+        $("#areaInps").val($("#vipName option:selected").attr("areaText"));
90
+        $("#typeclass").val($("#vipName option:selected").attr("province") + "/" + $("#vipName option:selected").attr("city"));
91
+        $(".inps2").val($("#vipName option:selected").attr("province"));
92
+        $(".inps3").val($("#vipName option:selected").attr("city"));
93
+    });
105 94
 })
106 95
 
107 96
 //工单类型
@@ -113,34 +102,11 @@ function getOrderType() {
113 102
 		result = $.parseJSON(result);
114 103
 		var Count = result.data;
115 104
 		$(Count).each(function(i, n) {
116
-			
117
-			if(ns==1){
118
-				$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($(".orderType1"));
119
-			}else if(ns==2){
120
-				$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($(".orderType2"));
121
-			}
122
-			
123
-		
105
+            $('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($(".orderType"));
124 106
 		})
125
-	
126 107
 	});
127 108
 }
128
-$(".orderType1").change(function() {
129
-	if($(".orderType1 option:selected").text()=="咨询"){
130
-		$(".complainDiv").hide();
131
-	}else{
132
-		$(".complainDiv").show();
133
-	}
134
-	
135
-});
136
-$(".orderType2").change(function() {
137
-	if($(".orderType2 option:selected").text()=="咨询"){
138
-		$(".complainDiv").hide();
139
-	}else{
140
-		$(".complainDiv").show();
141
-	}
142
-	
143
-});
109
+
144 110
 //工单类型
145 111
 function complaintType() {
146 112
 	$.get(huayi.config.callcenter_url + 'Dictionary/GetDicValueListByFlag', {
@@ -151,9 +117,7 @@ function complaintType() {
151 117
 		var Count = result.data;
152 118
 		$(Count).each(function(i, n) {
153 119
 			$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($(".complaintType"));
154
-
155 120
 		})
156
-	
157 121
 	});
158 122
 }
159 123
 //产品类别
@@ -165,29 +129,21 @@ function getProductType() {
165 129
 		result = $.parseJSON(result);
166 130
 		var Count = result.data;
167 131
 		$(Count).each(function(i, n) {
168
-			if(ns==1){
169
-				$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($(".productType1"));
170
-			}else if(ns==2){
171
-				$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($(".productType2"));
172
-			}
132
+            $('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($(".productType"));
173 133
 		})
174
-		
175
-	
176 134
 	});
177 135
 }
178 136
 
179 137
 //区域
180
-function getOrderType1() {
138
+function getAreaType() {
181 139
 	$.get(huayi.config.callcenter_url + 'Area/GetAreaList', {
182
-//	$.get('http://192.168.4.18:4625/Area/GetAreaList', {
183 140
 		"token": $.cookie("token"),
184 141
 	}, function(result) {
185 142
 		result = $.parseJSON(result);
186
-		$.fn.zTree.init($("#TreeDemo1"), setting4, result.data); //实例化树形图
187
-		$.fn.zTree.init($("#TreeDemo_market1"), setting4, result.data); //实例化树形图
143
+		$.fn.zTree.init($("#TreeDemo1"), setting, result.data); //实例化树形图
188 144
 	});
189 145
 }
190
-var setting4 = {
146
+var setting = {
191 147
 	data: {
192 148
 		key: {
193 149
 			name: "F_AreaName"
@@ -205,18 +161,16 @@ var setting4 = {
205 161
 }
206 162
 
207 163
 function changeTreeClick(event, treeId, treeNode) {
208
-	
209
-	chanId=treeNode.F_Id;
210
-	changeName = treeNode.F_AreaName;
211
-	areaParent=treeNode.getPath();
164
+
165
+    var areaParent = treeNode.getPath();
212 166
 	if (areaParent[1]) {
213 167
 		areaParent1=areaParent[0].F_AreaName
214 168
 		areaParent2=areaParent[1].F_AreaName
215 169
 		
216
-		$('#typeclass1').val(areaParent1+"/"+areaParent2);
217
-		$('#typeclass_market1').val(areaParent1+"/"+areaParent2);
170
+		$('#typeclass').val(areaParent1+"/"+areaParent2);
218 171
 		$('.inps2').val(areaParent1);
219
-		$('.inps3').val(areaParent2);
172
+        $('.inps3').val(areaParent2);
173
+        ComplaintVip();
220 174
 		
221 175
 	}else{
222 176
 		layer.msg("请选择最下级菜单");
@@ -224,50 +178,8 @@ function changeTreeClick(event, treeId, treeNode) {
224 178
 	$('.addTree1').hide();
225 179
 	
226 180
 };
227
-$('.areaDown').click(function() {
228
-	if($('.treeList1').css('display') == 'block') {
229
-		$('.treeList1').css('display', 'none')
230
-	} else {
231
-		$('.treeList1').css('display', 'block')
232
-	}
233
-})
234
-$('#typeclass1').click(function() {
235
-	$('.treeList1').css('display', 'block')
236
-})
237
-$('.treeList1').mouseleave(function() {
238
-	$(this).css('display', 'none')
239
-})
240
-$('#typeclass_market1').click(function() {
241
-	$('.treeList_market1').css('display', 'block')
242
-})
243
-$('.treeList_market1').mouseleave(function() {
244
-	$(this).css('display', 'none')
245
-})
246 181
 
247
-//工单状态
248
-function getOrderState() {
249
-	$.ajax({
250
-		url: huayi.config.callcenter_url + "Dictionary/GetDicValueListByFlag",
251
-		type: 'get',
252
-		async: true,
253
-		data: {
254
-			flag: 'GDZT',
255
-			token: $.cookie("token")
256
-		},
257
-		dataType: "json",
258
-		success: function(res) {
259
-			if(res.state == "success") {
260
-				//console.log(res.data);
261
-				$(res.data).each(function(i, n) {
262
-					
263
-					$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($("#State"));
264
-				})
265
-				//              		
266
-			}
267 182
 
268
-		}
269
-	})
270
-}
271 183
 //工单来源
272 184
 function getOrderSource(obj) {
273 185
 	$.ajax({
@@ -283,126 +195,85 @@ function getOrderSource(obj) {
283 195
 			var Count = data.data;
284 196
 			$(Count).each(function(i, n) {
285 197
 				$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($("#DicValueList"));
286
-				$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($("#DicValueList_market"));
287 198
 			})
288 199
 		}
289 200
 	});
290 201
 }
291 202
 //客诉专员
292 203
 function ComplaintVip() {
293
-	var customerType;
294
-	$.ajax({
295
-		type: "get",
296
-		url: huayi.config.callcenter_url + "Customer/GetAllList",
297
-		dataType: 'json',
298
-		async: true,
299
-		data: {
300
-			token: $.cookie("token"),
301
-			type: 2
302
-		},
303
-		success: function(data) {
304
-			
305
-			var Count = data.data;
306
-			if (ns==1) {
307
-				$('<option value="">全部</option>').appendTo($("#vipName"));
308
-				$(Count).each(function(i, n) {
309
-					$('<option value="' + n.F_Id 
310
-					+ '"  index="'+n.F_Phone
311
-					+'" areaText="'+n.F_Area
312
-					+'" province="'+n.F_Province
313
-					+'" city="'+n.F_City+'">' + n.F_Name
314
-					+ '</option>').appendTo($("#vipName"));
315
-				})
316
-				
317
-			} else if(ns==2){
318
-				$(Count).each(function(i, n) {
319
-					$('<option value="' + n.F_Id 
320
-					+ '"  index="'+n.F_Phone
321
-					+'" areaText="'+n.F_Area
322
-					+'" province="'+n.F_Province
323
-					+'" city="'+n.F_City+'">' + n.F_Name
324
-					+ '</option>').appendTo($("#customerName"));
325
-				})
326
-			}
327
-			
328
-		}
329
-	});
204
+    $.ajax({
205
+        type: "get",
206
+        url: huayi.config.callcenter_url + "Customer/GetAllList",
207
+        dataType: 'json',
208
+        async: true,
209
+        data: {
210
+            token: $.cookie("token"),
211
+            type: 2,
212
+            province: $('.inps2').val(), //省
213
+            city: $('.inps3').val() //市
214
+        },
215
+        success: function(data) {
216
+            $("#vipName").empty();
217
+            var Count = data.data;
218
+            $('<option value="">请选择专员</option>').appendTo($("#vipName"));
219
+            $(Count).each(function (i, n) {
220
+                $('<option value="' + n.F_Id
221
+                    + '"  index="' + n.F_Phone
222
+                    + '" areaText="' + n.F_Area
223
+                    + '" province="' + n.F_Province
224
+                    + '" city="' + n.F_City + '">' + n.F_Name
225
+                    + '</option>').appendTo($("#vipName"));
226
+            })
227
+        }
228
+    });
330 229
 }
331
-//获取专员手机号
332
-$("#vipName").change(function() {
333
-	$("#vipTel").val($("#vipName option:selected").attr("index"));
334
-	$("#areaInps").val($("#vipName option:selected").attr("areaText"));
335
-	$("#typeclass1").val($("#vipName option:selected").attr("province")+"/"+$("#vipName option:selected").attr("city"));
336
-	$(".inps2").val($("#vipName option:selected").attr("province"));
337
-	$(".inps3").val($("#vipName option:selected").attr("city"));
338
-	
339
-});
340
-$("#customerName").change(function() {
341
-	$("#customerTel").val($("#customerName option:selected").attr("index"));
342
-	$("#areaInps").val($("#customerName option:selected").attr("areaText"));
343
-	$("#typeclass_market1").val($("#customerName option:selected").attr("province")+"/"+$("#customerName option:selected").attr("city"));
344
-	$(".inps2").val($("#customerName option:selected").attr("province"));
345
-	$(".inps3").val($("#customerName option:selected").attr("city"));
346
-});
347
-var orderType
348
-var staffId
349
-var stafftel
350 230
 
351
-//思念组保存
231
+
232
+//保存
352 233
 function saveCustomer() {
353
-	if($('#name').val() == '') {
234
+
235
+	if(!$('#name').val()) {
354 236
 		layer.confirm('请输入姓名!', {
355 237
 			icon: 2,
356 238
 			btn: ['确定']
357 239
 		});
358 240
 		return;
359 241
 	}
360
-	if($('#tel').val() == '') {
242
+	if(!$('#tel').val()) {
361 243
 		layer.confirm('请输入电话!', {
362 244
 			icon: 2,
363 245
 			btn: ['确定']
364 246
 		});
365 247
 		return;
366 248
 	}
367
-
368
-
369
-	if($('#DicValueList').val() == '') {
249
+	if(!$('#DicValueList').val()) {
370 250
 		layer.confirm('请选择工单来源!', {
371 251
 			icon: 2,
372 252
 			btn: ['确定']
373 253
 		});
374 254
 		return;
375 255
 	}
376
-
377
-	if($('#typeclassId').val() == '') {
256
+    if (!$('.orderType').val()) {
378 257
 		layer.confirm('请选择工单类型!', {
379 258
 			icon: 2,
380 259
 			btn: ['确定']
381 260
 		});
382 261
 		return;
383 262
 	}
384
-	if (ns==1) {
385
-		orderType=$('.orderType1').val();
386
-		staffId=$('#vipName').val();
387
-		stafftel=$('#vipTel').val();
388
-	} else if(ns==2){
389
-		orderType=$('.orderType2').val();
390
-		staffId=$('#customerName').val();
391
-		stafftel=$('#customerTel').val();
392
-	}
393 263
 	$.ajax({
394 264
 		type: "post",
395 265
 		url: huayi.config.callcenter_url + "WorkOrder/AddWorkOrder",
396 266
 		dataType: 'json',
397 267
 		async: true,
398
-//		beforeSend: function() { //触发ajax请求开始时执行
399
-//			$('.customerSubmit').attr("disabled", true);
400
-//			$('.customerSubmit').text('保存中...');
401
-//		},
268
+		beforeSend: function() { //触发ajax请求开始时执行
269
+			$('.customerSubmit').attr("disabled", true);
270
+			$('.customerSubmit').text('保存中...');
271
+		},
402 272
 		data: {
403 273
 			token: $.cookie("token"),
404 274
 			cusname: $('#name').val(), //姓名
405
-			cusphone: $('#tel').val(), //号码
275
+            cusphone: $('#tel').val(), //号码
276
+            productdate: $('#productDate').val(),
406 277
 			buydate: $('.buyDate').val(), //购买日期
407 278
 			productname: $('#productname').val(), //产品名称
408 279
 			buyaddress: $('#buyAddress').val(), //购买地址  
@@ -410,14 +281,15 @@ function saveCustomer() {
410 281
 			batchnumber: $('#batchNumber').val(), //生产批号     
411 282
 			userdate: $('.userDate').val(), //使用日期  userDate  
412 283
 			source: $('#DicValueList').val(), //工单来源
413
-			type: orderType, //工单类型id
284
+            type: $('.orderType').val(), //工单类型id
414 285
 			smalltype:$(".complaintType").val(), //投诉类型
415 286
 			area: $('#areaInps').val(), //区域
416 287
 			province: $('.inps2').val(), //省
417 288
 			city: $('.inps3').val(), //市
418 289
 			content:$('#content').val(), //事件描述     
419
-			vipid: staffId, //专员id     
420
-			vipphone: stafftel, //专员号码     
290
+            vipid: $('#vipName').val(), //专员id     
291
+            vipphone: $('#vipTel').val(), //专员号码
292
+            isback: $('input[name="sendBack"]:checked').val(),
421 293
 			callid: $("#CallID").val()
422 294
 		},
423 295
 		success: function(data) {
@@ -425,64 +297,8 @@ function saveCustomer() {
425 297
 				
426 298
 				layer.msg("保存成功!");
427 299
 				window.location.reload()
428
-//				$('.customerSubmit').attr("disabled", false);
429
-//				$('.customerSubmit').text('保存');
430
-			}
431
-		}
432
-	});
433
-
434
-}
435
-// 杜康组保存
436
-function saveMarket() {
437
-	if (ns==1) {
438
-		orderType=$('.orderType1').val();
439
-		staffId=$('#vipName').val();
440
-		stafftel=$('#vipTel').val();
441
-	} else if(ns==2){
442
-		orderType=$('.orderType2').val();
443
-		staffId=$('#customerName').val();
444
-		stafftel=$('#customerTel').val();
445
-	}
446
-	$.ajax({
447
-		type: "post",
448
-		url: huayi.config.callcenter_url + "WorkOrder/AddWorkOrder",
449
-		dataType: 'json',
450
-		async: true,
451
-//		beforeSend: function() { //触发ajax请求开始时执行
452
-//			$('.marketSubmit').attr("disabled", true);
453
-//			$('.marketSubmit').text('保存中...');
454
-//		},
455
-		data: {
456
-			token: $.cookie("token"),
457
-			cusname: $('#name').val(), //姓名
458
-			cusphone: $('#tel').val(), //号码
459
-			area: $('#areaInps').val(), //区域
460
-			vipid: staffId, //专员id     
461
-			vipphone: stafftel, //专员号码     
462
-			source: $('#DicValueList').val(), //工单来源
463
-			productname: $('#productname').val(), //产品名称
464
-			producttype: $('#productType').val(), //产品类别   
465
-			smalltype:$(".complaintType").val(), //投诉类型
466
-			batchnumber: $('#batchNumber').val(), //生产批号     
467
-			buyaddress: $('#buyAddress').val(), //购买地址  
468
-			productdate: $('#proDuctdate').val(),
469
-			buydate: $('.buyDate').val(), //购买日期
470
-			userdate: $('.userDate').val(), //使用日期  userDate  
471
-			type: orderType, //工单类型id
472
-			province: $('.inps2').val(), //省
473
-			city: $('.inps3').val(), //市
474
-			content:$('#content').val(), //事件描述     
475
-			isback:$("#sendBack").val(),
476
-			callid: $("#CallID").val()
477
-		},
478
-		success: function(data) {
479
-			if(data.state.toLowerCase() == 'success') {
480
-				layer.msg("保存成功!");
481
-				debugger
482
-				window.location.reload()
483
-//				clear();
484
-				$('.marketSubmit').attr("disabled", false);
485
-				$('.marketSubmit').text('保存');
300
+				$('.customerSubmit').attr("disabled", false);
301
+				$('.customerSubmit').text('保存');
486 302
 			}
487 303
 		}
488 304
 	});
@@ -490,26 +306,24 @@ function saveMarket() {
490 306
 }
491 307
 
492 308
 function clear() {
493
-	if(ns == 1) {
494
-		$('#name').val('');
495
-		$('#tel').val(''); //号码
496
-		$('#testInput1_input').val(''); //来电单位
497
-		$('#testInput2_input').val(''); //反馈单位
498
-		$('#orderSource').val(''); //工单来源
499
-		$('#typeclassId').val(''); //工单类型id
500
-		$('#State').val(''); //工单状态id   
501
-		$('#feedBackCon').val(''); //反馈内容    
502
-		$('#express').val(''); //快递信息     
503
-		$('#remark1').val(''); //备注一     
504
-		$('#remark2').val(''); //备注二     
505
-		$('#remark3').val(''); //备注三    
506
-		$('#typeclass').val('');
507
-	} else {
508
-		$('#name_market').val('');
509
-		$('#tel_market').val(''); //号码
510
-		$('#testInput3_input').val(''); //来电单位
511
-		$('#testInput4_input').val(''); //反馈单位
512
-		$('#remark_market').val(''); //备注内容
513
-	}
514
-
309
+    $('#name').val('');
310
+    $('#tel').val(''); //号码
311
+    $('#orderSource').val(''); //工单来源
312
+    $('#typeclassId').val(''); //工单类型id
313
+    $('.orderType').val(''); //工单状态id   
314
+    $('.DicValueList').val(''); //反馈内容    
315
+    $('.buyDate').val(''); //快递信息         
316
+    $('#productDate').val(''); //快递信息   
317
+    $('#productname').val(''); //备注一     
318
+    $('#buyAddress').val(''); //备注二     
319
+    $('#productType').val(''); //备注三    
320
+    $('#batchNumber').val('');
321
+    $('.userDate').val('');
322
+    $('.complaintType').val('');
323
+    $('.inps2').val('');
324
+    $('.inps3').val('');
325
+    $('#content').val('');
326
+    $('#vipName').val('');
327
+    $('#vipTel').val('');
328
+    $('#CallID').val('');
515 329
 }

+ 305 - 507
CallCenterWeb.UI/js/WorkOrder/xgWork.js

@@ -1,534 +1,332 @@
1
-var ns;
1
+
2 2
 var id = helper.request.queryString("id");
3
-var phone = helper.request.queryString("phone");
4
-var objs = {};
5
-laydate.render({
6
-	elem: '#userDate',
7
-	theme: '#1ab394',
8
-	calendar: 'true'
9
-	//type: 'datetime',
10
-	//max : 31,
11
-	//min: 0,
12
-});
13
-laydate.render({
14
-	elem: '#buyDate',
15
-	theme: '#1ab394',
16
-	calendar: 'true'
17
-	//type: 'datetime',
18
-	//max : 31,
19
-	//min: 0,
20
-});
21
-laydate.render({
22
-	elem: '#proDuctdate',
23
-	theme: '#1ab394',
24
-	calendar: 'true'
25
-	//type: 'datetime',
26
-	//max : 31,
27
-	//min: 0,
28
-});
29
-$.ajax({
30
-	type: "get",
31
-	url: huayi.config.callcenter_url + "CallInScreen/GetCurrUserDep",
32
-	dataType: 'json',
33
-	async: false,
34
-	data: {
35
-		token: $.cookie("token")
36
-	},
37
-	success: function(data) {
38
-		if(data.state.toLowerCase() == 'success') {
39
-			if(data.data.groname == '思念组') {
40
-				$('.customerService').show();
41
-				$('.market').remove();
42
-				ns = 1;
43
-			} else {
44
-				$('.market').show();
45
-				$('.customerService').remove();
46
-				ns = 2;
47
-			}
48
-		}
49
-	}
50
-});
51
-if(id) {
52
-	$("#tel").val(phone);
53
-	$("#tel_market").val(phone);
54
-	$("#CallID").val(id);
55
-}
56
-$('#testInput1').comboSelect();
57
-$('#testInput2').comboSelect();
58
-$('#testInput3').comboSelect();
59
-$('#testInput4').comboSelect();
60
-$(function() {
61
-	//保存
62
-	$('.customerSubmit').click(function() {
63
-		saveCustomer();
64
-	});
65
-	$('.marketSubmit').click(function() {
66
-		saveMarket();
67
-	});
3
+$(document).ready(function () {
4
+    var groupcode = $('#groupcode', top.document).val();
5
+    if (groupcode == 'SCZ') {
6
+        $("#usedate").text("饮用日期:");
7
+        $("#vipid").text("对接人:");
8
+        $("#vipphone").text("对接人电话:");
9
+    }
10
+    laydate.render({
11
+        elem: '.userDate',
12
+        theme: '#1ab394',
13
+        calendar: 'true'
14
+    });
15
+    laydate.render({
16
+        elem: '.buyDate',
17
+        theme: '#1ab394',
18
+        calendar: 'true'
19
+    });
20
+    laydate.render({
21
+        elem: '#productDate',
22
+        theme: '#1ab394',
23
+        calendar: 'true'
24
+    });
68 25
 
69
-})
70
-//编辑器配置
71
-KindEditor.ready(function(K) {
72
-//	XQ();
73
-})
74
-//编辑器配置
75
-KindEditor.ready(function(K) {
76
-	window.changeMarket = K.create('#remark_market'); //修改弹出框编辑器
26
+    $.ajaxSettings.async = false;
77 27
 
78
-})
79
-//			XQ();
80
-//		})
81
-XQ();
82
-GDLY(); //工单来源
83
-State(); //工单状态
84
-getProductType(); //产品类别
85
-getOrderType(); //工单类型
86
-getOrderType1();
87
-ComplaintVip();//客诉专员
88
-complaintType();// 投诉类型
28
+    //工单来源
29
+    getOrderSource();
30
+    //工单类型
31
+    getOrderType();
32
+    //投诉类型
33
+    complaintType();
34
+    //产品类别
35
+    getProductType();
89 36
 
90
-//工单状态
91
-function State() {
92
-	$.ajax({
93
-		url: huayi.config.callcenter_url + "Dictionary/GetDicValueListByFlag",
94
-		type: 'get',
95
-		async: false,
96
-		data: {
97
-			flag: 'GDZT',
98
-			token: $.cookie("token")
99
-		},
100
-		dataType: "json",
101
-		success: function(res) {
102
-			if(res.state == "success") {
103
-				$('<option value="">全部</option>').appendTo($("#State"));
104
-				$(res.data).each(function(i, n) {
105
-					$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($("#State"));
106
-				})
107
-				//              		
108
-			}
37
+    //区域
38
+    getAreaType();
39
+    //客诉专员
40
+    ComplaintVip();
41
+    //保存
42
+    $('.customerSubmit').click(function() {
43
+        saveCustomer();
44
+    });
109 45
 
110
-		}
111
-	})
112
-}
113
-//工单类型
114
-function complaintType() {
115
-	$.get(huayi.config.callcenter_url + 'Dictionary/GetDicValueListByFlag', {
116
-		"token": $.cookie("token"),
117
-		flag: "TSLX"
118
-	}, function(result) {
119
-		result = $.parseJSON(result);
120
-		var Count = result.data;
121
-		$('<option value="">全部</option>').appendTo($(".complaintType"));
122
-		$(Count).each(function(i, n) {
123
-			$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($(".complaintType"));
46
+    $.ajaxSettings.async = true;
47
+    var id = helper.request.queryString("id");
124 48
 
125
-		})
126
-	
127
-	});
128
-}
129
-//产品类别
130
-function getProductType() {
131
-	$.get(huayi.config.callcenter_url + 'Dictionary/GetDicValueListByFlag', {
132
-		"token": $.cookie("token"),
133
-		flag: "CPLB"
134
-	}, function(result) {
135
-		result = $.parseJSON(result);
136
-		var Count = result.data;
137
-		$('<option value="">全部</option>').appendTo($(".productType1"));
138
-		$(Count).each(function(i, n) {
139
-			if(ns==1){
140
-				$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($(".productType1"));
141
-			}else if(ns==2){
142
-				$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($(".productType2"));
143
-			}
144
-		})
145
-	
146
-	});
147
-}
49
+    $.ajax({
50
+        type: "get",
51
+        url: huayi.config.callcenter_url + "WorkOrder/GetWorkOrder",
52
+        dataType: 'json',
53
+        async: true,
54
+        cache: false,
55
+        data: {
56
+            "workid": id,
57
+            "token": $.cookie("token")
58
+        },
59
+        success: function(result) {
60
+            if (result.data.data.length > 0) {
61
+                var data = result.data.data[0];
62
+                $('#name').val(data.F_CusName); //姓名
63
+                $('#tel').val(data.F_CusPhone); //号码
64
+                $('#productDate').val(data.F_ProductDate); //购买日期
65
+                $('.buyDate').val(data.F_BuyDate); //购买日期
66
+                $('.orderType').val(data.F_Type + ''); //工单类型ID
67
+                $('.orderType').trigger("change");
68
+                $('.complaintType').val(data.F_SmallType + '');
69
+                $('#productname').val(data.F_ProductName); //产品名称 
70
+                $('#buyAddress').val(data.F_BuyAddress); //购买地址   data.
71
+                $('#productType').val(data.F_ProductType + ''); //产品类别ID   
72
+                $('#batchNumber').val(data.F_BatchNumber); //生产批号     
73
+                $('.userDate').val(data.F_UserDate); //使用日期  
74
+                $('#DicValueList').val(data.F_Source + ''); //工单来源 
75
+                $("#areaInps").val(data.F_Area);
76
+                $('#typeclass').val(data.F_Province + "/" + data.F_City); //区域  
77
+                $('.inps2').val(data.F_Province); //省   
78
+                $('.inps3').val(data.F_City); //市 
79
+                $('#content').val(data.F_Content); //事件描述     
80
+                $('#vipName').val(data.F_VIPId+''); //专员姓名    
81
+                $('#vipTel').val(data.F_VIPPhone); //专员号码       
148 82
 
83
+                $("input[name='sendBack'][value='" + data.F_IsBack+"']").attr("checked", true); 
84
+            }
85
+        }
86
+    });
87
+
88
+    $('.areaDown').click(function() {
89
+        if ($('.treeList1').css('display') == 'block') {
90
+            $('.treeList1').css('display', 'none')
91
+        } else {
92
+            $('.treeList1').css('display', 'block')
93
+        }
94
+    })
95
+    $('#typeclass').click(function() {
96
+        $('.treeList1').css('display', 'block')
97
+    })
98
+    $('.treeList1').mouseleave(function() {
99
+        $(this).css('display', 'none')
100
+    })
101
+
102
+    $(".orderType").change(function() {
103
+        if ($(".orderType option:selected").text() != "投诉") {
104
+            $(".complainDiv").hide();
105
+        } else {
106
+            $(".complainDiv").show();
107
+        }
108
+    });
109
+    //获取专员手机号
110
+    $("#vipName").change(function() {
111
+        $("#vipTel").val($("#vipName option:selected").attr("index"));
112
+        $("#areaInps").val($("#vipName option:selected").attr("areaText"));
113
+        $("#typeclass").val($("#vipName option:selected").attr("province") + "/" + $("#vipName option:selected").attr("city"));
114
+        $(".inps2").val($("#vipName option:selected").attr("province"));
115
+        $(".inps3").val($("#vipName option:selected").attr("city"));
116
+    });
117
+
118
+})
149 119
 
150
-$("#orderType1").change(function() {
151
-	if($("#orderType1 option:selected").text()=="咨询"){
152
-		$(".complainDiv").hide();
153
-	}else{
154
-		$(".complainDiv").show();
155
-	}
156
-	
157
-});
158
-$(".orderType2").change(function() {
159
-	if($(".orderType2 option:selected").text()=="咨询"){
160
-		$(".complainDiv").hide();
161
-	}else{
162
-		$(".complainDiv").show();
163
-	}
164
-	
165
-});
166
-//客诉专员
167
-function ComplaintVip() {
168
-	var customerType;
169
-	if(ns==1){
170
-		customerType=2
171
-	}else if(ns==2){
172
-		customerType=2
173
-	}
174
-	$.ajax({
175
-		type: "get",
176
-		url: huayi.config.callcenter_url + "Customer/GetAllList",
177
-		dataType: 'json',
178
-		async: true,
179
-		data: {
180
-			token: $.cookie("token"),
181
-			type: customerType
182
-		},
183
-		success: function(data) {
184
-			
185
-			var Count = data.data;
186
-			if (ns==1) {
187
-				$('<option value="">全部</option>').appendTo($("#vipName"));
188
-				$(Count).each(function(i, n) {
189
-					$('<option value="' + n.F_Id 
190
-					+ '"  index="'+n.F_Phone
191
-					+'" areaText="'+n.F_Area
192
-					+'" province="'+n.F_Province
193
-					+'" city="'+n.F_City+'">' + n.F_Name
194
-					+ '</option>').appendTo($("#vipName"));
195
-				})
196
-				$("#vipTel").val($("#vipName option:selected").attr("index"));
197
-				$("#areaInps").val($("#vipName option:selected").attr("areaText"));
198
-				$("#typeclass1").val($("#vipName option:selected").attr("province")+"/"+$("#vipName option:selected").attr("city"));
199
-				$(".inps2").val($("#vipName option:selected").attr("province"));
200
-				$(".inps3").val($("#vipName option:selected").attr("city"));
201
-			} else if(ns==2){
202
-				$(Count).each(function(i, n) {
203
-					$('<option value="' + n.F_Id 
204
-					+ '"  index="'+n.F_Phone
205
-					+'" areaText="'+n.F_Area
206
-					+'" province="'+n.F_Province
207
-					+'" city="'+n.F_City+'">' + n.F_Name
208
-					+ '</option>').appendTo($("#customerName"));
209
-				})
210
-				$("#customerTel").val($("#customerName option:selected").attr("index"));
211
-				$("#areaInps").val($("#customerName option:selected").attr("areaText"));
212
-				$("#typeclass_market1").val($("#customerName option:selected").attr("province")+"/"+$("#customerName option:selected").attr("city"));
213
-				$(".inps2").val($("#customerName option:selected").attr("province"));
214
-				$(".inps3").val($("#customerName option:selected").attr("city"));
215
-			}
216
-			
217
-		}
218
-	});
219
-}
220
-//获取专员手机号
221
-$("#vipName").change(function() {
222
-	$("#vipTel").val($("#vipName option:selected").attr("index"));
223
-	$("#areaInps").val($("#vipName option:selected").attr("areaText"));
224
-	$("#typeclass1").val($("#vipName option:selected").attr("province")+"/"+$("#vipName option:selected").attr("city"));
225
-	$(".inps2").val($("#vipName option:selected").attr("province"));
226
-	$(".inps3").val($("#vipName option:selected").attr("city"));
227
-	
228
-});
229
-$("#customerName").change(function() {
230
-	$("#customerTel").val($("#customerName option:selected").attr("index"));
231
-	$("#areaInps").val($("#customerName option:selected").attr("areaText"));
232
-	$("#typeclass_market1").val($("#customerName option:selected").attr("province")+"/"+$("#customerName option:selected").attr("city"));
233
-	$(".inps2").val($("#customerName option:selected").attr("province"));
234
-	$(".inps3").val($("#customerName option:selected").attr("city"));
235
-});
236
-//工单来源
237
-function GDLY() {
238
-	$.ajax({
239
-		type: "get",
240
-		url: huayi.config.callcenter_url + "Dictionary/GetDicValueListByFlag",
241
-		dataType: 'json',
242
-		async: true,
243
-		data: {
244
-			token: $.cookie("token"),
245
-			flag: "GDLY"
246
-		},
247
-		success: function(data) {
248
-			var Count = data.data;
249
-			$('<option value="">全部</option>').appendTo($("#DicValueList"));
250
-			$(Count).each(function(i, n) {
251
-				if(n.F_DictionaryValueId == "468") {
252
-					$('<option value="' + n.F_DictionaryValueId + '" selected="selected">' + n.F_Name + '</option>').appendTo($("#DicValueList"));
253
-					$('<option value="' + n.F_DictionaryValueId + '" selected="selected">' + n.F_Name + '</option>').appendTo($("#DicValueList_market"));
254
-				} else {
255
-					$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($("#DicValueList"));
256
-					$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($("#DicValueList_market"));
257
-				}
258 120
 
259
-			})
260
-		}
261
-	});
262
-}
263 121
 //工单类型
264 122
 function getOrderType() {
265
-	$.get(huayi.config.callcenter_url + 'Dictionary/GetDicValueListByFlag', {
266
-		"token": $.cookie("token"),
267
-		flag: "GDLX"
268
-	}, function(result) {
269
-		result = $.parseJSON(result);
270
-		var Count = result.data;
271
-		//$("#orderType1").empty();
272
-		$('<option value="">全部</option>').appendTo($("#orderType1"));
273
-		$(Count).each(function(i, n) {
274
-			if(ns==1){
275
-				$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($("#orderType1"));
276
-			}else if(ns==2){
277
-				$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($(".orderType2"));
278
-			}
279
-			
123
+    $.get(huayi.config.callcenter_url + 'Dictionary/GetDicValueListByFlag', {
124
+        "token": $.cookie("token"),
125
+        flag: "GDLX"
126
+    }, function(result) {
127
+        result = $.parseJSON(result);
128
+        var Count = result.data;
129
+        $(Count).each(function(i, n) {
130
+            $('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($(".orderType"));
131
+        })
132
+    });
133
+}
280 134
 
281
-		})
282
-	
283
-	});
135
+//工单类型
136
+function complaintType() {
137
+    $.get(huayi.config.callcenter_url + 'Dictionary/GetDicValueListByFlag', {
138
+        "token": $.cookie("token"),
139
+        flag: "TSLX"
140
+    }, function(result) {
141
+        result = $.parseJSON(result);
142
+        var Count = result.data;
143
+        $(Count).each(function(i, n) {
144
+            $('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($(".complaintType"));
145
+        })
146
+    });
284 147
 }
285
-//获取详情
286
-function XQ() {
287
-	$.ajax({
288
-		type: "get",
289
-		url: huayi.config.callcenter_url + "WorkOrder/GetWorkOrder",
290
-		dataType: 'json',
291
-		async: true,
292
-		cache: false,
293
-		data: {
294
-			"workid": id,
295
-			"token": $.cookie("token")
296
-		},
297
-		success: function(result) {
298
-			if(result.data.data.length > 0) {
299
-				var data = result.data.data[0];
300
-				$('#name').val(data.F_CusName); //姓名
301
-				$('#tel').val(data.F_CusPhone); //号码
302
-				$('#proDuctdate').val(data.F_ProductDate); //购买日期
303
-				$('#buyDate').val(data.F_BuyDate); //购买日期
304
-				$('.complaintType option:selected').text(data.SmallTypeName); //工单来源 
305
-				$('.complaintType').val(data.F_SmallType)
306
-				$('#orderType1 option:selected').text(data.TypeName); //工单类型 
307
-				$('#orderType1').val(data.F_Type); //工单类型ID
308
-				$('#productname').val(data.F_ProductName); //产品名称 
309
-				$('#buyAddress').val(data.F_BuyAddress); //购买地址   data.
310
-				$('#productType option:selected').text(data.ProductTypeName); //产品类别 
311
-				$('#productType').val(data.F_ProductType); //产品类别ID   
312
-				$('#batchNumber').val(data.F_BatchNumber); //生产批号     
313
-				$('#userDate').val(data.F_UserDate); //使用日期  
314
-				$('#DicValueList option:selected').text(data.SourceName); //工单来源 
315
-				$('#DicValueList').val(data.F_Source); //工单来源 
316
-				
317
-				$('#typeclass').val(data.TypeName); //工单类型id 
318
-				$("#areaInps").val(data.F_Area);
319
-				$('#typeclass1').val(data.F_Province+"/"+data.F_City); //区域  
320
-				$('.inps2').val(data.F_Province); //省   
321
-				$('.inps3').val(data.F_City); //市 
322
-				$('#content').val(data.F_Content); //事件描述     
323
-				$('#vipName option:selected').text(data.F_VIPName); //专员姓名    
324
-				$('#vipTel').val(data.F_VIPPhone); //专员号码     
325
-				$('#customerName option:selected').text(data.F_VIPName); //专员姓名    
326
-				$('#customerTel').val(data.F_VIPPhone); //专员号码     
327
-					if($("#orderType1 option:selected").text()=="咨询"){
328
-						
329
-						$(".complainDiv").hide();
330
-					}else{
331
-						
332
-						$(".complainDiv").show();
333
-					}
334
-			}
335
-		}
336
-	});
148
+//产品类别
149
+function getProductType() {
150
+    $.get(huayi.config.callcenter_url + 'Dictionary/GetDicValueListByFlag', {
151
+        "token": $.cookie("token"),
152
+        flag: "CPLB"
153
+    }, function(result) {
154
+        result = $.parseJSON(result);
155
+        var Count = result.data;
156
+        $(Count).each(function(i, n) {
157
+            $('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($(".productType"));
158
+        })
159
+    });
337 160
 }
338 161
 
339 162
 //区域
340
-function getOrderType1() {
341
-	$.get(huayi.config.callcenter_url + 'Area/GetAreaList', {
342
-		//	$.get('http://192.168.4.18:4625/Area/GetAreaList', {
343
-		"token": $.cookie("token"),
344
-	}, function(result) {
345
-		result = $.parseJSON(result);
346
-		$.fn.zTree.init($("#TreeDemo1"), setting4, result.data); //实例化树形图
347
-		$.fn.zTree.init($("#TreeDemo_market1"), setting4, result.data); //实例化树形图
348
-	});
163
+function getAreaType() {
164
+    $.get(huayi.config.callcenter_url + 'Area/GetAreaList', {
165
+        "token": $.cookie("token"),
166
+    }, function(result) {
167
+        result = $.parseJSON(result);
168
+        $.fn.zTree.init($("#TreeDemo1"), setting, result.data); //实例化树形图
169
+    });
349 170
 }
350
-var setting4 = {
351
-	data: {
352
-		key: {
353
-			name: "F_AreaName"
354
-		},
355
-		simpleData: {
356
-			enable: true,
357
-			idKey: "F_Id",
358
-			pIdKey: "F_ParentId",
359
-			rootPId: 0
360
-		}
361
-	},
362
-	callback: {
363
-		onClick: changeTreeClick1
364
-	}
171
+var setting = {
172
+    data: {
173
+        key: {
174
+            name: "F_AreaName"
175
+        },
176
+        simpleData: {
177
+            enable: true,
178
+            idKey: "F_Id",
179
+            pIdKey: "F_ParentId",
180
+            rootPId: 0
181
+        }
182
+    },
183
+    callback: {
184
+        onClick: changeTreeClick
185
+    }
365 186
 }
366 187
 
367
-function changeTreeClick1(event, treeId, treeNode) {
368
-	chanId = treeNode.F_Id;
369
-	changeName = treeNode.F_AreaName;
370
-	areaParent = treeNode.getPath();
371
-	if(areaParent[1]) {
372
-		areaParent1 = areaParent[0].F_AreaName
373
-		areaParent2 = areaParent[1].F_AreaName
374
-		$('#typeclass1').val(areaParent1 + "/" + areaParent2 );
375
-		$('#typeclass_market1').val(areaParent1 + "/" + areaParent2);
376
-		$('.inps2').val(areaParent1);
377
-		$('.inps3').val(areaParent2);
378
-	} else {
379
-		layer.msg("请选择最下级菜单");
380
-	}
381
-	$('.addTree1').hide();
188
+function changeTreeClick(event, treeId, treeNode) {
189
+
190
+    var areaParent = treeNode.getPath();
191
+    if (areaParent[1]) {
192
+        areaParent1 = areaParent[0].F_AreaName
193
+        areaParent2 = areaParent[1].F_AreaName
194
+
195
+        $('#typeclass').val(areaParent1 + "/" + areaParent2);
196
+        $('.inps2').val(areaParent1);
197
+        $('.inps3').val(areaParent2);
198
+        ComplaintVip();
199
+
200
+    } else {
201
+        layer.msg("请选择最下级菜单");
202
+    }
203
+    $('.addTree1').hide();
382 204
 
383 205
 };
384
-$('.areaDown').click(function() {
385
-	if($('.treeList1').css('display') == 'block') {
386
-		$('.treeList1').css('display', 'none')
387
-	} else {
388
-		$('.treeList1').css('display', 'block')
389
-	}
390
-})
391
-$('#typeclass1').click(function() {
392
-	$('.treeList1').css('display', 'block')
393
-})
394
-$('.treeList1').mouseleave(function() {
395
-	$(this).css('display', 'none')
396
-})
397
-$('#typeclass_market1').click(function() {
398
-	$('.treeList_market1').css('display', 'block')
399
-})
400
-$('.treeList_market1').mouseleave(function() {
401
-	$(this).css('display', 'none')
402
-})
403
-//客服部保存
404
-function saveCustomer() {
405
-	
406
-	$.ajax({
407
-		type: "post",
408
-		url: huayi.config.callcenter_url + "WorkOrder/EditWorkOrder",
409
-		dataType: 'json',
410
-		async: true,
411
-		data: {
412
-			token: $.cookie("token"),
413
-			workid: id,
414
-			cusname: $('#name').val(), //姓名
415
-			cusphone: $('#tel').val(), //号码
416
-			buydate: $('#buyDate').val(), //购买日期
417
-			productname: $('#productname').val(), //产品名称
418
-			buyaddress: $('#buyAddress').val(), //购买地址  
419
-			producttype: $('#productType').val(), //产品类别   
420
-			batchnumber: $('#batchNumber').val(), //生产批号     
421
-			userdate: $('#userDate').val(), //使用日期  userDate  
422
-			source: $('#DicValueList').val(), //工单来源
423
-			type: $('#orderType1').val(), //工单类型id
424
-			smalltype:$(".complaintType").val(),
425
-			area: $('#areaInps').val(), //区域
426
-			province: $('.inps2').val(), //省
427
-			city: $('.inps3').val(), //市
428
-			content:$('#content').val(), //事件描述     
429
-			vipid: $('#vipName').val(), //专员号码     
430
-			vipphone: $('#vipTel').val(), //专员号码     
431
-			callid: $("#CallID").val()
432
-		},
433
-		success: function(data) {
434
-			if(data.state.toLowerCase() == 'success') {
435
-				layer.msg("保存成功!");
436
-				var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
437
-				parent.layer.close(index); //再执行关闭
438
-				parent.$('#workorderlist').bootstrapTable('refresh');
439
-				parent.layer.msg("修改成功!");
440
-				//clear();
441
-			}
442
-		}
443
-	});
444 206
 
445
-}
446
-//杜康组保存
447
-function saveMarket() {
448
-	if($('#name_market').val() == '') {
449
-		layer.confirm('请输入姓名!', {
450
-			icon: 2,
451
-			btn: ['确定']
452
-		});
453
-		return;
454
-	}
455
-	if($('#tel_market').val() == '') {
456
-		layer.confirm('请输入电话!', {
457
-			icon: 2,
458
-			btn: ['确定']
459
-		});
460
-		return;
461
-	}
462
-	if($('#testInput3_input').val() == '') {
463
-		layer.confirm('请选择来电单位!', {
464
-			icon: 2,
465
-			btn: ['确定']
466
-		});
467
-		return;
468
-	}
469
-	$.ajax({
470
-		type: "post",
471
-		url: huayi.config.callcenter_url + "WorkOrder/EditWorkOrder",
472
-		dataType: 'json',
473
-		async: true,
474
-		data: {
475
-			token: $.cookie("token"),
476
-			workid: id,
477
-			cusname: $('#name').val(), //姓名
478
-			cusphone: $('#tel').val(), //号码
479
-			area: $('#areaInps').val(), //区域
480
-			vipid: $("#customerName").val(), //专员id     
481
-			vipphone:$("#customerTel").val(), //专员号码     
482
-			source: $('#DicValueList').val(), //工单来源
483
-			producttype: $('#productType').val(), //产品类别
484
-			smalltype:$(".complaintType").val(),
485
-			productname: $('#productname').val(), //产品名称
486
-			batchnumber: $('#batchNumber').val(), //生产批号     
487
-			buyaddress: $('#buyAddress').val(), //购买地址  
488
-			productdate: $('#proDuctdate').val(), //生产日期
489
-			buydate: $('#buyDate').val(), //购买日期
490
-			userdate: $('#userDate').val(), //使用日期  userDate  
491
-			type: $('.orderType2').val(), //工单类型id
492
-			province: $('.inps2').val(), //省
493
-			city: $('.inps3').val(), //市
494
-			content:$('#content').val(), //事件描述     
495
-			isback:$("#sendBack").val(),
496
-			callid: $("#CallID").val()
497
-		},
498
-		success: function(data) {
499
-			if(data.state.toLowerCase() == 'success') {
500
-				layer.msg("保存成功!");
501
-				var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
502
-				parent.layer.close(index); //再执行关闭
503
-				parent.$('#workorderlist_').bootstrapTable('refresh');
504
-				parent.layer.msg("修改成功!");
505
-				//clear();
506
-			}
507
-		}
508
-	});
509 207
 
208
+//工单来源
209
+function getOrderSource(obj) {
210
+    $.ajax({
211
+        type: "get",
212
+        url: huayi.config.callcenter_url + "Dictionary/GetDicValueListByFlag",
213
+        dataType: 'json',
214
+        async: true,
215
+        data: {
216
+            token: $.cookie("token"),
217
+            flag: "GDLY"
218
+        },
219
+        success: function(data) {
220
+            var Count = data.data;
221
+            $(Count).each(function(i, n) {
222
+                $('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($("#DicValueList"));
223
+            })
224
+        }
225
+    });
510 226
 }
227
+//客诉专员
228
+function ComplaintVip() {
229
+    $.ajax({
230
+        type: "get",
231
+        url: huayi.config.callcenter_url + "Customer/GetAllList",
232
+        dataType: 'json',
233
+        async: true,
234
+        data: {
235
+            token: $.cookie("token"),
236
+            type: 2,
237
+            province: $('.inps2').val(), //省
238
+            city: $('.inps3').val() //市
239
+        },
240
+        success: function(data) {
241
+            $("#vipName").empty();
242
+            var Count = data.data;
243
+            $('<option value="">请选择专员</option>').appendTo($("#vipName"));
244
+            $(Count).each(function(i, n) {
245
+                $('<option value="' + n.F_Id
246
+                    + '"  index="' + n.F_Phone
247
+                    + '" areaText="' + n.F_Area
248
+                    + '" province="' + n.F_Province
249
+                    + '" city="' + n.F_City + '">' + n.F_Name
250
+                    + '</option>').appendTo($("#vipName"));
251
+            })
252
+        }
253
+    });
254
+}
255
+
256
+
257
+//保存
258
+function saveCustomer() {
259
+
260
+    if (!$('#name').val()) {
261
+        layer.confirm('请输入姓名!', {
262
+            icon: 2,
263
+            btn: ['确定']
264
+        });
265
+        return;
266
+    }
267
+    if (!$('#tel').val()) {
268
+        layer.confirm('请输入电话!', {
269
+            icon: 2,
270
+            btn: ['确定']
271
+        });
272
+        return;
273
+    }
274
+    if (!$('#DicValueList').val()) {
275
+        layer.confirm('请选择工单来源!', {
276
+            icon: 2,
277
+            btn: ['确定']
278
+        });
279
+        return;
280
+    }
281
+    if (!$('.orderType').val()) {
282
+        layer.confirm('请选择工单类型!', {
283
+            icon: 2,
284
+            btn: ['确定']
285
+        });
286
+        return;
287
+    }
288
+    $.ajax({
289
+        type: "post",
290
+        url: huayi.config.callcenter_url + "WorkOrder/EditWorkOrder",
291
+        dataType: 'json',
292
+        async: true,
293
+        beforeSend: function() { //触发ajax请求开始时执行
294
+            $('.customerSubmit').attr("disabled", true);
295
+            $('.customerSubmit').text('保存中...');
296
+        },
297
+        data: {
298
+            token: $.cookie("token"),
299
+            workid: id,
300
+            cusname: $('#name').val(), //姓名
301
+            cusphone: $('#tel').val(), //号码
302
+            productdate: $('#productDate').val(),
303
+            buydate: $('.buyDate').val(), //购买日期
304
+            productname: $('#productname').val(), //产品名称
305
+            buyaddress: $('#buyAddress').val(), //购买地址  
306
+            producttype: $('#productType').val(), //产品类别   
307
+            batchnumber: $('#batchNumber').val(), //生产批号     
308
+            userdate: $('.userDate').val(), //使用日期  userDate  
309
+            source: $('#DicValueList').val(), //工单来源
310
+            type: $('.orderType').val(), //工单类型id
311
+            smalltype: $(".complaintType").val(), //投诉类型
312
+            area: $('#areaInps').val(), //区域
313
+            province: $('.inps2').val(), //省
314
+            city: $('.inps3').val(), //市
315
+            content: $('#content').val(), //事件描述     
316
+            vipid: $('#vipName').val(), //专员id     
317
+            vipphone: $('#vipTel').val(), //专员号码     
318
+            isback: $('input[name="sendBack"]:checked').val(),
319
+            callid: $("#CallID").val()
320
+        },
321
+        success: function(data) {
322
+            if (data.state.toLowerCase() == 'success') {
511 323
 
512
-function clear() {
513
-	if(ns == 1) {
514
-		$('#name').val('');
515
-		$('#tel').val(''); //号码
516
-		$('#testInput1_input').val(''); //来电单位
517
-		$('#testInput2_input').val(''); //反馈单位
518
-		$('#orderSource').val(''); //工单来源
519
-		$('#typeclassId').val(''); //工单类型id
520
-		$('#State').val(''); //工单状态id   
521
-		$('#express').val(''); //快递信息     
522
-		$('#remark1').val(''); //备注一     
523
-		$('#remark2').val(''); //备注二     
524
-		$('#remark3').val(''); //备注三    
525
-	} else {
526
-		$('#name_market').val('');
527
-		$('#tel_market').val(''); //号码
528
-		$('#testInput3_input').val(''); //来电单位
529
-		$('#testInput4_input').val(''); //反馈单位
530
-		$('#typeclassId_market').val(''); //工单类型id
531
-		//		$('#remark_market').val(''); //备注内容
532
-	}
324
+                layer.msg("保存成功!");
325
+                window.location.reload()
326
+                $('.customerSubmit').attr("disabled", false);
327
+                $('.customerSubmit').text('保存');
328
+            }
329
+        }
330
+    });
533 331
 
534 332
 }