Нет описания

errorResetProvincialPlatform.html 38KB

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