Brak opisu

tertiaryUnit.js 7.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306
  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: ['100%', '100%'], //宽高
  8. });
  9. }
  10. //编辑
  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. //删除
  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. layer.msg("删除成功");
  31. load();
  32. }
  33. })
  34. });
  35. }
  36. //提交
  37. function tj(str) {
  38. layer.confirm('确定要提交工单么?', {
  39. btn: ['确定', '取消'] //按钮
  40. }, function() {
  41. //请求后台数据
  42. /*发送请求*/
  43. $.post(huayi.config.callcenter_url + "WorkOrder/SubmitWorkOrder", {
  44. ids: str,
  45. token: $.cookie("token")
  46. }, function(result) {
  47. result = JSON.parse(result);
  48. if(result.state.toLowerCase() == "success") {
  49. layer.msg("提交成功");
  50. load();
  51. }
  52. })
  53. });
  54. }
  55. //交办
  56. function jb(str) {
  57. layer.open({
  58. type: 2,
  59. content: "../CommonHtml/JiaoBan.html?wid=" + str, //iframe的url,no代表不显示滚动条
  60. title: '工单交办',
  61. area: ['87%', '80%'], //宽高
  62. });
  63. }
  64. //领导批示
  65. function lader(str) {
  66. layer.open({
  67. type: 2,
  68. content: "../CommonHtml/Leader.html?wid=" + str, //iframe的url,no代表不显示滚动条
  69. title: '领导批示',
  70. area: ['60%', '80%'], //宽高
  71. });
  72. }
  73. //市长批示
  74. function city(str) {
  75. layer.open({
  76. type: 2,
  77. content: "../CommonHtml/shizhang.html?wid=" + str, //iframe的url,no代表不显示滚动条
  78. title: '领导批示',
  79. area: ['60%', '80%'], //宽高
  80. });
  81. }
  82. //办理
  83. function bl(str, isProtect) {
  84. layer.open({
  85. type: 2,
  86. content: "../CommonHtml/banli_zilei.html?wid=" + str + "&isProtect=" +
  87. isProtect, //iframe的url,no代表不显示滚动条
  88. title: '办理工单',
  89. area: ['90%', '80%'], //宽高
  90. });
  91. }
  92. //派单
  93. function pd(str) {
  94. layer.open({
  95. type: 2,
  96. content: "../CommonHtml/handle.html?wid=" + str, //iframe的url,no代表不显示滚动条
  97. title: '派单',
  98. area: ['87%', '80%'], //宽高
  99. });
  100. }
  101. //督办
  102. function Supervision(str) {
  103. layer.open({
  104. type: 2,
  105. content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=1', //iframe的url,no代表不显示滚动条
  106. title: '督办',
  107. area: ['60%', '80%'], //宽高
  108. });
  109. }
  110. //督查
  111. function Supervision_(str) {
  112. layer.open({
  113. type: 2,
  114. content: "../CommonHtml/Supervision_.html?wid=" + str + '&type=2', //iframe的url,no代表不显示滚动条
  115. title: '监察',
  116. area: ['60%', '80%'], //宽高
  117. });
  118. }
  119. //强制结案
  120. function StrongLawsuit(str) {
  121. layer.open({
  122. type: 2,
  123. content: "../CommonHtml/StrongLawsuit.html?wid=" + str, //iframe的url,no代表不显示滚动条
  124. title: '强制结案',
  125. area: ['60%', '80%'], //宽高
  126. });
  127. }
  128. //回退BackDtail
  129. function BackDtail(str) {
  130. layer.open({
  131. type: 2,
  132. content: "../CommonHtml/BackDatil.html?wid=" + str, //iframe的url,no代表不显示滚动条
  133. title: '工单回退',
  134. area: ['60%', '80%'], //宽高
  135. });
  136. }
  137. //查收
  138. function cs(str) {
  139. layer.confirm('确定要查收?', {
  140. btn: ['是', '否'] //按钮
  141. }, function() {
  142. $.post(huayi.config.callcenter_url + "WorkOrder/ReceiveWorkOrder", {
  143. workorderid: str,
  144. token: $.cookie("token")
  145. }, function(result) {
  146. result = JSON.parse(result);
  147. if(result.state.toLowerCase() == "success") {
  148. layer.msg("查收成功");
  149. load();
  150. }
  151. })
  152. });
  153. }
  154. //收回
  155. function sh(str) {
  156. layer.confirm('确定要回收?', {
  157. btn: ['是', '否'] //按钮
  158. }, function() {
  159. $.post(huayi.config.callcenter_url + "WorkOrder/TakeBackWorkOrder", {
  160. workorderid: str,
  161. token: $.cookie("token")
  162. }, function(result) {
  163. result = JSON.parse(result);
  164. if(result.state.toLowerCase() == "success") {
  165. layer.msg("回收");
  166. load();
  167. }
  168. })
  169. });
  170. }
  171. //强制回收
  172. function recycles() {
  173. layer.confirm('确定要强制退回吗?', {
  174. btn: ['是', '否'] //按钮
  175. });
  176. }
  177. //退回申请
  178. function th(str) {
  179. layer.open({
  180. type: 2,
  181. content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  182. title: '申请退回工单',
  183. area: ['60%', '80%'], //宽高
  184. });
  185. }
  186. //审核退回申请
  187. function shth(str) {
  188. layer.open({
  189. type: 2,
  190. content: "../CommonHtml/shth.html?wid=" + str, //iframe的url,no代表不显示滚动条
  191. title: '审核退回申请',
  192. area: ['60%', '80%'], //宽高
  193. });
  194. }
  195. //办理
  196. // function th(str) {
  197. // layer.open({
  198. // type: 2,
  199. // content: "../CommonHtml/tuihuisq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  200. // title: '办理工单',
  201. // area: ['35%', '30%'], //宽高
  202. // });
  203. // }
  204. //签收
  205. function sign(str) {
  206. layer.confirm('确定要签收?', {
  207. btn: ['是', '否'] //按钮
  208. }, function() {
  209. $.post(huayi.config.callcenter_url + "WorkOrder/SignWorkOrder", {
  210. workorderid: str,
  211. token: $.cookie("token")
  212. }, function(result) {
  213. result = JSON.parse(result);
  214. if(result.state.toLowerCase() == "success") {
  215. layer.msg("签收成功");
  216. load();
  217. }
  218. })
  219. });
  220. }
  221. //拒收
  222. function refuse(str) {
  223. layer.open({
  224. type: 2,
  225. content: "../CommonHtml/rejection.html?wid=" + str, //iframe的url,no代表不显示滚动条
  226. title: '拒收',
  227. area: ['60%', '80%'], //宽高
  228. });
  229. }
  230. //申请延时
  231. function ys(str) {
  232. layer.open({
  233. type: 2,
  234. content: "../CommonHtml/Timesq.html?wid=" + str, //iframe的url,no代表不显示滚动条
  235. title: '申请延时',
  236. area: ['60%', '80%'], //宽高
  237. });
  238. }
  239. //审核申请延时
  240. function ysThree(str) {
  241. layer.open({
  242. type: 2,
  243. content: "../CommonHtml/Timesq.html?wid=" + str+'&level=3', //iframe的url,no代表不显示滚动条
  244. title: '审核延时申请',
  245. area: ['60%', '80%'], //宽高
  246. });
  247. }
  248. //审核申请延时
  249. function shys(str) {
  250. layer.open({
  251. type: 2,
  252. content: "../CommonHtml/shtime.html?wid=" + str, //iframe的url,no代表不显示滚动条
  253. title: '审核延时申请',
  254. area: ['60%', '80%'], //宽高
  255. });
  256. }
  257. //诉求回访
  258. function hf(str) {
  259. layer.open({
  260. type: 2,
  261. content: "../CommonHtml/Back.html?wid=" + str, //iframe的url,no代表不显示滚动条
  262. title: '工单回访',
  263. area: ['60%', '80%'], //宽高
  264. });
  265. }
  266. //重办工单
  267. function cb(str) {
  268. layer.open({
  269. type: 2,
  270. content: "../CommonHtml/Cb.html?wid=" + str, //iframe的url,no代表不显示滚动条
  271. title: '重办工单',
  272. area: ['60%', '80%'], //宽高
  273. });
  274. }
  275. //结案
  276. function Lawsuit(str) {
  277. layer.open({
  278. type: 2,
  279. content: "../CommonHtml/lawsuits.html?wid=" + str, //iframe的url,no代表不显示滚动条
  280. title: '诉求单结案',
  281. area: ['60%', '80%'], //宽高
  282. });
  283. }
  284. //退回
  285. function returnRedoThreeLevel(str) {
  286. layer.open({
  287. type: 2,
  288. content: "../CommonHtml/returnRedoThreeLevel.html?wid=" + str, //iframe的url,no代表不显示滚动条
  289. title: "退回",
  290. area: ["60%", "80%"], //宽高
  291. });
  292. }
  293. $('.Appeal').click(function() {
  294. layer.open({
  295. type: 2,
  296. content: "../CommonHtml/AddAppeal.html?wid=", //iframe的url,no代表不显示滚动条
  297. title: '新增诉求',
  298. area: ['85%', '80%'], //宽高
  299. });
  300. })