Nav apraksta

LawsuitOtherPhone.html 52KB

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