Bez popisu

WorkIsproresult.html 50KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212
  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. <link rel="stylesheet" href="../css/bootstrap-select.css" />
  8. <script src="../Script/Common/huayi.config.js"></script>
  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"></select>
  39. </td>
  40. <th>来电号码:</th>
  41. <td>
  42. <input type="text" id="tel" class="form-control" placeholder="请输入来电号码" />
  43. </td>
  44. <th>来电时间:</th>
  45. <td colspan="3">
  46. <input id="starttime" class="photo x-color laydate-icon" type="text"
  47. autocomplete="off" style="height: 35px;" />-<input id="endtime"
  48. class="photo x-color laydate-icon" type="text" 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" autocomplete="off" />
  60. </td>
  61. <th>办理时间:</th>
  62. <td colspan="3">
  63. <input id="dealstarttime" class="photo x-color laydate-icon" type="text"
  64. autocomplete="off" style="height: 35px;" />-<input id="dealstrendtime"
  65. class="photo x-color laydate-icon" type="text" autocomplete="off"
  66. style="height: 35px;" />
  67. </td>
  68. </tr>
  69. <tr>
  70. <th>工单标题:</th>
  71. <td>
  72. <input type="text" placeholder="输入工单标题" id="workOrderTitle" class="form-control" />
  73. </td>
  74. <th>受话坐席:</th>
  75. <td>
  76. <select id="ZX" name="select" class="selectpicker show-tick form-control" multiple
  77. data-live-search="true">
  78. <option value="">请选择坐席</option>
  79. </select>
  80. </td>
  81. <th>反映区域:</th>
  82. <td>
  83. <select class="form-control Min-width" id="sourceAreas"></select>
  84. </td>
  85. <td></td>
  86. <td></td>
  87. </tr>
  88. <tr>
  89. <th>来电内容:</th>
  90. <td>
  91. <input type="text" placeholder="输入来电内容" id="workOrderContent"
  92. class="form-control" />
  93. </td>
  94. <th><span class="nameJustified">审核员:</span></th>
  95. <td>
  96. <select id="yardman" name="select" class="selectpicker show-tick form-control"
  97. multiple data-live-search="true">
  98. <option value="">
  99. 请选择调度员
  100. </option>
  101. </select>
  102. </td>
  103. <th>处理类型:</th>
  104. <td>
  105. <select class="form-control Min-width" id="dealtype">
  106. <option value="">请选择</option>
  107. <option value="0">网络转派</option>
  108. <option value="1">当即办理</option>
  109. </select>
  110. </td>
  111. </tr>
  112. <tr>
  113. <th>办理结果:</th>
  114. <td>
  115. <input type="text" placeholder="输入办理结果" id="workOrderProcessingResult"
  116. class="form-control" />
  117. </td>
  118. <th>工单状态:</th>
  119. <td>
  120. <select name="" id="state" class="form-control">
  121. <option selected="selected" value="">
  122. 请选择
  123. </option>
  124. <option value="0">新工单</option>
  125. <option value="1">待交办</option>
  126. <!-- <option value="10">待审核</option> -->
  127. <option value="2">待查收</option>
  128. <option value="3">
  129. 退回审核中
  130. </option>
  131. <option value="4">办理中</option>
  132. <option value="5">
  133. 延时审核中
  134. </option>
  135. <option value="6">已办理</option>
  136. <!-- <option value="7">已回访</option> -->
  137. <option value="11">
  138. 重办待交办
  139. </option>
  140. <option value="13">重办驳回</option>
  141. <option value="8">重办中</option>
  142. <option value="9">已结案</option>
  143. </select>
  144. </td>
  145. <th>来电类型:</th>
  146. <td>
  147. <select class="form-control Min-width" id="type"></select>
  148. <botton class="btns Seach">搜索</botton>
  149. </td>
  150. </tr>
  151. <tr>
  152. <th>承办单位:</th>
  153. <td style="position: relative">
  154. <div class="inpBox">
  155. <input type="text" class="inps" onkeyup="darptSearch()" />
  156. <i class="Cleans fa fa-close"></i>
  157. <i class="xl xl_one"></i>
  158. <div class="addTree xlAdd">
  159. <ul id="addTreeDemo" class="ztree"></ul>
  160. </div>
  161. </div>
  162. <div class="selDpart1">
  163. <ul id="sponsor"></ul>
  164. </div>
  165. </td>
  166. <th>反映类别:</th>
  167. <td style="position: relative;">
  168. <div class="inpBox">
  169. <input type="text" class="inpsReactionCategory" />
  170. <input type="hidden" id="keyid" />
  171. <i class="CleansReactionCategory fa fa-close"></i>
  172. <i class="xlReactionCategory xl_one"></i>
  173. <div class="addTreeReactionCategory xlAddReactionCategory">
  174. <ul id="addTreeDemoReactionCategory" class="ztree"></ul>
  175. </div>
  176. </div>
  177. </td>
  178. <th>是否公开:</th>
  179. <td>
  180. <select id="isopen" class="form-control Min-width" name="select">
  181. <option value="">
  182. 请选择是否公开
  183. </option>
  184. <option value="0">
  185. 未公开
  186. </option>
  187. <option value="1">
  188. 已公开
  189. </option>
  190. </select>
  191. <botton class="btns Export">导出</botton>
  192. </td>
  193. </tr>
  194. <tr>
  195. <th>三方通话:</th>
  196. <td>
  197. <select id="threeWayCall" class="form-control" name="select">
  198. <option value="">
  199. 请选择是否三方通话
  200. </option>
  201. <option value="1">
  202. </option>
  203. <option value="0">
  204. </option>
  205. </select>
  206. </td>
  207. <th>分管领导:</th>
  208. <td>
  209. <select id="leaderCharge" class="form-control" name="select">
  210. <option value="">
  211. 请选择
  212. </option>
  213. <option value="省长">
  214. 省长
  215. </option>
  216. <option value="市长">
  217. 市长
  218. </option>
  219. </select>
  220. </td>
  221. <th>查询类型:</th>
  222. <td>
  223. <select id="islike" class="form-control Min-width" name="select">
  224. <option value="1">
  225. 模糊查询
  226. </option>
  227. <option value="0">
  228. 精确查询
  229. </option>
  230. </select>
  231. </td>
  232. </tr>
  233. </table>
  234. </div>
  235. </div>
  236. <div>
  237. <ul class="nav nav-tabs ul_tab" role="tablist">
  238. <li class="active">
  239. <a>未追加回复</a>
  240. </li>
  241. <li>
  242. <a>已追加回复</a>
  243. </li>
  244. </ul>
  245. <div style="width: 100%; padding: 10px">
  246. <table id="orderlist" data-row-style="rowStyle" data-query-params="queryParams"
  247. data-pagination="true">
  248. <thead>
  249. <tr>
  250. <th data-formatter="serialNumber" data-align="center">
  251. 序号
  252. </th>
  253. <th data-field="F_WorkOrderId" data-formatter="View" data-align="center">
  254. 工单单号
  255. </th>
  256. <th data-field="F_ComTitle" data-formatter="GetCont" data-align="center">
  257. 诉求标题
  258. </th>
  259. <th data-field="DeptName" data-align="center">
  260. 承办单位
  261. </th>
  262. <!-- <th data-field="OtherDeptName" data-align="center">
  263. 协办单位
  264. </th> -->
  265. <th data-field="UserName" data-align="center">
  266. 受理人
  267. </th>
  268. <th data-field="F_WorkState" data-align="center" data-formatter="States">
  269. 办理状态
  270. </th>
  271. <th data-field="OverState" data-formatter="OverTime" data-align="center">
  272. 时限
  273. </th>
  274. <th data-field="LimitTime" data-formatter="BanTime" data-align="center">
  275. 办理时限
  276. </th>
  277. <!--<th data-field="FilePath" data-formatter="setCode" data-align="center">
  278. 录音
  279. </th>-->
  280. <th data-field="F_WorkOrderId" data-formatter="Dispose" data-align="center">
  281. 操作
  282. </th>
  283. </tr>
  284. </thead>
  285. <tbody class="list"></tbody>
  286. </table>
  287. </div>
  288. </div>
  289. </div>
  290. </div>
  291. <!--下载框-->
  292. <div class="t-shade lyxz">
  293. <div class="shade_k">
  294. <div class="shade_title">
  295. <span>录音播放与下载<srong class="cknum"></srong></span>
  296. <span class="setwin gbly"><a>x</a></span>
  297. </div>
  298. <div class="shade_content">
  299. <div class="Ly_box audiojs"></div>
  300. </div>
  301. </div>
  302. </div>
  303. <input type="hidden" id="PID" />
  304. <input type="hidden" id="Dpment" />
  305. </div>
  306. <script src="../js/layui/layui.js"></script>
  307. <script src="../js/bootstrap-select.js"></script>
  308. <script src="../css/laydate/laydate.js"></script>
  309. <script src="../My97DatePicker/WdatePicker.js"></script>
  310. <script src="../js/zTree/jquery.ztree.core.js"></script>
  311. <script src="../js/search/screen.js"></script>
  312. <script src="../js/WorkOrder/WorkOrderList.js"></script>
  313. <script>
  314. var wid = helper.request.queryString("wid");
  315. var isproresult = 1
  316. $(document).ready(function () {
  317. if (wid) {
  318. $("#tel").val(wid);
  319. load();
  320. }
  321. laydate.skin('blue');
  322. laydate({
  323. elem: '#starttime',
  324. event: 'focus',
  325. istime: true,
  326. format: 'YYYY-MM-DD hh:mm:ss'
  327. });
  328. laydate({
  329. elem: '#endtime',
  330. event: 'focus',
  331. istime: true,
  332. format: 'YYYY-MM-DD hh:mm:ss'
  333. });
  334. $('.ul_tab li').click(function () {
  335. $(this).addClass("active").siblings().removeClass("active");
  336. var index = $(this).index();
  337. if (index === 0) {
  338. isproresult = 1;
  339. } else if (isproresult === 1) {
  340. isproresult = 2;
  341. }
  342. load();
  343. })
  344. load();
  345. });
  346. //关闭录音弹出
  347. $(".gbly").click(function () {
  348. $(".lyxz").removeClass("cx");
  349. $("audio")[0].pause();
  350. });
  351. $("#orderlist").on("click-row.bs.table", function (e, row, ele) {
  352. $(".success").removeClass("success"); //去除之前选中的行的,选中样式
  353. $(ele).addClass("success"); //添加当前选中的 success样式用于区别
  354. });
  355. //获取查询信息
  356. function load() {
  357. //坐席
  358. var usercodeID = "";
  359. var usercode_ = $("#ZX").val(); //坐席
  360. if (usercode_ != null) {
  361. $(usercode_).each(function (i, n) {
  362. var obj1 = "";
  363. obj1 = n + ",";
  364. usercodeID += obj1;
  365. });
  366. } else {
  367. usercodeID = "";
  368. }
  369. // 调度员
  370. var ddusercodeID = "";
  371. var ddusercode_ = $("#yardman").val(); //坐席
  372. if (ddusercode_ != null) {
  373. $(ddusercode_).each(function (i, n) {
  374. var obj2 = "";
  375. obj2 = n + ",";
  376. ddusercodeID += obj2;
  377. });
  378. } else {
  379. ddusercodeID = "";
  380. }
  381. //先销毁表格
  382. $("#orderlist").bootstrapTable("destroy");
  383. //初始化表格,动态从服务器加载数据
  384. $("#orderlist").bootstrapTable({
  385. method: "get", //使用get请求到服务器获取数据
  386. url: huayi.config.callcenter_url + "WorkOrder/GetList", //获取数据的Servlet地址
  387. contentType: "application/x-www-form-urlencoded",
  388. striped: true, //表格显示条纹
  389. pagination: true, //启动分页
  390. pageSize: 10, //每页显示的记录数
  391. pageNumber: 1, //当前第几页
  392. pageList: [10, 20, 50, 100], //记录数可选列表
  393. search: false, //是否启用查询
  394. showColumns: false, //显示下拉框勾选要显示的列
  395. showRefresh: false, //显示刷新按钮
  396. sidePagination: "server", //表示服务端请求
  397. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  398. //设置为limit可以获取limit, offset, search, sort, order
  399. queryParamsType: "undefined",
  400. queryParams: function queryParams(params) {
  401. //设置查询参数
  402. //alert(params.pageNumber)
  403. var param = {
  404. page: params.pageNumber,
  405. pagesize: params.pageSize,
  406. isproresult: isproresult, // 已办未果
  407. workid: $("#wids").val(),
  408. // state: $("#state").val(), //=工单状态
  409. state: 6, //=工单状态
  410. type: $("#type").val(), //=工单类型
  411. //bigtype: $("#bigtype").val(), //=大类别
  412. //smalltype: $("#smalltype").val(), //=小类别
  413. key: $("#key").val(), //=关键字
  414. tel: $("#tel").val(), //=客户电话
  415. name: $("#name").val(), //=客户名称
  416. usercode: usercodeID, //=坐席工号
  417. ddusercode: ddusercodeID,
  418. keyid: $("#keyid").val(), //=关键词id
  419. source: $("#source").val(), //=来源&
  420. starttime: $("#starttime").val(), //=开始时间
  421. endtime: $("#endtime").val(), //=结束时间
  422. deptid: $("#PID").val(),
  423. type: $("#type").val(),
  424. dealtype: $("#dealtype").val(),
  425. sourcearea: $("#sourceAreas").val(), //区域
  426. ComTitle: $("#workOrderTitle").val().replace(/\s+/g, ""), // 工单标题
  427. ComContent: $("#workOrderContent").val().replace(/\s+/g, ""), // 工单内容
  428. Result: $("#workOrderProcessingResult").val().replace(/\s+/g, ""), // 办理结果
  429. dealstarttime: $("#dealstarttime").val(), //办理开始时间
  430. dealstrendtime: $("#dealstrendtime").val(), //办理结束时间
  431. isopen: $("#isopen").val(), // 是否公开
  432. business: $("#threeWayCall").val(), // 三方通话
  433. splituser: $("#leaderCharge").val(), // 分管领导
  434. islike: $("#islike").val(), // 查询类型
  435. jianhang: 0,
  436. phoneType: 2, // 12345来电
  437. token: $.cookie("token"),
  438. };
  439. return param;
  440. },
  441. onLoadSuccess: function (data) {
  442. //加载成功时执行
  443. // layer.msg("加载成功");
  444. //console.log(data);
  445. },
  446. onLoadError: function () {
  447. //加载失败时执行
  448. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  449. },
  450. });
  451. }
  452. //状态
  453. function States(val, row) {
  454. var html = "";
  455. switch (val + "") {
  456. case "0":
  457. html = "新工单";
  458. if (row.F_IsReturn == 1) {
  459. html = "新工单(回退)";
  460. }
  461. break;
  462. case "1":
  463. html = "待交办";
  464. break;
  465. case "2":
  466. html = '<span style="color:#FF0000;">待查收</span>';
  467. break;
  468. case "3":
  469. html = "退回审核中";
  470. break;
  471. case "4":
  472. html = "办理中";
  473. break;
  474. case "5":
  475. html = "延时审核";
  476. break;
  477. case "6":
  478. if (row.F_IsProtect === 2 || row.F_IsProtect === 3) {
  479. html = "已办未果"
  480. } else {
  481. html = "已办理";
  482. }
  483. break;
  484. case "7":
  485. html = "已回访";
  486. break;
  487. case "8":
  488. html = "重办中";
  489. break;
  490. case "9":
  491. html = "已结案";
  492. break;
  493. case "10":
  494. html = "待审核";
  495. break;
  496. case "11":
  497. html = "重办待交办";
  498. break;
  499. // case '12':
  500. // html = '待审核';
  501. // break;
  502. case "13":
  503. html = "重办驳回";
  504. break;
  505. }
  506. return html;
  507. }
  508. //音频
  509. function setCode(val) {
  510. if (val) {
  511. return (
  512. '<div class="imgs" style="cursor: pointer;">' +
  513. '<img src="../img/vice.png" alt="" onclick= "helper.luyin.view(this)" item="' +
  514. val +
  515. '" />' +
  516. "</div>"
  517. );
  518. } else {
  519. return "";
  520. }
  521. }
  522. //编号
  523. function serialNumber(val, row, index) {
  524. return index + 1;
  525. }
  526. function GetCont(val) {
  527. if (val) {
  528. var str = "<div ";
  529. if (val.length > 10) {
  530. str = str + ' title="' + val + '" ';
  531. val = val.substr(0, 10) + "...";
  532. }
  533. return str + ">" + val + "</div>";
  534. } else {
  535. return "";
  536. }
  537. }
  538. //操作
  539. function Dispose(val, row) {
  540. var Rows = row.Buttons;
  541. var html = "";
  542. for (var i = 0; i < Rows.length; i++) {
  543. var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
  544. if (html1) {
  545. html1 = html1.replace("data", val);
  546. html1 = html1.replace("isProtect", row.F_IsProtect);
  547. html1 = html1.replace("row", row.F_MainDeptId);
  548. }
  549. html += html1;
  550. }
  551. return html;
  552. }
  553. //查看详情
  554. function ckxq(str) {
  555. layer.open({
  556. type: 2,
  557. // content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  558. content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  559. title: "工单详情",
  560. area: ["100%", "100%"], //宽高
  561. });
  562. }
  563. //时限
  564. function OverTime(val, row) {
  565. if (val == 1) {
  566. return (
  567. '<div class="" style="cursor: pointer;">' +
  568. '<span class="Greens">' +
  569. row.GapTime +
  570. "</span>" +
  571. "</div>"
  572. );
  573. } else if (val == 2) {
  574. return (
  575. '<div class="" style="cursor: pointer;">' +
  576. '<span class="Yellows">' +
  577. row.GapTime +
  578. "</span>" +
  579. "</div>"
  580. );
  581. } else if (val == 3) {
  582. return (
  583. '<div class="" style="cursor: pointer;">' +
  584. '<span class="Reds">' +
  585. row.GapTime +
  586. "</span>" +
  587. "</div>"
  588. );
  589. }
  590. }
  591. //办理时限
  592. function BanTime(val) {
  593. if (val) {
  594. var time = val.substring(0, val.indexOf(" "));
  595. return (
  596. '<div class="" style="cursor: pointer;">' +
  597. "<span>" +
  598. time +
  599. "</span>" +
  600. "</div>"
  601. );
  602. }
  603. }
  604. //派单
  605. function pd(str) {
  606. layer.open({
  607. type: 2,
  608. content: "../CommonHtml/handle.html?wid=" + str, //iframe的url,no代表不显示滚动条
  609. title: "办理工单",
  610. area: ["87%", "80%"], //宽高
  611. });
  612. }
  613. //处理审核
  614. function auditdeal(str) {
  615. layer.open({
  616. type: 2,
  617. content: "../CommonHtml/processing_audit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  618. title: "处理审核",
  619. area: ["80%", "80%"], //宽高
  620. });
  621. }
  622. //编辑
  623. function bj(str) {
  624. layer.open({
  625. type: 2,
  626. content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
  627. title: "编辑工单",
  628. area: ["96%", "80%"], //宽高
  629. });
  630. }
  631. //删除
  632. function move(str) {
  633. layer.confirm(
  634. "确定删除工单?", {
  635. btn: ["是", "否"], //按钮
  636. },
  637. function () {
  638. $.post(
  639. huayi.config.callcenter_url +
  640. "WorkOrder/DelWorkOrder", {
  641. ids: str,
  642. token: $.cookie("token"),
  643. },
  644. function (result) {
  645. result = JSON.parse(result);
  646. if (result.state.toLowerCase() == "success") {
  647. debugger;
  648. layer.msg("删除成功");
  649. $("#orderlist").bootstrapTable("refresh");
  650. }
  651. }
  652. );
  653. }
  654. );
  655. }
  656. //提交
  657. function tj(str) {
  658. layer.confirm(
  659. "确定要提交工单么?", {
  660. btn: ["确定", "取消"], //按钮
  661. },
  662. function () {
  663. //请求后台数据
  664. /*发送请求*/
  665. $.post(
  666. huayi.config.callcenter_url +
  667. "WorkOrder/SubmitWorkOrder", {
  668. ids: str,
  669. token: $.cookie("token"),
  670. },
  671. function (result) {
  672. result = JSON.parse(result);
  673. if (result.state.toLowerCase() == "success") {
  674. layer.msg("提交成功");
  675. $("#orderlist").bootstrapTable("refresh");
  676. //load();
  677. }
  678. }
  679. );
  680. }
  681. );
  682. }
  683. //交办
  684. function jb(str) {
  685. layer.open({
  686. type: 2,
  687. content: "../CommonHtml/jiaoban.html?wid=" + str, //iframe的url,no代表不显示滚动条
  688. title: "工单交办",
  689. area: ["87%", "80%"], //宽高
  690. });
  691. }
  692. //领导批示
  693. function lader(str) {
  694. layer.open({
  695. type: 2,
  696. content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
  697. title: "领导批示",
  698. area: ["60%", "80%"], //宽高
  699. });
  700. }
  701. //市长批示
  702. function city(str) {
  703. layer.open({
  704. type: 2,
  705. content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
  706. title: "市长批示",
  707. area: ["60%", "80%"], //宽高
  708. });
  709. }
  710. //办理
  711. function bl(str, isProtect) {
  712. layer.open({
  713. type: 2,
  714. content: "../CommonHtml/banli.html?wid=" +
  715. str +
  716. "&isProtect=" +
  717. isProtect, //iframe的url,no代表不显示滚动条
  718. title: "办理工单",
  719. area: ["60%", "80%"], //宽高
  720. });
  721. }
  722. //督办
  723. function Supervision(str) {
  724. layer.open({
  725. type: 2,
  726. content: "../CommonHtml/Supervision_.html?wid=" +
  727. str +
  728. "&type=1", //iframe的url,no代表不显示滚动条
  729. title: "督办",
  730. area: ["60%", "80%"], //宽高
  731. });
  732. }
  733. //督查
  734. function Supervision_(str) {
  735. layer.open({
  736. type: 2,
  737. content: "../CommonHtml/Supervision_.html?wid=" +
  738. str +
  739. "&type=2", //iframe的url,no代表不显示滚动条
  740. title: "监察",
  741. area: ["60%", "80%"], //宽高
  742. });
  743. }
  744. //审核
  745. function audit(str) {
  746. layer.open({
  747. type: 2,
  748. content: "../CommonHtml/AuditDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  749. title: "审核",
  750. area: ["60%", "80%"], //宽高
  751. });
  752. }
  753. //转督办
  754. function zdb(str, row) {
  755. layer.open({
  756. type: 2,
  757. content: "../CommonHtml/superTrunl.html?wid=" +
  758. str +
  759. "&depId=" +
  760. row, //iframe的url,no代表不显示滚动条
  761. title: "督办工单",
  762. area: ["60%", "80%"], //宽高
  763. });
  764. }
  765. //不督办
  766. function ndb(str) {
  767. layer.confirm(
  768. "确定督办吗?", {
  769. btn: ["是", "否"], //按钮
  770. },
  771. function () {
  772. $.post(
  773. huayi.config.callcenter_url +
  774. "WorkOrder/RemindWorkOrder", {
  775. workorderid: str,
  776. type: 1,
  777. state: 2,
  778. token: $.cookie("token"),
  779. },
  780. function (result) {
  781. result = JSON.parse(result);
  782. if (result.state.toLowerCase() == "success") {
  783. layer.msg("操作成功");
  784. //load();
  785. $("#orderlist").bootstrapTable("refresh");
  786. }
  787. }
  788. );
  789. }
  790. );
  791. }
  792. //强制结案
  793. function StrongLawsuit(str) {
  794. layer.open({
  795. type: 2,
  796. content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  797. title: "强制结案",
  798. area: ["60%", "80%"], //宽高
  799. });
  800. }
  801. //回退BackDtail
  802. function BackDtail(str) {
  803. layer.open({
  804. type: 2,
  805. content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  806. title: "工单督办",
  807. area: ["60%", "80%"], //宽高
  808. });
  809. }
  810. //查收
  811. function cs(str) {
  812. layer.confirm(
  813. "确定要查收?", {
  814. btn: ["是", "否"], //按钮
  815. },
  816. function () {
  817. $.post(
  818. huayi.config.callcenter_url +
  819. "WorkOrder/ReceiveWorkOrder", {
  820. workorderid: str,
  821. token: $.cookie("token"),
  822. },
  823. function (result) {
  824. result = JSON.parse(result);
  825. if (result.state.toLowerCase() == "success") {
  826. layer.msg("查收成功");
  827. //load();
  828. $("#orderlist").bootstrapTable("refresh");
  829. }
  830. }
  831. );
  832. }
  833. );
  834. }
  835. //收回
  836. function sh(str) {
  837. layer.confirm(
  838. "确定要回收?", {
  839. btn: ["是", "否"], //按钮
  840. },
  841. function () {
  842. $.post(
  843. huayi.config.callcenter_url +
  844. "WorkOrder/TakeBackWorkOrder", {
  845. workorderid: str,
  846. token: $.cookie("token"),
  847. },
  848. function (result) {
  849. result = JSON.parse(result);
  850. if (result.state.toLowerCase() == "success") {
  851. layer.msg("回收");
  852. //load();
  853. $("#orderlist").bootstrapTable("refresh");
  854. }
  855. }
  856. );
  857. }
  858. );
  859. }
  860. //强制回收
  861. function recycles() {
  862. layer.confirm("确定要强制退回吗?", {
  863. btn: ["是", "否"], //按钮
  864. });
  865. }
  866. //退回申请
  867. function th(str) {
  868. layer.open({
  869. type: 2,
  870. content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  871. title: "申请退回工单",
  872. area: ["60%", "80%"], //宽高
  873. });
  874. }
  875. //审核退回申请
  876. function shth(str) {
  877. layer.open({
  878. type: 2,
  879. content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
  880. title: "审核退回申请",
  881. area: ["60%", "80%"], //宽高
  882. });
  883. }
  884. //申请延时
  885. function ys(str) {
  886. layer.open({
  887. type: 2,
  888. content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  889. title: "申请延时",
  890. area: ["60%", "80%"], //宽高
  891. });
  892. }
  893. //审核申请延时
  894. function shys(str) {
  895. layer.open({
  896. type: 2,
  897. content: "../CommonHtml/shTime.html?wid=" + str, //iframe的url,no代表不显示滚动条
  898. title: "审核延时申请",
  899. area: ["60%", "80%"], //宽高
  900. });
  901. }
  902. //诉求回访
  903. function hf(str) {
  904. layer.open({
  905. type: 2,
  906. content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
  907. title: "工单回访",
  908. area: ["60%", "80%"], //宽高
  909. });
  910. }
  911. //重办工单
  912. function cb(str) {
  913. layer.open({
  914. type: 2,
  915. content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
  916. title: "重办工单",
  917. area: ["60%", "80%"], //宽高
  918. });
  919. }
  920. //驳回重办
  921. function bhcb(str) {
  922. //回退BackDtail
  923. layer.open({
  924. type: 2,
  925. content: "../CommonHtml/rejectionCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  926. title: "驳回重办",
  927. area: ["60%", "80%"], //宽高
  928. });
  929. }
  930. //提交重办
  931. function tjcb(str) {
  932. layer.open({
  933. type: 2,
  934. content: "../CommonHtml/reasonCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  935. title: "提交重办",
  936. area: ["50%", "40%"], //宽高
  937. });
  938. // layer.confirm('确认提交重办吗?', {
  939. // btn: ['是', '否'] //按钮
  940. // }, function () {
  941. // $.post(huayi.config.callcenter_url + 'WorkOrder/SubReloadWorkOrder', {
  942. // ids: str,
  943. // "token": $.cookie("token")
  944. // }, function(result) {
  945. // result = JSON.parse(result);
  946. // if(result.state.toLowerCase() == "success") {
  947. // layer.msg("操作成功");
  948. // //load();
  949. // $("#orderlist").bootstrapTable('refresh');
  950. // }
  951. // })
  952. // });
  953. }
  954. //结案
  955. function Lawsuit(str) {
  956. layer.open({
  957. type: 2,
  958. content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  959. title: "诉求单结案",
  960. area: ["60%", "80%"], //宽高
  961. });
  962. }
  963. //上传文件
  964. function upload() {
  965. if (document.getElementById("upFile").files.length > 0) {
  966. var formData = new FormData();
  967. formData.append(
  968. "upFile",
  969. document.getElementById("upFile").files[0]
  970. );
  971. formData.append("token", $.cookie("token"));
  972. $.ajax({
  973. url: huayi.config.callcenter_url +
  974. "/WorkOrder/UploadFile",
  975. type: "POST",
  976. data: formData,
  977. /**
  978. *必须false才会自动加上正确的Content-Type
  979. */
  980. contentType: false,
  981. /**
  982. * 必须false才会避开jQuery对 formdata 的默认处理
  983. * XMLHttpRequest会对 formdata 进行正确的处理
  984. */
  985. processData: false,
  986. success: function (result) {
  987. document.getElementById(
  988. "upFile"
  989. ).outerHTML = document.getElementById(
  990. "upFile"
  991. ).outerHTML;
  992. $("#upFile").change(function () {
  993. upload();
  994. });
  995. var r = $.parseJSON(result);
  996. if (r.state.toLowerCase() == "success") {
  997. $(".fjnr").text(r.data);
  998. $("#scfj").show();
  999. }
  1000. },
  1001. });
  1002. } else {
  1003. layer.confirm("请上传文件!", {
  1004. btn: ["确定"],
  1005. });
  1006. }
  1007. }
  1008. //来源
  1009. function LY(obj) {
  1010. obj.empty();
  1011. obj.append(
  1012. '<option selected="selected" value="">请选择</option>'
  1013. );
  1014. $.getJSON(
  1015. huayi.config.callcenter_url +
  1016. "Dictionary/GetDicValueListById", {
  1017. token: $.cookie("token"),
  1018. id: 1,
  1019. },
  1020. function (data) {
  1021. if (data.state.toLowerCase() == "success") {
  1022. var content = data.data;
  1023. $(content).each(function (i, n) {
  1024. $(
  1025. "<option value='" +
  1026. n.F_ValueId +
  1027. "'>" +
  1028. n.F_Value +
  1029. "</option>"
  1030. ).appendTo(obj);
  1031. });
  1032. }
  1033. }
  1034. );
  1035. }
  1036. //类别
  1037. function LB(obj) {
  1038. obj.empty();
  1039. obj.append(
  1040. '<option selected="selected" value="">请选择</option>'
  1041. );
  1042. $.getJSON(
  1043. huayi.config.callcenter_url +
  1044. "Dictionary/GetDicValueListById", {
  1045. token: $.cookie("token"),
  1046. id: 2,
  1047. },
  1048. function (data) {
  1049. if (data.state.toLowerCase() == "success") {
  1050. var content = data.data;
  1051. $(content).each(function (i, n) {
  1052. $(
  1053. "<option value='" +
  1054. n.F_ValueId +
  1055. "'>" +
  1056. n.F_Value +
  1057. "</option>"
  1058. ).appendTo(obj);
  1059. });
  1060. }
  1061. }
  1062. );
  1063. }
  1064. // 主题
  1065. function ZT(obj) {
  1066. obj.empty();
  1067. obj.append(
  1068. '<option selected="selected" value="">请选择</option>'
  1069. );
  1070. $.getJSON(
  1071. huayi.config.callcenter_url +
  1072. "Dictionary/GetDicValueListById", {
  1073. token: $.cookie("token"),
  1074. id: 3,
  1075. },
  1076. function (data) {
  1077. if (data.state.toLowerCase() == "success") {
  1078. var content = data.data;
  1079. $(content).each(function (i, n) {
  1080. $(
  1081. "<option value='" +
  1082. n.F_ValueId +
  1083. "'>" +
  1084. n.F_Value +
  1085. "</option>"
  1086. ).appendTo(obj);
  1087. });
  1088. }
  1089. }
  1090. );
  1091. }
  1092. function tree() {
  1093. $.get(
  1094. huayi.config.callcenter_url + "Department/GetDeptList", {
  1095. token: $.cookie("token"),
  1096. // "pid": pid
  1097. },
  1098. function (result) {
  1099. result = $.parseJSON(result);
  1100. $.fn.zTree.init(
  1101. $("#addTreeDemo"),
  1102. setting1,
  1103. result.data
  1104. ); //实例化树形图
  1105. }
  1106. );
  1107. }
  1108. var setting1 = {
  1109. data: {
  1110. key: {
  1111. name: "F_DeptName",
  1112. },
  1113. simpleData: {
  1114. enable: true,
  1115. idKey: "F_DeptId",
  1116. pIdKey: "F_PartentId",
  1117. rootPId: 0,
  1118. },
  1119. },
  1120. callback: {
  1121. onClick: zTreeOnClick,
  1122. },
  1123. };
  1124. function zTreeOnClick(event, treeId, treeNode) {
  1125. if (treeNode.level >= 2) {
  1126. $(".inps").val(treeNode.F_DeptName);
  1127. $("#PID").val(treeNode.F_DeptId);
  1128. $("#Dpment").val(treeNode.F_DeptId);
  1129. $(".Cleans").show();
  1130. }
  1131. }
  1132. function Close() {
  1133. $(".lyxz").removeClass("cx");
  1134. if ($("audio").length > 0) {
  1135. $("audio")[0].pause();
  1136. }
  1137. }
  1138. $(".exportFile").click(function () {
  1139. var usercode_ = $("#ZX").val(); //坐席
  1140. if (usercode_ != null) {
  1141. $(usercode_).each(function (i, n) {
  1142. var obj1 = "";
  1143. obj1 = n + ",";
  1144. usercodeID += obj1;
  1145. });
  1146. } else {
  1147. usercodeID = "";
  1148. }
  1149. // 调度员
  1150. var ddusercodeID = "";
  1151. var ddusercode_ = $("#yardman").val(); //坐席
  1152. if (ddusercode_ != null) {
  1153. $(ddusercode_).each(function (i, n) {
  1154. var obj2 = "";
  1155. obj2 = n + ",";
  1156. ddusercodeID += obj2;
  1157. });
  1158. } else {
  1159. ddusercodeID = "";
  1160. }
  1161. var isproresult = isproresult // 已办未果
  1162. var key = $("#key").val() //=关键字
  1163. var tel = $("#tel").val() //=客户电话
  1164. var name = $("#name").val() //=客户名称
  1165. var usercode = usercodeID //=坐席工号
  1166. var ddusercode = ddusercodeID
  1167. var source = $("#source").val() //=来源&
  1168. var starttime = $("#starttime").val() //=开始时间
  1169. var endtime = $("#endtime").val() //=结束时间
  1170. var deptid = $("#PID").val()
  1171. var type = $("#type").val() //=工单类型
  1172. var dealtype = $("#dealtype").val()
  1173. var sourcearea = $("#sourceAreas").val() //区域
  1174. var workid = $("#wids").val()
  1175. var state = 6 //=工单状态
  1176. var keyid = $("#keyid").val() //=关键词id
  1177. var url = huayi.config.callcenter_url + "WorkOrder/GetList?token=" + $.cookie("token");
  1178. url += "&isproresult=" + isproresult + "&workid=" + workid + "&state=" + state + "&type=" + type +
  1179. "&key=" + key + "&tel=" + tel + "&name=" + name + "&usercode=" + usercode + "&ddusercode=" +
  1180. ddusercode + "&keyid=" + keyid + "&source=" + source + "&starttime=" + starttime + "&endtime=" +
  1181. endtime + "&deptid=" + deptid + "&sourcearea=" + sourcearea + "&dealtype=" + dealtype +
  1182. "&isdc=1";
  1183. window.location.href = url;
  1184. })
  1185. </script>
  1186. </body>
  1187. </html>