暂无描述

toSupervListMedia.html 34KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>已转督办</title>
  6. <script src="../Script/Common/huayi.load.js"></script>
  7. <script src="../Script/Common/huayi.config.js"></script>
  8. <link rel="stylesheet" href="../css/bootstrap-select.css">
  9. <link rel="stylesheet" href="../js/zTree/zTreeStyle.css" />
  10. <link rel="stylesheet" href="../css/init.css" />
  11. <link rel="stylesheet" href="../js/layui/css/layui.css">
  12. <link rel="stylesheet" href="../css/WorkOrder/WorkOrderList.css">
  13. </head>
  14. <body class="gray-bg">
  15. <div class="wrapper wrapper-content animated fadeInRight">
  16. <div class="daoHang clearfix">
  17. <div class="dhLeft">
  18. <sapn>
  19. <i class="syIcon"></i>位置:
  20. <a href="javaScript:;" id="ReIndex">首页</a>&gt;
  21. <a href="javaScript:;">工单处理</a>&gt;
  22. <a href="" class="nowPosition">已转督办</a>
  23. </sapn>
  24. </div>
  25. <div class="dhRight">
  26. <a href="" title="刷新"><i class="fa fa-refresh"></i></a>
  27. </div>
  28. </div>
  29. <div style="padding: 10px;" class="tj_content clearFix">
  30. <div style="padding: 10px;" class="tj_content clearFix">
  31. <div>
  32. <span>【搜索信息】</span>
  33. <div class="box_content">
  34. <table id="sqzx" style="width: 100%;" border="0" cellspacing="0" cellpadding="0">
  35. <tr>
  36. <th>工单来源:</th>
  37. <td>
  38. <select class="form-control" id="source">
  39. </select>
  40. </td>
  41. <th>来电号码:</th>
  42. <td>
  43. <input type="text" id="tel" class="form-control" />
  44. </td>
  45. <th>来电时间:</th>
  46. <td colspan="3">
  47. <input type="text" id="starttime" class="photo x-color laydate-icon"
  48. autocomplete="off" style="height: 35px;" />&nbsp;——&nbsp;<input type="text"
  49. id="endtime" class="photo x-color laydate-icon" autocomplete="off"
  50. style="height: 35px;" />
  51. </td>
  52. </tr>
  53. <tr>
  54. <th>事项编号:</th>
  55. <td>
  56. <input type="text" placeholder="输入工单号" id="wids" class="form-control" />
  57. </td>
  58. <th><span class="nameJustified">来电人:</span></th>
  59. <td>
  60. <input type="text" id="name" class="form-control" />
  61. </td>
  62. <th><span class="nameJustified">关键字:</span></th>
  63. <td>
  64. <input type="text" placeholder="输入关键字" id="key" class="form-control Min-width" />
  65. <botton class="btns Seach">搜索</botton>
  66. </td>
  67. </tr>
  68. <tr>
  69. <th>受话坐席:</th>
  70. <td>
  71. <select id="ZX" name="select" class="selectpicker show-tick form-control" multiple
  72. data-live-search="true">
  73. <option value="">请选择坐席</option>
  74. </select>
  75. </td>
  76. <th><span class="nameJustified">审核员:</span></th>
  77. <td>
  78. <select id="yardman" name="select" class="selectpicker show-tick form-control"
  79. multiple data-live-search="true">
  80. <option value="">请选择调度员</option>
  81. </select>
  82. </td>
  83. <th>反映区域:</th>
  84. <td>
  85. <select name="" id="sourceAreas" class="form-control Min-width">
  86. </select>
  87. <botton class="btns exportFile">导出</botton>
  88. </td>
  89. </tr>
  90. <tr>
  91. <th>承办单位:</th>
  92. <td style="position: relative;">
  93. <div class="inpBox">
  94. <input type="text" class="inps" onkeyup="darptSearch()" />
  95. <i class="Cleans fa fa-close"></i>
  96. <i class="xl xl_one"></i>
  97. <div class="addTree xlAdd">
  98. <ul id="addTreeDemo" class="ztree"></ul>
  99. </div>
  100. </div>
  101. <div class="selDpart1">
  102. <ul id="sponsor">
  103. </ul>
  104. </div>
  105. </td>
  106. <th>来电类型:</th>
  107. <td>
  108. <select class="form-control" id="type">
  109. </select>
  110. </td>
  111. <th></th>
  112. <td style="text-align: center;">
  113. </td>
  114. </tr>
  115. </table>
  116. </div>
  117. </div>
  118. <div>
  119. <div style="width: 100%;padding: 10px;">
  120. <table id="orderlist" data-row-style="rowStyle" data-query-params="queryParams"
  121. data-pagination="true">
  122. <thead>
  123. <tr>
  124. <!-- <th data-checkbox="true"></th> -->
  125. <th data-formatter="serialNumber" data-align="center">
  126. 序号
  127. </th>
  128. <th data-field="F_WorkOrderId" data-formatter="View" data-align="center">工单单号</th>
  129. <th data-field="F_ComTitle" data-formatter="GetCont" data-align="center">诉求标题</th>
  130. <th data-field="DeptName" data-align="center">承办单位</th>
  131. <!-- <th data-field="OtherDeptName" data-align="center">协办单位</th> -->
  132. <th data-field="UserName" data-align="center">受理人</th>
  133. <th data-field="F_WorkState" data-align="center" data-formatter="States">办理状态</th>
  134. <!--<th data-field="FilePath" data-formatter="setCode" data-align="center">录音</th>-->
  135. <th data-field="OverState" data-formatter="OverTime" data-align="center">时限</th>
  136. <th data-field="LimitTime" data-formatter="BanTime" data-align="center">办理时限</th>
  137. <th data-field="F_WorkOrderId" data-formatter="Dispose" data-align="center">操作</th>
  138. </tr>
  139. </thead>
  140. <tbody class="list"></tbody>
  141. </table>
  142. </div>
  143. </div>
  144. </div>
  145. </div>
  146. <!--下载框-->
  147. <div class="t-shade lyxz">
  148. <div class="shade_k">
  149. <div class="shade_title">
  150. <span>录音播放与下载<srong class="cknum"></srong></span>
  151. <span class="setwin gbly"><a>x</a></span>
  152. </div>
  153. <div class="shade_content">
  154. <div class="Ly_box audiojs">
  155. </div>
  156. </div>
  157. </div>
  158. </div>
  159. <input type="hidden" id="PID" />
  160. <input type="hidden" id="Dpment" />
  161. </div>
  162. <script src="../js/layui/layui.js"></script>
  163. <script src="../js/bootstrap-select.js"></script>
  164. <script src="../css/laydate/laydate.js"></script>
  165. <script src="../My97DatePicker/WdatePicker.js"></script>
  166. <script src="../js/zTree/jquery.ztree.core.js"></script>
  167. <script src="../js/search/screen.js"></script>
  168. <script src="../js/WorkOrder/WorkOrderList.js"></script>
  169. <script>
  170. var wid = helper.request.queryString("states");
  171. if (wid) {
  172. $("#state").val(wid);
  173. }
  174. $(document).ready(function () {
  175. load();
  176. laydate.skin('blue');
  177. laydate({
  178. elem: '#starttime',
  179. event: 'focus'
  180. });
  181. laydate({
  182. elem: '#endtime',
  183. event: 'focus'
  184. });
  185. });
  186. //关闭录音弹出
  187. $(".gbly").click(function () {
  188. $(".lyxz").removeClass("cx");
  189. $('audio')[0].pause();
  190. });
  191. $("#orderlist").on("click-row.bs.table", function (e, row, ele) {
  192. $('.success').removeClass('success'); //去除之前选中的行的,选中样式
  193. $(ele).addClass('success'); //添加当前选中的 success样式用于区别
  194. });
  195. //获取查询信息
  196. function load() {
  197. //坐席
  198. var usercodeID = "";
  199. var usercode_ = $("#ZX").val(); //坐席
  200. if (usercode_ != null) {
  201. $(usercode_).each(function (i, n) {
  202. var obj1 = '';
  203. obj1 = n + ",";
  204. usercodeID += obj1;
  205. })
  206. } else {
  207. usercodeID = ""
  208. }
  209. // 调度员
  210. var ddusercodeID = "";
  211. var ddusercode_ = $("#yardman").val(); //坐席
  212. if (ddusercode_ != null) {
  213. $(ddusercode_).each(function (i, n) {
  214. var obj2 = '';
  215. obj2 = n + ",";
  216. ddusercodeID += obj2;
  217. })
  218. } else {
  219. ddusercodeID = ""
  220. }
  221. //先销毁表格
  222. $('#orderlist').bootstrapTable('destroy');
  223. //初始化表格,动态从服务器加载数据
  224. $("#orderlist").bootstrapTable({
  225. method: "get", //使用get请求到服务器获取数据
  226. url: huayi.config.callcenter_url + "workorder/GetSupervList", //获取数据的Servlet地址
  227. contentType: "application/x-www-form-urlencoded",
  228. striped: true, //表格显示条纹
  229. pagination: true, //启动分页
  230. pageSize: 10, //每页显示的记录数
  231. pageNumber: 1, //当前第几页
  232. pageList: [10, 20, 50, 100], //记录数可选列表
  233. search: false, //是否启用查询
  234. showColumns: false, //显示下拉框勾选要显示的列
  235. showRefresh: false, //显示刷新按钮
  236. sidePagination: "server", //表示服务端请求
  237. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  238. //设置为limit可以获取limit, offset, search, sort, order
  239. queryParamsType: "undefined",
  240. queryParams: function queryParams(params) { //设置查询参数
  241. var param = {
  242. page: params.pageNumber,
  243. pagesize: params.pageSize,
  244. workid: $("#wids").val(),
  245. state: $("#state").val(), //=工单状态
  246. type: $("#type").val(), //=工单类型
  247. bigtype: $("#bigtype").val(), //=大类别
  248. smalltype: $("#smalltype").val(), //=小类别
  249. key: $("#key").val(), //=关键字
  250. tel: $("#tel").val(), //=客户电话
  251. name: $("#name").val(), //=客户名称
  252. usercode: usercodeID, //=坐席工号
  253. ddusercode: ddusercodeID,
  254. keyid: $("#keyid").val(), //=关键词id
  255. source: $("#source").val(), //=来源&
  256. starttime: $("#starttime").val(), //=开始时间
  257. endtime: $("#endtime").val(), //=结束时间
  258. deptid: $("#PID").val(),
  259. type: $("#type").val(),
  260. tab: $("#superviseType").val(), //待处理
  261. sourcearea: $('#sourceAreas').val(), //区域
  262. jianhang: 1, // 多媒体
  263. token: $.cookie("token")
  264. };
  265. return param;
  266. },
  267. onLoadSuccess: function (data) { //加载成功时执行
  268. // layer.msg("加载成功");
  269. //console.log(data);
  270. },
  271. onLoadError: function () { //加载失败时执行
  272. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  273. }
  274. });
  275. }
  276. //状态
  277. function States(val, row) {
  278. var html = '';
  279. switch (val + '') {
  280. case '0':
  281. html = '新工单';
  282. if (row.F_IsReturn == 1) {
  283. html = '新工单(回退)';
  284. }
  285. break;
  286. case '1':
  287. html = '待交办';
  288. break;
  289. case '2':
  290. html = '待查收';
  291. break;
  292. case '3':
  293. html = '退回审核中';
  294. break;
  295. case '4':
  296. html = '办理中';
  297. break;
  298. case '5':
  299. html = '延时审核';
  300. break;
  301. case '6':
  302. html = '已办理';
  303. break;
  304. case '7':
  305. html = '已回访';
  306. break;
  307. case '8':
  308. html = '重办中';
  309. break;
  310. case '9':
  311. html = '已结案';
  312. break;
  313. }
  314. return html;
  315. }
  316. //时限
  317. function OverTime(val, row) {
  318. if (val == 1) {
  319. return '<div class="" style="cursor: pointer;">' +
  320. '<span class="Greens">' + row.GapTime + '</span>' +
  321. '</div>';
  322. } else if (val == 2) {
  323. return '<div class="" style="cursor: pointer;">' +
  324. '<span class="Yellows">' + row.GapTime + '</span>' +
  325. '</div>';
  326. } else if (val == 3) {
  327. return '<div class="" style="cursor: pointer;">' +
  328. '<span class="Reds">' + row.GapTime + '</span>' +
  329. '</div>';
  330. }
  331. }
  332. //办理时限
  333. function BanTime(val) {
  334. if (val) {
  335. var time = val.substring(0, val.indexOf(' '));
  336. return '<div class="" style="cursor: pointer;">' +
  337. '<span>' + time + '</span>' +
  338. '</div>';
  339. }
  340. }
  341. //音频
  342. function setCode(val) {
  343. if (val) {
  344. return '<div class="imgs" style="cursor: pointer;">' +
  345. '<img src="../img/vice.png" alt="" onclick= "helper.luyin.view(this)" item="' + val + '" />' +
  346. '</div>';
  347. } else {
  348. return '';
  349. }
  350. }
  351. //编号
  352. function serialNumber(val, row, index) {
  353. return index + 1;
  354. }
  355. function GetCont(val) {
  356. if (val) {
  357. var str = '<div '
  358. if (val.length > 10) {
  359. str = str + ' title="' + val + '" ';
  360. val = val.substr(0, 10) + "...";
  361. }
  362. return str + '>' + val + '</div>';
  363. } else {
  364. return '';
  365. }
  366. }
  367. //操作
  368. function Dispose(val, row) {
  369. var Rows = row.Buttons;
  370. // alert(row.F_WorkOrderId);
  371. var WorkOrderId = row.F_WorkOrderId;
  372. var html = '';
  373. // if (row.F_WorkState == '1') {
  374. // html += '<a class="xg" onclick="redeploy(' + WorkOrderId + ')">转派&nbsp</a>';
  375. // }
  376. for (var i = 0; i < Rows.length; i++) {
  377. var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
  378. if (html1) {
  379. html1 = html1.replace("data", val);
  380. html1 = html1.replace("row", row.F_MainDeptId);
  381. }
  382. html += html1;
  383. }
  384. return html;
  385. }
  386. //转派
  387. function redeploy(WorkOrderId) {
  388. layer.open({
  389. type: 2,
  390. content: "../CommonHtml/zhuanpai.html?wid=" + WorkOrderId, //iframe的url,no代表不显示滚动条
  391. title: '转派',
  392. area: ['85%', '80%'], //宽高
  393. });
  394. }
  395. //编辑
  396. function bj(str) {
  397. layer.open({
  398. type: 2,
  399. content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
  400. title: '编辑工单',
  401. area: ['96%', '85%'], //宽高
  402. });
  403. }
  404. //删除
  405. function move(str) {
  406. layer.confirm('确定删除工单?', {
  407. btn: ['是', '否'] //按钮
  408. }, function () {
  409. $.post(huayi.config.callcenter_url + "WorkOrder/DelWorkOrder", {
  410. ids: str,
  411. token: $.cookie("token")
  412. }, function (result) {
  413. result = JSON.parse(result);
  414. if (result.state.toLowerCase() == "success") {
  415. layer.msg("删除成功");
  416. load();
  417. }
  418. })
  419. });
  420. }
  421. //提交
  422. function tj(str) {
  423. layer.confirm('确定要提交工单么?', {
  424. btn: ['确定', '取消'] //按钮
  425. }, function () {
  426. //请求后台数据
  427. /*发送请求*/
  428. $.post(huayi.config.callcenter_url + "WorkOrder/SubmitWorkOrder", {
  429. ids: str,
  430. token: $.cookie("token")
  431. }, function (result) {
  432. result = JSON.parse(result);
  433. if (result.state.toLowerCase() == "success") {
  434. layer.msg("提交成功");
  435. load();
  436. }
  437. })
  438. });
  439. }
  440. //交办
  441. function jb(str) {
  442. layer.open({
  443. type: 2,
  444. content: "../CommonHtml/jiaoban.html?wid=" + str, //iframe的url,no代表不显示滚动条
  445. title: '工单交办',
  446. area: ['87%', '80%'], //宽高
  447. });
  448. }
  449. //领导批示
  450. function lader(str) {
  451. layer.open({
  452. type: 2,
  453. content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
  454. title: '领导批示',
  455. area: ['60%', '80%'], //宽高
  456. });
  457. }
  458. //市长批示
  459. function city(str) {
  460. layer.open({
  461. type: 2,
  462. content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
  463. title: '领导批示',
  464. area: ['60%', '80%'], //宽高
  465. });
  466. }
  467. //办理
  468. function bl(str) {
  469. layer.open({
  470. type: 2,
  471. content: "../CommonHtml/banli.html?wid=" + str, //iframe的url,no代表不显示滚动条
  472. title: '办理工单',
  473. area: ['60%', '80%'], //宽高
  474. });
  475. }
  476. //督办
  477. function Supervision(str, supervision) {
  478. layer.open({
  479. type: 2,
  480. state: 1,
  481. content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=1' + '&state=1' + '&depId=' +
  482. supervision, //iframe的url,no代表不显示滚动条
  483. title: '督办',
  484. area: ['60%', '80%'], //宽高
  485. });
  486. }
  487. //不督办
  488. function ndb(str) {
  489. layer.open({
  490. type: 2,
  491. state: 2,
  492. content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=1' +
  493. '&state=2', //iframe的url,no代表不显示滚动条
  494. title: '督办',
  495. area: ['60%', '80%'], //宽高
  496. });
  497. }
  498. //督查
  499. function Supervision_(str) {
  500. layer.open({
  501. type: 2,
  502. content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=2', //iframe的url,no代表不显示滚动条
  503. title: '监察',
  504. area: ['60%', '80%'], //宽高
  505. });
  506. }
  507. //强制结案
  508. function StrongLawsuit(str) {
  509. layer.open({
  510. type: 2,
  511. content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  512. title: '强制结案',
  513. area: ['60%', '80%'], //宽高
  514. });
  515. }
  516. //回退BackDtail
  517. function BackDtail(str) {
  518. layer.open({
  519. type: 2,
  520. content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  521. title: '工单回退',
  522. area: ['60%', '80%'], //宽高
  523. });
  524. }
  525. //查收
  526. function cs(str) {
  527. layer.confirm('确定要查收?', {
  528. btn: ['是', '否'] //按钮
  529. }, function () {
  530. $.post(huayi.config.callcenter_url + "WorkOrder/ReceiveWorkOrder", {
  531. workorderid: str,
  532. token: $.cookie("token")
  533. }, function (result) {
  534. result = JSON.parse(result);
  535. if (result.state.toLowerCase() == "success") {
  536. layer.msg("查收成功");
  537. load();
  538. }
  539. })
  540. });
  541. }
  542. //收回
  543. function sh(str) {
  544. layer.confirm('确定要回收?', {
  545. btn: ['是', '否'] //按钮
  546. }, function () {
  547. $.post(huayi.config.callcenter_url + "WorkOrder/TakeBackWorkOrder", {
  548. workorderid: str,
  549. token: $.cookie("token")
  550. }, function (result) {
  551. result = JSON.parse(result);
  552. if (result.state.toLowerCase() == "success") {
  553. layer.msg("回收");
  554. load();
  555. }
  556. })
  557. });
  558. }
  559. //强制回收
  560. function recycles() {
  561. layer.confirm('确定要强制退回吗?', {
  562. btn: ['是', '否'] //按钮
  563. });
  564. }
  565. //退回申请
  566. function th(str) {
  567. layer.open({
  568. type: 2,
  569. content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  570. title: '申请退回工单',
  571. area: ['60%', '80%'], //宽高
  572. });
  573. }
  574. //审核退回申请
  575. function shth(str) {
  576. layer.open({
  577. type: 2,
  578. content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
  579. title: '审核退回申请',
  580. area: ['60%', '80%'], //宽高
  581. });
  582. }
  583. //办理
  584. // function th(str) {
  585. // layer.open({
  586. // type: 2,
  587. // content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  588. // title: '办理工单',
  589. // area: ['35%', '30%'], //宽高
  590. // });
  591. // }
  592. //申请延时
  593. function ys(str) {
  594. layer.open({
  595. type: 2,
  596. content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  597. title: '申请延时',
  598. area: ['60%', '80%'], //宽高
  599. });
  600. }
  601. //审核申请延时
  602. function shys(str) {
  603. layer.open({
  604. type: 2,
  605. content: "../CommonHtml/shtime.html?wid=" + str, //iframe的url,no代表不显示滚动条
  606. title: '审核延时申请',
  607. area: ['60%', '80%'], //宽高
  608. });
  609. }
  610. //诉求回访
  611. function hf(str) {
  612. layer.open({
  613. type: 2,
  614. content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
  615. title: '工单回访',
  616. area: ['60%', '80%'], //宽高
  617. });
  618. }
  619. //重办工单
  620. function cb(str) {
  621. layer.open({
  622. type: 2,
  623. content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
  624. title: '重办工单',
  625. area: ['60%', '80%'], //宽高
  626. });
  627. }
  628. //结案
  629. function Lawsuit(str) {
  630. layer.open({
  631. type: 2,
  632. content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  633. title: '诉求单结案',
  634. area: ['60%', '80%'], //宽高
  635. });
  636. }
  637. $('.Appeal').click(function () {
  638. layer.open({
  639. type: 2,
  640. content: "../CommonHtml/AddAppeal.html?wid=", //iframe的url,no代表不显示滚动条
  641. title: '新增诉求',
  642. area: ['85%', '80%'], //宽高
  643. });
  644. })
  645. //上传文件
  646. function upload() {
  647. if (document.getElementById("upFile").files.length > 0) {
  648. var formData = new FormData();
  649. formData.append("upFile", document.getElementById("upFile").files[0]);
  650. formData.append("token", $.cookie("token"));
  651. $.ajax({
  652. url: huayi.config.callcenter_url + "/WorkOrder/UploadFile",
  653. type: "POST",
  654. data: formData,
  655. /**
  656. *必须false才会自动加上正确的Content-Type
  657. */
  658. contentType: false,
  659. /**
  660. * 必须false才会避开jQuery对 formdata 的默认处理
  661. * XMLHttpRequest会对 formdata 进行正确的处理
  662. */
  663. processData: false,
  664. success: function (result) {
  665. document.getElementById("upFile").outerHTML = document.getElementById("upFile")
  666. .outerHTML;
  667. $("#upFile").change(function () {
  668. upload();
  669. });
  670. var r = $.parseJSON(result);
  671. if (r.state.toLowerCase() == "success") {
  672. $(".fjnr").text(r.data);
  673. $("#scfj").show();
  674. }
  675. }
  676. });
  677. } else {
  678. layer.confirm('请上传文件!', {
  679. btn: ['确定']
  680. });
  681. }
  682. }
  683. //来源
  684. function LY(obj) {
  685. obj.empty();
  686. obj.append('<option selected="selected" value="">请选择</option>');
  687. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  688. "token": $.cookie("token"),
  689. id: 1
  690. }, function (data) {
  691. if (data.state.toLowerCase() == "success") {
  692. var content = data.data;
  693. $(content).each(function (i, n) {
  694. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(
  695. obj);
  696. })
  697. }
  698. })
  699. }
  700. //类别
  701. function LB(obj) {
  702. obj.empty();
  703. obj.append('<option selected="selected" value="">请选择</option>');
  704. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  705. "token": $.cookie("token"),
  706. id: 2
  707. }, function (data) {
  708. if (data.state.toLowerCase() == "success") {
  709. var content = data.data;
  710. $(content).each(function (i, n) {
  711. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(
  712. obj);
  713. })
  714. }
  715. })
  716. }
  717. // 主题
  718. function ZT(obj) {
  719. obj.empty();
  720. obj.append('<option selected="selected" value="">请选择</option>');
  721. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  722. "token": $.cookie("token"),
  723. id: 3
  724. }, function (data) {
  725. if (data.state.toLowerCase() == "success") {
  726. var content = data.data;
  727. $(content).each(function (i, n) {
  728. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(
  729. obj);
  730. })
  731. }
  732. })
  733. }
  734. function tree() {
  735. $.get(huayi.config.callcenter_url + 'Department/GetDeptList', {
  736. "token": $.cookie("token"),
  737. // "pid": pid
  738. }, function (result) {
  739. result = $.parseJSON(result);
  740. $.fn.zTree.init($("#addTreeDemo"), setting1, result.data); //实例化树形图
  741. });
  742. }
  743. var setting1 = {
  744. data: {
  745. key: {
  746. name: "F_DeptName"
  747. },
  748. simpleData: {
  749. enable: true,
  750. idKey: "F_DeptId",
  751. pIdKey: "F_PartentId",
  752. rootPId: 0
  753. }
  754. },
  755. callback: {
  756. onClick: zTreeOnClick
  757. }
  758. };
  759. function zTreeOnClick(event, treeId, treeNode) {
  760. if (treeNode.level >= 1) {
  761. $('.inps').val(treeNode.F_DeptName);
  762. $("#PID").val(treeNode.F_DeptId);
  763. $("#Dpment").val(treeNode.F_DeptName);
  764. $(".Cleans").show();
  765. }
  766. };
  767. $(".exportFile").click(function () {
  768. var usercode_ = $("#ZX").val(); //坐席
  769. if (usercode_ != null) {
  770. $(usercode_).each(function (i, n) {
  771. var obj1 = "";
  772. obj1 = n + ",";
  773. usercodeID += obj1;
  774. });
  775. } else {
  776. usercodeID = "";
  777. }
  778. // 调度员
  779. var ddusercodeID = "";
  780. var ddusercode_ = $("#yardman").val(); //坐席
  781. if (ddusercode_ != null) {
  782. $(ddusercode_).each(function (i, n) {
  783. var obj2 = "";
  784. obj2 = n + ",";
  785. ddusercodeID += obj2;
  786. });
  787. } else {
  788. ddusercodeID = "";
  789. }
  790. var workid = $("#wids").val()
  791. var key = $("#key").val() //=关键字
  792. var tel = $("#tel").val() //=客户电话
  793. var name = $("#name").val() //=客户名称
  794. var usercode = usercodeID //=坐席工号
  795. var ddusercode = ddusercodeID
  796. var source = $("#source").val() //=来源&
  797. var starttime = $("#starttime").val() //=开始时间
  798. var endtime = $("#endtime").val() //=结束时间
  799. var deptid = $("#PID").val()
  800. var type = $("#type").val() //=工单类型
  801. var bigtype = $("#bigtype").val()
  802. var smalltype = $("#smalltype").val() //=小类别
  803. var sourcearea = $("#sourceAreas").val() //区域
  804. var state = $("#state").val() == undefined ? "" : $("#state").val() //=工单状态
  805. var tab = $("#superviseType").val();
  806. var keyid = $("#keyid").val() //=关键词id
  807. var url = huayi.config.callcenter_url + "workorder/GetSupervList?token=" + $.cookie("token");
  808. url += "&workid=" + workid + "&state=" + state + "&type=" + type + "&tab=" + tab + "&key=" + key +
  809. "&tel=" +
  810. tel + "&name=" + name + "&usercode=" + usercode + "&ddusercode=" + ddusercode + "&source=" +
  811. source +
  812. "&starttime=" + starttime + "&endtime=" + endtime + "&deptid=" + deptid + "&sourcearea=" +
  813. sourcearea +
  814. "&bigtype=" + bigtype + "&smalltype=" + smalltype + "&keyid=" + keyid + "&jianhang=1" +
  815. "&isdc=1";
  816. window.location.href = url;
  817. })
  818. </script>
  819. </body>
  820. </html>