|
|
@@ -3,7 +3,7 @@
|
|
3
|
3
|
* */
|
|
4
|
4
|
|
|
5
|
5
|
$(document).ready(function() {
|
|
6
|
|
- var deptId='';
|
|
|
6
|
+ var deptId = '';
|
|
7
|
7
|
var ID = helper.request.queryString("str");
|
|
8
|
8
|
laydate.render({
|
|
9
|
9
|
elem: '#t_inqtime',
|
|
|
@@ -13,11 +13,11 @@ $(document).ready(function() {
|
|
13
|
13
|
getDepartList($('#t_county')); //营业部
|
|
14
|
14
|
getDepartList($('#clbmname')); //部门
|
|
15
|
15
|
autosize($('textarea'));
|
|
16
|
|
- $('#t_investigator').val($.cookie("u_code"));//给调查员默认值;当前用户的账号
|
|
|
16
|
+ $('#t_investigator').val($.cookie("u_code")); //给调查员默认值;当前用户的账号
|
|
17
|
17
|
helper.getDropList.getlistDropByDic($('#xl_boxs'), 'ZBDW'); //获取交办单位下拉
|
|
18
|
18
|
helper.getDropList.getlistDropByDic($('#xl_box'), 'WTFL')
|
|
19
|
|
- .then(function(){
|
|
20
|
|
- if(ID) {
|
|
|
19
|
+ .then(function() {
|
|
|
20
|
+ if (ID) {
|
|
21
|
21
|
getWorkOrderInfo(ID); //获取工单信息
|
|
22
|
22
|
}
|
|
23
|
23
|
}); //信息分类
|
|
|
@@ -34,17 +34,17 @@ $(document).ready(function() {
|
|
34
|
34
|
|
|
35
|
35
|
})
|
|
36
|
36
|
//点击显示外呼
|
|
37
|
|
-$('.callout').click(function(){
|
|
38
|
|
-// if($("#top-search li",window.parent.document).find('i',window.parent.document).hasClass('active')){
|
|
39
|
|
- if($(".WH",window.parent.parent.document).hasClass("fadeOutUp")) {
|
|
40
|
|
- $(".WH",window.parent.parent.document).removeClass("fadeOutUp").addClass("fadeInDown");
|
|
41
|
|
- }
|
|
42
|
|
- $('.WH', window.parent.parent.document).removeClass('hidens')
|
|
43
|
|
- $('.first', window.parent.parent.document).removeClass('first');
|
|
44
|
|
- $('.WH', window.parent.parent.document).addClass('first');
|
|
45
|
|
- $("#Result",window.parent.parent.document).val($('#cl_khdh').text());
|
|
46
|
|
- window.parent.parent.loadWH();
|
|
47
|
|
-// }
|
|
|
37
|
+$('.callout').click(function() {
|
|
|
38
|
+ // if($("#top-search li",window.parent.document).find('i',window.parent.document).hasClass('active')){
|
|
|
39
|
+ if ($(".WH", window.parent.parent.document).hasClass("fadeOutUp")) {
|
|
|
40
|
+ $(".WH", window.parent.parent.document).removeClass("fadeOutUp").addClass("fadeInDown");
|
|
|
41
|
+ }
|
|
|
42
|
+ $('.WH', window.parent.parent.document).removeClass('hidens')
|
|
|
43
|
+ $('.first', window.parent.parent.document).removeClass('first');
|
|
|
44
|
+ $('.WH', window.parent.parent.document).addClass('first');
|
|
|
45
|
+ $("#Result", window.parent.parent.document).val($('#cl_khdh').text());
|
|
|
46
|
+ window.parent.parent.loadWH();
|
|
|
47
|
+ // }
|
|
48
|
48
|
})
|
|
49
|
49
|
//获取工单信息
|
|
50
|
50
|
function getWorkOrderInfo(oid) {
|
|
|
@@ -59,7 +59,7 @@ function getWorkOrderInfo(oid) {
|
|
59
|
59
|
},
|
|
60
|
60
|
success: function(data) {
|
|
61
|
61
|
/*验证请求*/
|
|
62
|
|
- if(data.state == "success") {
|
|
|
62
|
+ if (data.state == "success") {
|
|
63
|
63
|
var con = data;
|
|
64
|
64
|
var Str = con.data.data;
|
|
65
|
65
|
$('#cl_gdbh').text(Str[0].WorkOrderID); //工单编号
|
|
|
@@ -75,41 +75,44 @@ function getWorkOrderInfo(oid) {
|
|
75
|
75
|
$("#t_remarks").val(Str[0].Remark); //string 否 备注
|
|
76
|
76
|
$('#xl_box').val(Str[0].InfoTypeID); //问题分类
|
|
77
|
77
|
$(".xl_boxs").val(Str[0].Unit); //交办单位
|
|
78
|
|
-
|
|
|
78
|
+
|
|
79
|
79
|
$('#clbmname').val(Str[0].UnitID); //部门
|
|
80
|
|
- deptId=Str[0].UnitID
|
|
81
|
|
- if(deptId){
|
|
82
|
|
- getUserListByDepartment($('#clidname'), deptId,con.data.item[0].ToUser)
|
|
|
80
|
+ deptId = Str[0].UnitID
|
|
|
81
|
+ if (deptId) {
|
|
|
82
|
+ getUserListByDepartment($('#clidname'), deptId, con.data.item[0].ToUser)
|
|
83
|
83
|
}
|
|
84
|
|
- if(Str[0].InfoType){
|
|
85
|
|
- getInfotypedetail($('#xq_rdwt'), Str[0].InfoType,Str[0].InfoTypeDetailID)
|
|
|
84
|
+ if (Str[0].InfoType) {
|
|
|
85
|
+ getInfotypedetail($('#xq_rdwt'), Str[0].InfoType, Str[0].InfoTypeDetailID)
|
|
86
|
86
|
}
|
|
87
|
|
-
|
|
88
|
|
-
|
|
|
87
|
+
|
|
|
88
|
+
|
|
89
|
89
|
// $("#clidname").val(Str[0].CreateUser); //处理人
|
|
90
|
90
|
//$("#xl_box").val(Str[0].UnitID); //交办单位
|
|
91
|
91
|
//$('.Message_box').find('input[value="' + Str[0].InfoTypeID + '"]').attr('checked', true); //信息分类
|
|
92
|
92
|
var Files = data.data.data[0].File;
|
|
93
|
93
|
console.log(data);
|
|
94
|
94
|
$("#IMG_box").empty();
|
|
95
|
|
- if(Files && Files.length > 0) {
|
|
|
95
|
+ if (Files && Files.length > 0) {
|
|
96
|
96
|
$(Files).each(function(i, n) {
|
|
97
|
97
|
var fileType = n.F_FileType;
|
|
98
|
|
- var fileType1 = n.F_FileType.split("\/")[0];
|
|
99
|
|
- if (fileType === '.jpg'||fileType === '.png'||fileType1==='image') {
|
|
100
|
|
- $('<div class="img-box">' +
|
|
101
|
|
- '<span class="img_mask"><span onclick=downloadFile("'+ n.F_FileUrl + '","' + n.F_FileName + '","' + n.F_FileType +
|
|
102
|
|
- '") title="点击下载"><i class="fa fa-download" aria-hidden="true"></i></span></span>' +
|
|
103
|
|
- '<img layer-src="' + n.F_FileUrl + '" src="' + n.F_FileUrl + '" alt="' + n.F_FileName +
|
|
104
|
|
- '" class="image-item" /><div>').appendTo("#IMG_box");
|
|
105
|
|
- } else {
|
|
106
|
|
- $('<div class="img-box">' +
|
|
107
|
|
- '<span class="img_mask"><span href="javascript:;" onclick=downloadFile("' + n.F_FileUrl + '","' + n.F_FileName +
|
|
108
|
|
- '","' + n.F_FileType +
|
|
109
|
|
- '") title="点击下载"><i class="glyphicon glyphicon-download-alt" aria-hidden="true"></i></span></span>' +
|
|
110
|
|
- '<div class="noThumb" title="文件"><i class="glyphicon glyphicon-paperclip"></i><p class="file_list">无法预览</p></div>' +
|
|
111
|
|
- '</div>').appendTo("#IMG_box");
|
|
112
|
|
- }
|
|
|
98
|
+ var fileType1 = n.F_FileType.split("\/")[0];
|
|
|
99
|
+ if (fileType === '.jpg' || fileType === '.png' || fileType1 === 'image') {
|
|
|
100
|
+ $('<div class="img-box">' +
|
|
|
101
|
+ '<span class="img_mask"><span onclick=downloadFile("' + n
|
|
|
102
|
+ .F_FileUrl + '","' + n.F_FileName + '","' + n.F_FileType +
|
|
|
103
|
+ '") title="点击下载"><i class="fa fa-download" aria-hidden="true"></i></span></span>' +
|
|
|
104
|
+ '<img layer-src="' + n.F_FileUrl + '" src="' + n.F_FileUrl +
|
|
|
105
|
+ '" alt="' + n.F_FileName +
|
|
|
106
|
+ '" class="image-item" /><div>').appendTo("#IMG_box");
|
|
|
107
|
+ } else {
|
|
|
108
|
+ $('<div class="img-box">' +
|
|
|
109
|
+ '<span class="img_mask"><span href="javascript:;" onclick=downloadFile("' +
|
|
|
110
|
+ n.F_FileUrl + '","' + n.F_FileName +
|
|
|
111
|
+ '","' + n.F_FileType +
|
|
|
112
|
+ '") title="点击下载"><i class="glyphicon glyphicon-download-alt" aria-hidden="true"></i></span></span>' +
|
|
|
113
|
+ '<div class="noThumb" title="文件"><i class="glyphicon glyphicon-paperclip"></i><p class="file_list">无法预览</p></div>' +
|
|
|
114
|
+ '</div>').appendTo("#IMG_box");
|
|
|
115
|
+ }
|
|
113
|
116
|
});
|
|
114
|
117
|
layer.photos({
|
|
115
|
118
|
photos: '#IMG_box',
|
|
|
@@ -124,7 +127,7 @@ function getWorkOrderInfo(oid) {
|
|
124
|
127
|
},
|
|
125
|
128
|
});
|
|
126
|
129
|
}
|
|
127
|
|
-
|
|
|
130
|
+
|
|
128
|
131
|
}
|
|
129
|
132
|
}
|
|
130
|
133
|
});
|
|
|
@@ -132,14 +135,21 @@ function getWorkOrderInfo(oid) {
|
|
132
|
135
|
|
|
133
|
136
|
//处理
|
|
134
|
137
|
function dealWorkOrder(oid) {
|
|
135
|
|
- var infotype=$('#xl_box').find('option:selected').text();
|
|
136
|
|
- var infotypedetail = $('#xq_rdwt').find('option:selected').text();
|
|
137
|
|
- if(infotype=='请选择'){
|
|
138
|
|
- infotype=''
|
|
139
|
|
- }
|
|
140
|
|
- if(infotypedetail == '请选择') {
|
|
141
|
|
- infotypedetail = ''
|
|
142
|
|
- }
|
|
|
138
|
+ var infotype = $('#xl_box').find('option:selected').text();
|
|
|
139
|
+ var infotypedetail = $('#xq_rdwt').find('option:selected').text();
|
|
|
140
|
+ if (infotype == '请选择') {
|
|
|
141
|
+ infotype = ''
|
|
|
142
|
+ }
|
|
|
143
|
+ if (infotypedetail == '请选择') {
|
|
|
144
|
+ infotypedetail = ''
|
|
|
145
|
+ }
|
|
|
146
|
+ if($('#cont').val() == '') {
|
|
|
147
|
+ layer.confirm('请输入问题处理情况!', {
|
|
|
148
|
+ icon: 2,
|
|
|
149
|
+ btn: ['确定']
|
|
|
150
|
+ });
|
|
|
151
|
+ return;
|
|
|
152
|
+ }
|
|
143
|
153
|
$.post(huayi.config.callcenter_url + 'WorkOrder/DealWorkOrder', {
|
|
144
|
154
|
orderid: oid, //string 是 工单编号
|
|
145
|
155
|
customer: $('#cl_khxm').val(), //string 是 客户姓名
|
|
|
@@ -154,18 +164,18 @@ function dealWorkOrder(oid) {
|
|
154
|
164
|
remark: $('#t_remarks').val(), //string 否 备注
|
|
155
|
165
|
isend: $("input[name='ltype']:checked").val(), //int 是 是否结束 0否,1是
|
|
156
|
166
|
isrestore: $("input[name='isT']:checked").val(), //是否修复
|
|
157
|
|
- unit: $("#clbmname").val(), //string 否 交办单位
|
|
|
167
|
+ unit: $("#clbmname").val(), //string 否 交办单位
|
|
158
|
168
|
infotype: infotype, //string 否 信息分类
|
|
159
|
|
- infotypeid:$('#xl_box').val(),
|
|
|
169
|
+ infotypeid: $('#xl_box').val(),
|
|
160
|
170
|
infotypedetail: infotypedetail,
|
|
161
|
171
|
infotypedetailid: $('#xq_rdwt').val(),
|
|
162
|
172
|
clbm: $("#clbmname").val(), //string 否 处理部门
|
|
163
|
173
|
clgh: $("#clidname").val(), //string 否 处理人
|
|
164
|
|
-
|
|
|
174
|
+
|
|
165
|
175
|
token: $.cookie("token")
|
|
166
|
176
|
}, function(result) {
|
|
167
|
177
|
result = $.parseJSON(result);
|
|
168
|
|
- if(result.state.toLowerCase() == "success") {
|
|
|
178
|
+ if (result.state.toLowerCase() == "success") {
|
|
169
|
179
|
var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
|
|
170
|
180
|
parent.layer.close(index); //再执行关闭
|
|
171
|
181
|
parent.initTable();
|
|
|
@@ -174,22 +184,22 @@ function dealWorkOrder(oid) {
|
|
174
|
184
|
}
|
|
175
|
185
|
})
|
|
176
|
186
|
}
|
|
177
|
|
-$('#xl_box').change(function(){
|
|
|
187
|
+$('#xl_box').change(function() {
|
|
178
|
188
|
getInfotypedetail($('#xq_rdwt'), $('#xl_box').find('option:selected').text())
|
|
179
|
189
|
})
|
|
180
|
190
|
|
|
181
|
|
-function getInfotypedetail(obj,val,name){
|
|
|
191
|
+function getInfotypedetail(obj, val, name) {
|
|
182
|
192
|
$.getJSON(huayi.config.callcenter_url + 'Dictionary/GetDicValueListByDescribe', {
|
|
183
|
193
|
"token": $.cookie("token"),
|
|
184
|
194
|
des: val
|
|
185
|
195
|
}, function(result) {
|
|
186
|
|
- if(result.state.toLowerCase() == "success") {
|
|
187
|
|
- let str='<option value="">请选择</option>'
|
|
|
196
|
+ if (result.state.toLowerCase() == "success") {
|
|
|
197
|
+ let str = '<option value="">请选择</option>'
|
|
188
|
198
|
result.data.forEach(function(v, n) {
|
|
189
|
199
|
str += '<option value="' + v.F_DictionaryValueId + '">' + v.F_Name + '</option>'
|
|
190
|
200
|
})
|
|
191
|
201
|
obj.html(str)
|
|
192
|
|
- if(name){
|
|
|
202
|
+ if (name) {
|
|
193
|
203
|
$('#xq_rdwt').val(name)
|
|
194
|
204
|
}
|
|
195
|
205
|
}
|
|
|
@@ -197,84 +207,84 @@ function getInfotypedetail(obj,val,name){
|
|
197
|
207
|
}
|
|
198
|
208
|
//下拉选项
|
|
199
|
209
|
//20180518byfanlongfei将处理部门、处理人、信息分类、交办单位修改为文本框;
|
|
200
|
|
- // getBM($("#zrbmtree"));
|
|
201
|
|
- // getBM($("#clbmtree"));
|
|
|
210
|
+// getBM($("#zrbmtree"));
|
|
|
211
|
+// getBM($("#clbmtree"));
|
|
202
|
212
|
|
|
203
|
|
- //标签切换
|
|
204
|
|
- $(".ldtp-cr ul.ld-service li").click(function() {
|
|
205
|
|
- $(this).addClass("cr-click").siblings().removeClass("cr-click");
|
|
206
|
|
- var index = $(this).index();
|
|
207
|
|
- $(".gsxx").find(".sqzx").eq(index).addClass("Shows").siblings().removeClass("Shows");
|
|
208
|
|
- if(index == 2) {
|
|
209
|
|
- getLX($(".tslx"), "TSLX");
|
|
210
|
|
- getBM($("#zrbmtree"));
|
|
211
|
|
- getBM($("#clbmtree"));
|
|
212
|
|
- }
|
|
213
|
|
- });
|
|
|
213
|
+//标签切换
|
|
|
214
|
+$(".ldtp-cr ul.ld-service li").click(function() {
|
|
|
215
|
+ $(this).addClass("cr-click").siblings().removeClass("cr-click");
|
|
|
216
|
+ var index = $(this).index();
|
|
|
217
|
+ $(".gsxx").find(".sqzx").eq(index).addClass("Shows").siblings().removeClass("Shows");
|
|
|
218
|
+ if (index == 2) {
|
|
|
219
|
+ getLX($(".tslx"), "TSLX");
|
|
|
220
|
+ getBM($("#zrbmtree"));
|
|
|
221
|
+ getBM($("#clbmtree"));
|
|
|
222
|
+ }
|
|
|
223
|
+});
|
|
214
|
224
|
|
|
215
|
|
- //tree下拉框效果
|
|
216
|
|
- $(".inpBox .tree").click(function() {
|
|
217
|
|
- if($(this).parent().find(".addTree").is(":hidden")) {
|
|
218
|
|
- $(this).parent().find(".addTree").show();
|
|
219
|
|
- } else {
|
|
220
|
|
- $(this).parent().find(".addTree").hide();
|
|
221
|
|
- }
|
|
222
|
|
- });
|
|
223
|
|
- //普通下拉框效果
|
|
224
|
|
- $(".inpBox .select").click(function() {
|
|
225
|
|
- if($(this).parent().find(".xl_common").is(":hidden")) {
|
|
226
|
|
- $(this).parent().find(".xl_common").show();
|
|
227
|
|
- } else {
|
|
228
|
|
- $(this).parent().find(".xl_common").hide();
|
|
229
|
|
- }
|
|
230
|
|
- });
|
|
231
|
|
- $(".xl").click(function() {
|
|
232
|
|
- if($(this).parent().find(".addTree").is(":hidden")) {
|
|
233
|
|
- $(this).parent().find(".addTree").show();
|
|
234
|
|
- } else {
|
|
235
|
|
- $(this).parent().find(".addTree").hide();
|
|
236
|
|
- }
|
|
237
|
|
- if($(this).parent().find(".xl_common").is(":hidden")) {
|
|
238
|
|
- $(this).parent().find(".xl_common").show();
|
|
239
|
|
- } else {
|
|
240
|
|
- $(this).parent().find(".xl_common").hide();
|
|
241
|
|
- }
|
|
242
|
|
- });
|
|
243
|
|
- $(".inpBox").mouseleave(function() {
|
|
244
|
|
- $(this).children(".xl_common").hide();
|
|
245
|
|
- $(this).children(".addTree").hide();
|
|
246
|
|
- })
|
|
247
|
|
-
|
|
248
|
|
- //删除
|
|
249
|
|
- $(".inpBox").hover(function(event) {
|
|
250
|
|
- $(this).children(".de_icon").show();
|
|
251
|
|
- event.stopPropagation();
|
|
252
|
|
- }, function() {
|
|
253
|
|
- $(this).children(".de_icon").hide();
|
|
254
|
|
- });
|
|
255
|
|
- $(".de_icon").click(function(event) {
|
|
256
|
|
- event.stopPropagation();
|
|
257
|
|
- $(this).siblings("input").eq(0).val("");
|
|
258
|
|
- $(this).siblings("input").eq(1).val("");
|
|
|
225
|
+//tree下拉框效果
|
|
|
226
|
+$(".inpBox .tree").click(function() {
|
|
|
227
|
+ if ($(this).parent().find(".addTree").is(":hidden")) {
|
|
|
228
|
+ $(this).parent().find(".addTree").show();
|
|
|
229
|
+ } else {
|
|
|
230
|
+ $(this).parent().find(".addTree").hide();
|
|
|
231
|
+ }
|
|
|
232
|
+});
|
|
|
233
|
+//普通下拉框效果
|
|
|
234
|
+$(".inpBox .select").click(function() {
|
|
|
235
|
+ if ($(this).parent().find(".xl_common").is(":hidden")) {
|
|
|
236
|
+ $(this).parent().find(".xl_common").show();
|
|
|
237
|
+ } else {
|
|
|
238
|
+ $(this).parent().find(".xl_common").hide();
|
|
|
239
|
+ }
|
|
|
240
|
+});
|
|
|
241
|
+$(".xl").click(function() {
|
|
|
242
|
+ if ($(this).parent().find(".addTree").is(":hidden")) {
|
|
|
243
|
+ $(this).parent().find(".addTree").show();
|
|
|
244
|
+ } else {
|
|
|
245
|
+ $(this).parent().find(".addTree").hide();
|
|
|
246
|
+ }
|
|
|
247
|
+ if ($(this).parent().find(".xl_common").is(":hidden")) {
|
|
|
248
|
+ $(this).parent().find(".xl_common").show();
|
|
|
249
|
+ } else {
|
|
|
250
|
+ $(this).parent().find(".xl_common").hide();
|
|
|
251
|
+ }
|
|
|
252
|
+});
|
|
|
253
|
+$(".inpBox").mouseleave(function() {
|
|
|
254
|
+ $(this).children(".xl_common").hide();
|
|
|
255
|
+ $(this).children(".addTree").hide();
|
|
|
256
|
+})
|
|
259
|
257
|
|
|
260
|
|
- if($(this).siblings("div").find("ul").attr("id") == "zrbmtree") {
|
|
261
|
|
- getRY($(".zrid"), $("#zrbm").val());
|
|
262
|
|
- }
|
|
263
|
|
- if($(this).siblings("div").find("ul").attr("id") == "clbmtree") {
|
|
264
|
|
- getRY($(".clid"), $("#clbm").val());
|
|
265
|
|
- }
|
|
266
|
|
- });
|
|
267
|
|
- //20180518byfanlongfei将处理部门、处理人、信息分类、交办单位修改为文本框;
|
|
|
258
|
+//删除
|
|
|
259
|
+$(".inpBox").hover(function(event) {
|
|
|
260
|
+ $(this).children(".de_icon").show();
|
|
|
261
|
+ event.stopPropagation();
|
|
|
262
|
+}, function() {
|
|
|
263
|
+ $(this).children(".de_icon").hide();
|
|
|
264
|
+});
|
|
|
265
|
+$(".de_icon").click(function(event) {
|
|
|
266
|
+ event.stopPropagation();
|
|
|
267
|
+ $(this).siblings("input").eq(0).val("");
|
|
|
268
|
+ $(this).siblings("input").eq(1).val("");
|
|
|
269
|
+
|
|
|
270
|
+ if ($(this).siblings("div").find("ul").attr("id") == "zrbmtree") {
|
|
|
271
|
+ getRY($(".zrid"), $("#zrbm").val());
|
|
|
272
|
+ }
|
|
|
273
|
+ if ($(this).siblings("div").find("ul").attr("id") == "clbmtree") {
|
|
|
274
|
+ getRY($(".clid"), $("#clbm").val());
|
|
|
275
|
+ }
|
|
|
276
|
+});
|
|
|
277
|
+//20180518byfanlongfei将处理部门、处理人、信息分类、交办单位修改为文本框;
|
|
268
|
278
|
//获取部门
|
|
269
|
279
|
|
|
270
|
280
|
//营业部(部门)
|
|
271
|
|
- function getDepartList(obj) {
|
|
|
281
|
+function getDepartList(obj) {
|
|
272
|
282
|
obj.empty();
|
|
273
|
283
|
let str = '<option value="0">请选择</option>'
|
|
274
|
284
|
$.getJSON(huayi.config.callcenter_url + 'CallOutPlan/GetDepartList', {
|
|
275
|
285
|
"token": $.cookie("token")
|
|
276
|
286
|
}, function(result) {
|
|
277
|
|
- if(result.state.toLowerCase() == "success") {
|
|
|
287
|
+ if (result.state.toLowerCase() == "success") {
|
|
278
|
288
|
result.data.forEach(function(v, n) {
|
|
279
|
289
|
str += '<option value="' + v.F_DeptId + '">' + v.F_DeptName + '</option>'
|
|
280
|
290
|
})
|
|
|
@@ -282,25 +292,25 @@ function getInfotypedetail(obj,val,name){
|
|
282
|
292
|
}
|
|
283
|
293
|
})
|
|
284
|
294
|
}
|
|
285
|
|
-
|
|
|
295
|
+
|
|
286
|
296
|
//获取处理人员
|
|
287
|
|
-$('#clbmname').change(function(){
|
|
|
297
|
+$('#clbmname').change(function() {
|
|
288
|
298
|
getUserListByDepartment($('#clidname'), $('#clbmname').val())
|
|
289
|
299
|
})
|
|
290
|
300
|
|
|
291
|
|
-function getUserListByDepartment(obj, deptid,name) {
|
|
|
301
|
+function getUserListByDepartment(obj, deptid, name) {
|
|
292
|
302
|
obj.empty();
|
|
293
|
303
|
let str = ''
|
|
294
|
304
|
$.getJSON(huayi.config.callcenter_url + 'CallInScreen/getUserListByDepartment', {
|
|
295
|
305
|
"token": $.cookie("token"),
|
|
296
|
306
|
deptid: deptid
|
|
297
|
307
|
}, function(result) {
|
|
298
|
|
- if(result.state.toLowerCase() == "success") {
|
|
|
308
|
+ if (result.state.toLowerCase() == "success") {
|
|
299
|
309
|
result.data.forEach(function(v, n) {
|
|
300
|
310
|
str += '<option value="' + v.F_UserCode + '">' + v.F_UserName + '</option>'
|
|
301
|
311
|
})
|
|
302
|
312
|
obj.html(str)
|
|
303
|
|
- if(name){
|
|
|
313
|
+ if (name) {
|
|
304
|
314
|
$("#clidname").val(name)
|
|
305
|
315
|
}
|
|
306
|
316
|
}
|
|
|
@@ -314,13 +324,13 @@ function getLX(obj, type) {
|
|
314
|
324
|
"flag": type,
|
|
315
|
325
|
"token": $.cookie("token")
|
|
316
|
326
|
}, function(result) {
|
|
317
|
|
- if(result.state.toLowerCase() == "success") {
|
|
|
327
|
+ if (result.state.toLowerCase() == "success") {
|
|
318
|
328
|
$(result.data).each(function(i, n) {
|
|
319
|
329
|
obj.append('<li itemid="' + n.F_DictionaryValueId + '">' + n.F_Name + '</li>');
|
|
320
|
330
|
})
|
|
321
|
331
|
|
|
322
|
332
|
obj.find("li").click(function(event) {
|
|
323
|
|
- if(event) {
|
|
|
333
|
+ if (event) {
|
|
324
|
334
|
event.stopPropagation();
|
|
325
|
335
|
}
|
|
326
|
336
|
$(this).parent().parent().parent().find("input").eq(0).val($(this).text());
|
|
|
@@ -342,4 +352,4 @@ function downloadFile(data, strFileName, strMimeType) {
|
|
342
|
352
|
download(x.response, strFileName, strMimeType);
|
|
343
|
353
|
}
|
|
344
|
354
|
x.send();
|
|
345
|
|
-}
|
|
|
355
|
+}
|