Sin descripción

superviseReplyPendingReview.html 38KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924
  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="../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">
  39. </select>
  40. </td>
  41. <th>来电号码:</th>
  42. <td>
  43. <input type="text" id="tel" class="form-control" />
  44. </td>
  45. <th>转督办时间:</th>
  46. <td colspan="3">
  47. <input type="text" id="dbstarttime" class="photo x-color laydate-icon"
  48. autocomplete="off" style="height: 35px;" />&nbsp;——&nbsp;<input type="text"
  49. id="dbstrendtime" class="photo x-color laydate-icon" autocomplete="off"
  50. style="height: 35px;" />
  51. </td>
  52. <!-- <th>录入时间:</th>
  53. <td colspan="3">
  54. <input type="text" id="starttime" class="photo x-color laydate-icon"
  55. autocomplete="off" style="height: 35px;" />&nbsp;——&nbsp;<input type="text"
  56. id="endtime" class="photo x-color laydate-icon" autocomplete="off"
  57. style="height: 35px;" />
  58. </td> -->
  59. </tr>
  60. <tr>
  61. <th>事项编号:</th>
  62. <td>
  63. <input type="text" placeholder="输入工单号" id="wids" class="form-control" />
  64. </td>
  65. <th><span class="nameJustified">来电人:</span></th>
  66. <td>
  67. <input type="text" id="name" class="form-control" />
  68. </td>
  69. <th>办理时间:</th>
  70. <td colspan="3">
  71. <input id="dealstarttime" class="photo x-color laydate-icon" type="text"
  72. autocomplete="off" style="height: 35px;" />&nbsp;——&nbsp;<input
  73. id="dealstrendtime" class="photo x-color laydate-icon" type="text"
  74. autocomplete="off" style="height: 35px;" />
  75. </td>
  76. </tr>
  77. <tr>
  78. <th><span class="nameJustified">转督办:</span></th>
  79. <td>
  80. <select id="auditorMultimediaPersonnel" name="select"
  81. class="selectpicker show-tick form-control" data-live-search="true">
  82. <option value="">请选择</option>
  83. </select>
  84. </td>
  85. <th><span class="nameJustified">审核员:</span></th>
  86. <td>
  87. <select id="yardman" name="select" class="selectpicker show-tick form-control"
  88. multiple data-live-search="true">
  89. <option value="">请选择调度员</option>
  90. </select>
  91. </td>
  92. <th>反映区域:</th>
  93. <td>
  94. <select name="" id="sourceAreas" class="form-control Min-width">
  95. </select>
  96. <botton class="btns Seach">搜索</botton>
  97. </td>
  98. <!-- <th><span class="nameJustified">关键字:</span></th>
  99. <td>
  100. <input type="text" placeholder="输入关键字" id="key" class="form-control Min-width" />
  101. </td> -->
  102. </tr>
  103. <tr>
  104. <th>承办单位:</th>
  105. <td style="position: relative;">
  106. <div class="inpBox">
  107. <input type="text" class="inps" />
  108. <i class="Cleans fa fa-close"></i>
  109. <i class="xl xl_one"></i>
  110. <div class="addTree xlAdd">
  111. <ul id="addTreeDemo" class="ztree"></ul>
  112. </div>
  113. </div>
  114. <div class="selDpart1">
  115. <ul id="sponsor">
  116. </ul>
  117. </div>
  118. </td>
  119. <th>来电类型:</th>
  120. <td>
  121. <select class="form-control" id="type">
  122. </select>
  123. </td>
  124. <th>办理结果:</th>
  125. <td>
  126. <input type="text" placeholder="输入办理结果" id="result"
  127. class="form-control Min-width" />
  128. <botton class="btns exportFile">导出</botton>
  129. </td>
  130. </tr>
  131. <tr>
  132. <th>反映类别:</th>
  133. <td class="reflectCategory-wrapper">
  134. <input type="text" id="reflectCategory" class="form-control" autocomplete="off" />
  135. <i class="CleansReactionCategory fa fa-close"></i>
  136. <input type="hidden" id="keyid" />
  137. <div class="reflectCategoryList-wrapper">
  138. <ul id="reflectCategoryList">
  139. </ul>
  140. </div>
  141. </td>
  142. <th>工单标题:</th>
  143. <td>
  144. <input type="text" placeholder="输入工单标题" id="comtitle" class="form-control" />
  145. </td>
  146. <th>来电内容:</th>
  147. <td>
  148. <input type="text" placeholder="输入来电内容" id="comContent"
  149. class="form-control Min-width" />
  150. </td>
  151. </tr>
  152. </tr>
  153. </table>
  154. </div>
  155. </div>
  156. <div>
  157. <div style="width: 100%;padding: 10px;">
  158. <table id="orderlist" data-row-style="rowStyle" data-query-params="queryParams"
  159. data-pagination="true">
  160. <thead>
  161. <tr>
  162. <th data-formatter="serialNumber" data-align="center">
  163. 序号
  164. </th>
  165. <th data-field="F_WorkOrderId" data-formatter="View" data-align="center">工单单号</th>
  166. <!-- <th data-field="F_ComTitle" data-formatter="GetCont" data-align="center">诉求标题</th> -->
  167. <th data-field="F_ComContent" data-formatter="GetCont" data-align="center">工单内容</th>
  168. <th data-field="F_WorkOrderId" data-formatter="Dispose" data-align="center">操作</th>
  169. </tr>
  170. </thead>
  171. <tbody class="list"></tbody>
  172. </table>
  173. </div>
  174. </div>
  175. </div>
  176. </div>
  177. <!--下载框-->
  178. <div class="t-shade lyxz">
  179. <div class="shade_k">
  180. <div class="shade_title">
  181. <span>录音播放与下载<srong class="cknum"></srong></span>
  182. <span class="setwin gbly"><a>x</a></span>
  183. </div>
  184. <div class="shade_content">
  185. <div class="Ly_box audiojs">
  186. </div>
  187. </div>
  188. </div>
  189. </div>
  190. <input type="hidden" id="PID" />
  191. <input type="hidden" id="Dpment" />
  192. </div>
  193. <script src="../js/layui/layui.js"></script>
  194. <script src="../js/bootstrap-select.js"></script>
  195. <script src="../css/laydate/laydate.js"></script>
  196. <script src="../My97DatePicker/WdatePicker.js"></script>
  197. <script src="../js/zTree/jquery.ztree.core.js"></script>
  198. <script src="../js/search/screen.js"></script>
  199. <script src="../js/WorkOrder/WorkOrderList.js"></script>
  200. <script>
  201. var wid = helper.request.queryString("states");
  202. if (wid) {
  203. $("#state").val(wid);
  204. }
  205. $(document).ready(function () {
  206. load();
  207. laydate.skin('blue');
  208. // laydate({
  209. // elem: '#starttime',
  210. // event: 'focus',
  211. // });
  212. // laydate({
  213. // elem: '#endtime',
  214. // event: 'focus',
  215. // });
  216. laydate({
  217. elem: '#dbstarttime',
  218. event: 'focus',
  219. istime: true,
  220. format: 'YYYY-MM-DD hh:mm:ss'
  221. });
  222. laydate({
  223. elem: '#dbstrendtime',
  224. event: 'focus',
  225. istime: true,
  226. format: 'YYYY-MM-DD hh:mm:ss'
  227. });
  228. });
  229. //关闭录音弹出
  230. $(".gbly").click(function () {
  231. $(".lyxz").removeClass("cx");
  232. $('audio')[0].pause();
  233. });
  234. $("#orderlist").on("click-row.bs.table", function (e, row, ele) {
  235. $('.success').removeClass('success'); //去除之前选中的行的,选中样式
  236. $(ele).addClass('success'); //添加当前选中的 success样式用于区别
  237. });
  238. //获取查询信息
  239. function load() {
  240. //坐席
  241. var usercodeID = "";
  242. var usercode_ = $("#ZX").val(); //坐席
  243. if (usercode_ != null) {
  244. $(usercode_).each(function (i, n) {
  245. var obj1 = '';
  246. obj1 = n + ",";
  247. usercodeID += obj1;
  248. })
  249. } else {
  250. usercodeID = ""
  251. }
  252. // 调度员
  253. var ddusercodeID = "";
  254. var ddusercode_ = $("#yardman").val(); //坐席
  255. if (ddusercode_ != null) {
  256. $(ddusercode_).each(function (i, n) {
  257. var obj2 = '';
  258. obj2 = n + ",";
  259. ddusercodeID += obj2;
  260. })
  261. } else {
  262. ddusercodeID = ""
  263. }
  264. //先销毁表格
  265. $('#orderlist').bootstrapTable('destroy');
  266. //初始化表格,动态从服务器加载数据
  267. $("#orderlist").bootstrapTable({
  268. method: "get", //使用get请求到服务器获取数据
  269. url: huayi.config.callcenter_url + "workorder/GetSupervList", //获取数据的Servlet地址
  270. contentType: "application/x-www-form-urlencoded",
  271. striped: true, //表格显示条纹
  272. pagination: true, //启动分页
  273. pageSize: 10, //每页显示的记录数
  274. pageNumber: 1, //当前第几页
  275. pageList: [10, 20, 50, 100], //记录数可选列表
  276. search: false, //是否启用查询
  277. showColumns: false, //显示下拉框勾选要显示的列
  278. showRefresh: false, //显示刷新按钮
  279. sidePagination: "server", //表示服务端请求
  280. //设置为undefined可以获取pageNumber,pageSize,searchText,sortName,sortOrder
  281. //设置为limit可以获取limit, offset, search, sort, order
  282. queryParamsType: "undefined",
  283. queryParams: function queryParams(params) { //设置查询参数
  284. var param = {
  285. page: params.pageNumber,
  286. pagesize: params.pageSize,
  287. workid: $("#wids").val(),
  288. state: $("#state").val(), //=工单状态
  289. type: $("#type").val(), //=工单类型
  290. bigtype: $("#bigtype").val(), //=大类别
  291. smalltype: $("#smalltype").val(), //=小类别
  292. key: $("#key").val(), //=关键字
  293. tel: $("#tel").val(), //=客户电话
  294. name: $("#name").val(), //=客户名称
  295. usercode: $("#auditorMultimediaPersonnel").val(), // 转督办
  296. ddusercode: ddusercodeID,
  297. keyid: $("#keyid").val(), //=关键词id
  298. source: $("#source").val(), //=来源&
  299. dealstarttime: $("#dealstarttime").val(), // 办理开始时间
  300. dealstrendtime: $("#dealstrendtime").val(), // 办理结束时间
  301. dbstarttime: $("#dbstarttime").val(), // 转督办开始时间
  302. dbstrendtime: $("#dbstrendtime").val(), // 转督办结束时间
  303. // deptid: $("#PID").val(),
  304. dbdeptid: $("#PID").val(), // 承办单位
  305. result: $("#result").val(), // 办理结果
  306. comtitle: $("#comtitle").val(), // 工单标题
  307. comContent: $("#comContent").val(), // 来电内容
  308. sourcearea: $('#sourceAreas').val(), //区域
  309. tab: 6, //已退回
  310. isExamine: 2,
  311. Supervisor: 1,
  312. token: $.cookie("token")
  313. };
  314. return param;
  315. },
  316. onLoadSuccess: function (data) { //加载成功时执行
  317. // layer.msg("加载成功");
  318. //console.log(data);
  319. },
  320. onLoadError: function () { //加载失败时执行
  321. //layer.msg("加载数据失败", { time: 1500, icon: 2 });
  322. }
  323. });
  324. }
  325. //状态
  326. function States(val, row) {
  327. var html = '';
  328. switch (val + '') {
  329. case '0':
  330. html = '新工单';
  331. if (row.F_IsReturn == 1) {
  332. html = '新工单(回退)';
  333. }
  334. break;
  335. case '1':
  336. html = '待交办';
  337. break;
  338. case '2':
  339. html = '待查收';
  340. break;
  341. case '3':
  342. html = '退回审核中';
  343. break;
  344. case '4':
  345. html = '办理中';
  346. break;
  347. case '5':
  348. html = '延时审核';
  349. break;
  350. case '6':
  351. html = '已办理';
  352. break;
  353. case '7':
  354. html = '已回访';
  355. break;
  356. case '8':
  357. html = '重办中';
  358. break;
  359. case '9':
  360. html = '已结案';
  361. break;
  362. }
  363. return html;
  364. }
  365. //时限
  366. function OverTime(val, row) {
  367. if (val == 1) {
  368. return '<div class="" style="cursor: pointer;">' +
  369. '<span class="Greens">' + row.GapTime + '</span>' +
  370. '</div>';
  371. } else if (val == 2) {
  372. return '<div class="" style="cursor: pointer;">' +
  373. '<span class="Yellows">' + row.GapTime + '</span>' +
  374. '</div>';
  375. } else if (val == 3) {
  376. return '<div class="" style="cursor: pointer;">' +
  377. '<span class="Reds">' + row.GapTime + '</span>' +
  378. '</div>';
  379. }
  380. }
  381. //办理时限
  382. function BanTime(val) {
  383. if (val) {
  384. var time = val.substring(0, val.indexOf(' '));
  385. return '<div class="" style="cursor: pointer;">' +
  386. '<span>' + time + '</span>' +
  387. '</div>';
  388. }
  389. }
  390. //音频
  391. function setCode(val) {
  392. if (val) {
  393. return '<div class="imgs" style="cursor: pointer;">' +
  394. '<img src="../img/vice.png" alt="" onclick= "helper.luyin.view(this)" item="' + val + '" />' +
  395. '</div>';
  396. } else {
  397. return '';
  398. }
  399. }
  400. //编号
  401. function serialNumber(val, row, index) {
  402. return index + 1;
  403. }
  404. function GetCont(val) {
  405. if (val) {
  406. var str = '<div '
  407. if (val.length > 20) {
  408. str = str + ' title="' + val + '" ';
  409. val = val.substr(0, 20) + "...";
  410. }
  411. return str + '>' + val + '</div>';
  412. } else {
  413. return '';
  414. }
  415. }
  416. //操作
  417. function Dispose(val, row) {
  418. var Rows = row.Buttons;
  419. // alert(row.F_WorkOrderId);
  420. var WorkOrderId = row.F_WorkOrderId;
  421. var html = '';
  422. // if (row.F_WorkState == '1') {
  423. // html += '<a class="xg" onclick="redeploy(' + WorkOrderId + ')">转派&nbsp</a>';
  424. // }
  425. for (var i = 0; i < Rows.length; i++) {
  426. var html1 = huayi.config.arr[Rows[i].key * 1 - 1];
  427. if (html1) {
  428. html1 = html1.replace("data", val);
  429. html1 = html1.replace("row", row.F_MainDeptId);
  430. }
  431. html += html1;
  432. }
  433. return html;
  434. }
  435. //转派
  436. function redeploy(WorkOrderId) {
  437. layer.open({
  438. type: 2,
  439. content: "../CommonHtml/zhuanpai.html?wid=" + WorkOrderId, //iframe的url,no代表不显示滚动条
  440. title: '转派',
  441. area: ['85%', '80%'], //宽高
  442. });
  443. }
  444. //查看详情
  445. function ckxq(str) {
  446. layer.open({
  447. type: 2,
  448. content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  449. title: '工单详情',
  450. area: ['100%', '100%'], //宽高
  451. });
  452. }
  453. //编辑
  454. function bj(str) {
  455. layer.open({
  456. type: 2,
  457. content: "../CommonHtml/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
  458. title: '编辑工单',
  459. area: ['96%', '85%'], //宽高
  460. });
  461. }
  462. //删除
  463. function move(str) {
  464. layer.confirm('确定删除工单?', {
  465. btn: ['是', '否'] //按钮
  466. }, function () {
  467. $.post(huayi.config.callcenter_url + "WorkOrder/DelWorkOrder", {
  468. ids: str,
  469. token: $.cookie("token")
  470. }, function (result) {
  471. result = JSON.parse(result);
  472. if (result.state.toLowerCase() == "success") {
  473. layer.msg("删除成功");
  474. load();
  475. }
  476. })
  477. });
  478. }
  479. //提交
  480. function tj(str) {
  481. layer.confirm('确定要提交工单么?', {
  482. btn: ['确定', '取消'] //按钮
  483. }, function () {
  484. //请求后台数据
  485. /*发送请求*/
  486. $.post(huayi.config.callcenter_url + "WorkOrder/SubmitWorkOrder", {
  487. ids: str,
  488. token: $.cookie("token")
  489. }, function (result) {
  490. result = JSON.parse(result);
  491. if (result.state.toLowerCase() == "success") {
  492. layer.msg("提交成功");
  493. load();
  494. }
  495. })
  496. });
  497. }
  498. //交办
  499. function jb(str) {
  500. layer.open({
  501. type: 2,
  502. content: "../CommonHtml/jiaoban.html?wid=" + str, //iframe的url,no代表不显示滚动条
  503. title: '工单交办',
  504. area: ['87%', '80%'], //宽高
  505. });
  506. }
  507. //领导批示
  508. function lader(str) {
  509. layer.open({
  510. type: 2,
  511. content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
  512. title: '领导批示',
  513. area: ['60%', '80%'], //宽高
  514. });
  515. }
  516. //市长批示
  517. function city(str) {
  518. layer.open({
  519. type: 2,
  520. content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
  521. title: '领导批示',
  522. area: ['60%', '80%'], //宽高
  523. });
  524. }
  525. //办理
  526. function bl(str) {
  527. layer.open({
  528. type: 2,
  529. content: "../CommonHtml/banli.html?wid=" + str, //iframe的url,no代表不显示滚动条
  530. title: '办理工单',
  531. area: ['60%', '80%'], //宽高
  532. });
  533. }
  534. //督办
  535. function Supervision(str, supervision) {
  536. layer.open({
  537. type: 2,
  538. state: 1,
  539. content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=1' + '&state=1' + '&depId=' +
  540. supervision, //iframe的url,no代表不显示滚动条
  541. title: '督办',
  542. area: ['90%', '90%'], //宽高
  543. });
  544. }
  545. //不督办
  546. function ndb(str) {
  547. layer.open({
  548. type: 2,
  549. state: 2,
  550. content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=1' +
  551. '&state=2', //iframe的url,no代表不显示滚动条
  552. title: '督办',
  553. area: ['60%', '80%'], //宽高
  554. });
  555. }
  556. //督查
  557. function Supervision_(str) {
  558. layer.open({
  559. type: 2,
  560. content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=2', //iframe的url,no代表不显示滚动条
  561. title: '监察',
  562. area: ['60%', '80%'], //宽高
  563. });
  564. }
  565. //强制结案
  566. function StrongLawsuit(str) {
  567. layer.open({
  568. type: 2,
  569. content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  570. title: '强制结案',
  571. area: ['60%', '80%'], //宽高
  572. });
  573. }
  574. //回退BackDtail
  575. function BackDtail(str) {
  576. layer.open({
  577. type: 2,
  578. content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  579. title: '工单回退',
  580. area: ['60%', '80%'], //宽高
  581. });
  582. }
  583. //查收
  584. function cs(str) {
  585. layer.confirm('确定要查收?', {
  586. btn: ['是', '否'] //按钮
  587. }, function () {
  588. $.post(huayi.config.callcenter_url + "WorkOrder/ReceiveWorkOrder", {
  589. workorderid: str,
  590. token: $.cookie("token")
  591. }, function (result) {
  592. result = JSON.parse(result);
  593. if (result.state.toLowerCase() == "success") {
  594. layer.msg("查收成功");
  595. load();
  596. }
  597. })
  598. });
  599. }
  600. //收回
  601. function sh(str) {
  602. layer.confirm('确定要回收?', {
  603. btn: ['是', '否'] //按钮
  604. }, function () {
  605. $.post(huayi.config.callcenter_url + "WorkOrder/TakeBackWorkOrder", {
  606. workorderid: str,
  607. token: $.cookie("token")
  608. }, function (result) {
  609. result = JSON.parse(result);
  610. if (result.state.toLowerCase() == "success") {
  611. layer.msg("回收");
  612. load();
  613. }
  614. })
  615. });
  616. }
  617. //强制回收
  618. function recycles() {
  619. layer.confirm('确定要强制退回吗?', {
  620. btn: ['是', '否'] //按钮
  621. });
  622. }
  623. //退回申请
  624. function th(str) {
  625. layer.open({
  626. type: 2,
  627. content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  628. title: '申请退回工单',
  629. area: ['60%', '80%'], //宽高
  630. });
  631. }
  632. //审核退回申请
  633. function shth(str) {
  634. layer.open({
  635. type: 2,
  636. content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
  637. title: '审核退回申请',
  638. area: ['60%', '80%'], //宽高
  639. });
  640. }
  641. //办理
  642. // function th(str) {
  643. // layer.open({
  644. // type: 2,
  645. // content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  646. // title: '办理工单',
  647. // area: ['35%', '30%'], //宽高
  648. // });
  649. // }
  650. //申请延时
  651. function ys(str) {
  652. layer.open({
  653. type: 2,
  654. content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  655. title: '申请延时',
  656. area: ['60%', '80%'], //宽高
  657. });
  658. }
  659. //审核申请延时
  660. function shys(str) {
  661. layer.open({
  662. type: 2,
  663. content: "../CommonHtml/shtime.html?wid=" + str, //iframe的url,no代表不显示滚动条
  664. title: '审核延时申请',
  665. area: ['60%', '80%'], //宽高
  666. });
  667. }
  668. //诉求回访
  669. function hf(str) {
  670. layer.open({
  671. type: 2,
  672. content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
  673. title: '工单回访',
  674. area: ['60%', '80%'], //宽高
  675. });
  676. }
  677. //重办工单
  678. function cb(str) {
  679. layer.open({
  680. type: 2,
  681. content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
  682. title: '重办工单',
  683. area: ['60%', '80%'], //宽高
  684. });
  685. }
  686. //结案
  687. function Lawsuit(str) {
  688. layer.open({
  689. type: 2,
  690. content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  691. title: '诉求单结案',
  692. area: ['60%', '80%'], //宽高
  693. });
  694. }
  695. //督办审核通过
  696. function superviseReviewThrough(str) {
  697. layer.confirm('确定审核通过?', {
  698. btn: ['是', '否'] //按钮
  699. }, function () {
  700. $.post(huayi.config.callcenter_url + "workorder/RemindApproved", {
  701. workorderid: str,
  702. token: $.cookie("token")
  703. }, function (result) {
  704. result = JSON.parse(result);
  705. if (result.state.toLowerCase() == "success") {
  706. layer.msg("操作成功");
  707. load();
  708. }
  709. })
  710. });
  711. }
  712. //督办审核拒绝
  713. function superviseReviewRefuse(str) {
  714. layer.open({
  715. type: 2,
  716. content: "../CommonHtml/superviseReview.html?wid=" + str + "&review=1", //iframe的url,no代表不显示滚动条
  717. title: '督办审核',
  718. area: ['60%', '45%'], //宽高
  719. });
  720. }
  721. $('.Appeal').click(function () {
  722. layer.open({
  723. type: 2,
  724. content: "../CommonHtml/AddAppeal.html?wid=", //iframe的url,no代表不显示滚动条
  725. title: '新增诉求',
  726. area: ['85%', '80%'], //宽高
  727. });
  728. })
  729. //上传文件
  730. function upload() {
  731. if (document.getElementById("upFile").files.length > 0) {
  732. var formData = new FormData();
  733. formData.append("upFile", document.getElementById("upFile").files[0]);
  734. formData.append("token", $.cookie("token"));
  735. $.ajax({
  736. url: huayi.config.callcenter_url + "/WorkOrder/UploadFile",
  737. type: "POST",
  738. data: formData,
  739. /**
  740. *必须false才会自动加上正确的Content-Type
  741. */
  742. contentType: false,
  743. /**
  744. * 必须false才会避开jQuery对 formdata 的默认处理
  745. * XMLHttpRequest会对 formdata 进行正确的处理
  746. */
  747. processData: false,
  748. success: function (result) {
  749. document.getElementById("upFile").outerHTML = document.getElementById("upFile")
  750. .outerHTML;
  751. $("#upFile").change(function () {
  752. upload();
  753. });
  754. var r = $.parseJSON(result);
  755. if (r.state.toLowerCase() == "success") {
  756. $(".fjnr").text(r.data);
  757. $("#scfj").show();
  758. }
  759. }
  760. });
  761. } else {
  762. layer.confirm('请上传文件!', {
  763. btn: ['确定']
  764. });
  765. }
  766. }
  767. //来源
  768. function LY(obj) {
  769. obj.empty();
  770. obj.append('<option selected="selected" value="">请选择</option>');
  771. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  772. "token": $.cookie("token"),
  773. id: 1
  774. }, function (data) {
  775. if (data.state.toLowerCase() == "success") {
  776. var content = data.data;
  777. $(content).each(function (i, n) {
  778. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(
  779. obj);
  780. })
  781. }
  782. })
  783. }
  784. //类别
  785. function LB(obj) {
  786. obj.empty();
  787. obj.append('<option selected="selected" value="">请选择</option>');
  788. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  789. "token": $.cookie("token"),
  790. id: 2
  791. }, function (data) {
  792. if (data.state.toLowerCase() == "success") {
  793. var content = data.data;
  794. $(content).each(function (i, n) {
  795. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(
  796. obj);
  797. })
  798. }
  799. })
  800. }
  801. //主题
  802. function ZT(obj) {
  803. obj.empty();
  804. obj.append('<option selected="selected" value="">请选择</option>');
  805. $.getJSON(huayi.config.callcenter_url + "Dictionary/GetDicValueListById", {
  806. "token": $.cookie("token"),
  807. id: 3
  808. }, function (data) {
  809. if (data.state.toLowerCase() == "success") {
  810. var content = data.data;
  811. $(content).each(function (i, n) {
  812. $("<option value='" + n.F_ValueId + "'>" + n.F_Value + "</option>").appendTo(
  813. obj);
  814. })
  815. }
  816. })
  817. }
  818. function tree() {
  819. $.get(huayi.config.callcenter_url + 'Department/GetDeptList', {
  820. "token": $.cookie("token"),
  821. // "pid": pid
  822. }, function (result) {
  823. result = $.parseJSON(result);
  824. $.fn.zTree.init($("#addTreeDemo"), setting1, result.data); //实例化树形图
  825. });
  826. }
  827. var setting1 = {
  828. data: {
  829. key: {
  830. name: "F_DeptName"
  831. },
  832. simpleData: {
  833. enable: true,
  834. idKey: "F_DeptId",
  835. pIdKey: "F_PartentId",
  836. rootPId: 0
  837. }
  838. },
  839. callback: {
  840. onClick: zTreeOnClick
  841. }
  842. };
  843. function zTreeOnClick(event, treeId, treeNode) {
  844. if (treeNode.level >= 1) {
  845. $('.inps').val(treeNode.F_DeptName);
  846. $("#PID").val(treeNode.F_DeptId);
  847. $("#Dpment").val(treeNode.F_DeptName);
  848. $(".Cleans").show();
  849. }
  850. };
  851. $(".exportFile").click(function () {
  852. var usercode_ = $("#ZX").val(); //坐席
  853. if (usercode_ != null) {
  854. $(usercode_).each(function (i, n) {
  855. var obj1 = "";
  856. obj1 = n + ",";
  857. usercodeID += obj1;
  858. });
  859. } else {
  860. usercodeID = "";
  861. }
  862. // 调度员
  863. var ddusercodeID = "";
  864. var ddusercode_ = $("#yardman").val(); //坐席
  865. if (ddusercode_ != null) {
  866. $(ddusercode_).each(function (i, n) {
  867. var obj2 = "";
  868. obj2 = n + ",";
  869. ddusercodeID += obj2;
  870. });
  871. } else {
  872. ddusercodeID = "";
  873. }
  874. var workid = $("#wids").val()
  875. var key = $("#key").val() //=关键字
  876. var tel = $("#tel").val() //=客户电话
  877. var name = $("#name").val() //=客户名称
  878. var usercode = usercodeID //=坐席工号
  879. var ddusercode = ddusercodeID
  880. var source = $("#source").val() //=来源&
  881. // var starttime = $("#starttime").val() //=开始时间
  882. // var endtime = $("#endtime").val() //=结束时间
  883. var dbstarttime = $("#dbstarttime").val(); // 转督办开始时间
  884. var dbstrendtime = $("#dbstrendtime").val(); // 转督办结束时间
  885. var deptid = $("#PID").val()
  886. var type = $("#type").val() //=工单类型
  887. var sourcearea = $("#sourceAreas").val() //区域
  888. var keyid = $("#keyid").val() == undefined ? "" : $("#keyid").val(); //=关键词id
  889. var Supervisor = 1;
  890. var tab = 6;
  891. var isExamine = 2;
  892. var url = huayi.config.callcenter_url + "workorder/GetSupervList?token=" + $.cookie("token");
  893. url += "&workid=" + workid + "&type=" + type + "&tab=" + tab + "&key=" + key + "&tel=" + tel + "&name=" + name + "&usercode=" + usercode + "&ddusercode=" + ddusercode + "&source=" + source + "&dbstarttime=" + dbstarttime + "&dbstrendtime=" + dbstrendtime + "&deptid=" + deptid + "&sourcearea=" + sourcearea + "&keyid=" + keyid + "&Supervisor=" + Supervisor + "&isExamine=" + isExamine + "&isdc=1";
  894. window.location.href = url;
  895. })
  896. </script>
  897. </body>
  898. </html>