Nenhuma Descrição

superviseComprehensiveInquiries.html 37KB

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