Няма описание

superviseUpcoming.html 38KB

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