Nessuna descrizione

WorkDC_EJ.html 36KB

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