Açıklama Yok

orderListOperation.js 23KB

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