Нет описания

superviseReplyPendingReview.html 38KB

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