d123 %!s(int64=7) %!d(string=před) roky
rodič
revize
e674fdedd6

+ 20 - 5
CallCenterWeb.UI/WorkOrder/AddWorkOrder.html

@@ -7,7 +7,7 @@
7 7
 		<link href="../css/init.css" rel="stylesheet" />
8 8
 		<script src="../Script/Common/huayi.load.js"></script>
9 9
 		<script src="../Script/Common/huayi.config.js"></script>
10
-		<link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
10
+		<script src="../Script/Common/huayi.http.js"></script>
11 11
 		<link href="../css/WorkOrder/Search.css" rel="stylesheet">
12 12
 		<link href="../js/bootstrap-select/css/bootstrap-select.css" rel="stylesheet" />
13 13
 		<link rel="stylesheet" href="../css/WorkOrder/jquery.editable-select.css" />
@@ -116,7 +116,7 @@
116 116
 				background-color: #E43926;
117 117
 				color: #fff;
118 118
 			}
119
-			#testInput1,#testInput2{
119
+			#testInput1,#testInput2,#testInput3,#testInput4{
120 120
 				outline:none;
121 121
 				border: 1px solid #ccc;
122 122
 				padding-left: 10px;
@@ -267,18 +267,30 @@
267 267
 							</td>
268 268
 
269 269
 							<th>来电单位:</th>
270
-							<td>
270
+							<!--<td>
271 271
 								<select class="form-control selectpicker" id="comeCall_dep_market" data-live-search="true">
272 272
 									<option value="">请选择来电单位</option>
273 273
 								</select>
274
+							</td>-->
275
+							<td style="position: relative;">
276
+								<input id="testInput3" type="text" style="width:100%;" style="display: none;" />
277
+								<ul class="testInput-list">
278
+									<li></li>
279
+								</ul>
274 280
 							</td>
275 281
 						</tr>
276 282
 						<tr>
277 283
 							<th>反馈单位:</th>
278
-							<td>
284
+							<!--<td>
279 285
 								<select class="form-control selectpicker" id="feedbackDep_market" data-live-search="true">
280 286
 									<option value="">请选择反馈单位</option>
281 287
 								</select>
288
+							</td>-->
289
+							<td style="position: relative;">
290
+								<input id="testInput4" type="text" style="width:100%;" style="display: none;" />
291
+								<ul class="testInput-list">
292
+									<li></li>
293
+								</ul>
282 294
 							</td>
283 295
 						</tr>
284 296
 						<tr>
@@ -296,6 +308,7 @@
296 308
 
297 309
 				</table>
298 310
 			</div>
311
+			<input type="hidden"  id="CallID"/>
299 312
 
300 313
 		</div>
301 314
 
@@ -307,6 +320,8 @@
307 320
 		<script>
308 321
 			Select($("#testInput1"));
309 322
 			Select($("#testInput2"));
323
+			Select($("#testInput3"));
324
+			Select($("#testInput4"));
310 325
 			function Select(obj) {
311 326
 				obj.click(function (event) { 
312 327
 						event.preventDefault();  
@@ -361,7 +376,7 @@
361 376
 				
362 377
 			
363 378
 									$(document).click(function(e) {
364
-				if(!$(e.target).is($('.testInput-list>li'))&&!$(e.target).is($('#testInput1'))&&!$(e.target).is($('#testInput2'))) {
379
+				if(!$(e.target).is($('.testInput-list>li'))&&!$(e.target).is($('#testInput1'))&&!$(e.target).is($('#testInput2'))&&!$(e.target).is($('#testInput3'))&&!$(e.target).is($('#testInput4'))) {
365 380
 					$('.testInput-list').hide();
366 381
 				}
367 382
 			})

+ 1 - 0
CallCenterWeb.UI/callScreen/callScreen.html

@@ -576,6 +576,7 @@
576 576
         							<select class="form-control selectpicker" id="fkdep_market" data-live-search="true">
577 577
 										<option value="">请选择反馈单位</option>
578 578
 									</select>
579
+									
579 580
                                 </span>
580 581
 									</div>
581 582
 									<div class="form-group clearfix">

+ 9 - 9
CallCenterWeb.UI/js/WorkOrder/AddWorkOrder.js

@@ -1,6 +1,6 @@
1 1
 var ns;
2
- var id=help.request.queryString("id");
3
-   var phone=help.request.queryString("phone");
2
+ var id=helper.request.queryString("id");
3
+   var phone=helper.request.queryString("phone");
4 4
     	var objs={};
5 5
     	$.ajax({
6 6
     		type:"get",
@@ -25,8 +25,8 @@
25 25
        		 if(id){
26 26
               	$("#tel").val(phone);
27 27
               	$("#tel_market").val(phone);
28
-              	$("#CallID").val(CallID);
29
-             },
28
+              	$("#CallID").val(id);
29
+             }
30 30
     	$(document).ready(function(){
31 31
     		//工单来源
32 32
     		getOrderSource('#orderSource');
@@ -259,7 +259,7 @@
259 259
 				});
260 260
 				return;
261 261
 			}
262
-			if($('#comeCall_dep_market').val()==''){
262
+			if($('##testInput3').val()==''){
263 263
 					layer.confirm('请选择来电单位!', {
264 264
 					icon: 2,
265 265
 					btn: ['确定']
@@ -276,8 +276,8 @@
276 276
 					token: $.cookie("token"),
277 277
 					callCustomer:$('#name_market').val(),//姓名
278 278
 					tel:$('#tel_market').val(),//号码
279
-					lddep:$('#comeCall_dep_market').val(),//来电单位
280
-					fkdep:$('#feedbackDep_market').val(),//反馈单位
279
+					lddep:$('#testInput3').val(),//来电单位
280
+					fkdep:$('#testInput4').val(),//反馈单位
281 281
 					fkcont:$('#remark_market').val(),//反馈内容
282 282
 					 callid:$("#CallID").val()
283 283
 					
@@ -311,8 +311,8 @@
311 311
         	}else{
312 312
         		$('#name_market').val('');
313 313
 				$('#tel_market').val('');//号码
314
-				$('#testInput1').val('');//来电单位
315
-				$('#testInput2').val('');//反馈单位
314
+				$('#testInput3').val('');//来电单位
315
+				$('#testInput4').val('');//反馈单位
316 316
 				$('#remark_market').val('');//备注内容
317 317
         	}
318 318