Nessuna descrizione

WorkIsproresultMarketing.html 50KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205
  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 isproresult = 1
  315. $(document).ready(function () {
  316. var wid = helper.request.queryString("wid");
  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: 3, // 多媒体
  436. token: $.cookie("token"),
  437. };
  438. return param;
  439. },
  440. onLoadSuccess: function (data) {
  441. //加载成功时执行
  442. // layer.msg("加载成功");
  443. //console.log(data);
  444. },
  445. onLoadError: function () {
  446. //加载失败时执行
  447. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  448. },
  449. });
  450. }
  451. //状态
  452. function States(val, row) {
  453. var html = "";
  454. switch (val + "") {
  455. case "0":
  456. html = "新工单";
  457. if (row.F_IsReturn == 1) {
  458. html = "新工单(回退)";
  459. }
  460. break;
  461. case "1":
  462. html = "待交办";
  463. break;
  464. case "2":
  465. html = '<span style="color:#FF0000;">待查收</span>';
  466. break;
  467. case "3":
  468. html = "退回审核中";
  469. break;
  470. case "4":
  471. html = "办理中";
  472. break;
  473. case "5":
  474. html = "延时审核";
  475. break;
  476. case "6":
  477. html = "已办理";
  478. break;
  479. case "7":
  480. html = "已回访";
  481. break;
  482. case "8":
  483. html = "重办中";
  484. break;
  485. case "9":
  486. html = "已结案";
  487. break;
  488. case "10":
  489. html = "待审核";
  490. break;
  491. case "11":
  492. html = "重办待交办";
  493. break;
  494. // case '12':
  495. // html = '待审核';
  496. // break;
  497. case "13":
  498. html = "重办驳回";
  499. break;
  500. }
  501. return html;
  502. }
  503. //音频
  504. function setCode(val) {
  505. if (val) {
  506. return (
  507. '<div class="imgs" style="cursor: pointer;">' +
  508. '<img src="../img/vice.png" alt="" onclick= "helper.luyin.view(this)" item="' +
  509. val +
  510. '" />' +
  511. "</div>"
  512. );
  513. } else {
  514. return "";
  515. }
  516. }
  517. //编号
  518. function serialNumber(val, row, index) {
  519. return index + 1;
  520. }
  521. function GetCont(val) {
  522. if (val) {
  523. var str = "<div ";
  524. if (val.length > 10) {
  525. str = str + ' title="' + val + '" ';
  526. val = val.substr(0, 10) + "...";
  527. }
  528. return str + ">" + val + "</div>";
  529. } else {
  530. return "";
  531. }
  532. }
  533. //操作
  534. function Dispose(val, row) {
  535. var Rows = row.Buttons;
  536. var html = "";
  537. for (var i = 0; i < Rows.length; i++) {
  538. var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
  539. if (html1) {
  540. html1 = html1.replace("data", val);
  541. html1 = html1.replace("isProtect", row.F_IsProtect);
  542. html1 = html1.replace("row", row.F_MainDeptId);
  543. }
  544. html += html1;
  545. }
  546. return html;
  547. }
  548. //查看详情
  549. function ckxq(str) {
  550. layer.open({
  551. type: 2,
  552. // content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  553. content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  554. title: "工单详情",
  555. area: ["100%", "100%"], //宽高
  556. });
  557. }
  558. //时限
  559. function OverTime(val, row) {
  560. if (val == 1) {
  561. return (
  562. '<div class="" style="cursor: pointer;">' +
  563. '<span class="Greens">' +
  564. row.GapTime +
  565. "</span>" +
  566. "</div>"
  567. );
  568. } else if (val == 2) {
  569. return (
  570. '<div class="" style="cursor: pointer;">' +
  571. '<span class="Yellows">' +
  572. row.GapTime +
  573. "</span>" +
  574. "</div>"
  575. );
  576. } else if (val == 3) {
  577. return (
  578. '<div class="" style="cursor: pointer;">' +
  579. '<span class="Reds">' +
  580. row.GapTime +
  581. "</span>" +
  582. "</div>"
  583. );
  584. }
  585. }
  586. //办理时限
  587. function BanTime(val) {
  588. if (val) {
  589. var time = val.substring(0, val.indexOf(" "));
  590. return (
  591. '<div class="" style="cursor: pointer;">' +
  592. "<span>" +
  593. time +
  594. "</span>" +
  595. "</div>"
  596. );
  597. }
  598. }
  599. //派单
  600. function pd(str) {
  601. layer.open({
  602. type: 2,
  603. content: "../CommonHtml/handle.html?wid=" + str, //iframe的url,no代表不显示滚动条
  604. title: "办理工单",
  605. area: ["87%", "80%"], //宽高
  606. });
  607. }
  608. //处理审核
  609. function auditdeal(str) {
  610. layer.open({
  611. type: 2,
  612. content: "../CommonHtml/processing_audit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  613. title: "处理审核",
  614. area: ["80%", "80%"], //宽高
  615. });
  616. }
  617. //编辑
  618. function bj(str) {
  619. layer.open({
  620. type: 2,
  621. content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
  622. title: "编辑工单",
  623. area: ["96%", "80%"], //宽高
  624. });
  625. }
  626. //删除
  627. function move(str) {
  628. layer.confirm(
  629. "确定删除工单?", {
  630. btn: ["是", "否"], //按钮
  631. },
  632. function () {
  633. $.post(
  634. huayi.config.callcenter_url +
  635. "WorkOrder/DelWorkOrder", {
  636. ids: str,
  637. token: $.cookie("token"),
  638. },
  639. function (result) {
  640. result = JSON.parse(result);
  641. if (result.state.toLowerCase() == "success") {
  642. debugger;
  643. layer.msg("删除成功");
  644. $("#orderlist").bootstrapTable("refresh");
  645. }
  646. }
  647. );
  648. }
  649. );
  650. }
  651. //提交
  652. function tj(str) {
  653. layer.confirm(
  654. "确定要提交工单么?", {
  655. btn: ["确定", "取消"], //按钮
  656. },
  657. function () {
  658. //请求后台数据
  659. /*发送请求*/
  660. $.post(
  661. huayi.config.callcenter_url +
  662. "WorkOrder/SubmitWorkOrder", {
  663. ids: str,
  664. token: $.cookie("token"),
  665. },
  666. function (result) {
  667. result = JSON.parse(result);
  668. if (result.state.toLowerCase() == "success") {
  669. layer.msg("提交成功");
  670. $("#orderlist").bootstrapTable("refresh");
  671. //load();
  672. }
  673. }
  674. );
  675. }
  676. );
  677. }
  678. //交办
  679. function jb(str) {
  680. layer.open({
  681. type: 2,
  682. content: "../CommonHtml/jiaoban.html?wid=" + str, //iframe的url,no代表不显示滚动条
  683. title: "工单交办",
  684. area: ["87%", "80%"], //宽高
  685. });
  686. }
  687. //领导批示
  688. function lader(str) {
  689. layer.open({
  690. type: 2,
  691. content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
  692. title: "领导批示",
  693. area: ["60%", "80%"], //宽高
  694. });
  695. }
  696. //市长批示
  697. function city(str) {
  698. layer.open({
  699. type: 2,
  700. content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
  701. title: "市长批示",
  702. area: ["60%", "80%"], //宽高
  703. });
  704. }
  705. //办理
  706. function bl(str, isProtect) {
  707. layer.open({
  708. type: 2,
  709. content: "../CommonHtml/banli.html?wid=" +
  710. str +
  711. "&isProtect=" +
  712. isProtect, //iframe的url,no代表不显示滚动条
  713. title: "办理工单",
  714. area: ["60%", "80%"], //宽高
  715. });
  716. }
  717. //督办
  718. function Supervision(str) {
  719. layer.open({
  720. type: 2,
  721. content: "../CommonHtml/Supervision_.html?wid=" +
  722. str +
  723. "&type=1", //iframe的url,no代表不显示滚动条
  724. title: "督办",
  725. area: ["60%", "80%"], //宽高
  726. });
  727. }
  728. //督查
  729. function Supervision_(str) {
  730. layer.open({
  731. type: 2,
  732. content: "../CommonHtml/Supervision_.html?wid=" +
  733. str +
  734. "&type=2", //iframe的url,no代表不显示滚动条
  735. title: "监察",
  736. area: ["60%", "80%"], //宽高
  737. });
  738. }
  739. //审核
  740. function audit(str) {
  741. layer.open({
  742. type: 2,
  743. content: "../CommonHtml/AuditDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  744. title: "审核",
  745. area: ["60%", "80%"], //宽高
  746. });
  747. }
  748. //转督办
  749. function zdb(str, row) {
  750. layer.open({
  751. type: 2,
  752. content: "../CommonHtml/superTrunl.html?wid=" +
  753. str +
  754. "&depId=" +
  755. row, //iframe的url,no代表不显示滚动条
  756. title: "督办工单",
  757. area: ["60%", "80%"], //宽高
  758. });
  759. }
  760. //不督办
  761. function ndb(str) {
  762. layer.confirm(
  763. "确定督办吗?", {
  764. btn: ["是", "否"], //按钮
  765. },
  766. function () {
  767. $.post(
  768. huayi.config.callcenter_url +
  769. "WorkOrder/RemindWorkOrder", {
  770. workorderid: str,
  771. type: 1,
  772. state: 2,
  773. token: $.cookie("token"),
  774. },
  775. function (result) {
  776. result = JSON.parse(result);
  777. if (result.state.toLowerCase() == "success") {
  778. layer.msg("操作成功");
  779. //load();
  780. $("#orderlist").bootstrapTable("refresh");
  781. }
  782. }
  783. );
  784. }
  785. );
  786. }
  787. //强制结案
  788. function StrongLawsuit(str) {
  789. layer.open({
  790. type: 2,
  791. content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  792. title: "强制结案",
  793. area: ["60%", "80%"], //宽高
  794. });
  795. }
  796. //回退BackDtail
  797. function BackDtail(str) {
  798. layer.open({
  799. type: 2,
  800. content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  801. title: "工单督办",
  802. area: ["60%", "80%"], //宽高
  803. });
  804. }
  805. //查收
  806. function cs(str) {
  807. layer.confirm(
  808. "确定要查收?", {
  809. btn: ["是", "否"], //按钮
  810. },
  811. function () {
  812. $.post(
  813. huayi.config.callcenter_url +
  814. "WorkOrder/ReceiveWorkOrder", {
  815. workorderid: str,
  816. token: $.cookie("token"),
  817. },
  818. function (result) {
  819. result = JSON.parse(result);
  820. if (result.state.toLowerCase() == "success") {
  821. layer.msg("查收成功");
  822. //load();
  823. $("#orderlist").bootstrapTable("refresh");
  824. }
  825. }
  826. );
  827. }
  828. );
  829. }
  830. //收回
  831. function sh(str) {
  832. layer.confirm(
  833. "确定要回收?", {
  834. btn: ["是", "否"], //按钮
  835. },
  836. function () {
  837. $.post(
  838. huayi.config.callcenter_url +
  839. "WorkOrder/TakeBackWorkOrder", {
  840. workorderid: str,
  841. token: $.cookie("token"),
  842. },
  843. function (result) {
  844. result = JSON.parse(result);
  845. if (result.state.toLowerCase() == "success") {
  846. layer.msg("回收");
  847. //load();
  848. $("#orderlist").bootstrapTable("refresh");
  849. }
  850. }
  851. );
  852. }
  853. );
  854. }
  855. //强制回收
  856. function recycles() {
  857. layer.confirm("确定要强制退回吗?", {
  858. btn: ["是", "否"], //按钮
  859. });
  860. }
  861. //退回申请
  862. function th(str) {
  863. layer.open({
  864. type: 2,
  865. content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  866. title: "申请退回工单",
  867. area: ["60%", "80%"], //宽高
  868. });
  869. }
  870. //审核退回申请
  871. function shth(str) {
  872. layer.open({
  873. type: 2,
  874. content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
  875. title: "审核退回申请",
  876. area: ["60%", "80%"], //宽高
  877. });
  878. }
  879. //申请延时
  880. function ys(str) {
  881. layer.open({
  882. type: 2,
  883. content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  884. title: "申请延时",
  885. area: ["60%", "80%"], //宽高
  886. });
  887. }
  888. //审核申请延时
  889. function shys(str) {
  890. layer.open({
  891. type: 2,
  892. content: "../CommonHtml/shTime.html?wid=" + str, //iframe的url,no代表不显示滚动条
  893. title: "审核延时申请",
  894. area: ["60%", "80%"], //宽高
  895. });
  896. }
  897. //诉求回访
  898. function hf(str) {
  899. layer.open({
  900. type: 2,
  901. content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
  902. title: "工单回访",
  903. area: ["60%", "80%"], //宽高
  904. });
  905. }
  906. //重办工单
  907. function cb(str) {
  908. layer.open({
  909. type: 2,
  910. content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
  911. title: "重办工单",
  912. area: ["60%", "80%"], //宽高
  913. });
  914. }
  915. //驳回重办
  916. function bhcb(str) {
  917. //回退BackDtail
  918. layer.open({
  919. type: 2,
  920. content: "../CommonHtml/rejectionCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  921. title: "驳回重办",
  922. area: ["60%", "80%"], //宽高
  923. });
  924. }
  925. //提交重办
  926. function tjcb(str) {
  927. layer.open({
  928. type: 2,
  929. content: "../CommonHtml/reasonCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  930. title: "提交重办",
  931. area: ["50%", "40%"], //宽高
  932. });
  933. // layer.confirm('确认提交重办吗?', {
  934. // btn: ['是', '否'] //按钮
  935. // }, function () {
  936. // $.post(huayi.config.callcenter_url + 'WorkOrder/SubReloadWorkOrder', {
  937. // ids: str,
  938. // "token": $.cookie("token")
  939. // }, function(result) {
  940. // result = JSON.parse(result);
  941. // if(result.state.toLowerCase() == "success") {
  942. // layer.msg("操作成功");
  943. // //load();
  944. // $("#orderlist").bootstrapTable('refresh');
  945. // }
  946. // })
  947. // });
  948. }
  949. //结案
  950. function Lawsuit(str) {
  951. layer.open({
  952. type: 2,
  953. content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  954. title: "诉求单结案",
  955. area: ["60%", "80%"], //宽高
  956. });
  957. }
  958. //上传文件
  959. function upload() {
  960. if (document.getElementById("upFile").files.length > 0) {
  961. var formData = new FormData();
  962. formData.append(
  963. "upFile",
  964. document.getElementById("upFile").files[0]
  965. );
  966. formData.append("token", $.cookie("token"));
  967. $.ajax({
  968. url: huayi.config.callcenter_url +
  969. "/WorkOrder/UploadFile",
  970. type: "POST",
  971. data: formData,
  972. /**
  973. *必须false才会自动加上正确的Content-Type
  974. */
  975. contentType: false,
  976. /**
  977. * 必须false才会避开jQuery对 formdata 的默认处理
  978. * XMLHttpRequest会对 formdata 进行正确的处理
  979. */
  980. processData: false,
  981. success: function (result) {
  982. document.getElementById(
  983. "upFile"
  984. ).outerHTML = document.getElementById(
  985. "upFile"
  986. ).outerHTML;
  987. $("#upFile").change(function () {
  988. upload();
  989. });
  990. var r = $.parseJSON(result);
  991. if (r.state.toLowerCase() == "success") {
  992. $(".fjnr").text(r.data);
  993. $("#scfj").show();
  994. }
  995. },
  996. });
  997. } else {
  998. layer.confirm("请上传文件!", {
  999. btn: ["确定"],
  1000. });
  1001. }
  1002. }
  1003. //来源
  1004. function LY(obj) {
  1005. obj.empty();
  1006. obj.append(
  1007. '<option selected="selected" value="">请选择</option>'
  1008. );
  1009. $.getJSON(
  1010. huayi.config.callcenter_url +
  1011. "Dictionary/GetDicValueListById", {
  1012. token: $.cookie("token"),
  1013. id: 1,
  1014. },
  1015. function (data) {
  1016. if (data.state.toLowerCase() == "success") {
  1017. var content = data.data;
  1018. $(content).each(function (i, n) {
  1019. $(
  1020. "<option value='" +
  1021. n.F_ValueId +
  1022. "'>" +
  1023. n.F_Value +
  1024. "</option>"
  1025. ).appendTo(obj);
  1026. });
  1027. }
  1028. }
  1029. );
  1030. }
  1031. //类别
  1032. function LB(obj) {
  1033. obj.empty();
  1034. obj.append(
  1035. '<option selected="selected" value="">请选择</option>'
  1036. );
  1037. $.getJSON(
  1038. huayi.config.callcenter_url +
  1039. "Dictionary/GetDicValueListById", {
  1040. token: $.cookie("token"),
  1041. id: 2,
  1042. },
  1043. function (data) {
  1044. if (data.state.toLowerCase() == "success") {
  1045. var content = data.data;
  1046. $(content).each(function (i, n) {
  1047. $(
  1048. "<option value='" +
  1049. n.F_ValueId +
  1050. "'>" +
  1051. n.F_Value +
  1052. "</option>"
  1053. ).appendTo(obj);
  1054. });
  1055. }
  1056. }
  1057. );
  1058. }
  1059. // 主题
  1060. function ZT(obj) {
  1061. obj.empty();
  1062. obj.append(
  1063. '<option selected="selected" value="">请选择</option>'
  1064. );
  1065. $.getJSON(
  1066. huayi.config.callcenter_url +
  1067. "Dictionary/GetDicValueListById", {
  1068. token: $.cookie("token"),
  1069. id: 3,
  1070. },
  1071. function (data) {
  1072. if (data.state.toLowerCase() == "success") {
  1073. var content = data.data;
  1074. $(content).each(function (i, n) {
  1075. $(
  1076. "<option value='" +
  1077. n.F_ValueId +
  1078. "'>" +
  1079. n.F_Value +
  1080. "</option>"
  1081. ).appendTo(obj);
  1082. });
  1083. }
  1084. }
  1085. );
  1086. }
  1087. function tree() {
  1088. $.get(
  1089. huayi.config.callcenter_url + "Department/GetDeptList", {
  1090. token: $.cookie("token"),
  1091. // "pid": pid
  1092. },
  1093. function (result) {
  1094. result = $.parseJSON(result);
  1095. $.fn.zTree.init(
  1096. $("#addTreeDemo"),
  1097. setting1,
  1098. result.data
  1099. ); //实例化树形图
  1100. }
  1101. );
  1102. }
  1103. var setting1 = {
  1104. data: {
  1105. key: {
  1106. name: "F_DeptName",
  1107. },
  1108. simpleData: {
  1109. enable: true,
  1110. idKey: "F_DeptId",
  1111. pIdKey: "F_PartentId",
  1112. rootPId: 0,
  1113. },
  1114. },
  1115. callback: {
  1116. onClick: zTreeOnClick,
  1117. },
  1118. };
  1119. function zTreeOnClick(event, treeId, treeNode) {
  1120. if (treeNode.level >= 2) {
  1121. $(".inps").val(treeNode.F_DeptName);
  1122. $("#PID").val(treeNode.F_DeptId);
  1123. $("#Dpment").val(treeNode.F_DeptId);
  1124. $(".Cleans").show();
  1125. }
  1126. }
  1127. function Close() {
  1128. $(".lyxz").removeClass("cx");
  1129. if ($("audio").length > 0) {
  1130. $("audio")[0].pause();
  1131. }
  1132. }
  1133. $(".exportFile").click(function () {
  1134. var usercode_ = $("#ZX").val(); //坐席
  1135. if (usercode_ != null) {
  1136. $(usercode_).each(function (i, n) {
  1137. var obj1 = "";
  1138. obj1 = n + ",";
  1139. usercodeID += obj1;
  1140. });
  1141. } else {
  1142. usercodeID = "";
  1143. }
  1144. // 调度员
  1145. var ddusercodeID = "";
  1146. var ddusercode_ = $("#yardman").val(); //坐席
  1147. if (ddusercode_ != null) {
  1148. $(ddusercode_).each(function (i, n) {
  1149. var obj2 = "";
  1150. obj2 = n + ",";
  1151. ddusercodeID += obj2;
  1152. });
  1153. } else {
  1154. ddusercodeID = "";
  1155. }
  1156. var isproresult = isproresult // 已办未果
  1157. var key = $("#key").val() //=关键字
  1158. var tel = $("#tel").val() //=客户电话
  1159. var name = $("#name").val() //=客户名称
  1160. var usercode = usercodeID //=坐席工号
  1161. var ddusercode = ddusercodeID
  1162. var source = $("#source").val() //=来源&
  1163. var starttime = $("#starttime").val() //=开始时间
  1164. var endtime = $("#endtime").val() //=结束时间
  1165. var deptid = $("#PID").val()
  1166. var type = $("#type").val() //=工单类型
  1167. var dealtype = $("#dealtype").val()
  1168. var sourcearea = $("#sourceAreas").val() //区域
  1169. var workid = $("#wids").val()
  1170. var state = 6 //=工单状态
  1171. var keyid = $("#keyid").val() //=关键词id
  1172. var url = huayi.config.callcenter_url + "WorkOrder/GetList?token=" + $.cookie("token");
  1173. url += "&isproresult=" + isproresult + "&workid=" + workid + "&state=" + state + "&type=" + type +
  1174. "&key=" + key + "&tel=" + tel + "&name=" + name + "&usercode=" + usercode + "&ddusercode=" +
  1175. ddusercode + "&keyid=" + keyid + "&source=" + source + "&starttime=" + starttime + "&endtime=" +
  1176. endtime + "&deptid=" + deptid + "&sourcearea=" + sourcearea + "&dealtype=" + dealtype +
  1177. "&jianhang=1" + "&isdc=1";
  1178. window.location.href = url;
  1179. })
  1180. </script>
  1181. </body>
  1182. </html>