商丘12345 前端

workCommon.js 12KB

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