Geen omschrijving

LawsuitOtherPhone.html 52KB

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