Sfoglia il codice sorgente

思念,工单增加城市筛选

miaofuhao 7 anni fa
parent
commit
673d868e81

+ 0 - 1
CallCenterWeb.UI/WorkOrder/AddWorkOrder.html

@@ -206,7 +206,6 @@
206 206
                             
207 207
                         </tr>
208 208
                         <tr>
209
-
210 209
                             <th>产品名称:</th>
211 210
                             <td>
212 211
                                 <div class="form-group">

+ 22 - 0
CallCenterWeb.UI/WorkOrder/WorkOrderDispose.html

@@ -74,6 +74,9 @@
74 74
 			.imgs a{
75 75
 				padding-right: 5px;
76 76
 			}
77
+			.inps2,.inps3{
78
+				display: none;
79
+			}
77 80
 		</style>
78 81
 	</head>
79 82
 	<body class="gray-bg">
@@ -112,6 +115,19 @@
112 115
 								</select>
113 116
 							</div>
114 117
 							<div class="time-box form-group">
118
+								<i class="tub fa fa-caret-down down" style="color: #676b6d;"></i>
119
+								<input class="form-control" type="text" id="typeclass" placeholder="请选择城市" readonly="readonly">
120
+								<input type="text" class="inps2">
121
+                                <input type="text" class="inps3">
122
+								<input type="hidden" id="typeclassId" />
123
+								<div class="addTree treeList">
124
+									<p class="plasechoce">请选择</p>
125
+									<ul id="TreeDemo" class="ztree">
126
+
127
+									</ul>
128
+								</div>
129
+							</div>
130
+							<div class="time-box form-group">
115 131
 								<i class="tub fa fa-calendar"></i>
116 132
 								<input class="form-control search_time" type="text" id="greetingTimes" placeholder="请选择时间">
117 133
 							</div>
@@ -558,6 +574,8 @@
558 574
 							token: $.cookie("token"),
559 575
 							source: $('#orderSource').val(), //工单来源
560 576
 							producttype:$('#productTypeFilt').val(), //产品类别
577
+							province:$(".inps2").val(),
578
+							city:$(".inps3").val(),
561 579
 							type:$("#orderType").val(), //工单类型
562 580
 							key:$('#keyWord').val(), //内容关键字
563 581
 							workid:$('#orderNum').val(), //工单号
@@ -605,6 +623,8 @@
605 623
 							source: $('#orderSource').val(), //工单来源
606 624
 							type:$("#orderType").val(), //工单类型
607 625
 							producttype:$('#productTypeFilt').val(), //产品类别
626
+							province:$(".inps2").val(),
627
+							city:$(".inps3").val(),
608 628
 							key:$('#keyWord').val(), //内容关键字
609 629
 							workid:$('#orderNum').val(), //内容关键字
610 630
 							starttime: $('#greetingTimes').val() && $('#greetingTimes').val().split(' ~ ')[0], //开始时间
@@ -631,6 +651,8 @@
631 651
 					url += "&source=" + $("#orderSource").val();//工单来源
632 652
 					url += "&type=" + $("#orderType").val();//工单类型
633 653
 					url += "&producttype=" + $('#productTypeFilt').val();//产品类别
654
+					url += "&province=" + $('.inps2').val();//省
655
+					url += "&city=" + $('.inps3').val();//市
634 656
 					url += "&key=" + $('#keyWord').val();//关键词
635 657
 					url += "&workid=" + $('#orderNum').val();//关键词
636 658
 					url += "&starttime=" + ($("#greetingTimes").val() && $("#greetingTimes").val().split(' ~ ')[0]);//开始时间

+ 22 - 0
CallCenterWeb.UI/WorkOrder/WorkOrderParty.html

@@ -86,6 +86,9 @@
86 86
 				display: inline-block;
87 87
 				
88 88
 			}
89
+			.inps2,.inps3{
90
+				display: none;
91
+			}
89 92
 		</style>
90 93
 
91 94
 	</head>
@@ -125,6 +128,19 @@
125 128
 								</select>
126 129
 							</div>
127 130
 							<div class="time-box form-group">
131
+								<i class="tub fa fa-caret-down down" style="color: #676b6d;"></i>
132
+								<input class="form-control" type="text" id="typeclass" placeholder="请选择城市" readonly="readonly">
133
+								<input type="text" class="inps2">
134
+                                <input type="text" class="inps3">
135
+								<input type="hidden" id="typeclassId" />
136
+								<div class="addTree treeList">
137
+									<p class="plasechoce">请选择</p>
138
+									<ul id="TreeDemo" class="ztree">
139
+
140
+									</ul>
141
+								</div>
142
+							</div>
143
+							<div class="time-box form-group">
128 144
 								<i class="tub fa fa-calendar"></i>
129 145
 								<input class="form-control search_time" type="text" id="greetingTimes" placeholder="请选择时间">
130 146
 							</div>
@@ -509,6 +525,8 @@
509 525
 							source: $('#orderSource').val(), //工单来源
510 526
 							type:$("#orderType").val(), //工单类型
511 527
 							producttype:$('#productTypeFilt').val(), //产品类别
528
+							province:$(".inps2").val(),
529
+							city:$(".inps3").val(),
512 530
 							key:$('#keyWord').val(), //内容关键字
513 531
 							workid:$('#orderNum').val(), //内容关键字
514 532
 							starttime: $('#greetingTimes').val() && $('#greetingTimes').val().split(' ~ ')[0], //开始时间
@@ -566,6 +584,8 @@
566 584
 							source: $('#orderSource').val(), //工单来源
567 585
 							type:$("#orderType").val(), //工单类型
568 586
 							producttype:$('#productTypeFilt').val(), //产品类别
587
+							province:$(".inps2").val(),
588
+							city:$(".inps3").val(),
569 589
 							key:$('#keyWord').val(), //内容关键字
570 590
 							workid:$('#orderNum').val(), //内容关键字
571 591
 							starttime: $('#greetingTimes').val() && $('#greetingTimes').val().split(' ~ ')[0], //开始时间
@@ -602,6 +622,8 @@
602 622
 					url += "&source=" + $("#orderSource").val();//工单来源
603 623
 					url += "&type=" + $("#orderType").val();//工单类型
604 624
 					url += "&producttype=" + $('#productTypeFilt').val();//产品类别
625
+					url += "&province=" + $('.inps2').val();//省
626
+					url += "&city=" + $('.inps3').val();//市
605 627
 					url += "&key=" + $('#keyWord').val();//关键词
606 628
 					url += "&workid=" + $('#orderNum').val();//关键词
607 629
 					url += "&starttime=" + ($("#greetingTimes").val() && $("#greetingTimes").val().split(' ~ ')[0]);//开始时间

+ 22 - 0
CallCenterWeb.UI/WorkOrder/WorkOrderSearch.html

@@ -78,6 +78,9 @@
78 78
 			.RemoveC a{
79 79
 				display: inline;
80 80
 			}
81
+			.inps2,.inps3{
82
+				display: none;
83
+			}
81 84
 		</style>
82 85
 
83 86
 	</head>
@@ -116,6 +119,19 @@
116 119
 								</select>
117 120
 							</div>
118 121
 							<div class="time-box form-group">
122
+								<i class="tub fa fa-caret-down down" style="color: #676b6d;"></i>
123
+								<input class="form-control" type="text" id="typeclass" placeholder="请选择城市" readonly="readonly">
124
+								<input type="text" class="inps2">
125
+                                <input type="text" class="inps3">
126
+								<input type="hidden" id="typeclassId" />
127
+								<div class="addTree treeList">
128
+									<p class="plasechoce">请选择</p>
129
+									<ul id="TreeDemo" class="ztree">
130
+
131
+									</ul>
132
+								</div>
133
+							</div>
134
+							<div class="time-box form-group">
119 135
 								<i class="tub fa fa-calendar"></i>
120 136
 								<input class="form-control search_time" type="text" id="greetingTimes" placeholder="请选择时间">
121 137
 							</div>
@@ -405,6 +421,8 @@
405 421
 							source: $('#orderSource').val(), //工单来源
406 422
 							type:$("#orderType").val(), //工单类型
407 423
 							producttype:$('#productTypeFilt').val(), //产品类别
424
+							province:$(".inps2").val(),
425
+							city:$(".inps3").val(),
408 426
 							key:$('#keyWord').val(), //内容关键字
409 427
 							workid:$('#orderNum').val(), //内容关键字
410 428
 							starttime: $('#greetingTimes').val() && $('#greetingTimes').val().split(' ~ ')[0], //开始时间
@@ -450,6 +468,8 @@
450 468
 							source: $('#orderSource').val(), //工单来源
451 469
 							type:$("#orderType").val(), //工单类型
452 470
 							producttype:$('#productTypeFilt').val(), //产品类别
471
+							province:$(".inps2").val(),
472
+							city:$(".inps3").val(),
453 473
 							key:$('#keyWord').val(), //内容关键字
454 474
 							workid:$('#orderNum').val(), //内容关键字
455 475
 							starttime: $('#greetingTimes').val() && $('#greetingTimes').val().split(' ~ ')[0], //开始时间
@@ -474,6 +494,8 @@
474 494
 					url += "&source=" + $("#orderSource").val();//工单来源
475 495
 					url += "&type=" + $("#orderType").val();//工单类型
476 496
 					url += "&producttype=" + $('#productTypeFilt').val();//产品类别
497
+					url += "&province=" + $('.inps2').val();//省
498
+					url += "&city=" + $('.inps3').val();//市
477 499
 					url += "&key=" + $('#keyWord').val();//关键词
478 500
 					url += "&workid=" + $('#orderNum').val();//关键词
479 501
 					url += "&starttime=" + ($("#greetingTimes").val() && $("#greetingTimes").val().split(' ~ ')[0]);//开始时间

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

@@ -136,7 +136,7 @@ $(document).ready(function() {
136 136
 	$('#comeCall_deps').comboSelect();
137 137
 
138 138
 	function getOrderType() {
139
-		$.get(huayi.config.callcenter_url + 'WorkType/GetTreeList', {
139
+		$.get(huayi.config.callcenter_url + 'Area/GetAreaList', {
140 140
 			"token": $.cookie("token"),
141 141
 		}, function(result) {
142 142
 			result = $.parseJSON(result);
@@ -146,11 +146,12 @@ $(document).ready(function() {
146 146
 	var setting3 = {
147 147
 		data: {
148 148
 			key: {
149
-				name: "text"
149
+				name: "F_AreaName"
150 150
 			},
151 151
 			simpleData: {
152 152
 				enable: true,
153
-				idKey: "id",
153
+				idKey: "F_Id",
154
+				pIdKey: "F_ParentId",
154 155
 				rootPId: 0
155 156
 			}
156 157
 		},
@@ -160,13 +161,20 @@ $(document).ready(function() {
160 161
 	}
161 162
 
162 163
 	function changeTreeClick(event, treeId, treeNode) {
163
-		if(treeNode.level == 2){
164
-			var chanId = treeNode.id;
165
-			var changeName = treeNode.text;
166
-			$('#typeclass').val(changeName);
167
-			$('#typeclassId').val(chanId);
168
-			var pidnode = treeNode.getParentNode();
164
+		var areaParent = treeNode.getPath();
165
+		if (areaParent[1]) {
166
+			areaParent1=areaParent[0].F_AreaName
167
+			areaParent2=areaParent[1].F_AreaName
168
+			
169
+			$('#typeclass').val(areaParent1+"/"+areaParent2);
170
+			$('.inps2').val(areaParent1);
171
+	        $('.inps3').val(areaParent2);
172
+	       
173
+			
174
+		}else{
175
+			layer.msg("请选择最下级菜单");
169 176
 		}
177
+		$('.addTree1').hide();
170 178
 		
171 179
 	};
172 180