No Description

superviseUpcoming.html 38KB

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