Нет описания

WorkIsproresult.html 50KB

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