| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563 |
- <!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, .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;
- }
- #sqzx .Seach{
- margin-left: 0;
- width: 60px;
- font-size: 13px;
- display: inline-block;
- text-align: center;
- }
- </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="key" class="Min-width" />
- </td>
- <th>事项编号:</th>
- <td>
- <input type="text" placeholder="输入工单号" id="wids" 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>
- <th>区域:</th>
- <td >
- <select name="" id="sourceAreas" class="select">
- </select>
- </td>
- </tr>
- <tr>
- <th>工单类型:</th>
- <td>
- <select class="select_" id="type">
- </select>
- </td>
- <th>工单来源:</th>
- <td>
- <select class="select_" id="source">
- </select>
- </td>
- <th>主题词:</th>
- <td>
- <select id="keyid" name="" class="select"></select>
- </td>
- <th>来电号码:</th>
- <td>
- <input type="text" id="tel" 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 colspan="3">
- <input type="text" id="name" class="Min-width"/>
- </td>
- <td>
- <botton class="btns Seach">搜索</botton>
- </td>
- </tr>
- </table>
- </div>
- </div>
- <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-field="F_WorkOrderId" 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="NoticeDeptName" data-align="center">通报单位</th>
- <th data-field="NoticeReson" data-formatter="GetCont" data-align="center">通报原因</th>
- <th data-field="FilePath" data-formatter="setCode" data-align="center">录音</th>
- <th data-formatter="Dispose" data-align="center" data-width="10%">操作</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>
- </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>
- $(document).ready(function() {
- load();
- LY($("#source"));//工单来源
- LB($("#type"));//工单类别
- ZT($("#keyid"));//主题
- ZX($("#ZX"));
- yardman($("#yardman"));
- helper.getDropList.getOrderAreas($('#sourceAreas'));
- laydate.skin('blue');
- laydate({
- elem: '#startTime',
- event: 'focus'
- });
- laydate({
- elem: '#endTime',
- event: 'focus'
- });
- $(".Seach").click(function() {
- load();
- });
- $("#orderlist").on("click-row.bs.table", function(e, row, ele) {
- $('.success').removeClass('success'); //去除之前选中的行的,选中样式
- $(ele).addClass('success'); //添加当前选中的 success样式用于区别
- });
- $("#sqzx").bind("keydown", function(event) {
- var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
- if(keyCode == 13) {
- load();
- }
- })
- });
- //获取查询信息
- 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/GetNoticeList",
- 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,
- key: $("#key").val(),//关键字
- starttime: $("#startTime").val(),//开始时间
- endtime: $("#endTime").val(),//结束时间
- workid: $('#wids').val(),//工单编号
- type: $('#type').val(),//工单类型
- tel: $('#tel').val(),//客户电话
- name: $('#name').val(),//客户名称
- usercode: usercodeID, //=坐席工号
- ddusercode: ddusercodeID,
- keyid: $('#keyid').val(),//关键词id
- source: $("#source").val(),//来源
- // usercode: $("#ZX").val(), //=坐席工号
- // ddusercode: $("#yardman").val(),
- sourcearea:$('#sourceAreas').val(),//区域
- token: $.cookie("token")
- };
- return param;
- },
- onLoadSuccess: function(data) { //加载成功时执行
- //layer.msg("加载成功");
- },
- onLoadError: function() { //加载失败时执行
- //layer.msg("加载数据失败", { time: 1500, icon: 2 });
- }
- });
- }
- //来源
- 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 ZX(obj) {
- obj.empty();
- $.getJSON(huayi.config.callcenter_url + "UserAccount/GetSeatList", {
- "token": $.cookie("token"),
- }, function(data) {
- if(data.state.toLowerCase() == "success") {
- var content = data.data;
- $(content).each(function(i, n) {
- $("<option value='" + n.F_UserCode + "'>" + n.F_UserName + "</option>").appendTo(obj);
-
- })
- obj.selectpicker({
- noneSelectedText: '请选择' //默认显示内容
- });
- obj.selectpicker('refresh');
-
- }
- })
- }
- //调度员
- function yardman(obj) {
- obj.empty();
- $.getJSON(huayi.config.callcenter_url + "UserAccount/GetUsersList", {
- rolecode: "ZXLD",
- "token": $.cookie("token"),
- }, function(data) {
- if(data.state.toLowerCase() == "success") {
- var content = data.data;
- $(content).each(function(i, n) {
- $("<option value='" + n.F_UserCode + "'>" + n.F_UserName + "</option>").appendTo(obj);
-
- })
- obj.selectpicker({
- noneSelectedText: '请选择' //默认显示内容
- });
- obj.selectpicker('refresh');
-
- }
- })
- }
- //述求标题
- 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 showOrnot = 'none';
- //撤回按钮显示或隐藏
- if(row.IsReturnNotice == 1 ) {
- showOrnot = 'inline-block';
- } else {
- showOrnot = 'none';
- }
- return '<div class="imgs" >' +
- '<a class="xg" title="查看" onclick="ckxq(' + row.F_WorkOrderId + ')">查看</a>' +
- '<a class="xg withDrawBtn" style="display: '+ showOrnot +'" title="撤回" onclick="withDraw(' + row.F_WorkOrderId + ')">撤回</a>' +
- '</div>';
- }
- //查看详情
- function ckxq(str) {
- layer.open({
- type: 2,
- content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
- title: '工单详情',
- area: ['100%', '100%'], //宽高
- });
- }
- //撤回
- function withDraw(str){
- layer.open({
- content: '是否要撤回?',
- btn: ['是', '否'],
- yes: function(index, layero){
- $.post(huayi.config.callcenter_url + "WorkOrder/NoticeWorkOrder", {
- workorderid: str,//工单编号
- isnotice: 0,//(0撤回,1通告)
- //deptids: '',
- token: $.cookie("token")
- }, function(result) {
- var data = JSON.parse(result);
- if(data.state == "success") {
- $(".withDrawBtn").hide();
- layer.close();
- load();
- layer.msg("撤回成功");
- }
- })
- }
- })
- }
-
- //音频
- 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 '';
- }
- }
-
- </script>
- </body>
- </html>
|