Parcourir la Source

修改市场组修改项

zhangshuangnan il y a 7 ans
Parent
commit
b9c565a753
2 fichiers modifiés avec 46 ajouts et 2 suppressions
  1. 24 0
      CallCenterWeb.UI/WorkOrder/Xga.html
  2. 22 2
      CallCenterWeb.UI/js/WorkOrder/xgWork.js

+ 24 - 0
CallCenterWeb.UI/WorkOrder/Xga.html

@@ -289,6 +289,30 @@
289 289
 								</ul>
290 290
 							</td>
291 291
 						</tr>
292
+						
293
+						<tr>
294
+							<th>工单来源:</th>
295
+							<td>
296
+								<div class="form-group">
297
+									<select name="" class="form-control" id="DicValueList_market"> </select>
298
+								</div>
299
+							</td>
300
+							<th>工单类型:</th>
301
+							<td>
302
+								<div class="time-box">
303
+									<i class="tub fa fa-caret-down down_market" style="color: #676b6d;"></i>
304
+									<input class="form-control" type="text" id="typeclass_market" readonly="readonly">
305
+									<input type="hidden" id="typeclassId_market" />
306
+									<div class="addTree treeList_market">
307
+										<ul id="TreeDemo_market" class="ztree">
308
+
309
+										</ul>
310
+									</div>
311
+								</div>
312
+							</td>
313
+						</tr>
314
+						
315
+						
292 316
 						<tr>
293 317
 							<th>备注内容:</th>
294 318
 							<td colspan="5">

+ 22 - 2
CallCenterWeb.UI/js/WorkOrder/xgWork.js

@@ -92,6 +92,7 @@ function GDLY(){
92 92
 			var Count = data.data;
93 93
 			$(Count).each(function(i, n) {
94 94
 				$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($("#DicValueList"));
95
+				$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($("#DicValueList_market"));
95 96
 
96 97
 			})
97 98
 		}
@@ -127,7 +128,7 @@ $.ajax({
127 128
 			$("#testInput2").val(data.Source);
128 129
 			$("#testInput3").val(data.Address);
129 130
 			$("#testInput4").val(data.Source);
130
-			$("#typeclass").val(data.GDLXName);
131
+			$("#typeclass_market").val(data.GDLXName);
131 132
 //			$("#feedBackCon").text(decodeURIComponent(data.Detail));
132 133
 			changeEditor.html(decodeURIComponent(data.Detail));			
133 134
 			$("#remark_market").text(data.Detail);
@@ -144,8 +145,9 @@ $.ajax({
144 145
 			$("#State").val(state_);
145 146
 			$("#States").val(data.State);
146 147
 			$("#DicValueList").val(data.Type);
148
+			$("#DicValueList_market").val(data.Type);
147 149
 			console.log(data.GDLYName)
148
-			$("#typeclassId").val(data.TypeClass);
150
+			$("#typeclassId_market").val(data.TypeClass);
149 151
 			
150 152
 		}
151 153
 		}
@@ -158,6 +160,7 @@ function getOrderType() {
158 160
 	}, function(result) {
159 161
 		result = $.parseJSON(result);
160 162
 		$.fn.zTree.init($("#TreeDemo"), setting3, result.data); //实例化树形图
163
+		$.fn.zTree.init($("#TreeDemo_market"), setting3, result.data); //实例化树形图
161 164
 	});
162 165
 }
163 166
 var setting3 = {
@@ -181,6 +184,8 @@ function changeTreeClick(event, treeId, treeNode) {
181 184
 	var changeName = treeNode.text;
182 185
 	$('#typeclass').val(changeName);
183 186
 	$('#typeclassId').val(chanId);
187
+	$('#typeclass_market').val(changeName);
188
+	$('#typeclassId_market').val(chanId);
184 189
 	var pidnode = treeNode.getParentNode();
185 190
 };
186 191
 
@@ -197,6 +202,19 @@ $('#typeclass').click(function() {
197 202
 $('.treeList').mouseleave(function() {
198 203
 	$(this).css('display', 'none')
199 204
 })
205
+$('.down_market').click(function() {
206
+	if($('.treeList_market').css('display') == 'block') {
207
+		$('.treeList_market').css('display', 'none')
208
+	} else {
209
+		$('.treeList_market').css('display', 'block')
210
+	}
211
+})
212
+$('#typeclass_market').click(function() {
213
+	$('.treeList_market').css('display', 'block')
214
+})
215
+$('.treeList_market').mouseleave(function() {
216
+	$(this).css('display', 'none')
217
+})
200 218
 
201 219
 //来电单位  
202 220
 function getAccount(obj) {
@@ -290,6 +308,8 @@ function saveMarket() {
290 308
 			tel: $('#tel_market').val(), //号码
291 309
 			lddep: $('#testInput3').val(), //来电单位
292 310
 			fkdep: $('#testInput4').val(), //反馈单位
311
+			type: $('#DicValueList_market').val(), //工单来源
312
+			typeclass: $('#typeclassId_market').val(), //工单类型id
293 313
 			fkcont: encodeURIComponent(changeEditor.html()), //反馈内容
294 314
 			callid: $("#CallID").val()
295 315