Keine Beschreibung

details.html 64KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>工单详情</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
  7. <meta name="apple-mobile-web-app-capable" content="yes">
  8. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  9. <link href="../css/mui.css" rel="stylesheet" />
  10. <link href="../css/mui.picker.css" rel="stylesheet" />
  11. <link href="../css/mui.poppicker.css" rel="stylesheet" />
  12. <link href="../css/iconfont.css" rel="stylesheet" />
  13. <link href="css/details.css" rel="stylesheet" />
  14. <style>
  15. .pop_up_div8{
  16. display: none;
  17. }
  18. #order_source{
  19. margin-left: 10%;
  20. display: none;
  21. }
  22. </style>
  23. </head>
  24. <body>
  25. <div class="mui-nav" id="mNavbar">
  26. <a class="mui-icon mui-icon-arrowleft return"></a>
  27. 工单详情
  28. </div>
  29. <div class="mui-content" id="mContent">
  30. <ul class="mui-table-view mui-table-view-ul" style="margin-top: 0px;">
  31. <li class="mui-table-view-cell mui-table-view-li">
  32. <div class="mui-input-row">
  33. <label class="label font-color5">工单编号:</label>
  34. <div class="mui-radio mui-right radio_box">
  35. <label class="font-color6" id="Work_bianhao"></label>
  36. </div>
  37. </div>
  38. </li>
  39. <li class="mui-table-view-cell mui-table-view-li">
  40. <div class="mui-input-row">
  41. <label class="label font-color5">工单类型:</label>
  42. <div class="mui-radio mui-right radio_box">
  43. <label class="font-color6" id="Work_classname"></label>
  44. </div>
  45. </div>
  46. </li>
  47. <li class="mui-table-view-cell mui-table-view-li">
  48. <div class="mui-input-row">
  49. <label class="label font-color5">部门:</label>
  50. <div class="mui-radio mui-right radio_box">
  51. <label class="font-color6" id="section"></label>
  52. </div>
  53. </div>
  54. </li>
  55. <li class="mui-table-view-cell mui-table-view-li ">
  56. <div class="mui-input-row">
  57. <label class="label font-color5">客户姓名:</label>
  58. <div class="mui-radio mui-right radio_box">
  59. <label class="font-color6" id="customer"></label>
  60. </div>
  61. </div>
  62. </li>
  63. <li class="mui-table-view-cell mui-table-view-li">
  64. <div class="mui-input-row">
  65. <label class="label font-color5">联系电话:</label>
  66. <div class="mui-radio mui-right radio_box">
  67. <label class="font-color6" id="customerTel"></label>
  68. </div>
  69. </div>
  70. </li>
  71. <!--<li class="mui-table-view-cell mui-table-view-li">
  72. <div class="mui-input-row">
  73. <label class="label font-color5">公司名称:</label>
  74. <div class="mui-radio mui-right radio_box">
  75. <label class="font-color6" id="Work_areaname" data-index=""></label>
  76. </div>
  77. </div>
  78. </li>-->
  79. <li class="mui-table-view-cell mui-table-view-li">
  80. <div class="mui-input-row">
  81. <label class="label font-color5">业务员:</label>
  82. <div class="mui-radio mui-right radio_box">
  83. <label class="font-color6" id="order_tower"></label>
  84. <!--<span id="order_tower"> </span>-->
  85. </div>
  86. </div>
  87. </li>
  88. <li class="mui-table-view-cell mui-table-view-li">
  89. <div class="mui-input-row">
  90. <label class="label font-color5">业务员电话:</label>
  91. <div class="mui-radio mui-right radio_box">
  92. <label class="font-color6" id="order_unit"></label>
  93. </div>
  94. </div>
  95. </li>
  96. <li class="mui-table-view-cell mui-table-view-li">
  97. <div class="mui-input-row">
  98. <label class="label font-color5">问题类别:</label>
  99. <div class="mui-radio mui-right radio_box">
  100. <label class="font-color6" id="order_classes"></label>
  101. </div>
  102. </div>
  103. </li>
  104. <li class="mui-table-view-cell mui-table-view-li">
  105. <div class="mui-input-row">
  106. <label class="label font-color5">事发地:</label>
  107. <div class="mui-radio mui-right radio_box">
  108. <label class="font-color6" id="order_account"></label>
  109. </div>
  110. </div>
  111. </li>
  112. <li class="mui-table-view-cell mui-table-view-li">
  113. <div class="mui-input-row">
  114. <label class="label font-color5">市区:</label>
  115. <div class="mui-radio mui-right radio_box">
  116. <label class="font-color6" id="order_downtown"></label>
  117. </div>
  118. </div>
  119. </li>
  120. <li class="mui-table-view-cell mui-table-view-li">
  121. <div class="mui-input-row">
  122. <label class="label font-color5">县区:</label>
  123. <div class="mui-radio mui-right radio_box">
  124. <label class="font-color6" id="order_counties"></label>
  125. </div>
  126. </div>
  127. </li>
  128. <li class="mui-table-view-cell mui-table-view-li">
  129. <div class="mui-input-row">
  130. <label class="label font-color5">乡:</label>
  131. <div class="mui-radio mui-right radio_box">
  132. <label class="font-color6" id="order_village"></label>
  133. </div>
  134. </div>
  135. </li>
  136. <li class="mui-table-view-cell mui-table-view-li">
  137. <div class="mui-input-row">
  138. <label class="label font-color5">详细地址:</label>
  139. <div class="mui-radio mui-right radio_box">
  140. <label class="font-color6" id="order_address"></label>
  141. </div>
  142. </div>
  143. </li>
  144. <li class="mui-table-view-cell mui-table-view-li">
  145. <div class="mui-input-row">
  146. <label class="label font-color5">抽检时间:</label>
  147. <div class="mui-radio mui-right radio_box">
  148. <label class="font-color6" id="order_matime"></label>
  149. </div>
  150. </div>
  151. </li>
  152. <li class="mui-table-view-cell mui-table-view-li">
  153. <div class="mui-input-row">
  154. <label class="label font-color5">抽检级别:</label>
  155. <div class="mui-radio mui-right radio_box">
  156. <label class="font-color6" id="order_grade"></label>
  157. </div>
  158. </div>
  159. </li>
  160. <li class="mui-table-view-cell mui-table-view-li">
  161. <div class="mui-input-row">
  162. <label class="label font-color5">抽检单位:</label>
  163. <div class="mui-radio mui-right radio_box">
  164. <label class="font-color6" id="order_gunits"></label>
  165. </div>
  166. </div>
  167. </li>
  168. <li class="mui-table-view-cell mui-table-view-li">
  169. <div class="mui-input-row">
  170. <label class="label font-color5">化验单位:</label>
  171. <div class="mui-radio mui-right radio_box">
  172. <label class="font-color6" id="order_analysis"></label>
  173. </div>
  174. </div>
  175. </li>
  176. <li class="mui-table-view-cell mui-table-view-li">
  177. <div class="mui-input-row">
  178. <label class="label font-color5">抽检吨数:</label>
  179. <div class="mui-radio mui-right radio_box">
  180. <label class="font-color6" id="order_assay"></label>
  181. </div>
  182. </div>
  183. </li>
  184. <li class="mui-table-view-cell mui-table-view-li">
  185. <div class="mui-input-row">
  186. <label class="label font-color5">抽检袋数:</label>
  187. <div class="mui-radio mui-right radio_box">
  188. <label class="font-color6" id="order_bags"></label>
  189. </div>
  190. </div>
  191. </li>
  192. <li class="mui-table-view-cell mui-table-view-li">
  193. <div class="mui-input-row">
  194. <label class="label font-color5">公关费用:</label>
  195. <div class="mui-radio mui-right radio_box">
  196. <label class="font-color6" id="order_cost"></label>
  197. </div>
  198. </div>
  199. </li>
  200. <li class="mui-table-view-cell mui-table-view-li">
  201. <div class="mui-input-row">
  202. <label class="label font-color5">销售基地:</label>
  203. <div class="mui-radio mui-right radio_box">
  204. <label class="font-color6" id="order_matrix"></label>
  205. </div>
  206. </div>
  207. </li>
  208. <li class="mui-table-view-cell mui-table-view-li">
  209. <div class="mui-input-row">
  210. <label class="label font-color5">大区:</label>
  211. <div class="mui-radio mui-right radio_box">
  212. <label class="font-color6" id="order_macrocell"></label>
  213. </div>
  214. </div>
  215. </li>
  216. <li class="mui-table-view-cell mui-table-view-li">
  217. <div class="mui-input-row">
  218. <label class="label font-color5">分公司:</label>
  219. <div class="mui-radio mui-right radio_box">
  220. <label class="font-color6" id="order_filiale"></label>
  221. </div>
  222. </div>
  223. </li>
  224. <li class="mui-table-view-cell mui-table-view-li">
  225. <div class="mui-input-row">
  226. <label class="label font-color5">客户编码:</label>
  227. <div class="mui-radio mui-right radio_box">
  228. <label class="font-color6" id="order_material"></label>
  229. </div>
  230. </div>
  231. </li>
  232. <li class="mui-table-view-cell mui-table-view-li">
  233. <div class="mui-input-row">
  234. <label class="label font-color5">物料名称:</label>
  235. <div class="mui-radio mui-right radio_box">
  236. <label class="font-color6" id="order_mate"></label>
  237. </div>
  238. </div>
  239. </li>
  240. <li class="mui-table-view-cell mui-table-view-li">
  241. <div class="mui-input-row">
  242. <label class="label font-color5">型号:</label>
  243. <div class="mui-radio mui-right radio_box">
  244. <label class="font-color6" id="order_model"></label>
  245. </div>
  246. </div>
  247. </li>
  248. <li class="mui-table-view-cell mui-table-view-li">
  249. <div class="mui-input-row">
  250. <label class="label font-color5">产品名称:</label>
  251. <div class="mui-radio mui-right radio_box">
  252. <label class="font-color6" id="order_product"></label>
  253. </div>
  254. </div>
  255. </li>
  256. <li class="mui-table-view-cell mui-table-view-li">
  257. <div class="mui-input-row">
  258. <label class="label font-color5">问题数量:</label>
  259. <div class="mui-radio mui-right radio_box">
  260. <label class="font-color6" id="order_Question"></label>
  261. </div>
  262. </div>
  263. </li>
  264. <li class="mui-table-view-cell mui-table-view-li">
  265. <div class="mui-input-row">
  266. <label class="label font-color5">添加人工号:</label>
  267. <div class="mui-radio mui-right radio_box">
  268. <label class="font-color6" id="Work_houseID"></label>
  269. </div>
  270. </div>
  271. </li>
  272. <!--业主信息-->
  273. <!--<li class="mui-table-view-cell mui-table-view-li">
  274. <div class="mui-input-row">
  275. <label class="label font-color5">业主信息:</label>
  276. <div class="mui-radio mui-right radio_box">
  277. <label class="font-color6">范冰冰 1566666666</label>
  278. </div>
  279. </div>
  280. </li>-->
  281. <li class="mui-table-view-cell mui-table-view-li">
  282. <div class="mui-input-row">
  283. <label class="label font-color5">处理人:</label>
  284. <div class="mui-radio mui-right radio_box">
  285. <label class="font-color6" id="Work_ownerRelations"></label>
  286. </div>
  287. </div>
  288. </li>
  289. <li class="mui-table-view-cell mui-table-view-li" id="source">
  290. <div class="mui-input-row">
  291. <label class="label font-color5">处理时间:</label>
  292. <div class="mui-radio mui-right radio_box">
  293. <label class="font-color6" id="Work_source"></label>
  294. </div>
  295. </div>
  296. </li>
  297. <li class="mui-table-view-cell mui-table-view-li Work_lastDealDiv">
  298. <div class="mui-input-row">
  299. <label class="label font-color5">处理内容:</label>
  300. <div class="mui-radio mui-right radio_box">
  301. <label class="font-color6 Work_lastDealUser"></label>
  302. </div>
  303. </div>
  304. </li>
  305. <li class="mui-table-view-cell mui-table-view-li">
  306. <div class="mui-input-row">
  307. <label class="label font-color5">处理结果:</label>
  308. <div class="mui-radio mui-right radio_box">
  309. <label class="font-color6 Work_last"></label>
  310. </div>
  311. </div>
  312. </li>
  313. <li class="mui-table-view-cell mui-table-view-li">
  314. <div class="mui-input-row">
  315. <label class="label font-color5">未处理原因:</label>
  316. <div class="mui-radio mui-right radio_box">
  317. <label class="font-color6" id="Work_workOrderID"></label>
  318. </div>
  319. </div>
  320. </li>
  321. <li class="mui-table-view-cell mui-table-view-li">
  322. <div class="mui-input-row">
  323. <label class="label font-color5">是否回访:</label>
  324. <div class="mui-radio mui-right radio_box">
  325. <label class="font-color6" id="Work_wor"></label>
  326. </div>
  327. </div>
  328. </li>
  329. <!--<li class="mui-table-view-cell mui-table-view-cell-pmargin ">
  330. <p><span class="font-color4">补充描述:</span>预约时间改为下午六点。现在不方便</p>
  331. </li>-->
  332. <li class="mui-table-view-cell mui-table-view-cell-pmargin">
  333. <p id="Work_detail"></p>
  334. </li>
  335. <!--<li class="mui-table-view-cell mui-table-view-cell-pmargin" id="Work_comment">
  336. </li>-->
  337. </ul>
  338. <ul class="mui-table-view mui-grid-view">
  339. <h4 class="mui-ellipsis size-16 mui_btn1_tit">操作按钮:</h4>
  340. <div class="type1">
  341. <!--待派单-->
  342. <div class="mui_btn1 dispose1">
  343. <li class=" mui-media mui-col-xs-3 shenpi">
  344. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block receiving">办理</button>
  345. </li>
  346. <!--<li class=" mui-media mui-col-xs-3 xiugai">
  347. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block edit">修改</button>
  348. </li>-->
  349. <!--<li class=" mui-media mui-col-xs-3">
  350. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block redeploy">转派</button>
  351. </li>
  352. <li class=" mui-media mui-col-xs-3">
  353. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block finsh">完结</button>
  354. </li>-->
  355. </div>
  356. <!--待处理-->
  357. <div class="mui_btn1 dispose2">
  358. <li class=" mui-media mui-col-xs-3">
  359. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block edit">修改</button>
  360. </li>
  361. <li class=" mui-media mui-col-xs-3">
  362. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block sendback">退回</button>
  363. </li>
  364. <!--<li class=" mui-media mui-col-xs-3">
  365. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block delet">删除</button>
  366. </li>
  367. <li class=" mui-media mui-col-xs-3">
  368. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block deal">处理</button>
  369. </li>
  370. <li class=" mui-media mui-col-xs-3">
  371. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block btn_reply">回复</button>
  372. </li>-->
  373. </div>
  374. <!--已完成-->
  375. <div class="mui_btn1 dispose3">
  376. <li class=" mui-media mui-col-xs-3">
  377. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block edit">修改</button>
  378. </li>
  379. <!--<li class=" mui-media mui-col-xs-3">
  380. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block delet">删除</button>
  381. </li>-->
  382. <!--<li class=" mui-media mui-col-xs-3">
  383. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block comment">评论</button>
  384. </li>-->
  385. </div>
  386. <div class="mui_btn1 dispose4">
  387. <li class=" mui-media mui-col-xs-3 itypeQs">
  388. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block edit">修改</button>
  389. </li>
  390. <li class=" mui-media mui-col-xs-3 shenpi">
  391. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block receiving">办理</button>
  392. </li>
  393. </div>
  394. </div>
  395. <div class="type2">
  396. <!--待派单-->
  397. <div class="mui_btn1 dispose1">
  398. <li class=" mui-media mui-col-xs-3">
  399. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block rece">接单</button>
  400. </li>
  401. <li class=" mui-media mui-col-xs-3">
  402. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block sendback">退回</button>
  403. </li>
  404. </div>
  405. <!--待处理-->
  406. <div class="mui_btn1 dispose2">
  407. <li class=" mui-media mui-col-xs-3">
  408. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block disp">处理</button>
  409. </li>
  410. <li class=" mui-media mui-col-xs-3">
  411. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block allot">分配</button>
  412. </li>
  413. <li class=" mui-media mui-col-xs-3">
  414. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block abnormal">异常退回</button>
  415. </li>
  416. <li class=" mui-media mui-col-xs-3">
  417. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block postpone">申请延期</button>
  418. </li>
  419. <!--<li class=" mui-media mui-col-xs-3">
  420. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block btn_reply">回复</button>
  421. </li>-->
  422. </div>
  423. <!--已完成-->
  424. <!--<div class="mui_btn1 dispose3">
  425. <li class=" mui-media mui-col-xs-3">
  426. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block comment">评论</button>
  427. </li>
  428. </div>-->
  429. </div>
  430. <div class="type3">
  431. <!--待派单-->
  432. <!--<div class="mui_btn1 dispose1">
  433. <li class=" mui-media mui-col-xs-3 banli">
  434. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block receiving">办理</button>
  435. </li>
  436. </div>-->
  437. <div class="mui_btn1 dispose2">
  438. <li class=" mui-media mui-col-xs-3">
  439. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block approva">高层办理</button>
  440. </li>
  441. </div>
  442. </div>
  443. <div class="type4">
  444. <!--待派单-->
  445. <div class="mui_btn1 ">
  446. <li class=" mui-media mui-col-xs-3">
  447. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block receiving">接单</button>
  448. </li>
  449. </div>
  450. <!--待处理-->
  451. <div class="mui_btn1 dispose2">
  452. <li class=" mui-media mui-col-xs-3">
  453. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block daal">处理</button>
  454. </li>
  455. </div>
  456. </div>
  457. <div class="type5">
  458. <!--待处理-->
  459. <div class="mui_btn1 dispose3">
  460. <li class=" mui-media mui-col-xs-3">
  461. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block daal">催单</button>
  462. </li>
  463. </div>
  464. <!--待处理-->
  465. <div class="mui_btn1 dispose1">
  466. <li class=" mui-media mui-col-xs-3">
  467. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block daal">催单</button>
  468. </li>
  469. </div>
  470. <!--已完成-->
  471. <div class="mui_btn1 dispose2">
  472. <li class=" mui-media mui-col-xs-3">
  473. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block comment">评论</button>
  474. </li>
  475. </div>
  476. </div>
  477. </ul>
  478. <div id="slider" class="mui-slider">
  479. <div id="sliderSegmentedControl" class="mui-slider-indicator mui-segmented-control mui-segmented-control-inverted">
  480. <a class="mui-control-item mui-active" href="#item1mobile" data-index="1">
  481. 工单跟踪
  482. </a>
  483. <!--<a class="mui-control-item" href="#item2mobile" data-index="2">
  484. 催单记录
  485. </a>
  486. <a class="mui-control-item" href="#item3mobile" data-index="2">
  487. 评论记录
  488. </a>-->
  489. </div>
  490. <div class="mui-slider-group">
  491. <div id="item1mobile" class="mui-slider-item mui-control-content mui-active">
  492. <ul class="mui-table-view folowlist" id="folow"></ul>
  493. </div>
  494. </div>
  495. </div>
  496. </div>
  497. <div class="WordID" style="display: none;"></div>
  498. <!--弹框1-->
  499. <div class="pop_up_bj"></div>
  500. <div class="pop_up_div1">
  501. <div class="tit">请输入评论理由</div>
  502. <div class="contain">
  503. <textarea name="" rows="" cols="" class="evaluate_con"></textarea>
  504. </div>
  505. <div class="btn">
  506. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-royal fl">取消</button>
  507. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary fr evaluate">确定</button>
  508. </div>
  509. </div>
  510. <!--弹框2-->
  511. <div class="pop_up_div2">
  512. <div class="tit">请输入工单完结理由</div>
  513. <div class="contain">
  514. <textarea class="textcont" id="finsh_cont"></textarea>
  515. </div>
  516. <div class="btn">
  517. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-royal fl">取消</button>
  518. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary fr">确定</button>
  519. </div>
  520. </div>
  521. <!--弹框2-->
  522. <div class="pop_up_div6" style="display: none;">
  523. <div class="tit">请输入处理内容</div>
  524. <div class="contain">
  525. <textarea class="textcont" id="deal_cont"></textarea>
  526. </div>
  527. <div class="btn">
  528. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-royal fl">取消</button>
  529. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary fr">确定</button>
  530. </div>
  531. </div>
  532. <!--退回弹窗-->
  533. <div class="pop_up_div7" style="display: none;">
  534. <div class="tit">请输入处理内容</div>
  535. <div class="contain">
  536. <textarea class="textcont" id="deal_conton"></textarea>
  537. </div>
  538. <div class="btn">
  539. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-royal fl">取消</button>
  540. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary fr">确定</button>
  541. </div>
  542. </div>
  543. <!--弹框4-->
  544. <div class="pop_up_div4">
  545. <div class="tit">请输入处理内容</div>
  546. <div class="contain">
  547. <textarea class="textcont_deal"></textarea>
  548. </div>
  549. <div class="btn">
  550. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-royal fl">取消</button>
  551. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary fr">确定</button>
  552. </div>
  553. </div>
  554. <!--弹框2-->
  555. <div class="pop_up_div5" style="display: none;">
  556. <div class="tit">请输入催单内容</div>
  557. <div class="contain">
  558. <textarea class="textcont reminder_con" ></textarea>
  559. </div>
  560. <div class="btn">
  561. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-royal fl">取消</button>
  562. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary fr">确定</button>
  563. </div>
  564. </div>
  565. <!--弹框3-->
  566. <div class="pop_up_div3">
  567. <div class="tit">请输入转派理由</div>
  568. <div class="contain">
  569. <textarea class="reason" name="" rows="" cols="" style="height: 100px;"></textarea>
  570. </div>
  571. <input type="text" id='complaintOrder_type' class="ui-alert type_con size-14" data-index="" readonly="readonly" />
  572. <div class="btn">
  573. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-royal fl">取消</button>
  574. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary fr showUserPicker" id="showUserPicker">下一步</button>
  575. </div>
  576. </div>
  577. <!--//申请延期弹出框-->
  578. <div class="pop_up_div8">
  579. <div class="tit">请输入延期说明</div>
  580. <div class="contain">
  581. <textarea class="reas" name="" rows="" cols="" style="height: 50px;"></textarea>
  582. </div>
  583. <div class="tit">申请延期时限</div>
  584. <div class="mui-input-row mui-radio mui-left radio_box order_type">
  585. <label>1小时</label>
  586. <input type="radio" type="radio" name="form" checked="checked" value="1小时" class="size-14" />
  587. </div>
  588. <div class="mui-input-row mui-radio mui-left radio_box order_type">
  589. <label>8小时</label>
  590. <input type="radio" type="radio" name="form" value="8小时" class="size-14" />
  591. </div>
  592. <div class="mui-input-row mui-radio mui-left radio_box order_type">
  593. <label>24小时</label>
  594. <input type="radio" type="radio" name="form" value="24小时" class="size-14" />
  595. </div>
  596. <div class="mui-input-row mui-radio mui-left radio_box order_type">
  597. <label>其他</label>
  598. <input type="radio" type="radio" name="form" value="其他" class="size-14" id="qita"/>
  599. </div>
  600. <input type="number" id='order_source' data-index="" placeholder="默认小时" style="width:55%;"/>
  601. <div class="btn">
  602. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-royal fl">取消</button>
  603. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary fr showUserPicker" id="showUserPicker">确定</button>
  604. </div>
  605. </div>
  606. <!--审批弹窗-->
  607. <div class="pop_up_div9">
  608. <div class="tit">请输入审批意见</div>
  609. <div class="contain">
  610. <textarea class="reasaa" name="" rows="" cols="" style="height: 50px;"></textarea>
  611. </div>
  612. <div class="tit">审批结果</div>
  613. <div class="mui-input-row mui-radio mui-left radio_box order_ty">
  614. <label>同意上报</label>
  615. <input type="radio" type="radio" name="form" checked="checked" value="0" class="size-14" />
  616. </div>
  617. <div class="mui-input-row mui-radio mui-left radio_box order_ty">
  618. <label>驳回修订</label>
  619. <input type="radio" type="radio" name="form" value="1" class="size-14" />
  620. </div>
  621. <div class="btn">
  622. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-royal fl">取消</button>
  623. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary fr showUserPicker" id="showUserPicker">确定</button>
  624. </div>
  625. </div>
  626. <!--高层审批弹框-->
  627. <div class="pop_up_div10">
  628. <div class="tit">请输入审批意见</div>
  629. <div class="contain">
  630. <textarea class="reaa" name="" rows="" cols="" style="height: 50px;"></textarea>
  631. </div>
  632. <div class="btn">
  633. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-royal fl">取消</button>
  634. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary fr showUserPicker" id="showUserPicker">确定</button>
  635. </div>
  636. </div>
  637. <script src="../js/jquery.min.js"></script>
  638. <script src="js/details.js"></script>
  639. <script src="../Script/Common/huayi.config.js"></script>
  640. <script src="../Script/Common/huayi.http.js"></script>
  641. <script src="../js/mui.min.js"></script>
  642. <script src="../js/mui.picker.js"></script>
  643. <script src="../js/mui.poppicker.js"></script>
  644. <script src="js/city.data-3.js"></script>
  645. <script>
  646. var id = helper.request.queryString("id");
  647. var itype = helper.request.queryString("itype");
  648. var itypeQs = helper.request.queryString("itype");
  649. var state = helper.request.queryString("state");
  650. var isReply = helper.request.queryString("IsReply"); // 是否已回复 0 未回复 1已回复
  651. var openid = helper.cookies.get("openid");
  652. var UserType = helper.cookies.get("usertype");
  653. // var openid = "oXF5e1mWpX5DajW5_yjNLPKb8ThE";
  654. if(isReply == 0){
  655. $('.btn_reply').show();
  656. }
  657. if (UserType==-1) {
  658. $(".type1").hide();
  659. $(".type2").hide();
  660. $(".type3").show();
  661. $(".type4").hide();
  662. $(".type5").hide();
  663. } else if(UserType==0){
  664. $(".type1").show();
  665. $(".type2").hide();
  666. $(".type3").hide();
  667. $(".type4").hide();
  668. $(".type5").hide();
  669. $(".type6").hide();
  670. $(".type7").hide();
  671. $(".type8").hide();
  672. $(".type9").hide();
  673. }else if(UserType==1){
  674. $(".type1").hide();
  675. $(".type2").hide();
  676. $(".type3").show();
  677. $(".type4").hide();
  678. $(".type5").hide();
  679. }else if(UserType==2){
  680. $(".type1").hide();
  681. $(".type2").hide();
  682. $(".type3").show();
  683. $(".type4").hide();
  684. $(".type5").hide();
  685. $(".type6").hide();
  686. $(".type7").hide();
  687. $(".type8").hide();
  688. $(".type9").hide();
  689. }else if(UserType==3){
  690. $(".type1").hide();
  691. $(".type2").show();
  692. $(".type3").hide();
  693. $(".type4").hide();
  694. $(".type5").hide();
  695. $(".type6").hide();
  696. $(".type7").hide();
  697. $(".type8").hide();
  698. $(".type9").hide();
  699. }else if(UserType==4){
  700. $(".type1").show();
  701. $(".type2").hide();
  702. $(".type3").hide();
  703. $(".type4").hide();
  704. $(".type5").hide();
  705. $(".type6").hide();
  706. $(".type7").hide();
  707. $(".type8").hide();
  708. $(".type9").hide();
  709. }
  710. Ajax();
  711. flow();
  712. //获取数据
  713. function Ajax() {
  714. $.ajax({
  715. url: huayi.config.callcenter_url + 'WxLogin/GetDetails',
  716. data: {
  717. id: id, //工单编号
  718. OpenId: openid, //微信openid,
  719. },
  720. async: true,
  721. dataType: 'json',
  722. type: 'get', //HTTP请求类型
  723. success: function(data) {
  724. if(data.state.toLowerCase() == "success") {
  725. var result = data.rows[0];
  726. if(result.Source == 0) {
  727. $("#source").hide();
  728. } else {
  729. $("#source").show();
  730. }
  731. var itype=result.F_State;
  732. if (state==1) {
  733. // alert(state);
  734. $(".type1").hide();
  735. $(".type2").hide();
  736. $(".type3").hide();
  737. $(".type4").hide();
  738. $(".type5").hide();
  739. $(".type6").hide();
  740. $(".type7").hide();
  741. $(".type8").hide();
  742. $(".type9").hide();
  743. }
  744. if (state==11) {
  745. // alert(state);
  746. $(".type1").hide();
  747. $(".type2").hide();
  748. $(".type3").hide();
  749. $(".type4").hide();
  750. $(".type5").hide();
  751. $(".type6").hide();
  752. $(".type7").hide();
  753. $(".type8").hide();
  754. $(".type9").hide();
  755. }
  756. if(itype == 0) {
  757. $(".dispose1").hide();
  758. $(".dispose2").show();
  759. }else if(itype == 1) {
  760. //alert(itype)
  761. $(".dispose1").show();
  762. } else if(itype == 2) {
  763. $(".dispose2").show();
  764. } else if(itype == 3) {
  765. $(".dispose3").show();
  766. }else if(itype == 4) {
  767. $(".dispose2").hide();
  768. $(".dispose1").show();
  769. }else if(itype == 5) {
  770. $(".dispose2").hide();
  771. }else if(itype == 10) {
  772. if (UserType==2) {
  773. $(".dispose1").hide();
  774. $(".dispose2").show();
  775. }
  776. }else if(itype == 12) {
  777. $(".dispose2").show();
  778. if (UserType==0) {
  779. $(".dispose2").hide();
  780. $(".dispose4").show();
  781. }
  782. }else if(itype == 16) {
  783. // $(".dispose2").show();
  784. if (UserType==4) {
  785. $(".dispose1").show();
  786. $(".dispose3").show();
  787. $(".shenpi").remove();
  788. }else if(UserType==0){
  789. $(".dispose4").show();
  790. }
  791. }
  792. if (itypeQs==123) {
  793. $(".itypeQs").hide();
  794. }
  795. if (itypeQs==111) {
  796. $(".type2").hide();
  797. }
  798. if(itypeQs==333){
  799. $(".type3").hide();
  800. }
  801. if (result.GDLXName=="咨询") {
  802. $(".Work_lastDealDiv").hide(); //受理人
  803. $("#source").hide(); //投诉
  804. } else{
  805. $(".Work_lastDealDiv").show(); //受理人
  806. $("#source").show(); //投诉
  807. }
  808. $("#Work_bianhao").text(result.F_WorkOrderCode);
  809. $(".WordID").text(result.ID);
  810. $("#Work_classname").text(result.F_TypeName); //工单类型
  811. $("#section").text(result.F_DeptName); //部门
  812. $("#customer").text(result.F_CusName); //客户姓名
  813. $("#customerTel").text(result.F_CusPhone); //联系电话
  814. $("#Work_areaname").text(result.F_CompanyName); //公司名称
  815. // $("#Work_areaname").attr(result.IsAdminSend);
  816. $("#order_tower").text(result.F_Salesman); //业务员
  817. $("#order_unit").text(result.F_SalesPhone); //业务员电话
  818. $("#Work_houseID").text(result.F_CreateBy); //添加人工号
  819. $("#order_classes").text(result.F_QuestionType); //问题类别
  820. //抽检
  821. $("#order_matime").text(result.F_CJ_Time); //抽检时间
  822. $("#order_grade").text(result.F_CJ_Level); //抽检级别
  823. $("#order_gunits").text(result.F_CJ_Unit); //抽检单位
  824. $("#order_analysis").text(result.F_CJ_TestUnit); //化验单位
  825. $("#order_assay").text(result.F_CJ_Tonnage); //抽检吨数
  826. $("#order_bags").text(result.F_CJ_BagNo); //抽检袋数
  827. $("#order_cost").text(result.F_CJ_BagNo); //公关费用
  828. $("#order_account").text(result.F_IncidentProvince); //事发地
  829. $("#order_downtown").text(result.F_IncidentCity); //市区
  830. $("#order_counties").text(result.F_IncidentCountry); //县区F_QuestionType
  831. $("#order_village").text(result.F_IncidentTownship); //乡
  832. $("#order_address").text(result.F_IncidentDetailed); //详细地址
  833. // $("#order_matrix").text(result.F_Channel); //渠道类型
  834. $("#order_market").text(result.F_SalesBase); //咨询销售基地
  835. $("#order_matrix").text(result.F_SalesBase); //销售基地
  836. $("#order_macrocell").text(result.F_AreaName); //大区
  837. $("#order_filiale").text(result.F_BranchName); //分公司
  838. $("#order_material").text(result.F_DealTime); //客户编码
  839. $("#order_mate").text(result.F_DealTime); //物料编码
  840. $("#order_model").text(result.F_Model); //型号
  841. $("#order_product").text(result.F_ZX_ProName); //产品名称
  842. $("#order_Question").text(result.F_ZX_Quantity); //问题数量
  843. $("#Work_ownerRelations").text(result.F_DealBy); //处理人
  844. $("#Work_source").text(result.F_DealTime); //处理时间
  845. $(".Work_lastDealUser").text(result.F_DealContent); //处理内容
  846. $(".Work_last").text(result.F_DealResult); //处理结果
  847. $("#Work_workOrderID").text(result.F_DealReasons); //未处理原因
  848. $("#Work_wor").text(result.F_IsVisit); //是否回访
  849. $("#Work_detail").text("问题描述:" + result.F_Description); //描述详情
  850. // 判断数据为空隐藏li
  851. if($("#order_matime").text() ==''){//抽检时间
  852. $('#order_matime').parent().parent().remove();
  853. }
  854. if($("#order_grade").text() ==''){//抽检级别
  855. $('#order_grade').parent().parent().remove();
  856. }
  857. if($("#order_gunits").text() ==''){//抽检单位
  858. $('#order_gunits').parent().parent().remove();
  859. }
  860. if($("#order_analysis").text() ==''){//化验单位
  861. $('#order_analysis').parent().parent().remove();
  862. }
  863. if($("#order_assay").text() ==''){//抽检吨数
  864. $('#order_assay').parent().parent().remove();
  865. }
  866. if($("#order_bags").text() ==''){//抽检袋数
  867. $('#order_bags').parent().parent().remove();
  868. }
  869. if($("#order_cost").text() ==''){//公关费用
  870. $('#order_cost').parent().parent().remove();
  871. }
  872. if($("#order_market").text() ==''){//咨询销售基地
  873. $('#order_market').parent().parent().remove();
  874. }
  875. if($("#section").text() ==''){//部门
  876. $('#section').parent().parent().remove();
  877. }
  878. if($("#customer").text() ==''){//客户姓名
  879. $('#customer').parent().parent().remove();
  880. }
  881. if($("#Work_houseID").text() ==''){//添加人工号
  882. $('#Work_houseID').parent().parent().remove();
  883. }
  884. if($("#order_classes").text() ==''){//添加人工号
  885. $('#order_classes').parent().parent().remove();
  886. }
  887. if($("#order_account").text() ==''){//事发地
  888. $('#order_account').parent().parent().remove();
  889. }
  890. if($("#order_downtown").text() ==''){//市
  891. $('#order_downtown').parent().parent().remove();
  892. }
  893. if($("#order_counties").text() ==''){//区县
  894. $('#order_counties').parent().parent().remove();
  895. }
  896. if($("#order_village").text() ==''){//乡
  897. $('#order_village').parent().parent().remove();
  898. }
  899. if($("#order_address").text() ==''){//详细地址
  900. $('#order_address').parent().parent().remove();
  901. }
  902. if($("#order_matrix").text() ==''){//销售基地
  903. $('#order_matrix').parent().parent().remove();
  904. }
  905. if($("#order_tower").text() ==''){//业务员
  906. $('#order_tower').parent().parent().remove();
  907. }
  908. if($("#order_unit").text() ==''){//业务员电话
  909. $('#order_unit').parent().parent().remove();
  910. }
  911. if($("#order_material").text() ==''){//客户编码
  912. $('#order_material').parent().parent().remove();
  913. }
  914. if($("#order_mate").text() ==''){//物料编码
  915. $('#order_mate').parent().parent().remove();
  916. }
  917. if($("#order_macrocell").text() ==''){//大区
  918. $('#order_macrocell').parent().parent().remove();
  919. }
  920. if($("#order_filiale").text() ==''){//分公司
  921. $('#order_filiale').parent().parent().remove();
  922. }
  923. if($("#order_model").text() ==''){//型号
  924. $('#order_model').parent().parent().remove();
  925. }
  926. if($("#order_product").text() ==''){//产品名称
  927. $('#order_product').parent().parent().remove();
  928. }
  929. if($("#order_Question").text() ==''){//问题数量
  930. $('#order_Question').parent().parent().remove();
  931. }
  932. if($("#order_Question").text() ==''){//问题数量
  933. $('#order_Question').parent().parent().remove();
  934. }
  935. if($("#Work_ownerRelations").text() ==''){//处理人
  936. $('#Work_ownerRelations').parent().parent().remove();
  937. }
  938. if($("#Work_source").text() ==''){//处理时间
  939. $('#Work_source').parent().parent().remove();
  940. }
  941. if($(".Work_lastDealUser").text() ==''){//处理内容
  942. $('.Work_lastDealUser').parent().parent().remove();
  943. }
  944. if($(".Work_last").text() ==''){//处理内容
  945. $('.Work_last').parent().parent().remove();
  946. }
  947. if($("#Work_workOrderID").text() ==''){//未处理原因
  948. $('#Work_workOrderID').parent().parent().remove();
  949. }
  950. if($("#Work_wor").text() ==''){//是否回访
  951. $('#Work_wor').parent().parent().remove();
  952. }
  953. if($("#Work_detail").text() ==''){//问题描述
  954. $('#Work_detail').parent().parent().remove();
  955. }
  956. }
  957. },
  958. error: function(xhr, type, errorThrown) {
  959. //异常处理;
  960. }
  961. })
  962. }
  963. //跳转页面
  964. //修改
  965. $('.edit').on('tap', function() {
  966. window.location.href = "editWorkolder.html?id=" + id+'&itype='+itype;
  967. });
  968. //返回列表
  969. $('.return').on('tap', function() {
  970. if (itypeQs==111) {
  971. window.location.href = "processed_list.html"
  972. }else if (itypeQs==123){
  973. window.location.href = "client_index.html";
  974. }else if (itypeQs==222){
  975. window.location.href = "Retired_list.html";
  976. }else if (itypeQs==333){
  977. window.location.href = "gcyi_list.html";
  978. }
  979. if (itype==0) {
  980. window.location.href = "pend_index.html"
  981. }if (itype==1) {
  982. window.location.href = "Waiting_list.html"
  983. } else if (itype==2){
  984. window.location.href = "haveorder_list.html"
  985. } else if (itype==3){
  986. window.location.href = "Have_list.html"
  987. }
  988. //window.location.href = "client_index.html?Itype=" + itype;
  989. });
  990. //工单跟踪
  991. function flow() {
  992. $.ajax({
  993. url: huayi.config.callcenter_url + 'WxLogin/GetDetails',
  994. data: {
  995. id: id, //工单编号
  996. OpenId: openid, //微信openid,
  997. },
  998. async: true,
  999. dataType: 'json',
  1000. type: 'get', //HTTP请求类型
  1001. success: function(data) {
  1002. if(data.state.toLowerCase() == "success") {
  1003. if(data.total && data.total.length > 0) {
  1004. $(data.total).each(function(i, n) {
  1005. var str = '';
  1006. if(n.F_OptType == 0){
  1007. str = str + n.F_OptContent+"<br>";
  1008. // alert(str)
  1009. }
  1010. if(n.F_OptType == 1){
  1011. str = str + n.F_OptContent+"<br>";
  1012. // alert(str)
  1013. }
  1014. if(n.F_OptType == 2){
  1015. str = str + n.F_OptContent+"<br>";
  1016. // alert(str)
  1017. }
  1018. if(n.F_OptType == 3){
  1019. str = str + n.F_OptContent+"<br>";
  1020. // alert(str)
  1021. }
  1022. if(n.F_OptType == 4){
  1023. str = str + n.F_OptContent+"<br>";
  1024. // alert(str)
  1025. }
  1026. if(n.F_OptType == 5){
  1027. str = str + n.F_OptContent+"<br>";
  1028. // alert(str)
  1029. }
  1030. if(n.F_OptType == 6){
  1031. str = str + n.F_OptContent+"<br>";
  1032. // alert(str)
  1033. }
  1034. if(n.F_OptType == 7){
  1035. str = str + n.F_OptContent+"<br>";
  1036. // alert(str)
  1037. }
  1038. if(n.F_OptType == 8){
  1039. str = str + n.F_OptContent+"<br>";
  1040. // alert(str)
  1041. }
  1042. if(n.F_OptType == 9){
  1043. str = str + n.F_OptContent+"<br>";
  1044. // alert(str)
  1045. }
  1046. if(n.F_OptType == 10){
  1047. str = str + n.F_OptContent+"<br>";
  1048. // alert(str)
  1049. }
  1050. if(n.F_OptType == 11){
  1051. str = str + n.F_OptContent+"<br>";
  1052. // alert(str)
  1053. }
  1054. if(n.F_OptType == 12){
  1055. str = str + n.F_OptContent+"<br>";
  1056. // alert(str)
  1057. }
  1058. if(n.F_OptType == 13){
  1059. str = str + n.F_OptContent+"<br>";
  1060. // alert(str)
  1061. }
  1062. if(n.F_OptType == 14){
  1063. str = str + n.F_OptContent+"<br>";
  1064. // alert(str)
  1065. }
  1066. if(n.F_OptType == 15){
  1067. str = str + n.F_OptContent+"<br>";
  1068. // alert(str)
  1069. }
  1070. if(n.F_OptType == 16){
  1071. str = str + n.F_OptContent+"<br>";
  1072. // alert(str)
  1073. }
  1074. var spandeta="";
  1075. // if (n.Detail==null) {
  1076. // spandeta=""
  1077. // } else if (n.Detail==""){
  1078. // spandeta=""
  1079. // }else if(n.IsLast == 1){
  1080. // spandeta="完结内容:"+n.F_OptContent
  1081. // }else if(n.SureUserName) {
  1082. // spandeta="接单内容:"+n.F_OptContent
  1083. // } else if(n.DealTime){
  1084. // spandeta="处理内容:"+n.F_OptContent
  1085. // }else if(n.ToDeptName){
  1086. // spandeta="转派内容:"+n.F_OptContent
  1087. // }
  1088. if ($(".spandeta").text()=="") {
  1089. $(this).hide();
  1090. }
  1091. //else if(row.IsStart) {str = str + row.CreateUserName + " 重新开启工单";}
  1092. $('<li class="mui-table-view-cell mui-table-view-cell-line mui-tail-contail mui-table-view-li"><div class="mui-input-row mui-tail font-color4"><span>' + n.F_CreateTime +
  1093. '</span></br><span style="font-size:12px;">' + str +
  1094. '</span><span class="spandeta">'+spandeta+
  1095. '</span></div><div class="string"></div><div class="circular_h"></div></li>').appendTo('#folow');
  1096. });
  1097. var num = data.rows.length - 1;
  1098. $("#folow li:eq(0)").children(".string").css("top", "20px");
  1099. $("#folow li:eq(" + num + ")").children(".string").css("height", "5px");
  1100. $("#folow li:eq(0)").children(".string").css("top", "20px");
  1101. $("#folow li:eq(0)").children(".circular_h").css({
  1102. "background": "#2cc6a7",
  1103. "left": "15px",
  1104. "top": "20px",
  1105. "width": "12px",
  1106. "height": "12px",
  1107. "border-radius": "6px"
  1108. });
  1109. $("#folow li:eq(" + num + ")").children(".circular_h").css({
  1110. "left": "15px",
  1111. "width": "12px",
  1112. "height": "12px",
  1113. "border-radius": "6px"
  1114. });
  1115. }
  1116. }
  1117. },
  1118. error: function(xhr, type, errorThrown) {
  1119. //异常处理;
  1120. }
  1121. })
  1122. }
  1123. //催单记录
  1124. // function Remind() {
  1125. // $.ajax({
  1126. // url: huayi.config.callcenter_url + 'WxLogin/GetDetails',
  1127. // data: {
  1128. // id: id, //工单编号
  1129. // type: 2,
  1130. // OpenId: openid, //微信openid,
  1131. // },
  1132. // async: true,
  1133. // dataType: 'json',
  1134. // type: 'get', //HTTP请求类型
  1135. // success: function(data) {
  1136. // if(data.state.toLowerCase() == "success") {
  1137. // if(data.rows && data.rows.length > 0) {
  1138. // $(data.rows).each(function(i, n) {
  1139. // var spandeta;
  1140. // if (n.Detail==null) {
  1141. // spandeta=""
  1142. // } else if (n.Detail==""){
  1143. // spandeta=""
  1144. // }else{
  1145. // spandeta="催办内容:"+n.Detail
  1146. // }
  1147. // var depart;
  1148. // if(n.ToDeptName==null){
  1149. // depart=""
  1150. // }else{
  1151. // depart=n.ToDeptName
  1152. // }
  1153. // var deperson;
  1154. // if(n.ToUserName==null){
  1155. // deperson=""
  1156. // }else{
  1157. // deperson=n.ToUserName
  1158. // }
  1159. // $('<li class="mui-table-view-cell mui-table-view-cell-line mui-tail-contail mui-table-view-li"><div class="mui-input-row mui-tail font-color4"><span>' + n.CreateTime +
  1160. //// '</span></br><span>被催办部门:'+depart+
  1161. //// '</span></br><span>被催办人:'+deperson+
  1162. // '</span></br><span>催办人:' + n.CreateUserName +
  1163. // '</span></br><span>'+spandeta+
  1164. // '</span></div><div class="string"></div><div class="circular_h"></div></li>').appendTo('#remind');
  1165. // });
  1166. // var num = data.rows.length - 1;
  1167. // $("#remind li:eq(0)").children(".string").css("top", "20px");
  1168. // $("#remind li:eq(" + num + ")").children(".string").css("height", "5px");
  1169. // $("#remind li:eq(0)").children(".string").css("top", "20px");
  1170. // $("#remind li:eq(0)").children(".circular_h").css({
  1171. // "background": "#2cc6a7",
  1172. // "left": "15px",
  1173. // "top": "20px",
  1174. // "width": "12px",
  1175. // "height": "12px",
  1176. // "border-radius": "6px"
  1177. // });
  1178. // $("#remind li:eq(" + num + ")").children(".circular_h").css({
  1179. // "left": "15px",
  1180. // "width": "12px",
  1181. // "height": "12px",
  1182. // "border-radius": "6px"
  1183. // });
  1184. // }
  1185. // }
  1186. // },
  1187. // error: function(xhr, type, errorThrown) {
  1188. // //异常处理;
  1189. // }
  1190. // })
  1191. // }
  1192. //评论记录
  1193. // function Comment() {
  1194. // $.ajax({
  1195. // url: huayi.config.callcenter_url + 'WxLogin/GetDetails',
  1196. // data: {
  1197. // id: id, //工单编号
  1198. // type: 3,
  1199. // OpenId: openid, //微信openid,
  1200. // },
  1201. // async: true,
  1202. // dataType: 'json',
  1203. // type: 'get', //HTTP请求类型
  1204. // success: function(data) {
  1205. // if(data.state.toLowerCase() == "success") {
  1206. // if(data.rows && data.rows.length > 0) {
  1207. //
  1208. // $(data.rows).each(function(i, n) {
  1209. // var spandeta;
  1210. // if (n.Detail==null) {
  1211. // spandeta=""
  1212. // } else if (n.Detail==""){
  1213. // spandeta=""
  1214. // }else{
  1215. // spandeta="评论内容:"+n.Detail
  1216. // }
  1217. // $('<li class="mui-table-view-cell mui-table-view-cell-line mui-tail-contail mui-table-view-li"><div class="mui-input-row mui-tail font-color4"><span>' + n.CreateTime +
  1218. // '</span></br><span >'+spandeta+
  1219. // '</span><span class="span3">' + n.CreateUserName +
  1220. // '</span></div><div class="string"></div><div class="circular_h"></div></li>').appendTo('#commentlist');
  1221. // if (n.Detail==null||n.Detail=="") {
  1222. // $(".spandeta").hide();
  1223. // } else{
  1224. // $(".spandeta").show();
  1225. // }
  1226. // });
  1227. // var num = data.rows.length - 1;
  1228. // $("#commentlist li:eq(0)").children(".string").css("top", "20px");
  1229. // $("#commentlist li:eq(" + num + ")").children(".string").css("height", "5px");
  1230. // $("#commentlist li:eq(0)").children(".string").css("top", "20px");
  1231. // $("#commentlist li:eq(0)").children(".circular_h").css({
  1232. // "background": "#2cc6a7",
  1233. // "left": "15px",
  1234. // "top": "20px",
  1235. // "width": "12px",
  1236. // "height": "12px",
  1237. // "border-radius": "6px"
  1238. // });
  1239. // $("#commentlist li:eq(" + num + ")").children(".circular_h").css({
  1240. // "left": "15px",
  1241. // "width": "12px",
  1242. // "height": "12px",
  1243. // "border-radius": "6px"
  1244. // });
  1245. // }
  1246. // }
  1247. // },
  1248. // error: function(xhr, type, errorThrown) {
  1249. // //异常处理;
  1250. // }
  1251. // })
  1252. // }
  1253. //转派
  1254. //转派弹框
  1255. $(".allot").click(function() {
  1256. var areaID = $("#Work_areaname").attr('data-index')
  1257. window.location.href = "redeploy.html?id=" + id+'&itype='+itype+'&areaID='+areaID;
  1258. })
  1259. // 处理提单框
  1260. $(".disp").click(function() {
  1261. var areaID = $("#Work_areaname").attr('data-index')
  1262. window.location.href = "dispose.html?id=" + id+'&itype='+itype+'&areaID='+areaID;
  1263. })
  1264. //评论工单
  1265. $(".comment").click(function(){
  1266. $(".pop_up_bj").fadeIn();
  1267. $(".pop_up_div1").fadeIn();
  1268. })
  1269. $(".pop_up_bj" ).click(function(){
  1270. $(".pop_up_bj").hide();
  1271. $(".pop_up_div1").hide();
  1272. })
  1273. $(".pop_up_div1 .btn .fl" ).click(function(){
  1274. $(".pop_up_bj").hide();
  1275. $(".pop_up_div1").hide();
  1276. })
  1277. $(".pop_up_div1 .btn .fr" ).click(function(){
  1278. $(".pop_up_bj").hide();
  1279. $(".pop_up_div1").hide();
  1280. })
  1281. $(".evaluate").click(function(){
  1282. if(!$(".evaluate_con").val()) {
  1283. mui.alert("请输入评论内容");
  1284. }else{
  1285. $(".pop_up_bj").hide();
  1286. $(".pop_up_div3").hide();
  1287. $.ajax({
  1288. type: "post",
  1289. dataType: 'json',
  1290. url: huayi.config.callcenter_url + '/WxLogin/CommentWorkOrder',
  1291. async: true,
  1292. data: {
  1293. orderid: id, //否 strubg 工单编号
  1294. cont: $(".evaluate_con").val(), //否 int 处理内容
  1295. openid: openid, //微信openid,
  1296. },
  1297. success: function(data) {
  1298. if(data.state == "success") {
  1299. debugger
  1300. mui.toast('评论成功');
  1301. window.location.href = "details.html?id=" + id+'&itype='+itype;
  1302. } else {
  1303. mui.toast(data.message);
  1304. }
  1305. }
  1306. });
  1307. }
  1308. })
  1309. //处理完结
  1310. // $(".daal").click(function(){
  1311. // $(".pop_up_bj").fadeIn();
  1312. // $(".pop_up_div6").fadeIn();
  1313. // })
  1314. // $(".pop_up_bj" ).click(function(){
  1315. // $(".pop_up_bj").hide();
  1316. // $(".pop_up_div6").hide();
  1317. // })
  1318. // $(".pop_up_div6 .btn .fl" ).click(function(){
  1319. // $(".pop_up_bj").hide();
  1320. // $(".pop_up_div6").hide();
  1321. // })
  1322. // $(".pop_up_div6 .btn .fr" ).click(function(){
  1323. //// $("#cont").text("");
  1324. // $(".pop_up_bj").hide();
  1325. // $(".pop_up_div6").hide();
  1326. // if($("#deal_cont").val()=="") {
  1327. // mui.alert("请输入处理内容");
  1328. // }else{
  1329. // $(".pop_up_bj").hide();
  1330. // $(".pop_up_div6").hide();
  1331. // $.ajax({
  1332. // type: "post",
  1333. // dataType: 'json',
  1334. // url: huayi.config.callcenter_url + '/WxLogin/DealWorkOrder',
  1335. // async: true,
  1336. // data: {
  1337. // orderid: id, //否 strubg 工单编号
  1338. // isend: 1, //否 int 你看一下前端是什么参数
  1339. // cont: $("#deal_cont").val(), //否 int 处理内容
  1340. // openid: openid, //微信openid 测试用
  1341. // },
  1342. // success: function(data) {
  1343. // if(data.state == "success") {
  1344. // debugger
  1345. // mui.toast('处理成功');
  1346. //
  1347. // window.location.href = "pend_index.html";
  1348. // } else {
  1349. // mui.toast(data.message);
  1350. // }
  1351. // }
  1352. // });
  1353. // }
  1354. //
  1355. // })
  1356. //完结
  1357. $(".finsh").click(function(){
  1358. $(".pop_up_bj").fadeIn();
  1359. $(".pop_up_div2").fadeIn();
  1360. })
  1361. $(".pop_up_bj" ).click(function(){
  1362. $(".pop_up_bj").hide();
  1363. $(".pop_up_div2").hide();
  1364. })
  1365. $(".pop_up_div2 .btn .fl" ).click(function(){
  1366. $(".pop_up_bj").hide();
  1367. $(".pop_up_div2").hide();
  1368. mui.alert("取消");
  1369. })
  1370. $(".pop_up_div2 .btn .fr" ).click(function(){
  1371. $("#finsh_cont").text("");
  1372. $(".pop_up_bj").hide();
  1373. $(".pop_up_div2").hide();
  1374. if($(".textcont").val()=="") {
  1375. mui.alert("请输入完结内容");
  1376. }else{
  1377. $(".pop_up_bj").hide();
  1378. $(".pop_up_div2").hide();
  1379. $.ajax({
  1380. type: "post",
  1381. dataType: 'json',
  1382. url: huayi.config.callcenter_url + '/WxLogin/DealWorkOrder',
  1383. async: true,
  1384. data: {
  1385. orderid: id, //否 strubg 工单编号
  1386. isend: 1, //否 int 你看一下前端是什么参数
  1387. cont: $("#finsh_cont").val(), //否 int 处理内容
  1388. openid: openid, //微信openid,
  1389. },
  1390. success: function(data) {
  1391. if(data.state == "success") {
  1392. debugger
  1393. mui.toast('处理成功');
  1394. window.location.href = "client_index.html?id=" + id+'&itype='+itype;
  1395. } else {
  1396. mui.toast(data.message);
  1397. }
  1398. }
  1399. });
  1400. }
  1401. })
  1402. //处理
  1403. $(".deal").click(function(){
  1404. $(".pop_up_bj").fadeIn();
  1405. $(".pop_up_div4").fadeIn();
  1406. })
  1407. $(".pop_up_bj" ).click(function(){
  1408. $(".pop_up_bj").hide();
  1409. $(".pop_up_div4").hide();
  1410. })
  1411. $(".pop_up_div4 .btn .fl" ).click(function(){
  1412. $(".pop_up_bj").hide();
  1413. $(".pop_up_div4").hide();
  1414. mui.alert("取消");
  1415. })
  1416. $(".pop_up_div4 .btn .fr" ).click(function(){
  1417. // $("#cont").text("");
  1418. $(".pop_up_bj").hide();
  1419. $(".pop_up_div4").hide();
  1420. if($(".textcont_deal").val()=="") {
  1421. mui.alert("请输入处理内容");
  1422. }else{
  1423. $(".pop_up_bj").hide();
  1424. $(".pop_up_div4").hide();
  1425. $.ajax({
  1426. type: "post",
  1427. dataType: 'json',
  1428. url: huayi.config.callcenter_url + '/WxLogin/DealWorkOrder',
  1429. async: true,
  1430. data: {
  1431. orderid: id, //否 strubg 工单编号
  1432. isend: itype, //否 int 你看一下前端是什么参数
  1433. cont: $("#textcont_deal").val(), //否 int 处理内容
  1434. Openid: openid, //微信openid,
  1435. },
  1436. success: function(data) {
  1437. if(data.state == "success") {
  1438. debugger
  1439. mui.toast('处理成功');
  1440. window.location.href = "pend_index.html?id=" + id+'&itype='+itype;
  1441. } else {
  1442. mui.toast(data.message);
  1443. }
  1444. }
  1445. });
  1446. }
  1447. })
  1448. //回复
  1449. $(".btn_reply").click(function(){
  1450. var btnArray = ['取消', '确定'];
  1451. mui.confirm('确定回复?', '提示', btnArray, function(f) {
  1452. if(f.index == 1) {
  1453. $.ajax({
  1454. type: "post",
  1455. dataType: 'json',
  1456. url: huayi.config.callcenter_url + 'WxLogin/ReplyWorkOrder',
  1457. async: true,
  1458. data: {
  1459. openid: openid,// 是 strubg openid
  1460. orderid: id// 是 string 工单号码
  1461. },
  1462. success: function(data) {
  1463. if(data.state == "success") {
  1464. mui.toast('操作成功');
  1465. window.location.href = "client_index.html?id=" + id+'&itype='+itype;
  1466. } else {
  1467. mui.toast(data.message);
  1468. }
  1469. }
  1470. });
  1471. } else {
  1472. mui.toast("取消操作");
  1473. }
  1474. })
  1475. });
  1476. //接单
  1477. $(".rece").click(function(){
  1478. var btnArray = ['否', '是'];
  1479. mui.confirm('确定接单?', '提示', btnArray, function(f) {
  1480. if(f.index == 1) {
  1481. $.ajax({
  1482. type: "get",
  1483. dataType: 'json',
  1484. url: huayi.config.callcenter_url + 'WxLogin/SureWorkOrder',
  1485. async: true,
  1486. data: {
  1487. orderid: id, //否 strubg 工单编号
  1488. OpenId: openid, //微信openid 测试用
  1489. },
  1490. success: function(data) {
  1491. debugger
  1492. // alert(data.state)
  1493. if(data.state == "success") {
  1494. mui.toast('接单成功');
  1495. window.location.href = "Waiting_list.html";
  1496. } else {
  1497. mui.toast(data.message);
  1498. }
  1499. }
  1500. });
  1501. } else {
  1502. mui.toast("取消");
  1503. }
  1504. })
  1505. })
  1506. //审批
  1507. $(".receiving").click(function(){
  1508. $(".pop_up_bj").fadeIn();
  1509. $(".pop_up_div9").fadeIn();
  1510. })
  1511. $(".pop_up_bj" ).click(function(){
  1512. $(".pop_up_bj").hide();
  1513. $(".pop_up_div9").hide();
  1514. })
  1515. $(".pop_up_div9 .btn .fl" ).click(function(){
  1516. $(".pop_up_bj").hide();
  1517. $(".pop_up_div9").hide();
  1518. })
  1519. $(".pop_up_div9 .btn .fr" ).click(function(){
  1520. // $("#cont").text("");
  1521. $(".pop_up_bj").hide();
  1522. $(".pop_up_div9").hide();
  1523. if($(".reasaa").val()=="") {
  1524. mui.alert("请输入审批意见.");
  1525. }else{
  1526. $(".pop_up_bj").hide();
  1527. $(".pop_up_div9").hide();
  1528. $.ajax({
  1529. type: "get",
  1530. dataType: 'json',
  1531. url: huayi.config.callcenter_url + 'WxLogin/GetApproval',
  1532. async: true,
  1533. data: {
  1534. orderid: id, //否 strubg 工单编号
  1535. OpenId: openid,
  1536. AuditCont: $(".reasaa").val(),
  1537. IsAudit:1,
  1538. AuditState:$('.order_ty').find('input[type="radio"]:checked').val(), //工单类型
  1539. },
  1540. success: function(data) {
  1541. debugger
  1542. if(data.state == "success") {
  1543. debugger
  1544. mui.toast('申请成功');
  1545. window.location.href = "client_index.html?id=" + id+'&itype='+itype;
  1546. } else {
  1547. mui.toast(data.message);
  1548. }
  1549. }
  1550. });
  1551. }
  1552. })
  1553. //高层审批
  1554. $(".approva").click(function(){
  1555. $(".pop_up_bj").fadeIn();
  1556. $(".pop_up_div10").fadeIn();
  1557. })
  1558. $(".pop_up_bj" ).click(function(){
  1559. $(".pop_up_bj").hide();
  1560. $(".pop_up_div10").hide();
  1561. })
  1562. $(".pop_up_div10 .btn .fl" ).click(function(){
  1563. $(".pop_up_bj").hide();
  1564. $(".pop_up_div10").hide();
  1565. })
  1566. $(".pop_up_div10 .btn .fr" ).click(function(){
  1567. // $("#cont").text("");
  1568. $(".pop_up_bj").hide();
  1569. $(".pop_up_div10").hide();
  1570. if($(".reaa").val()=="") {
  1571. mui.alert("请输入审批意见");
  1572. }else{
  1573. $(".pop_up_bj").hide();
  1574. $(".pop_up_div10").hide();
  1575. $.ajax({
  1576. type: "get",
  1577. dataType: 'json',
  1578. url: huayi.config.callcenter_url + 'WxLogin/HigApprovalOrder',
  1579. async: true,
  1580. data: {
  1581. orderid: id, //否 strubg 工单编号
  1582. OpenId: openid,
  1583. cont: $(".reaa").val(),
  1584. },
  1585. success: function(data) {
  1586. debugger
  1587. if(data.state == "success") {
  1588. debugger
  1589. mui.toast('申请成功');
  1590. window.location.href = "high_list.html?id=" + id+'&itype='+itype;
  1591. } else {
  1592. mui.toast(data.message);
  1593. }
  1594. }
  1595. });
  1596. }
  1597. })
  1598. //退回
  1599. $(".sendback").click(function(){
  1600. $(".pop_up_bj").fadeIn();
  1601. $(".pop_up_div7").fadeIn();
  1602. })
  1603. $(".pop_up_bj" ).click(function(){
  1604. $(".pop_up_bj").hide();
  1605. $(".pop_up_div7").hide();
  1606. })
  1607. $(".pop_up_div7 .btn .fl" ).click(function(){
  1608. $(".pop_up_bj").hide();
  1609. $(".pop_up_div7").hide();
  1610. })
  1611. $(".pop_up_div7 .btn .fr" ).click(function(){
  1612. // $("#cont").text("");
  1613. $(".pop_up_bj").hide();
  1614. $(".pop_up_div7").hide();
  1615. if($("#deal_conton").val()=="") {
  1616. mui.alert("请输入处理内容");
  1617. }else{
  1618. $(".pop_up_bj").hide();
  1619. $(".pop_up_div7").hide();
  1620. $.ajax({
  1621. type: "get",
  1622. dataType: 'json',
  1623. url: huayi.config.callcenter_url + 'WxLogin/BackWorkOrder',
  1624. async: true,
  1625. data: {
  1626. orderid: id, //否 strubg 工单编号
  1627. type: 0, // 0退回 1异常退回
  1628. cont: $("#deal_conton").val(), //否 int 处理内容
  1629. openid: openid, //微信openid 测试用
  1630. },
  1631. success: function(data) {
  1632. if(data.state == "success") {
  1633. debugger
  1634. mui.toast('退回成功');
  1635. window.location.href = "Waiting_list.html?id=" + id+'&itype='+itype;
  1636. } else {
  1637. mui.toast(data.message);
  1638. }
  1639. }
  1640. });
  1641. }
  1642. })
  1643. //申请延期实现
  1644. $(".postpone").click(function(){
  1645. $(".pop_up_bj").fadeIn();
  1646. $(".pop_up_div8").fadeIn();
  1647. })
  1648. $(".pop_up_bj" ).click(function(){
  1649. $(".pop_up_bj").hide();
  1650. $(".pop_up_div8").hide();
  1651. })
  1652. $(".pop_up_div8 .btn .fl" ).click(function(){
  1653. $(".pop_up_bj").hide();
  1654. $(".pop_up_div8").hide();
  1655. })
  1656. $(".pop_up_div8 .btn .fr" ).click(function(){
  1657. // $("#cont").text("");
  1658. $(".pop_up_bj").hide();
  1659. $(".pop_up_div8").hide();
  1660. if($(".reas").val()=="") {
  1661. mui.alert("请输入延期说明.");
  1662. }else{
  1663. $(".pop_up_bj").hide();
  1664. $(".pop_up_div8").hide();
  1665. $.ajax({
  1666. type: "get",
  1667. dataType: 'json',
  1668. url: huayi.config.callcenter_url + 'WxLogin/DelayWorkOrder',
  1669. async: true,
  1670. data: {
  1671. orderid: id, //否 strubg 工单编号
  1672. // type: 0, //否 int 你看一下前端是什么参数 reas
  1673. cont: $(".reas").val(),
  1674. // limit:$("#order_source").val(), //否 int 处理内容
  1675. limit:$('.order_type').find('input[type="radio"]:checked').val(), //工单类型
  1676. openid: openid, //微信openid 测试用
  1677. },
  1678. success: function(data) {
  1679. debugger
  1680. if(data.state == "success") {
  1681. debugger
  1682. mui.toast('申请成功');
  1683. window.location.href = "haveorder_list.html?id=" + id+'&itype='+itype;
  1684. } else {
  1685. mui.toast(data.message);
  1686. }
  1687. }
  1688. });
  1689. }
  1690. })
  1691. //异常退回
  1692. $(".abnormal").click(function(){
  1693. $(".pop_up_bj").fadeIn();
  1694. $(".pop_up_div6").fadeIn();
  1695. })
  1696. $(".pop_up_bj" ).click(function(){
  1697. $(".pop_up_bj").hide();
  1698. $(".pop_up_div6").hide();
  1699. })
  1700. $(".pop_up_div6 .btn .fl" ).click(function(){
  1701. $(".pop_up_bj").hide();
  1702. $(".pop_up_div6").hide();
  1703. })
  1704. $(".pop_up_div6 .btn .fr" ).click(function(){
  1705. // $("#cont").text("");
  1706. $(".pop_up_bj").hide();
  1707. $(".pop_up_div6").hide();
  1708. if($("#deal_cont").val()=="") {
  1709. mui.alert("请输入处理内容");
  1710. }else{
  1711. $(".pop_up_bj").hide();
  1712. $(".pop_up_div6").hide();
  1713. $.ajax({
  1714. type: "post",
  1715. dataType: 'json',
  1716. url: huayi.config.callcenter_url + 'WxLogin/BackWorkOrder',
  1717. async: true,
  1718. data: {
  1719. orderid: id, //否 strubg 工单编号
  1720. type: 1, // 0退回 1异常退回
  1721. cont: $("#deal_cont").val(), //否 int 处理内容
  1722. openid: openid, //微信openid 测试用
  1723. },
  1724. success: function(data) {
  1725. debugger
  1726. if(data.state == "success") {
  1727. debugger
  1728. mui.toast('异常退回成功');
  1729. window.location.href = "haveorder_list.html?id=" + id+'&itype='+itype;
  1730. } else {
  1731. mui.toast(data.message);
  1732. }
  1733. }
  1734. });
  1735. }
  1736. })
  1737. //删除工单
  1738. $(".delet").click(function(){
  1739. var btnArray = ['否', '是'];
  1740. mui.confirm('确定删除?', '提示', btnArray, function(f) {
  1741. if(f.index == 1) {
  1742. $.ajax({
  1743. type: "post",
  1744. dataType: 'json',
  1745. url: huayi.config.callcenter_url + '/WxLogin/DelWorkOrder',
  1746. async: true,
  1747. data: {
  1748. ids: $(".WordID").text(), //否 strubg 工单编号
  1749. openid: openid, //微信openid,
  1750. },
  1751. success: function(data) {
  1752. if(data.state == "success") {
  1753. debugger
  1754. mui.toast('删除成功');
  1755. if (itype==2) {
  1756. window.location.href = "pend_index.html";
  1757. } else if(itype==3){
  1758. window.location.href = "finsh_index.html";
  1759. }
  1760. } else {
  1761. mui.toast(data.message);
  1762. }
  1763. }
  1764. });
  1765. } else {
  1766. mui.toast("取消");
  1767. }
  1768. })
  1769. })
  1770. //催单
  1771. $(".reminder").click(function(){
  1772. $(".pop_up_bj").fadeIn();
  1773. $(".pop_up_div5").fadeIn();
  1774. })
  1775. $(".pop_up_bj" ).click(function(){
  1776. $(".pop_up_bj").hide();
  1777. $(".pop_up_div5").hide();
  1778. })
  1779. $(".pop_up_div5 .btn .fl" ).click(function(){
  1780. $(".pop_up_bj").hide();
  1781. $(".pop_up_div5").hide();
  1782. })
  1783. $(".pop_up_div5 .btn .fr" ).click(function(){
  1784. // $("#cont").text("");
  1785. $(".pop_up_bj").hide();
  1786. $(".pop_up_div5").hide();
  1787. if($(".textcont").val()=="") {
  1788. mui.alert("请输入催单内容");
  1789. }else{
  1790. $(".pop_up_bj").hide();
  1791. $(".pop_up_div5").hide();
  1792. $.ajax({
  1793. type: "post",
  1794. dataType: 'json',
  1795. url: huayi.config.callcenter_url + '/WxLogin/RemindWorkOrder',
  1796. async: true,
  1797. data: {
  1798. orderid: id, //否 strubg 工单编号
  1799. cont: $(".reminder_con").val(), //否 int 处理内容
  1800. openid: openid, //微信openid,
  1801. //openid: 'oXF5e1mWpX5DajW5_yjNLPKb8ThE', //微信openid 测试用
  1802. },
  1803. success: function(data) {
  1804. if(data.state == "success") {
  1805. // debugger
  1806. mui.toast('催单成功');
  1807. window.location.href = "pend_index.html?id=" + id+'&itype='+itype;
  1808. } else {
  1809. mui.toast(data.message);
  1810. }
  1811. }
  1812. });
  1813. }
  1814. })
  1815. $("#qita").click(function(){
  1816. $("#order_source").show();
  1817. })
  1818. // if (!$('.font-color6').text()=='') {
  1819. // $('.font-color6').parent().parent().remove();
  1820. // }
  1821. // $(".font-color6").text('')
  1822. // $('.mui-input-row div label').remove();
  1823. //$('.mui-input-row div label').find('.font-color6:last').remove();
  1824. // if ($('.font-color6').is(":empty")) {
  1825. // $('.mui-input-row div label').show();
  1826. // }
  1827. </script>
  1828. </body>
  1829. </html>