Sin descripción

WorkIsproresultMarketing.html 48KB

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