| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8" />
- <title>已申请延时</title>
- <script src="../Script/Common/huayi.load.js"></script>
- <link rel="stylesheet" href="../css/bootstrap-select.css" />
- <script src="../Script/Common/huayi.config.js"></script>
- <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
- <link rel="stylesheet" href="../css/init.css" />
- <style>
- #sqzx th {
- padding: 5px 8px 5px 0;
- text-align: right;
- }
- .select {
- width: 150px;
- background-color: #fff;
- background-image: none;
- border: 1px solid #ccc;
- border-radius: 1px;
- color: inherit;
- padding: 6px 12px;
- }
- #sex {
- background-color: #fff;
- background-image: none;
- border: 1px solid #ccc;
- border-radius: 1px;
- color: inherit;
- padding: 6px 12px;
- }
- input {
- background-color: #fff;
- background-image: none;
- border: 1px solid #ccc;
- border-radius: 1px;
- color: inherit;
- padding: 6px 12px;
- }
- #sqzx td {
- padding: 6px 0 5px 10px;
- }
- .lxr ul li {
- float: left;
- list-style: none;
- width: 30%;
- margin-bottom: 5px;
- padding-top: 10px;
- }
- .clearFix:after {
- content: "";
- display: block;
- clear: both;
- }
- .form-group {
- padding-left: 40px;
- margin-bottom: 0;
- }
- textarea {
- height: 70px;
- border: 1px solid #ccc;
- border-radius: 1px;
- width: 50%;
- resize: none;
- }
- .textarea_box {
- margin-top: 10px;
- }
- .box_content {
- border-bottom: 1px solid #ccc;
- }
- .tj_content {
- border: 1px solid #e6e6e6;
- border-radius: 5px;
- }
- .t-shade {
- position: fixed;
- top: 0;
- left: 0;
- width: 100%;
- background: rgba(0, 0, 0, 0.48);
- z-index: 10004;
- display: none;
- }
- .lyxz .shade_k {
- z-index: 10005;
- width: 40%;
- left: 30%;
- margin: 20% auto;
- position: absolute;
- background-color: #fff;
- box-shadow: 1px 1px 50px rgba(0, 0, 0, 0.3);
- border-radius: 5px;
- }
- .shade_title {
- padding: 0 80px 0 20px;
- height: 42px;
- line-height: 42px;
- border-bottom: 1px solid #eee;
- font-size: 16px;
- color: #ffffff;
- overflow: hidden;
- background-color: #00a1cb;
- border-radius: 2px 2px 0 0;
- position: relative;
- border-top-left-radius: 5px;
- border-top-right-radius: 5px;
- }
- .cx {
- display: block;
- }
- .setwin {
- position: absolute;
- right: 15px;
- top: 5px;
- font-size: 0;
- line-height: initial;
- }
- .setwin a {
- position: relative;
- width: 16px;
- height: 16px;
- font-size: 20px;
- color: #fff;
- }
- .xg i {
- font-size: 16px;
- }
- .hidens {
- display: none;
- }
- .Min-width {
- width: 150px;
- }
- .hidens {
- display: none;
- }
- .inpBox {
- border: 1px solid #cccccc;
- height: 31px;
- width: 220px;
- display: inline-block;
- position: relative;
- vertical-align: middle;
- position: absolute;
- left: 0px;
- top: 0px;
- z-index: 111;
- }
- .selDpart1 {
- position: absolute;
- left: 0px;
- top: 30px;
- z-index: 11111;
- width: 220px;
- line-height: 30px;
- background: #ffffff;
- display: none;
- }
- #sponsor {
- width: 218px;
- border: 1px solid #00a1cb;
- margin: 0;
- padding: 0;
- list-style: none;
- max-height: 212px;
- overflow-x: hidden;
- overflow-y: scroll;
- }
- #sponsor li {
- margin: 0;
- padding-left: 10px;
- width: 220px;
- height: 30px;
- line-height: 30px;
- list-style: none;
- }
- #sponsor li:hover {
- background: #00a1cb;
- }
- .addTree {
- background: #fff;
- position: absolute;
- width: 100%;
- border: 1px solid darkgrey;
- right: 0;
- top: 29px;
- display: none;
- z-index: 222;
- }
- .xl {
- display: inline-block;
- background: url(../../img/dropDown.png) no-repeat;
- height: 100%;
- background-position: center center;
- width: 20px;
- position: absolute;
- right: 0;
- top: 0px;
- /* background-color: #f7bc8b; */
- cursor: pointer;
- }
- .ztree li span {
- border: none;
- padding: 0;
- }
- .inps {
- width: 217px;
- height: 24px;
- outline: none;
- border: 0;
- border-image-width: 0;
- padding: 0;
- padding-left: 3px;
- }
- .xl {
- display: inline-block;
- background: url(../img/dropDown.png) no-repeat;
- height: 100%;
- background-position: center center;
- width: 20px;
- position: absolute;
- right: 0;
- top: 0px;
- /* background-color: #f7bc8b; */
- cursor: pointer;
- }
- .Cleans {
- display: inline-block;
- width: 20px;
- position: absolute;
- right: 21px;
- top: 5px;
- display: none;
- }
- </style>
- </head>
- <body class="gray-bg">
- <div class="wrapper wrapper-content animated fadeInRight">
- <div class="daoHang clearfix">
- <div class="dhLeft">
- <sapn>
- <i class="syIcon"></i>位置:
- <a href="javaScript:;" id="ReIndex">首页</a>>
- <a href="javaScript:;">办理单位</a>>
- <a href="" class="nowPosition">已申请延时</a>
- </sapn>
- </div>
- <div class="dhRight">
- <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
- </div>
- </div>
- <div style="padding: 10px" class="tj_content clearFix">
- <div style="padding: 10px" class="tj_content clearFix">
- <div>
- <span>【搜索信息】</span>
- <div class="box_content">
- <table id="sqzx" style="width: 100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <th>事项编号:</th>
- <td>
- <input type="text" placeholder="输入工单号" id="wids" class="Min-width" />
- </td>
- <th>来电号码:</th>
- <td>
- <input type="text" id="tel" class="Min-width" />
- </td>
- <th>时间:</th>
- <td>
- <input type="text" id="starttime" class="laydate-icon Min-width"
- style="height: 32px" /> —— <input type="text" id="endtime"
- class="laydate-icon Min-width" style="height: 32px" />
- </td>
- </tr>
- <tr>
- <th>关键字:</th>
- <td>
- <input type="text" placeholder="输入关键字" id="key" class="Min-width" />
- </td>
- <th>区域:</th>
- <td>
- <select name="" id="sourceAreas" class="select"></select>
- </td>
- <th>工单状态:</th>
- <td>
- <select name="" id="state" class="select">
- <option selected="selected" value="">
- 请选择
- </option>
- <option value="0">新工单</option>
- <option value="1">待交办</option>
- <option value="2">待查收</option>
- <option value="3">
- 退回审核中
- </option>
- <option value="4">办理中</option>
- <option value="5">
- 延时审核中
- </option>
- <option value="6">已办理</option>
- <option value="7">已回访</option>
- <option value="8">重办中</option>
- <option value="9">已结案</option>
- </select>
- </td>
- <th>工单来源:</th>
- <td>
- <select class="select_" id="source"></select>
- </td>
- </tr>
- <tr>
- <!-- <th>主题词:</th>
- <td>
- <select id="keyid" name="" class="select"></select>
- </td> -->
- <th>类型:</th>
- <td>
- <select class="select_" id="type"></select>
- </td>
- <th>来电人:</th>
- <td>
- <input type="text" id="name" class="Min-width" />
- </td>
- </tr>
- <tr>
- <th>坐席:</th>
- <td>
- <select id="ZX" name="select" class="selectpicker show-tick form-control" multiple
- data-live-search="true">
- <option value="">请选择坐席</option>
- </select>
- </td>
- <th>审核员:</th>
- <td>
- <select id="yardman" name="select" class="selectpicker show-tick form-control"
- multiple data-live-search="true">
- <option value="">
- 请选择调度员
- </option>
- </select>
- </td>
- <th>承办单位:</th>
- <td style="position: relative">
- <div class="inpBox">
- <input type="text" class="inps" onkeyup="darptSearch()" />
- <i class="Cleans fa fa-close"></i>
- <i class="xl xl_one"></i>
- <div class="addTree xlAdd">
- <ul id="addTreeDemo" class="ztree"></ul>
- </div>
- </div>
- <div class="selDpart1">
- <ul id="sponsor"></ul>
- </div>
- </td>
- <th></th>
- <td style="text-align: center">
- <botton class="btns Seach">搜索</botton>
- <botton class="btns exportFile">导出</botton>
- </td>
- </tr>
- </table>
- </div>
- </div>
- <ul class="nav nav-tabs ul_tab" role="tablist">
- <li class="active">
- <a>正在办理</a>
- </li>
- <li>
- <a>已办理</a>
- </li>
- </ul>
- <div>
- <div style="width: 100%; padding: 10px">
- <table id="orderlist" data-row-style="rowStyle" data-query-params="queryParams"
- data-pagination="true">
- <thead>
- <tr>
- <th data-checkbox="true"></th>
- <th data-field="F_WorkOrderId" data-formatter="View" data-align="center">
- 工单单号
- </th>
- <th data-field="F_ComTitle" data-formatter="GetCont" data-align="center">
- 诉求标题
- </th>
- <th data-field="DeptName" data-align="center">
- 承办单位
- </th>
- <th data-field="OtherDeptName" data-align="center">
- 协办单位
- </th>
- <!-- <th data-field="UserName" data-align="center">
- 受理人
- </th> -->
- <th data-field="F_WorkState" data-align="center" data-formatter="States">
- 办理状态
- </th>
- <!--<th data-field="FilePath" data-formatter="setCode" data-align="center">录音</th>-->
- <th data-field="OverState" data-formatter="OverTime" data-align="center">
- 时限
- </th>
- <th data-field="LimitTime" data-formatter="BanTime" data-align="center">
- 办理时限
- </th>
- <th data-field="F_WorkOrderId" data-formatter="Dispose" data-align="center">
- 操作
- </th>
- </tr>
- </thead>
- <tbody class="list"></tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
- <!--下载框-->
- <div class="t-shade lyxz">
- <div class="shade_k">
- <div class="shade_title">
- <span>录音播放与下载<srong class="cknum"></srong></span>
- <span class="setwin gbly"><a>x</a></span>
- </div>
- <div class="shade_content">
- <div class="Ly_box audiojs"></div>
- </div>
- </div>
- </div>
- <input type="hidden" id="PID" />
- <input type="hidden" id="Dpment" />
- </div>
- <script src="../js/bootstrap-select.js"></script>
- <script src="../css/laydate/laydate.js"></script>
- <script src="../My97DatePicker/WdatePicker.js"></script>
- <script src="../js/zTree/jquery.ztree.core.js"></script>
- <script src="../js/search/screen.js"></script>
- <script>
- var tabindex = 0;
- $(document).ready(function () {
- load();
- laydate.skin("blue");
- laydate({
- elem: "#starttime",
- event: "focus",
- });
- laydate({
- elem: "#endtime",
- event: "focus",
- });
- $('.ul_tab li').click(function () {
- $(this).parent().find("li").removeClass("active");
- $(this).addClass("active");
- tabindex = $(this).index();
- load();
- })
- });
- //关闭录音弹出
- $(".gbly").click(function () {
- $(".lyxz").removeClass("cx");
- $("audio")[0].pause();
- });
- $("#orderlist").on("click-row.bs.table", function (e, row, ele) {
- $(".success").removeClass("success"); //去除之前选中的行的,选中样式
- $(ele).addClass("success"); //添加当前选中的 success样式用于区别
- });
- //获取查询信息
- function load() {
- //坐席
- var usercodeID = "";
- var usercode_ = $("#ZX").val(); //坐席
- if (usercode_ != null) {
- $(usercode_).each(function (i, n) {
- var obj1 = "";
- obj1 = n + ",";
- usercodeID += obj1;
- });
- } else {
- usercodeID = "";
- }
- // 调度员
- var ddusercodeID = "";
- var ddusercode_ = $("#yardman").val(); //坐席
- if (ddusercode_ != null) {
- $(ddusercode_).each(function (i, n) {
- var obj2 = "";
- obj2 = n + ",";
- ddusercodeID += obj2;
- });
- } else {
- ddusercodeID = "";
- }
- //先销毁表格
- $("#orderlist").bootstrapTable("destroy");
- //初始化表格,动态从服务器加载数据
- $("#orderlist").bootstrapTable({
- method: "get", //使用get请求到服务器获取数据
- url: huayi.config.callcenter_url + "WorkOrder/GetDWDealList", //获取数据的Servlet地址
- contentType: "application/x-www-form-urlencoded",
- striped: true, //表格显示条纹
- pagination: true, //启动分页
- pageSize: 10, //每页显示的记录数
- pageNumber: 1, //当前第几页
- pageList: [10, 20, 50, 100], //记录数可选列表
- search: false, //是否启用查询
- showColumns: false, //显示下拉框勾选要显示的列
- showRefresh: false, //显示刷新按钮
- sidePagination: "server", //表示服务端请求
- //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
- //设置为limit可以获取limit, offset, search, sort, order
- queryParamsType: "undefined",
- queryParams: function queryParams(params) {
- //设置查询参数
- var param = {
- page: params.pageNumber,
- pagesize: params.pageSize,
- workid: $("#wids").val(),
- state: $("#state").val(), //=工单状态
- type: $("#type").val(), //=工单类型
- bigtype: $("#bigtype").val(), //=大类别
- smalltype: $("#smalltype").val(), //=小类别
- key: $("#key").val(), //=关键字
- tel: $("#tel").val(), //=客户电话
- name: $("#name").val(), //=客户名称
- usercode: usercodeID, //=坐席工号
- ddusercode: ddusercodeID,
- keyid: $("#keyid").val(), //=关键词id
- source: $("#source").val(), //=来源&
- starttime: $("#starttime").val(), //=开始时间
- endtime: $("#endtime").val(), //=结束时间
- deptid: $("#PID").val(),
- type: $("#type").val(),
- tab: 3, //待处理
- sourcearea: $("#sourceAreas").val(), //区域
- blstate: tabindex,
- token: $.cookie("token"),
- };
- return param;
- },
- onLoadSuccess: function (data) {
- //加载成功时执行
- // layer.msg("加载成功");
- //console.log(data);
- },
- onLoadError: function () {
- //加载失败时执行
- //layer.msg("加载数据失败", { time: 1500, icon: 2 });
- },
- });
- }
- //状态
- function States(val, row) {
- var html = "";
- switch (val + "") {
- case "0":
- html = "新工单";
- if (row.F_IsReturn == 1) {
- html = "新工单(回退)";
- }
- break;
- case "1":
- html = "待交办";
- break;
- case "2":
- html = '<span style="color:#FF0000;">待查收</span>';
- break;
- case "3":
- html = "退回审核中";
- break;
- case "4":
- html = "办理中";
- break;
- case "5":
- html = "延时审核";
- break;
- case "6":
- html = "待审核";
- break;
- case "7":
- html = "已回访";
- break;
- case "8":
- html = "重办中";
- break;
- case "9":
- html = "已结案";
- break;
- case "10":
- html = "待审核";
- break;
- case "11":
- html = "重办待交办";
- break;
- case "12":
- html = "待审核";
- break;
- case "13":
- html = "待督办";
- break;
- }
- return html;
- }
- //时限
- function OverTime(val, row) {
- if (val == 1) {
- return (
- '<div class="" style="cursor: pointer;">' +
- '<span class="Greens">' +
- row.GapTime +
- "</span>" +
- "</div>"
- );
- } else if (val == 2) {
- return (
- '<div class="" style="cursor: pointer;">' +
- '<span class="Yellows">' +
- row.GapTime +
- "</span>" +
- "</div>"
- );
- } else if (val == 3) {
- return (
- '<div class="" style="cursor: pointer;">' +
- '<span class="Reds">' +
- row.GapTime +
- "</span>" +
- "</div>"
- );
- }
- }
- //办理时限
- function BanTime(val) {
- if (val) {
- var time = val.substring(0, val.indexOf(" "));
- return (
- '<div class="" style="cursor: pointer;">' +
- "<span>" +
- time +
- "</span>" +
- "</div>"
- );
- }
- }
- //音频
- function setCode(val) {
- if (val) {
- return (
- '<div class="imgs" style="cursor: pointer;">' +
- '<img src="../img/vice.png" alt="" onclick= "helper.luyin.view(this)" item="' +
- val +
- '" />' +
- "</div>"
- );
- } else {
- return "";
- }
- }
- function View(val, row) {
- return '<div class="imgs" ><a class="" index="' + row.CreateUser +
- '" onclick= ckxq("' + row.F_WorkOrderId + '") >' + val + '</a></div>';
- }
- function GetCont(val) {
- if (val) {
- var str = "<div ";
- if (val.length > 10) {
- str = str + ' title="' + val + '" ';
- val = val.substr(0, 10) + "...";
- }
- return str + ">" + val + "</div>";
- } else {
- return "";
- }
- }
- //操作
- function Dispose(val, row) {
- var Rows = row.Buttons;
- var html = "";
- for (var i = 0; i < Rows.length; i++) {
- var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
- if (html1) {
- html1 = html1.replace("data", val);
- }
- html += html1;
- }
- return html;
- }
- //查看详情
- function ckxq(str) {
- layer.open({
- type: 2,
- content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
- title: "工单详情",
- area: ["100%", "100%"], //宽高
- });
- }
- //编辑
- 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("删除成功");
- 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") {
- layer.msg("提交成功");
- 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 bl(str) {
- layer.open({
- type: 2,
- content: "../CommonHtml/banli.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 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();
- }
- }
- );
- }
- );
- }
- //收回
- 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();
- }
- }
- );
- }
- );
- }
- //强制回收
- 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 th(str) {
- // layer.open({
- // type: 2,
- // content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
- // title: '办理工单',
- // area: ['35%', '30%'], //宽高
- // });
- // }
- //申请延时
- 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 Lawsuit(str) {
- layer.open({
- type: 2,
- content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
- title: "诉求单结案",
- area: ["60%", "80%"], //宽高
- });
- }
- $(".Appeal").click(function () {
- layer.open({
- type: 2,
- content: "../CommonHtml/AddAppeal.html?wid=", //iframe的url,no代表不显示滚动条
- title: "新增诉求",
- area: ["85%", "80%"], //宽高
- });
- });
- //上传文件
- function upload() {
- if (document.getElementById("upFile").files.length > 0) {
- var formData = new FormData();
- formData.append(
- "upFile",
- document.getElementById("upFile").files[0]
- );
- formData.append("token", $.cookie("token"));
- $.ajax({
- url: huayi.config.callcenter_url +
- "/WorkOrder/UploadFile",
- type: "POST",
- data: formData,
- /**
- *必须false才会自动加上正确的Content-Type
- */
- contentType: false,
- /**
- * 必须false才会避开jQuery对 formdata 的默认处理
- * XMLHttpRequest会对 formdata 进行正确的处理
- */
- processData: false,
- success: function (result) {
- document.getElementById(
- "upFile"
- ).outerHTML = document.getElementById(
- "upFile"
- ).outerHTML;
- $("#upFile").change(function () {
- upload();
- });
- var r = $.parseJSON(result);
- if (r.state.toLowerCase() == "success") {
- $(".fjnr").text(r.data);
- $("#scfj").show();
- }
- },
- });
- } else {
- layer.confirm("请上传文件!", {
- btn: ["确定"],
- });
- }
- }
- //来源
- function LY(obj) {
- obj.empty();
- obj.append(
- '<option selected="selected" value="">请选择</option>'
- );
- $.getJSON(
- huayi.config.callcenter_url +
- "Dictionary/GetDicValueListById", {
- token: $.cookie("token"),
- id: 1,
- },
- function (data) {
- if (data.state.toLowerCase() == "success") {
- var content = data.data;
- $(content).each(function (i, n) {
- $(
- "<option value='" +
- n.F_ValueId +
- "'>" +
- n.F_Value +
- "</option>"
- ).appendTo(obj);
- });
- }
- }
- );
- }
- //类别
- function LB(obj) {
- obj.empty();
- obj.append(
- '<option selected="selected" value="">请选择</option>'
- );
- $.getJSON(
- huayi.config.callcenter_url +
- "Dictionary/GetDicValueListById", {
- token: $.cookie("token"),
- id: 2,
- },
- function (data) {
- if (data.state.toLowerCase() == "success") {
- var content = data.data;
- $(content).each(function (i, n) {
- $(
- "<option value='" +
- n.F_ValueId +
- "'>" +
- n.F_Value +
- "</option>"
- ).appendTo(obj);
- });
- }
- }
- );
- }
- // 主题
- function ZT(obj) {
- obj.empty();
- obj.append(
- '<option selected="selected" value="">请选择</option>'
- );
- $.getJSON(
- huayi.config.callcenter_url +
- "Dictionary/GetDicValueListById", {
- token: $.cookie("token"),
- id: 3,
- },
- function (data) {
- if (data.state.toLowerCase() == "success") {
- var content = data.data;
- $(content).each(function (i, n) {
- $(
- "<option value='" +
- n.F_ValueId +
- "'>" +
- n.F_Value +
- "</option>"
- ).appendTo(obj);
- });
- }
- }
- );
- }
- function tree() {
- $.get(
- huayi.config.callcenter_url + "Department/GetDeptList", {
- token: $.cookie("token"),
- // "pid": pid
- },
- function (result) {
- result = $.parseJSON(result);
- $.fn.zTree.init(
- $("#addTreeDemo"),
- setting1,
- result.data
- ); //实例化树形图
- }
- );
- }
- var setting1 = {
- data: {
- key: {
- name: "F_DeptName",
- },
- simpleData: {
- enable: true,
- idKey: "F_DeptId",
- pIdKey: "F_PartentId",
- rootPId: 0,
- },
- },
- callback: {
- onClick: zTreeOnClick,
- },
- };
- function zTreeOnClick(event, treeId, treeNode) {
- if (treeNode.level >= 1) {
- $(".inps").val(treeNode.F_DeptName);
- $("#PID").val(treeNode.F_DeptId);
- $("#Dpment").val(treeNode.F_DeptName);
- $(".Cleans").show();
- }
- }
- $(".exportFile").click(function () {
- var usercode_ = $("#ZX").val(); //坐席
- if (usercode_ != null) {
- $(usercode_).each(function (i, n) {
- var obj1 = "";
- obj1 = n + ",";
- usercodeID += obj1;
- });
- } else {
- usercodeID = "";
- }
- // 调度员
- var ddusercodeID = "";
- var ddusercode_ = $("#yardman").val(); //坐席
- if (ddusercode_ != null) {
- $(ddusercode_).each(function (i, n) {
- var obj2 = "";
- obj2 = n + ",";
- ddusercodeID += obj2;
- });
- } else {
- ddusercodeID = "";
- }
- // var isproresult = 2 // 已办未果
- var key = $("#key").val() //=关键字
- var tel = $("#tel").val() //=客户电话
- var name = $("#name").val() //=客户名称
- var usercode = usercodeID //=坐席工号
- var ddusercode = ddusercodeID
- var source = $("#source").val() //=来源&
- var starttime = $("#starttime").val() && $("#starttime").val().split(" ~ ")[0] //=开始时间
- var endtime = $("#starttime").val() && $("#starttime").val().split(" ~ ")[1] //=结束时间
- var deptid = $("#PID").val()
- var type = $("#type").val() //=工单类型
- var dealtype = $("#dealtype").val()
- var sourcearea = $("#sourceAreas").val() //区域
- var workid = $("#wids").val()
- var state = "" //=工单状态
- var tab = 3
- var keyid = $("#keyid").val() //=关键词id
- var url = huayi.config.callcenter_url + "WorkOrder/GetDWDealList?token=" + $.cookie("token");
- url += "&workid=" + workid + "&state=" + state + "&tab=" + tab + "&type=" + type + "&key=" + key +
- "&tel=" + tel + "&name=" + name + "&usercode=" + usercode + "&ddusercode=" + ddusercode +
- "&keyid=" + keyid + "&source=" + source + "&starttime=" + starttime + "&endtime=" + endtime +
- "&deptid=" + deptid + "&sourcearea=" + sourcearea + "&dealtype=" + dealtype + "&isdc=1";
- window.location.href = url;
- })
- </script>
- </body>
- </html>
|