Нет описания

LeaderYJAMedia.html 43KB

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