|
|
@@ -1,6 +1,5 @@
|
|
1
|
1
|
var ns;
|
|
2
|
2
|
var id = helper.request.queryString("id");
|
|
3
|
|
-console.log(id)
|
|
4
|
3
|
var phone = helper.request.queryString("phone");
|
|
5
|
4
|
var objs = {};
|
|
6
|
5
|
$.ajax({
|
|
|
@@ -28,35 +27,35 @@ if(id) {
|
|
28
|
27
|
$("#tel_market").val(phone);
|
|
29
|
28
|
$("#CallID").val(id);
|
|
30
|
29
|
}
|
|
31
|
|
-GDLY();
|
|
32
|
|
- State();
|
|
33
|
|
- //工单类型
|
|
34
|
|
- getOrderType();
|
|
35
|
|
- //来电单位
|
|
36
|
|
-// getAccount('#comeCall_dep');
|
|
37
|
|
- // getAccount('#comeCall_dep_market');
|
|
38
|
|
-// getAccount('#feedbackDep');
|
|
39
|
|
- // getAccount('#feedbackDep_market');
|
|
40
|
|
- //保存
|
|
41
|
|
- $('.customerSubmit').click(function() {
|
|
42
|
|
- saveCustomer();
|
|
43
|
|
- })
|
|
44
|
|
- $('.marketSubmit').click(function() {
|
|
45
|
|
- saveMarket();
|
|
|
30
|
+ $('#testInput1').comboSelect();
|
|
|
31
|
+ $('#testInput2').comboSelect();
|
|
|
32
|
+ $('#testInput3').comboSelect();
|
|
|
33
|
+ $('#testInput4').comboSelect();
|
|
|
34
|
+ $(function(){
|
|
|
35
|
+ GDLY(); //工单来源
|
|
|
36
|
+ State();//工单状态
|
|
|
37
|
+ getOrderType();//工单类型
|
|
|
38
|
+ //保存
|
|
|
39
|
+ $('.customerSubmit').click(function() {
|
|
|
40
|
+ saveCustomer();
|
|
|
41
|
+ });
|
|
|
42
|
+ $('.marketSubmit').click(function() {
|
|
|
43
|
+ saveMarket();
|
|
|
44
|
+ });
|
|
|
45
|
+
|
|
46
|
46
|
})
|
|
47
|
|
- // })
|
|
48
|
|
- //编辑器配置
|
|
49
|
|
- KindEditor.ready(function(K) {
|
|
50
|
|
- window.changeEditor = K.create('#feedBackCon');//修改弹出框编辑器
|
|
51
|
|
- XQ()
|
|
52
|
|
- })
|
|
53
|
47
|
//编辑器配置
|
|
54
|
|
- KindEditor.ready(function(K) {
|
|
55
|
|
- window.changeMarket = K.create('#remark_market');//修改弹出框编辑器
|
|
56
|
|
- XQ()
|
|
57
|
|
- })
|
|
58
|
|
-
|
|
59
|
|
-
|
|
|
48
|
+ KindEditor.ready(function(K) {
|
|
|
49
|
+ window.changeEditor = K.create('#feedBackCon');//修改弹出框编辑器
|
|
|
50
|
+ })
|
|
|
51
|
+ //编辑器配置
|
|
|
52
|
+ KindEditor.ready(function(K) {
|
|
|
53
|
+ window.changeMarket = K.create('#remark_market');//修改弹出框编辑器
|
|
|
54
|
+
|
|
|
55
|
+ })
|
|
|
56
|
+ BindLDdep($("#testInput1"),$("#testInput2"),$("#testInput3"),$("#testInput4")).then(function(){
|
|
|
57
|
+ XQ();
|
|
|
58
|
+ })
|
|
60
|
59
|
|
|
61
|
60
|
//工单状态
|
|
62
|
61
|
function State(){
|
|
|
@@ -71,7 +70,6 @@ GDLY();
|
|
71
|
70
|
dataType: "json",
|
|
72
|
71
|
success: function(res) {
|
|
73
|
72
|
if(res.state == "success") {
|
|
74
|
|
- console.log(res.data);
|
|
75
|
73
|
$(res.data).each(function(i, n) {
|
|
76
|
74
|
$('<option value="' + n.F_DictionaryValueId + '">' + n.F_Name + '</option>').appendTo($("#State"));
|
|
77
|
75
|
})
|
|
|
@@ -135,9 +133,7 @@ $.ajax({
|
|
135
|
133
|
$("#testInput4_input").val(data.Source);
|
|
136
|
134
|
$("#typeclass").val(data.GDLXName);
|
|
137
|
135
|
$("#typeclass_market").val(data.GDLXName);
|
|
138
|
|
-// $("#feedBackCon").text(decodeURIComponent(data.Detail));
|
|
139
|
136
|
changeEditor.html(data.Detail);
|
|
140
|
|
-// changeMarket.html(decodeURIComponent(data.Detail));
|
|
141
|
137
|
changeMarket.html(data.Detail);
|
|
142
|
138
|
// $("#remark_market").text(data.Detail);
|
|
143
|
139
|
$("#express").text(data.Files);
|
|
|
@@ -149,15 +145,12 @@ $.ajax({
|
|
149
|
145
|
} else {
|
|
150
|
146
|
state_ = 472;
|
|
151
|
147
|
}
|
|
152
|
|
- console.log(state_)
|
|
153
|
148
|
$("#State").val(state_);
|
|
154
|
149
|
$("#States").val(data.State);
|
|
155
|
150
|
$("#DicValueList").val(data.Type);
|
|
156
|
151
|
$("#DicValueList_market").val(data.Type);
|
|
157
|
|
- console.log(data.GDLYName)
|
|
158
|
152
|
$("#typeclassId").val(data.TypeClass);
|
|
159
|
153
|
$("#typeclassId_market").val(data.TypeClass);
|
|
160
|
|
-
|
|
161
|
154
|
}
|
|
162
|
155
|
}
|
|
163
|
156
|
});
|
|
|
@@ -228,7 +221,6 @@ $('#typeclass_market').click(function() {
|
|
228
|
221
|
$('.treeList_market').mouseleave(function() {
|
|
229
|
222
|
$(this).css('display', 'none')
|
|
230
|
223
|
})
|
|
231
|
|
-
|
|
232
|
224
|
//来电单位
|
|
233
|
225
|
function getAccount(obj) {
|
|
234
|
226
|
$.ajax({
|
|
|
@@ -337,7 +329,38 @@ function saveMarket() {
|
|
337
|
329
|
});
|
|
338
|
330
|
|
|
339
|
331
|
}
|
|
340
|
|
-
|
|
|
332
|
+function BindLDdep(obj1,obj2,obj3,obj4) {
|
|
|
333
|
+ var deferred = $.Deferred()
|
|
|
334
|
+ $.ajax({
|
|
|
335
|
+ type: "get",
|
|
|
336
|
+ url: huayi.config.callcenter_url + "Customer/BindLDdep",
|
|
|
337
|
+ dataType: 'json',
|
|
|
338
|
+ async: true,
|
|
|
339
|
+ data: {
|
|
|
340
|
+// keypara: str,
|
|
|
341
|
+ token: $.cookie("token")
|
|
|
342
|
+ },
|
|
|
343
|
+ success: function(data) {
|
|
|
344
|
+ var Count = data.data.dep;
|
|
|
345
|
+ var html = '';
|
|
|
346
|
+ $(Count).each(function(i, n) {
|
|
|
347
|
+ html = "<option value='" + n + "'>" + n + "</option>";
|
|
|
348
|
+ $(html).appendTo(obj1);
|
|
|
349
|
+ $(html).appendTo(obj2);
|
|
|
350
|
+ $(html).appendTo(obj3);
|
|
|
351
|
+ $(html).appendTo(obj4);
|
|
|
352
|
+ });
|
|
|
353
|
+ obj1.comboSelect();
|
|
|
354
|
+ obj2.comboSelect();
|
|
|
355
|
+ obj3.comboSelect();
|
|
|
356
|
+ obj4.comboSelect();
|
|
|
357
|
+ deferred.resolve();
|
|
|
358
|
+ }
|
|
|
359
|
+ });
|
|
|
360
|
+
|
|
|
361
|
+ return deferred.promise();
|
|
|
362
|
+ };
|
|
|
363
|
+
|
|
341
|
364
|
function clear() {
|
|
342
|
365
|
if(ns == 1) {
|
|
343
|
366
|
$('#name').val('');
|