Нет описания

superviseProcessing.html 39KB

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