Brak opisu

superviseProcessing.html 39KB

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