Geen omschrijving

orderListOperation.js 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501
  1. //查看详情1
  2. function ckxq(str) {
  3. console.log(str)
  4. layer.open({
  5. type: 2,
  6. // content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  7. content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  8. title: "工单详情",
  9. area: ["100%", "100%"], //宽高
  10. });
  11. }
  12. //编辑2
  13. function bj(str) {
  14. console.log(str)
  15. if(str[0] !== '频'){
  16. layer.open({
  17. type: 2,
  18. content: "../Appeal/AddAppeal.html?wid=" + str, //iframe的url,no代表不显示滚动条
  19. title: "编辑工单",
  20. area: ["96%", "80%"], //宽高
  21. });
  22. }else{
  23. layer.open({
  24. type: 2,
  25. content: "../Appeal/AddAppealPF.html?wid=" + str, //iframe的url,no代表不显示滚动条
  26. title: "编辑工单",
  27. area: ["96%", "80%"], //宽高
  28. });
  29. }
  30. }
  31. //删除3
  32. function move(str) {
  33. layer.confirm(
  34. "确定删除工单?", {
  35. btn: ["是", "否"], //按钮
  36. },
  37. function() {
  38. $.post(
  39. huayi.config.callcenter_url +
  40. "WorkOrder/DelWorkOrder", {
  41. ids: str,
  42. token: $.cookie("token"),
  43. },
  44. function(result) {
  45. result = JSON.parse(result);
  46. if(result.state.toLowerCase() == "success") {
  47. layer.msg("删除成功");
  48. $("#orderlist").bootstrapTable("refresh");
  49. }
  50. }
  51. );
  52. }
  53. );
  54. }
  55. //提交4
  56. function tj(str) {
  57. layer.confirm(
  58. "确定要提交工单么?", {
  59. btn: ["确定", "取消"], //按钮
  60. },
  61. function() {
  62. //请求后台数据
  63. /*发送请求*/
  64. $.post(
  65. huayi.config.callcenter_url +
  66. "WorkOrder/SubmitWorkOrder", {
  67. ids: str,
  68. token: $.cookie("token"),
  69. },
  70. function(result) {
  71. result = JSON.parse(result);
  72. if(result.state.toLowerCase() == "success") {
  73. layer.msg("提交成功");
  74. $("#orderlist").bootstrapTable("refresh");
  75. //load();
  76. }
  77. }
  78. );
  79. }
  80. );
  81. }
  82. //交办5
  83. function jb(str) {
  84. console.log(str)
  85. if(str[0] !== '频'){
  86. layer.open({
  87. type: 2,
  88. content: "../CommonHtml/jiaoban.html?wid=" + str, //iframe的url,no代表不显示滚动条
  89. title: "工单交办",
  90. area: ["87%", "80%"], //宽高
  91. });
  92. }else{
  93. layer.open({
  94. type: 2,
  95. content: "../CommonHtml/jiaobanPF.html?wid=" + str, //iframe的url,no代表不显示滚动条
  96. title: "工单交办",
  97. area: ["87%", "80%"], //宽高
  98. });
  99. }
  100. }
  101. //领导批示6
  102. function lader(str) {
  103. layer.open({
  104. type: 2,
  105. content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
  106. title: "领导批示",
  107. area: ["60%", "80%"], //宽高
  108. });
  109. }
  110. //市长批示7
  111. function city(str) {
  112. layer.open({
  113. type: 2,
  114. content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
  115. title: "市长批示",
  116. area: ["60%", "80%"], //宽高
  117. });
  118. }
  119. //督办8
  120. function Supervision(str, supervision) {
  121. layer.open({
  122. type: 2,
  123. state: 1,
  124. content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=1' + '&state=1' + '&depId=' +
  125. supervision + "&pageName=superviseUpcoming", //iframe的url,no代表不显示滚动条
  126. title: '督办',
  127. area: ['90%', '90%'], //宽高
  128. });
  129. }
  130. //督查9
  131. function Supervision_(str) {
  132. layer.open({
  133. type: 2,
  134. content: "../CommonHtml/Supervision_.html?wid=" +
  135. str +
  136. "&type=2", //iframe的url,no代表不显示滚动条
  137. title: "监察",
  138. area: ["60%", "80%"], //宽高
  139. });
  140. }
  141. //收回10
  142. function sh(str) {
  143. layer.confirm(
  144. "确定要回收?", {
  145. btn: ["是", "否"], //按钮
  146. },
  147. function() {
  148. $.post(
  149. huayi.config.callcenter_url +
  150. "WorkOrder/TakeBackWorkOrder", {
  151. workorderid: str,
  152. token: $.cookie("token"),
  153. },
  154. function(result) {
  155. result = JSON.parse(result);
  156. if(result.state.toLowerCase() == "success") {
  157. layer.msg("回收");
  158. //load();
  159. $("#orderlist").bootstrapTable("refresh");
  160. }
  161. }
  162. );
  163. }
  164. );
  165. }
  166. //查收11
  167. function cs(str) {
  168. layer.confirm(
  169. "确定要查收?", {
  170. btn: ["是", "否"], //按钮
  171. },
  172. function() {
  173. $.post(
  174. huayi.config.callcenter_url +
  175. "WorkOrder/ReceiveWorkOrder", {
  176. workorderid: str,
  177. token: $.cookie("token"),
  178. },
  179. function(result) {
  180. result = JSON.parse(result);
  181. if(result.state.toLowerCase() == "success") {
  182. layer.msg("查收成功");
  183. //load();
  184. $("#orderlist").bootstrapTable("refresh");
  185. }
  186. }
  187. );
  188. }
  189. );
  190. }
  191. //退回申请12
  192. function th(str) {
  193. layer.open({
  194. type: 2,
  195. content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  196. title: "申请退回工单",
  197. area: ["60%", "80%"], //宽高
  198. });
  199. }
  200. //办理13
  201. function bl(str, isProtect) {
  202. layer.open({
  203. type: 2,
  204. content: "../CommonHtml/banli.html?wid=" +
  205. str +
  206. "&isProtect=" +
  207. isProtect, //iframe的url,no代表不显示滚动条
  208. title: "办理工单",
  209. area: ["60%", "80%"], //宽高
  210. });
  211. }
  212. //申请延时14
  213. function ys(str) {
  214. layer.open({
  215. type: 2,
  216. content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  217. title: "申请延时",
  218. area: ["60%", "80%"], //宽高
  219. });
  220. }
  221. //审核退回申请15
  222. function shth(str) {
  223. layer.open({
  224. type: 2,
  225. content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
  226. title: "审核退回申请",
  227. area: ["60%", "80%"], //宽高
  228. });
  229. }
  230. //审核16
  231. function hf(str) {
  232. layer.open({
  233. type: 2,
  234. content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
  235. title: "工单审核",
  236. area: ["60%", "80%"], //宽高
  237. });
  238. }
  239. //审核申请延时17
  240. function shys(str) {
  241. layer.open({
  242. type: 2,
  243. content: "../CommonHtml/shTime.html?wid=" + str, //iframe的url,no代表不显示滚动条
  244. title: "审核延时申请",
  245. area: ["60%", "80%"], //宽高
  246. });
  247. }
  248. //重办工单18
  249. function cb(str) {
  250. layer.open({
  251. type: 2,
  252. content: "../Appeal/AddAppeal.html?wid=" + str + "&workType=cb", //iframe的url,no代表不显示滚动条
  253. title: "重办工单",
  254. area: ["95%", "95%"], //宽高
  255. });
  256. }
  257. //结案19
  258. function Lawsuit(str) {
  259. layer.open({
  260. type: 2,
  261. content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  262. title: "诉求单结案",
  263. area: ["60%", "80%"], //宽高
  264. });
  265. }
  266. //导出20
  267. //回退BackDtail21
  268. function BackDtail(str) {
  269. layer.open({
  270. type: 2,
  271. content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  272. title: "工单督办",
  273. area: ["60%", "80%"], //宽高
  274. });
  275. }
  276. //强制结案22
  277. function StrongLawsuit(str) {
  278. layer.open({
  279. type: 2,
  280. content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  281. title: "强制结案",
  282. area: ["60%", "80%"], //宽高
  283. });
  284. }
  285. //派单23
  286. function pd(str) {
  287. layer.open({
  288. type: 2,
  289. content: "../CommonHtml/handle.html?wid=" + str, //iframe的url,no代表不显示滚动条
  290. title: "办理工单",
  291. area: ["87%", "80%"], //宽高
  292. });
  293. }
  294. //处理审核24
  295. function auditdeal(str) {
  296. layer.open({
  297. type: 2,
  298. content: "../CommonHtml/processing_audit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  299. title: "处理审核",
  300. area: ["80%", "80%"], //宽高
  301. });
  302. }
  303. //签收25
  304. function sign(str) {
  305. layer.confirm('确定要签收?', {
  306. btn: ['是', '否'] //按钮
  307. }, function () {
  308. $.post(huayi.config.callcenter_url + "WorkOrder/SignWorkOrder", {
  309. workorderid: str,
  310. token: $.cookie("token")
  311. }, function (result) {
  312. result = JSON.parse(result);
  313. if (result.state.toLowerCase() == "success") {
  314. layer.msg("签收成功");
  315. load();
  316. }
  317. })
  318. });
  319. }
  320. //拒收26
  321. function refuse(str) {
  322. layer.open({
  323. type: 2,
  324. content: "../CommonHtml/rejection.html?wid=" + str, //iframe的url,no代表不显示滚动条
  325. title: '拒收',
  326. area: ['60%', '80%'], //宽高
  327. });
  328. }
  329. //撤单27
  330. function withdraw(str) {
  331. layer.confirm(
  332. "确定撤回?", {
  333. btn: ["是", "否"], //按钮
  334. },
  335. function() {
  336. $.post(
  337. huayi.config.callcenter_url +
  338. "WorkOrder/WithdrawWorkOrder", {
  339. workorderid: str,
  340. token: $.cookie("token"),
  341. },
  342. function(result) {
  343. result = JSON.parse(result);
  344. if(result.state.toLowerCase() == "success") {
  345. layer.msg("撤回成功");
  346. load();
  347. }
  348. }
  349. );
  350. }
  351. );
  352. }
  353. //审核28
  354. function audit(str) {
  355. layer.open({
  356. type: 2,
  357. content: "../CommonHtml/AuditDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  358. title: "审核",
  359. area: ["60%", "80%"], //宽高
  360. });
  361. }
  362. //转督办29
  363. function zdb(str, row) {
  364. layer.open({
  365. type: 2,
  366. content: "../CommonHtml/superTrunl.html?wid=" +
  367. str +
  368. "&depId=" +
  369. row, //iframe的url,no代表不显示滚动条
  370. title: "督办工单",
  371. area: ["60%", "80%"], //宽高
  372. });
  373. }
  374. //不督办30
  375. function ndb(str) {
  376. layer.open({
  377. type: 2,
  378. state: 2,
  379. content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=1' +
  380. '&state=2', //iframe的url,no代表不显示滚动条
  381. title: '督办',
  382. area: ['60%', '80%'], //宽高
  383. });
  384. }
  385. //提交重办31
  386. function tjcb(str) {
  387. layer.open({
  388. type: 2,
  389. content: "../CommonHtml/reasonCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  390. title: "提交重办",
  391. area: ["50%", "40%"], //宽高
  392. });
  393. }
  394. //驳回重办32
  395. function bhcb(str) {
  396. layer.open({
  397. type: 2,
  398. content: "../CommonHtml/rejectionCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  399. title: "驳回重办",
  400. area: ["60%", "80%"], //宽高
  401. });
  402. }
  403. //履职界定33
  404. function lzjd(str){
  405. layer.open({
  406. type: 2,
  407. content: "../CommonHtml/ResumptionDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  408. title: '履职界定',
  409. area: ['85%', '80%'], //宽高
  410. })
  411. }
  412. //回传34
  413. function gdhc(str){
  414. layer.open({
  415. type: 2,
  416. content: "../CommonHtml/huichuan.html?wid=" + str, //iframe的url,no代表不显示滚动条
  417. title: '回传',
  418. area: ['70%', '80%'], //宽高
  419. });
  420. }
  421. //编辑办理35
  422. function editProcessingResult(str) {
  423. layer.open({
  424. type: 2,
  425. content: "../CommonHtml/editProcessingResult.html?wid=" + str, //iframe的url,no代表不显示滚动条
  426. title: "修改",
  427. area: ["50%", "70%"], //宽高
  428. });
  429. }
  430. //扫描件上传36
  431. function updatingFiles(str){
  432. layer.open({
  433. type: 2,
  434. content: "../CommonHtml/updatingFiles.html?wid=" + str, //iframe的url,no代表不显示滚动条
  435. title: '扫描件上传',
  436. area: ['50%', '40%'], //宽高
  437. });
  438. }
  439. //备注37
  440. function remarks(str){
  441. layer.open({
  442. type: 2,
  443. content: "../CommonHtml/remarks.html?wid=" + str, //iframe的url,no代表不显示滚动条
  444. title: '备注',
  445. area: ['60%', '45%'], //宽高
  446. });
  447. }
  448. //二次转派38
  449. function Runsend(str){
  450. layer.open({
  451. type: 2,
  452. content: "../CommonHtml/jiaoban.html?wid=" + str + "&secondTurnFlag=1", //iframe的url,no代表不显示滚动条
  453. title: '二次转派',
  454. area: ['87%', '80%'], //宽高
  455. });
  456. }
  457. //提交重办39
  458. function Reloadsuber(str){
  459. layer.open({
  460. type: 2,
  461. content: "../CommonHtml/reasonCB.html?wid=" + str + "&reasonCBFlag=1", //iframe的url,no代表不显示滚动条
  462. title: '提交重办工单',
  463. area: ['60%', '80%'], //宽高
  464. });
  465. }
  466. //催办40
  467. function remindBtn(str){
  468. layer.confirm('确定催办工单?', {
  469. btn: ['是', '否'] //按钮
  470. }, function() {
  471. $.post(huayi.config.callcenter_url + "WorkOrder/Reminders", {
  472. workorderid: str,
  473. token: $.cookie("token")
  474. }, function(result) {
  475. result = JSON.parse(result);
  476. if(result.state.toLowerCase() == "success") {
  477. layer.msg("催办成功");
  478. $("#orderlist").bootstrapTable('refresh');
  479. }
  480. })
  481. });
  482. }
  483. //退回郑州市41
  484. function backCity(str){
  485. layer.open({
  486. type: 2,
  487. content: "../CommonHtml/backcity.html?wid=" + str, //iframe的url,no代表不显示滚动条
  488. title: '退回',
  489. area: ['60%', '45%'], //宽高
  490. });
  491. }
  492. // 打开新窗口
  493. function openWindow (url){
  494. window.open(url);
  495. }