function selectMultiple(obj) { var maindeptId = ""; var maindeptId_ = obj.val(); //坐席 if(maindeptId_ != null) { $(maindeptId_).each(function(i, n) { var obj2 = ''; obj2 = n + ","; maindeptId += obj2; }) maindeptId = maindeptId.substring(0, maindeptId.length - 1) } else { maindeptId = "" } return maindeptId } //转派 function redeploy(WorkOrderId) { layer.open({ type: 2, content: "../CommonHtml/zhuanpai.html?wid=" + WorkOrderId, //iframe的url,no代表不显示滚动条 title: '转派', area: ['85%', '80%'], //宽高 }); } //二次转派 function Runsend(str) { layer.open({ type: 2, content: "../CommonHtml/jiaoban.html?wid=" + str + "&secondTurnFlag=1", //iframe的url,no代表不显示滚动条 title: '二次转派', area: ['87%', '80%'], //宽高 }); } //派单 function pd(str) { layer.open({ type: 2, content: "../CommonHtml/handle.html?wid=" + str, //iframe的url,no代表不显示滚动条 title: '办理工单', area: ['87%', '80%'], //宽高 }); } //处理审核 function auditdeal(str) { layer.open({ type: 2, content: "../CommonHtml/processing_audit.html?wid=" + str, //iframe的url,no代表不显示滚动条 title: '处理审核', area: ['80%', '80%'], //宽高 }); } //编辑 function bj(str) { layer.open({ type: 2, content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条 title: '编辑工单', area: ['96%', '80%'], //宽高 }); } //删除 function move(str) { layer.confirm('确定删除工单?', { btn: ['是', '否'] //按钮 }, function() { $.post(huayi.config.callcenter_url + "WorkOrder/DelWorkOrder", { ids: str, token: $.cookie("token") }, function(result) { result = JSON.parse(result); if(result.state.toLowerCase() == "success") { layer.msg("删除成功"); $("#orderlist").bootstrapTable('refresh'); } }) }); } //提交 function tj(str) { layer.confirm('确定要提交工单么?', { btn: ['确定', '取消'] //按钮 }, function() { //请求后台数据 /*发送请求*/ $.post(huayi.config.callcenter_url + "WorkOrder/SubmitWorkOrder", { ids: str, token: $.cookie("token") }, function(result) { result = JSON.parse(result); if(result.state.toLowerCase() == "success") { layer.msg("提交成功"); $("#orderlist").bootstrapTable('refresh'); //load(); } }) }); } //交办 function jb(str) { layer.open({ type: 2, content: "../CommonHtml/jiaoban.html?wid=" + str, //iframe的url,no代表不显示滚动条 title: '工单交办', area: ['87%', '80%'], //宽高 }); } //回传 function gdhc(str) { layer.open({ type: 2, content: "../CommonHtml/huichuan.html?wid=" + str, //iframe的url,no代表不显示滚动条 title: '回传', area: ['70%', '80%'], //宽高 }); // layer.confirm('确定要回传?', { // btn: ['是', '否'] //按钮 // }, function() { // $.post(huayi.config.callcenter_url + "WorkOrder/Sendback", { // ids: str, // token: $.cookie("token") // }, function(result) { // result = JSON.parse(result); // if(result.state.toLowerCase() == "success") { // layer.msg("回传成功"); // $("#orderlist").bootstrapTable('refresh'); // } // }) // }); } //领导关注 function lader(str) { layer.open({ type: 2, content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条 title: '领导关注', area: ['60%', '80%'], //宽高 }); } //市长批示 function city(str) { layer.open({ type: 2, content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条 title: '市长批示', area: ['60%', '80%'], //宽高 }); } //办理 function bl(str, isProtect) { console.log("isProtect2222", isProtect) layer.open({ type: 2, content: "../CommonHtml/banli.html?wid=" + str + "&isProtect=" + isProtect, //iframe的url,no代表不显示滚动条 title: '办理工单', area: ['60%', '80%'], //宽高 }); } //编辑办理 function editProcessingResult(str) { layer.open({ type: 2, content: "../CommonHtml/editProcessingResult.html?wid=" + str, //iframe的url,no代表不显示滚动条 title: '编辑办理', area: ['90%', '90%'], //宽高 }); } //扫描件上传 function updatingFiles(str) { layer.open({ type: 2, content: "../CommonHtml/updatingFiles.html?wid=" + str, //iframe的url,no代表不显示滚动条 title: '扫描件上传', area: ['50%', '40%'], //宽高 }); } //督办 function Supervision(str) { layer.open({ type: 2, content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=1', //iframe的url,no代表不显示滚动条 title: '督办', area: ['60%', '80%'], //宽高 }); } //督查 function Supervision_(str) { layer.open({ type: 2, content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=2', //iframe的url,no代表不显示滚动条 title: '监察', area: ['60%', '80%'], //宽高 }); } //审核 function audit(str) { layer.open({ type: 2, content: "../CommonHtml/AuditDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条 title: '审核', area: ['60%', '80%'], //宽高 }); } //转督办 function zdb(str, row) { layer.open({ type: 2, content: "../CommonHtml/superTrunl.html?wid=" + str + "&depId=" + row, //iframe的url,no代表不显示滚动条 title: '督办工单', area: ['60%', '80%'], //宽高 }); } //不督办 function ndb(str) { layer.confirm('确定督办吗?', { btn: ['是', '否'] //按钮 }, function() { $.post(huayi.config.callcenter_url + 'WorkOrder/RemindWorkOrder', { workorderid: str, type: 1, state: 2, "token": $.cookie("token") }, function(result) { result = JSON.parse(result); if(result.state.toLowerCase() == "success") { layer.msg("操作成功"); //load(); $("#orderlist").bootstrapTable('refresh'); } }) }); } //诉求单结案 function StrongLawsuit(str) { layer.open({ type: 2, content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条 title: '诉求单结案', area: ['60%', '80%'], //宽高 }); } //回退BackDtail function BackDtail(str) { layer.open({ type: 2, content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条 title: '工单督办', area: ['60%', '80%'], //宽高 }); } //查收 function cs(str) { layer.confirm('确定要查收?', { btn: ['是', '否'] //按钮 }, function() { $.post(huayi.config.callcenter_url + "WorkOrder/ReceiveWorkOrder", { workorderid: str, token: $.cookie("token") }, function(result) { result = JSON.parse(result); if(result.state.toLowerCase() == "success") { layer.msg("查收成功"); //load(); $("#orderlist").bootstrapTable('refresh'); } }) }); } //收回 function sh(str) { layer.confirm('确定要回收?', { btn: ['是', '否'] //按钮 }, function() { $.post(huayi.config.callcenter_url + "WorkOrder/TakeBackWorkOrder", { workorderid: str, token: $.cookie("token") }, function(result) { result = JSON.parse(result); if(result.state.toLowerCase() == "success") { layer.msg("回收"); //load(); $("#orderlist").bootstrapTable('refresh'); } }) }); } //强制回收 function recycles() { layer.confirm('确定要强制退回吗?', { btn: ['是', '否'] //按钮 }); } //退回申请 function th(str) { layer.open({ type: 2, content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条 title: '申请退回工单', area: ['60%', '80%'], //宽高 }); } //审核退回申请 function shth(str) { layer.open({ type: 2, content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条 title: '审核退回申请', area: ['60%', '80%'], //宽高 }); } //申请延时 function ys(str) { layer.open({ type: 2, content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条 title: '申请延时', area: ['60%', '80%'], //宽高 }); } //审核申请延时 function shys(str) { layer.open({ type: 2, content: "../CommonHtml/shTime.html?wid=" + str, //iframe的url,no代表不显示滚动条 title: '审核延时申请', area: ['60%', '80%'], //宽高 }); } //诉求回访 function hf(str) { layer.open({ type: 2, content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条 title: '工单回访', area: ['60%', '80%'], //宽高 }); } //重办工单 function cb(str) { layer.open({ type: 2, content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条 title: '重办工单', area: ['60%', '80%'], //宽高 }); } //提交重办 function bhcb(str) { //回退BackDtail layer.open({ type: 2, content: "../CommonHtml/rejectionCB.html?wid=" + str, //iframe的url,no代表不显示滚动条 title: '驳回重办', area: ['60%', '80%'], //宽高 }); } //提交重办 function tjcb(str) { layer.open({ type: 2, content: "../CommonHtml/reasonCB.html?wid=" + str, //iframe的url,no代表不显示滚动条 title: '提交重办', area: ['50%', '40%'], //宽高 }); } //结案 function Lawsuit(str) { layer.open({ type: 2, content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条 title: '诉求单结案', area: ['60%', '80%'], //宽高 }); } //备注 function remarks(str) { layer.open({ type: 2, content: "../CommonHtml/remarks.html?wid=" + str, //iframe的url,no代表不显示滚动条 title: '备注', area: ['60%', '45%'], //宽高 }); } //查看详情 function ckxq(str) { layer.open({ type: 2, content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条 title: '工单详情', area: ['87%', '80%'], //宽高 }); } //催办 function remindBtn(str) { layer.confirm('确定催办工单?', { btn: ['是', '否'] //按钮 }, function() { $.post(huayi.config.callcenter_url + "WorkOrder/Reminders", { workorderid: str, token: $.cookie("token") }, function(result) { result = JSON.parse(result); if(result.state.toLowerCase() == "success") { layer.msg("催办成功"); $("#orderlist").bootstrapTable('refresh'); } }) }); } //重办工单 function Reloadsuber(str) { layer.open({ type: 2, content: "../CommonHtml/reasonCB.html?wid=" + str + "&reasonCBFlag=1", //iframe的url,no代表不显示滚动条 title: '提交重办工单', area: ['60%', '80%'], //宽高 }); } //操作 function Print(val, row) { if(row.F_OldWorkOrderId) { return '' + row.F_OldWorkOrderId + '' } } //CommonHtml/PrintPreview-1.html function btn_print(PrintClick) { layer.open({ type: 2, content: "../CommonHtml/PrintPreview-1.html?wid=" + PrintClick + "&printType=DCL", //iframe的url,no代表不显示滚动条 title: '打印/导出', area: ['788.8px', '90%'], //宽高 }); } //音频 function setCode(val) { if(val) { return '
' +
'