暂无描述

orderListOperation.js 26KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973
  1. //查看详情1
  2. function ckxq(str) {
  3. layer.open({
  4. type: 2,
  5. // content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  6. content: "../CommonHtml/WorkDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  7. title: "工单详情",
  8. area: ["100%", "100%"], //宽高
  9. });
  10. }
  11. //编辑2
  12. function bj(str) {
  13. layer.open({
  14. type: 2,
  15. content: "../CommonHtml/AddAppeal.html?wid=" + str+ "&workType=jb", //iframe的url,no代表不显示滚动条
  16. title: "编辑工单",
  17. area: ["96%", "80%"], //宽高
  18. });
  19. }
  20. //删除3
  21. function move(str) {
  22. layer.confirm(
  23. "确定删除工单?", {
  24. btn: ["是", "否"], //按钮
  25. },
  26. function () {
  27. $.post(
  28. huayi.config.callcenter_url +
  29. "WorkOrder/DelWorkOrder", {
  30. ids: str,
  31. token: $.cookie("token"),
  32. },
  33. function (result) {
  34. result = JSON.parse(result);
  35. if (result.state.toLowerCase() == "success") {
  36. layer.msg("删除成功");
  37. $("#orderlist").bootstrapTable("refresh");
  38. }
  39. }
  40. );
  41. }
  42. );
  43. }
  44. //提交4
  45. function tj(str) {
  46. layer.confirm(
  47. "确定要提交工单么?", {
  48. btn: ["确定", "取消"], //按钮
  49. },
  50. function () {
  51. //请求后台数据
  52. /*发送请求*/
  53. $.post(
  54. huayi.config.callcenter_url +
  55. "WorkOrder/SubmitWorkOrder", {
  56. ids: str,
  57. token: $.cookie("token"),
  58. },
  59. function (result) {
  60. result = JSON.parse(result);
  61. if (result.state.toLowerCase() == "success") {
  62. layer.msg("提交成功");
  63. $("#orderlist").bootstrapTable("refresh");
  64. //load();
  65. }
  66. }
  67. );
  68. }
  69. );
  70. }
  71. //交办5
  72. function jb(str) {
  73. layer.open({
  74. type: 2,
  75. content: "../CommonHtml/jiaoban.html?wid=" + str, //iframe的url,no代表不显示滚动条
  76. title: "工单交办",
  77. area: ["87%", "80%"], //宽高
  78. });
  79. }
  80. //领导批示6
  81. function lader(str) {
  82. layer.open({
  83. type: 2,
  84. content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
  85. title: "领导批示",
  86. area: ["60%", "80%"], //宽高
  87. });
  88. }
  89. //市长批示7
  90. function city(str) {
  91. layer.open({
  92. type: 2,
  93. content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
  94. title: "市长批示",
  95. area: ["60%", "80%"], //宽高
  96. });
  97. }
  98. //督办8
  99. function Supervision(str) {
  100. layer.open({
  101. type: 2,
  102. // content: "../CommonHtml/Supervision_.html?wid=" + str +"&type=1" + "&state=1" + "&pageName=haveAduit", //iframe的url,no代表不显示滚动条
  103. content: "../CommonHtml/Supervision_.html?wid=" + str + "&type=1" +
  104. "&state=1", //iframe的url,no代表不显示滚动条
  105. title: "督办",
  106. area: ["90%", "90%"], //宽高
  107. });
  108. }
  109. //督查9
  110. function Supervision_(str) {
  111. layer.open({
  112. type: 2,
  113. content: "../CommonHtml/Supervision_.html?wid=" +
  114. str +
  115. "&type=2", //iframe的url,no代表不显示滚动条
  116. title: "监察",
  117. area: ["60%", "80%"], //宽高
  118. });
  119. }
  120. //收回10
  121. function sh(str) {
  122. layer.confirm(
  123. "确定要回收?", {
  124. btn: ["是", "否"], //按钮
  125. },
  126. function () {
  127. $.post(
  128. huayi.config.callcenter_url +
  129. "WorkOrder/TakeBackWorkOrder", {
  130. workorderid: str,
  131. token: $.cookie("token"),
  132. },
  133. function (result) {
  134. result = JSON.parse(result);
  135. if (result.state.toLowerCase() == "success") {
  136. layer.msg("回收");
  137. //load();
  138. $("#orderlist").bootstrapTable("refresh");
  139. }
  140. }
  141. );
  142. }
  143. );
  144. }
  145. //查收11
  146. function cs(str) {
  147. layer.confirm(
  148. "确定要查收?", {
  149. btn: ["是", "否"], //按钮
  150. },
  151. function () {
  152. $.post(
  153. huayi.config.callcenter_url +
  154. "WorkOrder/ReceiveWorkOrder", {
  155. workorderid: str,
  156. token: $.cookie("token"),
  157. },
  158. function (result) {
  159. result = JSON.parse(result);
  160. if (result.state.toLowerCase() == "success") {
  161. layer.msg("查收成功");
  162. //load();
  163. $("#orderlist").bootstrapTable("refresh");
  164. }
  165. }
  166. );
  167. }
  168. );
  169. }
  170. //退回申请12
  171. function th(str) {
  172. layer.open({
  173. type: 2,
  174. content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  175. title: '申请退回工单',
  176. area: ['60%', '80%'], //宽高
  177. });
  178. }
  179. //办理13
  180. function bl(str, isProtect) {
  181. layer.open({
  182. type: 2,
  183. content: "../CommonHtml/banli.html?wid=" +
  184. str +
  185. "&isProtect=" +
  186. isProtect, //iframe的url,no代表不显示滚动条
  187. title: "办理工单",
  188. area: ["60%", "80%"], //宽高
  189. });
  190. }
  191. // 申请延时14
  192. function ys(str) {
  193. layer.open({
  194. type: 2,
  195. content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  196. title: "申请延时",
  197. area: ["60%", "80%"], //宽高
  198. });
  199. }
  200. // 审核退回申请15
  201. function shth(str) {
  202. layer.open({
  203. type: 2,
  204. content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
  205. title: "审核退回申请",
  206. area: ["60%", "80%"], //宽高
  207. });
  208. }
  209. // 审核16
  210. function hf(str) {
  211. layer.open({
  212. type: 2,
  213. content: "../CommonHtml/auditBack.html?wid=" + str, //
  214. title: "工单审核",
  215. area: ["80%", "80%"], //宽高
  216. });
  217. }
  218. // 审核申请延时17
  219. function shys(str) {
  220. layer.open({
  221. type: 2,
  222. content: "../CommonHtml/shTime.html?wid=" + str, //iframe的url,no代表不显示滚动条
  223. title: "审核延时申请",
  224. area: ["60%", "80%"], //宽高
  225. });
  226. }
  227. // 重办工单18
  228. function cb(str) {
  229. layer.open({
  230. type: 2,
  231. content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
  232. title: "重办工单",
  233. area: ["60%", "80%"], //宽高
  234. });
  235. }
  236. // 结案19
  237. function Lawsuit(str) {
  238. layer.open({
  239. type: 2,
  240. content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  241. title: "诉求单结案",
  242. area: ["60%", "80%"], //宽高
  243. });
  244. }
  245. // 导出20
  246. // 回退BackDtail21
  247. function BackDtail(str) {
  248. layer.open({
  249. type: 2,
  250. content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  251. title: "工单督办",
  252. area: ["60%", "80%"], //宽高
  253. });
  254. }
  255. // 强制结案22
  256. function StrongLawsuit(str) {
  257. layer.open({
  258. type: 2,
  259. content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  260. title: "强制结案",
  261. area: ["60%", "80%"], //宽高
  262. });
  263. }
  264. // 派单23
  265. function pd(str) {
  266. layer.open({
  267. type: 2,
  268. content: "../CommonHtml/handle.html?wid=" + str, //iframe的url,no代表不显示滚动条
  269. title: "办理工单",
  270. area: ["87%", "80%"], //宽高
  271. });
  272. }
  273. // 处理审核24
  274. function auditdeal(str) {
  275. layer.open({
  276. type: 2,
  277. content: "../CommonHtml/processing_audit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  278. title: "处理审核",
  279. area: ["80%", "80%"], //宽高
  280. });
  281. }
  282. // 签收25
  283. function sign(str) {
  284. layer.confirm('确定要签收?', {
  285. btn: ['是', '否'] //按钮
  286. }, function() {
  287. $.post(huayi.config.callcenter_url + "WorkOrder/SignWorkOrder", {
  288. workorderid: str,
  289. token: $.cookie("token")
  290. }, function(result) {
  291. result = JSON.parse(result);
  292. if(result.state.toLowerCase() == "success") {
  293. layer.msg("签收成功");
  294. load();
  295. }
  296. })
  297. });
  298. }
  299. // 拒收26
  300. function refuse(str) {
  301. layer.open({
  302. type: 2,
  303. content: "../CommonHtml/rejection.html?wid=" + str, //iframe的url,no代表不显示滚动条
  304. title: '拒收',
  305. area: ['60%', '80%'], //宽高
  306. });
  307. }
  308. // 撤单27
  309. function withdraw(str) {
  310. layer.confirm(
  311. "确定撤回?", {
  312. btn: ["是", "否"], //按钮
  313. },
  314. function() {
  315. $.post(
  316. huayi.config.callcenter_url +
  317. "WorkOrder/WithdrawDWorkOrder", {
  318. workorderid: str,
  319. token: $.cookie("token"),
  320. },
  321. function(result) {
  322. result = JSON.parse(result);
  323. if(result.state.toLowerCase() == "success") {
  324. layer.msg("撤回成功");
  325. load();
  326. }
  327. }
  328. );
  329. }
  330. );
  331. }
  332. // 审核28
  333. function audit(str) {
  334. layer.open({
  335. type: 2,
  336. content: "../CommonHtml/AuditDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  337. title: "审核",
  338. area: ["60%", "80%"], //宽高
  339. });
  340. }
  341. // 转督办29
  342. function zdb(str, row) {
  343. layer.open({
  344. type: 2,
  345. content: "../CommonHtml/superTrunl.html?wid=" +
  346. str +
  347. "&depId=" +
  348. row, //iframe的url,no代表不显示滚动条
  349. title: "督办工单",
  350. area: ["60%", "80%"], //宽高
  351. });
  352. }
  353. // 不督办30
  354. function ndb(str) {
  355. layer.open({
  356. type: 2,
  357. state: 2,
  358. content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=1' +
  359. '&state=2', //iframe的url,no代表不显示滚动条
  360. title: '督办',
  361. area: ['60%', '80%'], //宽高
  362. });
  363. }
  364. // 提交重办31
  365. function tjcb(str) {
  366. layer.open({
  367. type: 2,
  368. content: "../CommonHtml/reasonCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  369. title: "提交重办",
  370. area: ["50%", "40%"], //宽高
  371. });
  372. }
  373. // 驳回重办32
  374. function bhcb(str) {
  375. layer.open({
  376. type: 2,
  377. content: "../CommonHtml/rejectionCB.html?wid=" + str, //iframe的url,no代表不显示滚动条
  378. title: "驳回重办",
  379. area: ["60%", "80%"], //宽高
  380. });
  381. }
  382. // 履职界定33
  383. function lzjd(str) {
  384. layer.open({
  385. type: 2,
  386. content: "../CommonHtml/ResumptionDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  387. title: '履职界定',
  388. area: ['85%', '80%'], //宽高
  389. })
  390. }
  391. //界定审核34
  392. function jdsh(str) {
  393. layer.open({
  394. type: 2,
  395. content: "../CommonHtml/Define_audit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  396. title: '界定审核',
  397. area: ['85%', '60%'], //宽高
  398. })
  399. }
  400. //审核35
  401. function refuse(str) {
  402. layer.open({
  403. type: 2,
  404. content: "../CommonHtml/rejection.html?wid=" + str, //iframe的url,no代表不显示滚动条
  405. title: '拒收',
  406. area: ['60%', '80%'], //宽高
  407. });
  408. }
  409. //退回36
  410. function returnRedo(str) {
  411. layer.open({
  412. type: 2,
  413. content: "../CommonHtml/returnRedo.html?wid=" + str, //iframe的url,no代表不显示滚动条
  414. title: "退回",
  415. area: ["50%", "40%"], //宽高
  416. });
  417. }
  418. //
  419. //催办37
  420. function messagesUrge(str) {
  421. layer.confirm('确定催办吗?', {
  422. btn: ['是', '否'] //按钮
  423. }, function() {
  424. $.post(huayi.config.callcenter_url + 'WorkOrder/Reminders', {
  425. workorderid: str,
  426. token: $.cookie("token")
  427. }, function(result) {
  428. result = JSON.parse(result);
  429. if(result.state.toLowerCase() == 'success') {
  430. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  431. parent.layer.close(index); //再执行关闭
  432. layer.msg('催办成功')
  433. parent.load();
  434. }
  435. })
  436. });
  437. }
  438. //退回38
  439. function returnRedoThreeLevel(str) {
  440. layer.open({
  441. type: 2,
  442. content: "../CommonHtml/returnRedoThreeLevel.html?wid=" + str, //iframe的url,no代表不显示滚动条
  443. title: "退回",
  444. area: ["60%", "80%"], //宽高
  445. });
  446. }
  447. //退回39
  448. function returnAuditor(str) {
  449. layer.open({
  450. type: 2,
  451. content: "../CommonHtml/returnAuditor.html?wid=" + str, //iframe的url,no代表不显示滚动条
  452. title: "退回",
  453. area: ['60%', '80%'], //宽高
  454. });
  455. }
  456. //修改40
  457. function editProcessingResult(str) {
  458. layer.open({
  459. type: 2,
  460. content: "../CommonHtml/editProcessingResult.html?wid=" + str, //iframe的url,no代表不显示滚动条
  461. title: "修改",
  462. area: ["50%", "70%"], //宽高
  463. });
  464. }
  465. // 督办查收41
  466. function superviseCheck(str) {
  467. layer.confirm('确定要查收?', {
  468. btn: ['是', '否'] //按钮
  469. }, function() {
  470. $.post(huayi.config.callcenter_url + "workorder/RemindCheck", {
  471. workorderid: str,
  472. token: $.cookie("token")
  473. }, function(result) {
  474. result = JSON.parse(result);
  475. if(result.state.toLowerCase() == "success") {
  476. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  477. parent.layer.close(index); //再执行关闭
  478. layer.msg("查收成功");
  479. parent.load();
  480. }
  481. })
  482. });
  483. }
  484. //督办审核通过42
  485. function superviseReviewThrough(str) {
  486. layer.confirm('确定审核通过?', {
  487. btn: ['是', '否'] //按钮
  488. }, function() {
  489. $.post(huayi.config.callcenter_url + "workorder/RemindApproved", {
  490. workorderid: str,
  491. token: $.cookie("token")
  492. }, function(result) {
  493. result = JSON.parse(result);
  494. if(result.state.toLowerCase() == "success") {
  495. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  496. parent.layer.close(index); //再执行关闭
  497. layer.msg("操作成功");
  498. parent.load();
  499. }
  500. })
  501. });
  502. }
  503. //督办审核拒绝43
  504. function superviseReviewRefuse(str) {
  505. layer.open({
  506. type: 2,
  507. content: "../CommonHtml/superviseReview.html?wid=" + str + "&review=1", //iframe的url,no代表不显示滚动条
  508. title: '督办审核',
  509. area: ['60%', '80%'], //宽高
  510. });
  511. }
  512. // 省平台签收44
  513. function provincialPlatformSignup(str) {
  514. layer.confirm(
  515. "确定签收吗?", {
  516. btn: ["是", "否"], //按钮
  517. },
  518. function() {
  519. $.post(
  520. huayi.config.callcenter_url + "Affairs/SubmitWorkOrder", {
  521. ids: str,
  522. token: $.cookie("token"),
  523. },
  524. function(result) {
  525. result = JSON.parse(result);
  526. if(result.state.toLowerCase() == "success") {
  527. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  528. parent.layer.close(index); //再执行关闭
  529. layer.msg("操作成功");
  530. parent.load();
  531. }
  532. }
  533. );
  534. }
  535. );
  536. }
  537. // 省平台退回45
  538. function provincialPlatformReturn(str) {
  539. layer.open({
  540. type: 2,
  541. content: "../CommonHtml/provincialPlatformReturn.html?wid=" + str, //iframe的url,no代表不显示滚动条
  542. title: "省平台退回",
  543. area: ["70%", "70%"], //宽高
  544. shade: 0,
  545. });
  546. }
  547. // 省平台申请延时退回 46 type为1 省平台申请延时 48 type为0
  548. function provincialPlatformApplicationDelay(str, type) {
  549. layer.open({
  550. type: 2,
  551. content: "../CommonHtml/provincialPlatformApplicationDelay.html?wid=" + str + "&type=" + type, //iframe的url,no代表不显示滚动条
  552. title: "省平台申请延时",
  553. area: ["70%", "70%"], //宽高
  554. shade: 0,
  555. });
  556. }
  557. // 省平台反馈47
  558. function provincialPlatformFeedback(str) {
  559. layer.open({
  560. type: 2,
  561. content: "../CommonHtml/provincialPlatformFeedback.html?wid=" + str, //iframe的url,no代表不显示滚动条
  562. title: "省平台反馈",
  563. area: ["70%", "70%"], //宽高
  564. shade: 0,
  565. });
  566. }
  567. // 服务工单上报49
  568. function reportServiceWorkOrder(str) {
  569. layer.open({
  570. type: 2,
  571. content: "../CommonHtml/provincialPlatformReport.html?wid=" + str, //iframe的url,no代表不显示滚动条
  572. title: "省平台上报",
  573. area: ["70%", "70%"], //宽高
  574. shade: 0,
  575. });
  576. }
  577. // 已办未果50
  578. function unsuccessful(str) {
  579. layer.confirm('确认已办未果吗?', {
  580. btn: ['是', '否'] //按钮
  581. }, function() {
  582. $.post(huayi.config.callcenter_url + 'WorkOrder/Transfer', {
  583. workorderid: str,
  584. "token": $.cookie("token")
  585. }, function(result) {
  586. result = JSON.parse(result);
  587. if(result.state.toLowerCase() == "success") {
  588. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  589. parent.layer.close(index); //再执行关闭
  590. layer.msg("操作成功");
  591. $("#orderlist").bootstrapTable('refresh');
  592. }
  593. })
  594. });
  595. }
  596. //审核通过51
  597. function approved(str) {
  598. layer.open({
  599. type: 2,
  600. content: "../CommonHtml/auditAddReply.html?wid=" + str , //iframe的url,no代表不显示滚动条
  601. title: "办理工单",
  602. area: ["100%", "80%"], //宽高
  603. });
  604. // layer.confirm('确认审核通过吗?', {
  605. // btn: ['是', '否'] // 按钮
  606. // }, function() {
  607. //
  608. // layer.confirm('是否发送短信?', {
  609. // btn: ['是', '否'] // 按钮
  610. // }, function() {
  611. // toExamineWorkOrder(str, 1)
  612. // }, function() {
  613. // toExamineWorkOrder(str, 0)
  614. // });
  615. //
  616. // });
  617. }
  618. //
  619. function toExamineWorkOrder(str, issmsAudit) {
  620. $.post(huayi.config.callcenter_url + 'WorkOrder/ToExamineWorkOrder', {
  621. workorderid: str,
  622. nexttype: 0, // 0审核通过 1审核不通过 2审核通过转办
  623. issms: issmsAudit,
  624. "token": $.cookie("token")
  625. }, function(result) {
  626. result = JSON.parse(result);
  627. if(result.state.toLowerCase() == "success") {
  628. layer.msg("操作成功");
  629. $("#orderlist").bootstrapTable('refresh');
  630. }
  631. })
  632. }
  633. //审核不通过52
  634. function auditFailed(str) {
  635. layer.open({
  636. type: 2,
  637. content: "../CommonHtml/haveDoneToAuditOperation.html?wid=" + str + "&nexttype=1", //iframe的url,no代表不显示滚动条
  638. title: "审核不通过",
  639. area: ["50%", "50%"], //宽高
  640. });
  641. }
  642. //审核通过转办53
  643. function approvedComplaint(str) {
  644. layer.open({
  645. type: 2,
  646. content: "../CommonHtml/haveDoneToAuditOperation.html?wid=" + str + "&nexttype=2", //iframe的url,no代表不显示滚动条
  647. title: "审核通过转办",
  648. area: ["50%", "50%"], //宽高
  649. });
  650. }
  651. //审核通过54
  652. function auditMultimediaThrough(str) {
  653. layer.open({
  654. type: 2,
  655. content: "../CommonHtml/auditMultimedia.html?wid=" + str + "&nexttype=0", //iframe的url,no代表不显示滚动条
  656. title: "审核",
  657. area: ["80%", "80%"], //宽高
  658. });
  659. }
  660. // 审核不通过55
  661. function auditMultimediaNotThrough(str) {
  662. layer.open({
  663. type: 2,
  664. content: "../CommonHtml/auditMultimedia.html?wid=" + str + "&nexttype=1", //iframe的url,no代表不显示滚动条
  665. title: "审核",
  666. area: ["80%", "80%"], //宽高
  667. });
  668. }
  669. // 回复56
  670. function replyMultimedia(str) {
  671. layer.open({
  672. type: 2,
  673. content: "../CommonHtml/replyMultimedia.html?wid=" + str, //iframe的url,no代表不显示滚动条
  674. title: "回复",
  675. area: ["60%", "60%"], //宽高
  676. });
  677. }
  678. //审核57
  679. function auditAll(str) {
  680. layer.open({
  681. type: 2,
  682. content: "../CommonHtml/haveDoneToAuditOperationAll.html?wid=" + str + "&nexttype=1", //iframe的url,no代表不显示滚动条
  683. title: "审核不通过",
  684. area: ["50%", "50%"], //宽高
  685. });
  686. }
  687. //重推58
  688. function rePush(str) {
  689. layer.confirm('确定重推此工单?', {
  690. btn: ['是', '否'] //按钮
  691. }, function() {
  692. $.post(huayi.config.callcenter_url + "Affairs/ReFinishWorkOrder", {
  693. workorderid: str,
  694. token: $.cookie("token")
  695. }, function(result) {
  696. result = JSON.parse(result);
  697. if(result.state.toLowerCase() == "success") {
  698. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  699. parent.layer.close(index); //再执行关闭
  700. layer.msg("重推成功");
  701. parent.load();
  702. }
  703. })
  704. });
  705. }
  706. //审核申请延时59
  707. function ysThree(str) {
  708. layer.open({
  709. type: 2,
  710. content: "../CommonHtml/Timesq.html?wid=" + str + '&level=3', //iframe的url,no代表不显示滚动条
  711. title: '审核延时申请',
  712. area: ['60%', '80%'], //宽高
  713. });
  714. }
  715. //审核申请延时60
  716. function shysThree(str) {
  717. layer.open({
  718. type: 2,
  719. content: "../CommonHtml/shtime.html?wid=" + str + '&auditInfoType=4', //iframe的url,no代表不显示滚动条
  720. title: "审核延时申请",
  721. area: ["60%", "80%"], //宽高
  722. });
  723. }
  724. //转110 61
  725. function transferOneHun(str) {
  726. layer.confirm(
  727. "确定要转110吗?", {
  728. btn: ["是", "否"], //按钮
  729. },
  730. function() {
  731. $.post(
  732. huayi.config.callcenter_url + "APPS/PushWorkOrder", {
  733. workorderid: str,
  734. token: $.cookie("token"),
  735. },
  736. function(result) {
  737. result = JSON.parse(result);
  738. if(result.state.toLowerCase() == "success") {
  739. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  740. parent.layer.close(index); //再执行关闭
  741. layer.msg("操作成功");
  742. parent.load();
  743. }
  744. }
  745. );
  746. }
  747. );
  748. }
  749. //市平台申请延期 62
  750. function ysShi(str) {
  751. layer.open({
  752. type: 2,
  753. content: "../CommonHtml/shiTimesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  754. title: "市平台申请延时",
  755. area: ["70%", "70%"], //宽高
  756. shade: 0,
  757. });
  758. }
  759. //转知识库 63
  760. //function changeknowledge(wid, tit, con) {
  761. // console.log(wid, tit, con)
  762. // var knowkey = ''
  763. // $.ajax({
  764. // type: "get",
  765. // url: huayi.config.callcenter_url + "WorkOrder/GetWorkOrderNew",
  766. // dataType: 'json',
  767. // async: false,
  768. // data: {
  769. // workorderid: wid,
  770. // type: 0,
  771. // token: $.cookie("token")
  772. // },
  773. // success: function(result) {
  774. // if(result.state.toLowerCase() == "success") {
  775. // var Data = result.data.data;
  776. // knowkey = Data[0].F_Key
  777. // changeKnowLayer(tit, con, knowkey)
  778. // }
  779. // }
  780. // })
  781. // console.log(knowkey, 'knowkey')
  782. //}
  783. //转知识库 63
  784. function changeknowledge(wid, tit, con) {
  785. console.log(wid, tit, con)
  786. layer.confirm(
  787. "确定转知识库?", {
  788. btn: ["是", "否"], //按钮
  789. },
  790. function() {
  791. $.post(
  792. huayi.config.callcenter_url +
  793. "Knowledge/AddInfoByGD", {
  794. workorderid:wid,
  795. token: $.cookie("token"),
  796. },
  797. function(result) {
  798. result = JSON.parse(result);
  799. if(result.state == "success") {
  800. layer.msg("操作成功");
  801. load();
  802. }
  803. }
  804. );
  805. }
  806. );
  807. }
  808. //转非营商 64
  809. function doNotBusiness(str) {
  810. layer.confirm(
  811. "确定要转为非营商工单吗?", {
  812. btn: ["是", "否"], //按钮
  813. },
  814. function() {
  815. $.post(
  816. huayi.config.callcenter_url + "WorkOrder/Reseller", {
  817. workorderid: str,
  818. type: 0,
  819. token: $.cookie("token"),
  820. },
  821. function(result) {
  822. result = JSON.parse(result);
  823. if(result.state == "success") {
  824. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  825. parent.layer.close(index); //再执行关闭
  826. layer.msg("操作成功");
  827. parent.load();
  828. }
  829. }
  830. );
  831. }
  832. );
  833. }
  834. //转营商 65
  835. function doBusiness(str) {
  836. layer.confirm(
  837. "确定要转为营商工单吗?", {
  838. btn: ["是", "否"], //按钮
  839. },
  840. function() {
  841. $.post(
  842. huayi.config.callcenter_url + "WorkOrder/Reseller", {
  843. workorderid: str,
  844. type: 1,
  845. token: $.cookie("token"),
  846. },
  847. function(result) {
  848. result = JSON.parse(result);
  849. if(result.state == "success") {
  850. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  851. parent.layer.close(index); //再执行关闭
  852. layer.msg("操作成功");
  853. parent.load();
  854. }
  855. }
  856. );
  857. }
  858. );
  859. }
  860. //转调度 72
  861. function reschedule(data) {
  862. layer.open({
  863. type: 2,
  864. content: "../CommonHtml/reschedule.html?wid=" + data, //iframe的url,no代表不显示滚动条
  865. title: "转调度",
  866. area: ["30%", "50%"], //宽高
  867. shade: 0,
  868. });
  869. }
  870. // 不计入考核 66
  871. function noExamine(str) {
  872. layer.confirm(
  873. "确定要不计入考核吗?", {
  874. btn: ["是", "否"], //按钮
  875. },
  876. function() {
  877. $.post(
  878. huayi.config.callcenter_url + "WorkOrder/Examine", {
  879. workorderid: str,
  880. state: 0,
  881. token: $.cookie("token"),
  882. },
  883. function(result) {
  884. result = JSON.parse(result);
  885. if(result.state == "success") {
  886. var index = layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  887. layer.close(index); //再执行关闭
  888. layer.msg("操作成功");
  889. load();
  890. }
  891. }
  892. );
  893. }
  894. );
  895. }
  896. // 纪委退回 67
  897. function returnDiscipline(str) {
  898. layer.open({
  899. type: 2,
  900. content: "../CommonHtml/returnDiscipline.html?wid=" + str, //iframe的url,no代表不显示滚动条
  901. title: "退回",
  902. area: ['60%', '80%'], //宽高
  903. });
  904. }
  905. // 追加回复 68
  906. function addReply(str,isProtect){
  907. layer.open({
  908. type: 2,
  909. content: "../CommonHtml/addReply.html?wid=" + str + "&isProtect=" + isProtect, //iframe的url,no代表不显示滚动条
  910. title: "办理工单",
  911. area: ["100%", "80%"], //宽高
  912. });
  913. }
  914. // 审核追加回复 69
  915. function audioAddReply(str){
  916. layer.open({
  917. type: 2,
  918. content: "../CommonHtml/auditAddReply.html?wid=" + str , //iframe的url,no代表不显示滚动条
  919. title: "办理工单",
  920. area: ["100%", "80%"], //宽高
  921. });
  922. }
  923. // 三级单位追加回复 70
  924. function audioAddReplyThird(str){
  925. layer.open({
  926. type: 2,
  927. content: "../CommonHtml/auditAddReplyThird.html?wid=" + str , //iframe的url,no代表不显示滚动条
  928. title: "办理工单",
  929. area: ["100%", "80%"], // 宽高
  930. });
  931. }
  932. // 审核三级单位追加回复 71
  933. function addReplyThird(str,isProtect){
  934. layer.open({
  935. type: 2,
  936. content: "../CommonHtml/addReplyThird.html?wid=" + str + "&isProtect=" + isProtect, // iframe的url,no代表不显示滚动条
  937. title: "办理工单",
  938. area: ["100%", "80%"], //宽高
  939. });
  940. }
  941. // 修改反应类别73
  942. function editCategory(str){
  943. layer.open({
  944. type: 2,
  945. content: "../CommonHtml/editCategory.html?wid=" + str , // iframe的url,no代表不显示滚动条
  946. title: "修改反应类别",
  947. area: ["60%", "50%"], //宽高
  948. });
  949. }
  950. // 不计考核74
  951. function applyNoAudit(str){
  952. layer.open({
  953. type: 2,
  954. content: "../CommonHtml/applyNoAudit.html?wid=" + str , // iframe的url,no代表不显示滚动条
  955. title: "申请不计入考核",
  956. area: ["60%", "50%"], //宽高
  957. });
  958. }