|
|
@@ -72,6 +72,7 @@ $(document).ready(function() {
|
|
72
|
72
|
});
|
|
73
|
73
|
return;
|
|
74
|
74
|
}
|
|
|
75
|
+
|
|
75
|
76
|
$.post(huayi.config.callcenter_url + 'CallInScreen/AddWorkOrder', {
|
|
76
|
77
|
tskh: tskh,
|
|
77
|
78
|
tsdh: tsdh,
|
|
|
@@ -148,49 +149,57 @@ $(document).ready(function() {
|
|
148
|
149
|
return;
|
|
149
|
150
|
}
|
|
150
|
151
|
|
|
151
|
|
- $.post(huayi.config.callcenter_url + 'CallInScreen/AddWorkOrder', {
|
|
152
|
|
- //file //string 否 附件
|
|
153
|
|
- khid: 0, //int 否 客户id
|
|
154
|
|
- callid: 0, //string 否
|
|
155
|
|
- source: 1, //string 是 工单来源
|
|
156
|
|
- customer: tskh, //string 是 客户姓名
|
|
157
|
|
- wjid: tid,// int 否 关联的问卷id,默认为0
|
|
158
|
|
- custel: tsdh, //string 是 电话
|
|
159
|
|
- country: 0, //string 否 乡镇或单位
|
|
160
|
|
- address: $('#t_address').val(), //string 否 住址
|
|
161
|
|
- inqtime: $('#t_time').val(), //string 否 调查时间
|
|
162
|
|
- inquser: $('#t_investigator').val(), //string 否 调查员
|
|
163
|
|
-
|
|
164
|
|
-// clbm: clbm, //int 否 处理部门
|
|
165
|
|
-// clid: clid, //int 否 处理人
|
|
166
|
|
-// infotypeid: $("#xl_box").val(), //int 否 信息分类id,默认为0
|
|
167
|
|
-// unitid: $("#xl_boxs").val(), //int 否 交办单位id,默认为0
|
|
168
|
|
-
|
|
169
|
|
- clbm:$('#clbmname').val(), //string 否 处理部门
|
|
170
|
|
- clr: $('#clidname').val(), //string 否 处理人
|
|
171
|
|
- infotype: infotype,
|
|
172
|
|
- infotypeid:$('#xl_box').val(),
|
|
173
|
|
- infotypedetail: infotypedetail,
|
|
174
|
|
- infotypedetailid: $('#infotypedetail').val(),//string 否 信息分类id,默认为0
|
|
175
|
|
- unit:$('#clbmname').val(), //string 否
|
|
176
|
|
- state: $("input[name='ltype']:checked").val(),
|
|
177
|
|
- detail: $('#t_detail').val(), //string 是 反映问题
|
|
178
|
|
- answer: $('#t_answer').val(), //string 否 回访反馈情况
|
|
179
|
|
- cont: cont, //string 否 问题处理情况
|
|
180
|
|
- remark: $('#t_remarks').val(), //string 否 备注
|
|
181
|
|
- token: $.cookie("token")
|
|
182
|
|
- }, function(result) {
|
|
183
|
|
- result = $.parseJSON(result);
|
|
184
|
|
- if(result.state.toLowerCase() == "success") {
|
|
185
|
|
- var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
|
|
186
|
|
- parent.layer.close(index); //再执行关闭
|
|
187
|
|
- if(createState != 1){
|
|
188
|
|
- parent.initTable();
|
|
|
152
|
+ $.ajax({
|
|
|
153
|
+ type: "POST",
|
|
|
154
|
+ url: huayi.config.callcenter_url + "CallInScreen/AddWorkOrder",
|
|
|
155
|
+ dataType: 'json',
|
|
|
156
|
+ beforSend: function() {
|
|
|
157
|
+ $('#addts').off('click')
|
|
|
158
|
+ },
|
|
|
159
|
+ data:{
|
|
|
160
|
+ //file //string 否 附件
|
|
|
161
|
+ khid: 0, //int 否 客户id
|
|
|
162
|
+ callid: 0, //string 否
|
|
|
163
|
+ source: 1, //string 是 工单来源
|
|
|
164
|
+ customer: tskh, //string 是 客户姓名
|
|
|
165
|
+ wjid: tid,// int 否 关联的问卷id,默认为0
|
|
|
166
|
+ custel: tsdh, //string 是 电话
|
|
|
167
|
+ country: 0, //string 否 乡镇或单位
|
|
|
168
|
+ address: $('#t_address').val(), //string 否 住址
|
|
|
169
|
+ inqtime: $('#t_time').val(), //string 否 调查时间
|
|
|
170
|
+ inquser: $('#t_investigator').val(), //string 否 调查员
|
|
|
171
|
+ //clbm: clbm, //int 否 处理部门
|
|
|
172
|
+ //clid: clid, //int 否 处理人
|
|
|
173
|
+ //infotypeid: $("#xl_box").val(), //int 否 信息分类id,默认为0
|
|
|
174
|
+ //unitid: $("#xl_boxs").val(), //int 否 交办单位id,默认为0
|
|
|
175
|
+ clbm:$('#clbmname').val(), //string 否 处理部门
|
|
|
176
|
+ clr: $('#clidname').val(), //string 否 处理人
|
|
|
177
|
+ infotype: infotype,
|
|
|
178
|
+ infotypeid:$('#xl_box').val(),
|
|
|
179
|
+ infotypedetail: infotypedetail,
|
|
|
180
|
+ infotypedetailid: $('#infotypedetail').val(),//string 否 信息分类id,默认为0
|
|
|
181
|
+ unit:$('#clbmname').val(), //string 否
|
|
|
182
|
+ state: $("input[name='ltype']:checked").val(),
|
|
|
183
|
+ detail: $('#t_detail').val(), //string 是 反映问题
|
|
|
184
|
+ answer: $('#t_answer').val(), //string 否 回访反馈情况
|
|
|
185
|
+ cont: cont, //string 否 问题处理情况
|
|
|
186
|
+ remark: $('#t_remarks').val(), //string 否 备注
|
|
|
187
|
+ token: $.cookie("token")
|
|
|
188
|
+ },
|
|
|
189
|
+ async: true,
|
|
|
190
|
+ success: function(result) {
|
|
|
191
|
+ $('#addts').on('click')
|
|
|
192
|
+ if(result.state.toLowerCase() == "success") {
|
|
|
193
|
+ var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
|
|
|
194
|
+ parent.layer.close(index); //再执行关闭
|
|
|
195
|
+ if(createState != 1){
|
|
|
196
|
+ parent.initTable();
|
|
|
197
|
+ }
|
|
|
198
|
+
|
|
|
199
|
+ parent.layer.msg("创建工单成功");
|
|
189
|
200
|
}
|
|
190
|
|
-
|
|
191
|
|
- parent.layer.msg("创建工单成功");
|
|
192
|
|
- }
|
|
193
|
|
- });
|
|
|
201
|
+ },
|
|
|
202
|
+ })
|
|
194
|
203
|
});
|
|
195
|
204
|
//20180518byfanlongfei将处理部门、处理人、信息分类、交办单位修改为文本框;
|
|
196
|
205
|
// helper.getDropList.getlistDropByDic($('#xl_boxs'), 'ZBDW'); //获取交办单位下拉
|