| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893 |
- //查看详情
- function ckxq(str) {
- layer.open({
- type: 2,
- // content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
- content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
- title: "工单详情",
- area: ["100%", "100%"], //宽高
- });
- }
- //编辑
- function bj(str) {
- var workType = ""
- if(Number(state) === 1) {
- workType = "jb"
- }
- layer.open({
- type: 2,
- content: "../CommonHtml/AddAppeal.html?wid=" + str + "&workType=jb", //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") {
- var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
- parent.layer.close(index); //再执行关闭
- layer.msg("删除成功");
- parent.load();
- }
- })
- });
- }
- //提交
- 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") {
- var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
- parent.layer.close(index); //再执行关闭
- layer.msg("提交成功");
- parent.load();
- }
- })
- });
- }
- //交办
- function jb(str) {
- layer.open({
- type: 2,
- content: "../CommonHtml/JiaoBan.html?wid=" + str, //iframe的url,no代表不显示滚动条
- title: '工单交办',
- area: ['87%', '80%'], //宽高
- });
- }
- //领导批示
- 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 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 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") {
- var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
- parent.layer.close(index); //再执行关闭
- layer.msg("回收");
- parent.load();
- }
- })
- });
- }
- //查收
- 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 th(str) {
- layer.open({
- type: 2,
- content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
- title: '申请退回工单',
- area: ['60%', '80%'], //宽高
- });
- }
- //办理
- function bl(str, isProtect) {
- console.log("isProtect2222", isProtect);
- if($.cookie('code') == 'EJWLDW') { //三级
- layer.open({
- type: 2,
- content: "../CommonHtml/banli_zilei.html?wid=" + str + "&isProtect=" +
- isProtect, //iframe的url,no代表不显示滚动条
- title: '办理工单',
- area: ['90%', '80%'], //宽高
- });
- } else {
- layer.open({
- type: 2,
- content: "../CommonHtml/banli.html?wid=" +
- str +
- "&isProtect=" +
- isProtect, //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 hf(str) {
- layer.open({
- type: 2,
- content: "../CommonHtml/auditBack.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 cb(str) {
- layer.open({
- type: 2,
- content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
- title: '重办工单',
- area: ["80%", "90%"], //宽高
- });
- }
- //结案
- function Lawsuit(str) {
- layer.open({
- type: 2,
- content: "../CommonHtml/lawsuits.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 StrongLawsuit(str) {
- layer.open({
- type: 2,
- content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
- title: '强制结案',
- area: ['60%', '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 sign(str) {
- layer.confirm('确定要签收?', {
- btn: ['是', '否'] //按钮
- }, function() {
- $.post(huayi.config.callcenter_url + "WorkOrder/SignWorkOrder", {
- workorderid: str,
- token: $.cookie("token")
- }, function(result) {
- result = JSON.parse(result);
- if(result.state.toLowerCase() == "success") {
- var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
- parent.layer.close(index); //再执行关闭
- layer.msg("签收成功");
- parent.load();
- }
- })
- });
- }
- //拒收
- function refuse(str) {
- layer.open({
- type: 2,
- content: "../CommonHtml/rejection.html?wid=" + str, //iframe的url,no代表不显示滚动条
- title: '拒收',
- area: ['60%', '80%'], //宽高
- });
- }
- //撤单
- function withdraw(str) {
- layer.confirm(
- "确定撤回?", {
- btn: ["是", "否"], //按钮
- },
- function() {
- $.post(
- huayi.config.callcenter_url +
- "WorkOrder/WithdrawDWorkOrder", {
- workorderid: str,
- token: $.cookie("token"),
- },
- function(result) {
- result = JSON.parse(result);
- if(result.state.toLowerCase() == "success") {
- var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
- parent.layer.close(index); //再执行关闭
- layer.msg("撤回成功");
- parent.load();
- }
- }
- );
- }
- );
- }
- //审核
- 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") {
- var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
- parent.layer.close(index); //再执行关闭
- layer.msg("操作成功");
- parent.load();
- }
- }
- );
- }
- );
- }
- //驳回重办
- function bhcb(str) {
- 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: ["60%", "80%"], //宽高
- });
- }
- //履职界定
- function lzjd(str) {
- layer.open({
- type: 2,
- content: "../CommonHtml/ResumptionDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
- title: '履职界定',
- area: ['85%', '80%'], //宽高
- })
- }
- //界定审核
- function jdsh(str) {
- layer.open({
- type: 2,
- content: "../CommonHtml/Define_audit.html?wid=" + str, //iframe的url,no代表不显示滚动条
- title: '界定审核',
- area: ['85%', '60%'], //宽高
- })
- }
- //拒绝
- function Refuse(str) {
- layer.open({
- type: 2,
- content: "../CommonHtml/refuseList.html?wid=" + str, //iframe的url,no代表不显示滚动条
- title: "拒绝",
- area: ["60%", "80%"], //宽高
- });
- }
- //退回
- function returnRedo(str) {
- layer.open({
- type: 2,
- content: "../CommonHtml/returnRedo.html?wid=" + str, //iframe的url,no代表不显示滚动条
- title: "退回",
- area: ["60%", "80%"], //宽高
- });
- }
- //催办
- function messagesUrge(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') {
- var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
- parent.layer.close(index); //再执行关闭
- layer.msg('催办成功')
- parent.load();
- }
- })
- });
- }
- //退回
- function returnRedoThreeLevel(str) {
- layer.open({
- type: 2,
- content: "../CommonHtml/returnRedoThreeLevel.html?wid=" + str, //iframe的url,no代表不显示滚动条
- title: "退回",
- area: ["60%", "80%"], //宽高
- });
- }
- //退回
- function returnAuditor(str) {
- layer.open({
- type: 2,
- content: "../CommonHtml/returnAuditor.html?wid=" + str, //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: ['60%', '80%'], //宽高
- });
- }
- // 督办查收
- function superviseCheck(str) {
- layer.confirm('确定要查收?', {
- btn: ['是', '否'] //按钮
- }, function() {
- $.post(huayi.config.callcenter_url + "workorder/RemindCheck", {
- workorderid: str,
- token: $.cookie("token")
- }, function(result) {
- result = JSON.parse(result);
- if(result.state.toLowerCase() == "success") {
- var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
- parent.layer.close(index); //再执行关闭
- layer.msg("查收成功");
- parent.load();
- }
- })
- });
- }
- //督办审核通过
- function superviseReviewThrough(str) {
- layer.confirm('确定审核通过?', {
- btn: ['是', '否'] //按钮
- }, function() {
- $.post(huayi.config.callcenter_url + "workorder/RemindApproved", {
- workorderid: str,
- token: $.cookie("token")
- }, function(result) {
- result = JSON.parse(result);
- if(result.state.toLowerCase() == "success") {
- var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
- parent.layer.close(index); //再执行关闭
- layer.msg("操作成功");
- parent.load();
- }
- })
- });
- }
- //督办审核拒绝
- function superviseReviewRefuse(str) {
- layer.open({
- type: 2,
- content: "../CommonHtml/superviseReview.html?wid=" + str + "&review=1", //iframe的url,no代表不显示滚动条
- title: '督办审核',
- area: ['60%', '80%'], //宽高
- });
- }
- // 省平台签收
- function provincialPlatformSignup(str) {
- layer.confirm(
- "确定签收吗?", {
- btn: ["是", "否"], //按钮
- },
- function() {
- $.post(
- huayi.config.callcenter_url + "Affairs/SubmitWorkOrder", {
- ids: str,
- token: $.cookie("token"),
- },
- function(result) {
- result = JSON.parse(result);
- if(result.state.toLowerCase() == "success") {
- var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
- parent.layer.close(index); //再执行关闭
- layer.msg("操作成功");
- parent.load();
- }
- }
- );
- }
- );
- }
- // 省平台退回
- function provincialPlatformReturn(str) {
- layer.open({
- type: 2,
- content: "../CommonHtml/provincialPlatformReturn.html?wid=" + str, //iframe的url,no代表不显示滚动条
- title: "省平台退回",
- area: ["70%", "70%"], //宽高
- shade: 0,
- });
- }
- // 省平台申请延时
- function provincialPlatformApplicationDelay(str, type) {
- layer.open({
- type: 2,
- content: "../CommonHtml/provincialPlatformApplicationDelay.html?wid=" + str + "&type=" + type, //iframe的url,no代表不显示滚动条
- title: "省平台申请延时",
- area: ["70%", "70%"], //宽高
- shade: 0,
- });
- }
- // 省平台反馈
- function provincialPlatformFeedback(str) {
- layer.open({
- type: 2,
- content: "../CommonHtml/provincialPlatformFeedback.html?wid=" + str, //iframe的url,no代表不显示滚动条
- title: "省平台反馈",
- area: ["70%", "70%"], //宽高
- shade: 0,
- });
- }
- // 服务工单上报
- function reportServiceWorkOrder(str) {
- layer.open({
- type: 2,
- content: "../CommonHtml/provincialPlatformReport.html?wid=" + str, //iframe的url,no代表不显示滚动条
- title: "省平台上报",
- area: ["70%", "70%"], //宽高
- shade: 0,
- });
- }
- // 已办未果
- function unsuccessful(str) {
- layer.confirm('确认已办未果吗?', {
- btn: ['是', '否'] //按钮
- }, function() {
- $.post(huayi.config.callcenter_url + 'WorkOrder/Transfer', {
- workorderid: str,
- "token": $.cookie("token")
- }, function(result) {
- result = JSON.parse(result);
- if(result.state.toLowerCase() == "success") {
- var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
- parent.layer.close(index); //再执行关闭
- layer.msg("操作成功");
- $("#orderlist").bootstrapTable('refresh');
- }
- })
- });
- }
- //审核通过
- function approved(str) {
- layer.confirm('确认审核通过吗?', {
- btn: ['是', '否'] // 按钮
- }, function() {
- layer.confirm('是否发送短信?', {
- btn: ['是', '否'] // 按钮
- }, function() {
- toExamineWorkOrder(str, 1)
- }, function() {
- toExamineWorkOrder(str, 0)
- });
- });
- }
- function toExamineWorkOrder(str, issmsAudit) {
- $.post(huayi.config.callcenter_url + 'WorkOrder/ToExamineWorkOrder', {
- workorderid: str,
- nexttype: 0, // 0审核通过 1审核不通过 2审核通过转办
- issms: issmsAudit,
- "token": $.cookie("token")
- }, function(result) {
- result = JSON.parse(result);
- if(result.state.toLowerCase() == "success") {
- layer.msg("操作成功");
- $("#orderlist").bootstrapTable('refresh');
- }
- })
- }
- //审核不通过
- function auditFailed(str) {
- layer.open({
- type: 2,
- content: "../CommonHtml/haveDoneToAuditOperation.html?wid=" + str + "&nexttype=1", //iframe的url,no代表不显示滚动条
- title: "审核不通过",
- area: ["50%", "50%"], //宽高
- });
- }
- //审核通过转办
- function approvedComplaint(str) {
- layer.open({
- type: 2,
- content: "../CommonHtml/haveDoneToAuditOperation.html?wid=" + str + "&nexttype=2", //iframe的url,no代表不显示滚动条
- title: "审核通过转办",
- area: ["50%", "50%"], //宽高
- });
- }
- //审核通过
- function auditMultimediaThrough(str) {
- layer.open({
- type: 2,
- content: "../CommonHtml/auditMultimedia.html?wid=" + str + "&nexttype=0", //iframe的url,no代表不显示滚动条
- title: "审核",
- area: ["80%", "80%"], //宽高
- });
- }
- // 审核不通过
- function auditMultimediaNotThrough(str) {
- layer.open({
- type: 2,
- content: "../CommonHtml/auditMultimedia.html?wid=" + str + "&nexttype=1", //iframe的url,no代表不显示滚动条
- title: "审核",
- area: ["80%", "80%"], //宽高
- });
- }
- // 回复
- function replyMultimedia(str) {
- layer.open({
- type: 2,
- content: "../CommonHtml/replyMultimedia.html?wid=" + str, //iframe的url,no代表不显示滚动条
- title: "回复",
- area: ["60%", "60%"], //宽高
- });
- }
- //审核
- function auditAll(str) {
- layer.open({
- type: 2,
- content: "../CommonHtml/haveDoneToAuditOperationAll.html?wid=" + str + "&nexttype=1", //iframe的url,no代表不显示滚动条
- title: "审核不通过",
- area: ["50%", "50%"], //宽高
- });
- }
- //重推
- function rePush(str) {
- layer.confirm('确定重推此工单?', {
- btn: ['是', '否'] //按钮
- }, function() {
- $.post(huayi.config.callcenter_url + "Affairs/ReFinishWorkOrder", {
- workorderid: str,
- token: $.cookie("token")
- }, function(result) {
- result = JSON.parse(result);
- if(result.state.toLowerCase() == "success") {
- var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
- parent.layer.close(index); //再执行关闭
- layer.msg("重推成功");
- parent.load();
- }
- })
- });
- }
- //审核申请延时
- function ysThree(str) {
- layer.open({
- type: 2,
- content: "../CommonHtml/Timesq.html?wid=" + str + '&level=3', //iframe的url,no代表不显示滚动条
- title: '审核延时申请',
- area: ['60%', '80%'], //宽高
- });
- }
- //审核申请延时
- function shysThree(str) {
- layer.open({
- type: 2,
- content: "../CommonHtml/shtime.html?wid=" + str + '&auditInfoType=4', //iframe的url,no代表不显示滚动条
- title: "审核延时申请",
- area: ["60%", "80%"], //宽高
- });
- }
- //转110
- function transferOneHun(str) {
- layer.confirm(
- "确定要转110吗?", {
- btn: ["是", "否"], //按钮
- },
- function() {
- $.post(
- huayi.config.callcenter_url + "APPS/PushWorkOrder", {
- workorderid: str,
- token: $.cookie("token"),
- },
- function(result) {
- result = JSON.parse(result);
- if(result.state.toLowerCase() == "success") {
- var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
- parent.layer.close(index); //再执行关闭
- layer.msg("操作成功");
- parent.load();
- }
- }
- );
- }
- );
- }
- //市平台申请延期
- function ysShi(str) {
- layer.open({
- type: 2,
- content: "../CommonHtml/shiTimesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
- title: "市平台申请延时",
- area: ["70%", "70%"], //宽高
- shade: 0,
- });
- }
- // 监察督办派发
- function jcsuperviseSend(str) {
- layer.open({
- type: 2,
- content: "../CommonHtml/jcsuperviseSend.html?wid=" + str, //iframe的url,no代表不显示滚动条
- title: "监察督办派发",
- area: ["80%", "80%"], //宽高
- });
- }
- // 督查督办派发
- function jdcsuperviseSend(str) {
- layer.open({
- type: 2,
- content: "../CommonHtml/jdcsuperviseSend.html?wid=" + str, //iframe的url,no代表不显示滚动条
- title: "督查督办派发",
- area: ["80%", "80%"], //宽高
- });
- }
- //转知识库
- function changeknowledge(wid, tit, con) {
- console.log(wid, tit, con)
- var knowkey = ''
- $.ajax({
- type: "get",
- url: huayi.config.callcenter_url + "WorkOrder/GetWorkOrderNew",
- dataType: 'json',
- async: false,
- data: {
- workorderid: wid,
- type: 0,
- token: $.cookie("token")
- },
- success: function(result) {
- if(result.state.toLowerCase() == "success") {
- var Data = result.data.data;
- knowkey = Data[0].F_Key
- changeKnowLayer(tit, con, knowkey)
- }
- }
- })
- console.log(knowkey, 'knowkey')
- }
- function changeKnowLayer(tit, con, knowkey) {
- layer.confirm(
- "确定转知识库?", {
- btn: ["是", "否"], //按钮
- },
- function() {
- $.post(
- huayi.config.callcenter_url +
- "Knowledge/AddInfoByGD", {
- title: tit,
- con: con,
- key: knowkey,
- issub: 1,
- token: $.cookie("token"),
- },
- function(result) {
- if(result.state == "success") {
- var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
- parent.layer.close(index); //再执行关闭
- layer.msg("操作成功");
- parent.load();
- }
- }
- );
- }
- );
- }
- //转非营商
- function doNotBusiness(str) {
- layer.confirm(
- "确定要转为非营商工单吗?", {
- btn: ["是", "否"], //按钮
- },
- function() {
- $.post(
- huayi.config.callcenter_url + "WorkOrder/Reseller", {
- workorderid: str,
- type: 0,
- token: $.cookie("token"),
- },
- function(result) {
- result = JSON.parse(result);
- if(result.state == "success") {
- var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
- parent.layer.close(index); //再执行关闭
- layer.msg("操作成功");
- parent.load();
- }
- }
- );
- }
- );
- }
- //转营商
- function doBusiness(str) {
- layer.confirm(
- "确定要转为营商工单吗?", {
- btn: ["是", "否"], //按钮
- },
- function() {
- $.post(
- huayi.config.callcenter_url + "WorkOrder/Reseller", {
- workorderid: str,
- type: 1,
- token: $.cookie("token"),
- },
- function(result) {
- result = JSON.parse(result);
- if(result.state == "success") {
- var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
- parent.layer.close(index); //再执行关闭
- layer.msg("操作成功");
- parent.load();
- }
- }
- );
- }
- );
- }
|