Нет описания

details.html 55KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682
  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_matrix"></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_macrocell"></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_filiale"></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_filiale"></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_material"></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_mate"></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_model"></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_product"></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_Question"></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="Work_houseID"></label>
  221. </div>
  222. </div>
  223. </li>
  224. <!--业主信息-->
  225. <!--<li class="mui-table-view-cell mui-table-view-li">
  226. <div class="mui-input-row">
  227. <label class="label font-color5">业主信息:</label>
  228. <div class="mui-radio mui-right radio_box">
  229. <label class="font-color6">范冰冰 1566666666</label>
  230. </div>
  231. </div>
  232. </li>-->
  233. <li class="mui-table-view-cell mui-table-view-li">
  234. <div class="mui-input-row">
  235. <label class="label font-color5">处理人:</label>
  236. <div class="mui-radio mui-right radio_box">
  237. <label class="font-color6" id="Work_ownerRelations"></label>
  238. </div>
  239. </div>
  240. </li>
  241. <li class="mui-table-view-cell mui-table-view-li" id="source">
  242. <div class="mui-input-row">
  243. <label class="label font-color5">处理时间:</label>
  244. <div class="mui-radio mui-right radio_box">
  245. <label class="font-color6" id="Work_source"></label>
  246. </div>
  247. </div>
  248. </li>
  249. <li class="mui-table-view-cell mui-table-view-li Work_lastDealDiv">
  250. <div class="mui-input-row">
  251. <label class="label font-color5">处理内容:</label>
  252. <div class="mui-radio mui-right radio_box">
  253. <label class="font-color6 Work_lastDealUser"></label>
  254. </div>
  255. </div>
  256. </li>
  257. <li class="mui-table-view-cell mui-table-view-li">
  258. <div class="mui-input-row">
  259. <label class="label font-color5">处理结果:</label>
  260. <div class="mui-radio mui-right radio_box">
  261. <label class="font-color6 Work_last"></label>
  262. </div>
  263. </div>
  264. </li>
  265. <li class="mui-table-view-cell mui-table-view-li">
  266. <div class="mui-input-row">
  267. <label class="label font-color5">未处理原因:</label>
  268. <div class="mui-radio mui-right radio_box">
  269. <label class="font-color6" id="Work_workOrderID"></label>
  270. </div>
  271. </div>
  272. </li>
  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" id="Work_wor"></label>
  278. </div>
  279. </div>
  280. </li>
  281. <!--<li class="mui-table-view-cell mui-table-view-cell-pmargin ">
  282. <p><span class="font-color4">补充描述:</span>预约时间改为下午六点。现在不方便</p>
  283. </li>-->
  284. <li class="mui-table-view-cell mui-table-view-cell-pmargin">
  285. <p id="Work_detail"></p>
  286. </li>
  287. <!--<li class="mui-table-view-cell mui-table-view-cell-pmargin" id="Work_comment">
  288. </li>-->
  289. </ul>
  290. <ul class="mui-table-view mui-grid-view">
  291. <h4 class="mui-ellipsis size-16 mui_btn1_tit">操作按钮:</h4>
  292. <div class="type1">
  293. <!--待派单-->
  294. <div class="mui_btn1 dispose1">
  295. <li class=" mui-media mui-col-xs-3 shenpi">
  296. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block receiving">审批</button>
  297. </li>
  298. <li class=" mui-media mui-col-xs-3 xiugai">
  299. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block edit">修改</button>
  300. </li>
  301. <!--<li class=" mui-media mui-col-xs-3">
  302. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block redeploy">转派</button>
  303. </li>
  304. <li class=" mui-media mui-col-xs-3">
  305. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block finsh">完结</button>
  306. </li>-->
  307. </div>
  308. <!--待处理-->
  309. <div class="mui_btn1 dispose2">
  310. <li class=" mui-media mui-col-xs-3">
  311. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block edit">修改</button>
  312. </li>
  313. <li class=" mui-media mui-col-xs-3">
  314. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block sendback">退回</button>
  315. </li>
  316. <!--<li class=" mui-media mui-col-xs-3">
  317. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block delet">删除</button>
  318. </li>
  319. <li class=" mui-media mui-col-xs-3">
  320. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block deal">处理</button>
  321. </li>
  322. <li class=" mui-media mui-col-xs-3">
  323. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block btn_reply">回复</button>
  324. </li>-->
  325. </div>
  326. <!--已完成-->
  327. <div class="mui_btn1 dispose3">
  328. <li class=" mui-media mui-col-xs-3">
  329. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block edit">修改</button>
  330. </li>
  331. <li class=" mui-media mui-col-xs-3">
  332. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block delet">删除</button>
  333. </li>
  334. <!--<li class=" mui-media mui-col-xs-3">
  335. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block comment">评论</button>
  336. </li>-->
  337. </div>
  338. </div>
  339. <div class="type2">
  340. <!--待派单-->
  341. <div class="mui_btn1 dispose1">
  342. <li class=" mui-media mui-col-xs-3">
  343. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block rece">接单</button>
  344. </li>
  345. <li class=" mui-media mui-col-xs-3">
  346. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block sendback">退回</button>
  347. </li>
  348. </div>
  349. <!--待处理-->
  350. <div class="mui_btn1 dispose2">
  351. <li class=" mui-media mui-col-xs-3">
  352. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block disp">处理</button>
  353. </li>
  354. <li class=" mui-media mui-col-xs-3">
  355. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block allot">分配</button>
  356. </li>
  357. <li class=" mui-media mui-col-xs-3">
  358. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block abnormal">异常退回</button>
  359. </li>
  360. <li class=" mui-media mui-col-xs-3">
  361. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block postpone">申请延期</button>
  362. </li>
  363. <!--<li class=" mui-media mui-col-xs-3">
  364. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block btn_reply">回复</button>
  365. </li>-->
  366. </div>
  367. <!--已完成-->
  368. <!--<div class="mui_btn1 dispose3">
  369. <li class=" mui-media mui-col-xs-3">
  370. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block comment">评论</button>
  371. </li>
  372. </div>-->
  373. </div>
  374. <div class="type3">
  375. <!--待派单-->
  376. <div class="mui_btn1 dispose1">
  377. <li class=" mui-media mui-col-xs-3">
  378. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block receiving">审批</button>
  379. </li>
  380. </div>
  381. <div class="mui_btn1 dispose2">
  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 approva">高层审批</button>
  384. </li>
  385. </div>
  386. </div>
  387. <div class="type4">
  388. <!--待派单-->
  389. <div class="mui_btn1 ">
  390. <li class=" mui-media mui-col-xs-3">
  391. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block receiving">接单</button>
  392. </li>
  393. </div>
  394. <!--待处理-->
  395. <div class="mui_btn1 dispose2">
  396. <li class=" mui-media mui-col-xs-3">
  397. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block daal">处理</button>
  398. </li>
  399. </div>
  400. </div>
  401. <div class="type5">
  402. <!--待处理-->
  403. <div class="mui_btn1 dispose3">
  404. <li class=" mui-media mui-col-xs-3">
  405. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block daal">催单</button>
  406. </li>
  407. </div>
  408. <!--待处理-->
  409. <div class="mui_btn1 dispose1">
  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 daal">催单</button>
  412. </li>
  413. </div>
  414. <!--已完成-->
  415. <div class="mui_btn1 dispose2">
  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 comment">评论</button>
  418. </li>
  419. </div>
  420. </div>
  421. </ul>
  422. <div id="slider" class="mui-slider">
  423. <div id="sliderSegmentedControl" class="mui-slider-indicator mui-segmented-control mui-segmented-control-inverted">
  424. <a class="mui-control-item mui-active" href="#item1mobile" data-index="1">
  425. 工单跟踪
  426. </a>
  427. <!--<a class="mui-control-item" href="#item2mobile" data-index="2">
  428. 催单记录
  429. </a>
  430. <a class="mui-control-item" href="#item3mobile" data-index="2">
  431. 评论记录
  432. </a>-->
  433. </div>
  434. <div class="mui-slider-group">
  435. <div id="item1mobile" class="mui-slider-item mui-control-content mui-active">
  436. <ul class="mui-table-view folowlist" id="folow"></ul>
  437. </div>
  438. </div>
  439. </div>
  440. </div>
  441. <div class="WordID" style="display: none;"></div>
  442. <!--弹框1-->
  443. <div class="pop_up_bj"></div>
  444. <div class="pop_up_div1">
  445. <div class="tit">请输入评论理由</div>
  446. <div class="contain">
  447. <textarea name="" rows="" cols="" class="evaluate_con"></textarea>
  448. </div>
  449. <div class="btn">
  450. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-royal fl">取消</button>
  451. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary fr evaluate">确定</button>
  452. </div>
  453. </div>
  454. <!--弹框2-->
  455. <div class="pop_up_div2">
  456. <div class="tit">请输入工单完结理由</div>
  457. <div class="contain">
  458. <textarea class="textcont" id="finsh_cont"></textarea>
  459. </div>
  460. <div class="btn">
  461. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-royal fl">取消</button>
  462. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary fr">确定</button>
  463. </div>
  464. </div>
  465. <!--弹框2-->
  466. <div class="pop_up_div6" style="display: none;">
  467. <div class="tit">请输入处理内容</div>
  468. <div class="contain">
  469. <textarea class="textcont" id="deal_cont"></textarea>
  470. </div>
  471. <div class="btn">
  472. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-royal fl">取消</button>
  473. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary fr">确定</button>
  474. </div>
  475. </div>
  476. <!--弹框4-->
  477. <div class="pop_up_div4">
  478. <div class="tit">请输入处理内容</div>
  479. <div class="contain">
  480. <textarea class="textcont_deal"></textarea>
  481. </div>
  482. <div class="btn">
  483. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-royal fl">取消</button>
  484. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary fr">确定</button>
  485. </div>
  486. </div>
  487. <!--弹框2-->
  488. <div class="pop_up_div5" style="display: none;">
  489. <div class="tit">请输入催单内容</div>
  490. <div class="contain">
  491. <textarea class="textcont reminder_con" ></textarea>
  492. </div>
  493. <div class="btn">
  494. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-royal fl">取消</button>
  495. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary fr">确定</button>
  496. </div>
  497. </div>
  498. <!--弹框3-->
  499. <div class="pop_up_div3">
  500. <div class="tit">请输入转派理由</div>
  501. <div class="contain">
  502. <textarea class="reason" name="" rows="" cols="" style="height: 100px;"></textarea>
  503. </div>
  504. <input type="text" id='complaintOrder_type' class="ui-alert type_con size-14" data-index="" readonly="readonly" />
  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 showUserPicker" id="showUserPicker">下一步</button>
  508. </div>
  509. </div>
  510. <!--//申请延期弹出框-->
  511. <div class="pop_up_div8">
  512. <div class="tit">请输入延期说明</div>
  513. <div class="contain">
  514. <textarea class="reas" name="" rows="" cols="" style="height: 50px;"></textarea>
  515. </div>
  516. <div class="tit">申请延期时限</div>
  517. <div class="mui-input-row mui-radio mui-left radio_box order_type">
  518. <label>1小时</label>
  519. <input type="radio" type="radio" name="form" checked="checked" value="1小时" class="size-14" />
  520. </div>
  521. <div class="mui-input-row mui-radio mui-left radio_box order_type">
  522. <label>8小时</label>
  523. <input type="radio" type="radio" name="form" value="8小时" class="size-14" />
  524. </div>
  525. <div class="mui-input-row mui-radio mui-left radio_box order_type">
  526. <label>24小时</label>
  527. <input type="radio" type="radio" name="form" value="24小时" class="size-14" />
  528. </div>
  529. <div class="mui-input-row mui-radio mui-left radio_box order_type">
  530. <label>其他</label>
  531. <input type="radio" type="radio" name="form" value="其他" class="size-14" id="qita"/>
  532. </div>
  533. <input type="number" id='order_source' data-index="" placeholder="默认小时" style="width:55%;"/>
  534. <div class="btn">
  535. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-royal fl">取消</button>
  536. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary fr showUserPicker" id="showUserPicker">确定</button>
  537. </div>
  538. </div>
  539. <!--审批弹窗-->
  540. <div class="pop_up_div9">
  541. <div class="tit">请输入审批意见</div>
  542. <div class="contain">
  543. <textarea class="reasaa" name="" rows="" cols="" style="height: 50px;"></textarea>
  544. </div>
  545. <div class="tit">审批结果</div>
  546. <div class="mui-input-row mui-radio mui-left radio_box order_ty">
  547. <label>同意上报</label>
  548. <input type="radio" type="radio" name="form" checked="checked" value="0" class="size-14" />
  549. </div>
  550. <div class="mui-input-row mui-radio mui-left radio_box order_ty">
  551. <label>驳回修订</label>
  552. <input type="radio" type="radio" name="form" value="1" class="size-14" />
  553. </div>
  554. <div class="btn">
  555. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-royal fl">取消</button>
  556. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary fr showUserPicker" id="showUserPicker">确定</button>
  557. </div>
  558. </div>
  559. <!--高层审批弹框-->
  560. <div class="pop_up_div10">
  561. <div class="tit">请输入审批意见</div>
  562. <div class="contain">
  563. <textarea class="reaa" name="" rows="" cols="" style="height: 50px;"></textarea>
  564. </div>
  565. <div class="btn">
  566. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-royal fl">取消</button>
  567. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary fr showUserPicker" id="showUserPicker">确定</button>
  568. </div>
  569. </div>
  570. <script src="../js/jquery.min.js"></script>
  571. <script src="js/details.js"></script>
  572. <script src="../Script/Common/huayi.config.js"></script>
  573. <script src="../Script/Common/huayi.http.js"></script>
  574. <script src="../js/mui.min.js"></script>
  575. <script src="../js/mui.picker.js"></script>
  576. <script src="../js/mui.poppicker.js"></script>
  577. <script src="js/city.data-3.js"></script>
  578. <script>
  579. var id = helper.request.queryString("id");
  580. var itype = helper.request.queryString("itype");
  581. var state = helper.request.queryString("state");
  582. var isReply = helper.request.queryString("IsReply"); // 是否已回复 0 未回复 1已回复
  583. var openid = helper.cookies.get("openid");
  584. var UserType = helper.cookies.get("usertype");
  585. // var openid = "oXF5e1mWpX5DajW5_yjNLPKb8ThE";
  586. if(isReply == 0){
  587. $('.btn_reply').show();
  588. }
  589. if (UserType==-1) {
  590. $(".type1").hide();
  591. $(".type2").hide();
  592. $(".type3").show();
  593. $(".type4").hide();
  594. $(".type5").hide();
  595. } else if(UserType==0){
  596. $(".type1").show();
  597. $(".type2").hide();
  598. $(".type3").hide();
  599. $(".type4").hide();
  600. $(".type5").hide();
  601. $(".type6").hide();
  602. $(".type7").hide();
  603. $(".type8").hide();
  604. $(".type9").hide();
  605. }else if(UserType==1){
  606. $(".type1").hide();
  607. $(".type2").hide();
  608. $(".type3").show();
  609. $(".type4").hide();
  610. $(".type5").hide();
  611. }else if(UserType==2){
  612. $(".type1").hide();
  613. $(".type2").hide();
  614. $(".type3").show();
  615. $(".type4").hide();
  616. $(".type5").hide();
  617. $(".type6").hide();
  618. $(".type7").hide();
  619. $(".type8").hide();
  620. $(".type9").hide();
  621. }else if(UserType==3){
  622. $(".type1").hide();
  623. $(".type2").show();
  624. $(".type3").hide();
  625. $(".type4").hide();
  626. $(".type5").hide();
  627. $(".type6").hide();
  628. $(".type7").hide();
  629. $(".type8").hide();
  630. $(".type9").hide();
  631. }else if(UserType==4){
  632. $(".type1").show();
  633. $(".type2").hide();
  634. $(".type3").hide();
  635. $(".type4").hide();
  636. $(".type5").hide();
  637. $(".type6").hide();
  638. $(".type7").hide();
  639. $(".type8").hide();
  640. $(".type9").hide();
  641. }
  642. Ajax();
  643. flow();
  644. // $("label:empty"=='').hide()
  645. //
  646. // var temp = $('.font-color6').text();
  647. // if (temp == '') {
  648. // $('.mui-radio').hide();
  649. // }else{
  650. // $('.mui-radio').show();
  651. // }
  652. // if($('.font-color6').is(':empty')){
  653. //
  654. // $('.mui-input-row').show();
  655. // alert(1111)
  656. // }
  657. // Remind();
  658. // Comment();
  659. //获取数据
  660. function Ajax() {
  661. $.ajax({
  662. url: huayi.config.callcenter_url + 'WxLogin/GetDetails',
  663. data: {
  664. id: id, //工单编号
  665. OpenId: openid, //微信openid,
  666. },
  667. async: true,
  668. dataType: 'json',
  669. type: 'get', //HTTP请求类型
  670. success: function(data) {
  671. if(data.state.toLowerCase() == "success") {
  672. var result = data.rows[0];
  673. if(result.Source == 0) {
  674. $("#source").hide();
  675. } else {
  676. $("#source").show();
  677. }
  678. var itype=result.F_State;
  679. if (state==1) {
  680. // alert(state);
  681. $(".type1").hide();
  682. $(".type2").hide();
  683. $(".type3").hide();
  684. $(".type4").hide();
  685. $(".type5").hide();
  686. $(".type6").hide();
  687. $(".type7").hide();
  688. $(".type8").hide();
  689. $(".type9").hide();
  690. }
  691. if (state==11) {
  692. // alert(state);
  693. $(".type1").hide();
  694. $(".type2").hide();
  695. $(".type3").hide();
  696. $(".type4").hide();
  697. $(".type5").hide();
  698. $(".type6").hide();
  699. $(".type7").hide();
  700. $(".type8").hide();
  701. $(".type9").hide();
  702. }
  703. if(itype == 0) {
  704. $(".dispose1").hide();
  705. $(".dispose2").show();
  706. }else if(itype == 1) {
  707. //alert(itype)
  708. $(".dispose1").show();
  709. } else if(itype == 2) {
  710. $(".dispose2").show();
  711. } else if(itype == 3) {
  712. $(".dispose3").show();
  713. }else if(itype == 4) {
  714. $(".dispose2").show();
  715. $(".dispose1").hide();
  716. }else if(itype == 5) {
  717. $(".dispose2").hide();
  718. }else if(itype == 16) {
  719. $(".dispose1").show();
  720. $(".dispose2").show();
  721. if (UserType==4) {
  722. $(".shenpi").remove()
  723. }
  724. }
  725. if (result.GDLXName=="咨询") {
  726. $(".Work_lastDealDiv").hide(); //受理人
  727. $("#source").hide(); //投诉
  728. } else{
  729. $(".Work_lastDealDiv").show(); //受理人
  730. $("#source").show(); //投诉
  731. }
  732. $("#Work_bianhao").text(result.F_WorkOrderCode);
  733. $(".WordID").text(result.ID);
  734. $("#Work_classname").text(result.F_TypeName); //工单类型
  735. $("#section").text(result.F_DeptName); //部门
  736. $("#customer").text(result.F_CusName); //客户姓名
  737. $("#customerTel").text(result.F_CusPhone); //联系电话
  738. $("#Work_areaname").text(result.F_CompanyName); //公司名称
  739. // $("#Work_areaname").attr(result.IsAdminSend);
  740. $("#order_tower").text(result.F_Salesman); //业务员
  741. $("#order_unit").text(result.F_SalesPhone); //业务员电话
  742. $("#Work_houseID").text(result.F_CreateBy); //添加人工号
  743. $("#order_classes").text(result.F_QuestionType); //问题类别
  744. $("#order_account").text(result.F_IncidentProvince); //事发地
  745. $("#order_downtown").text(result.F_IncidentCity); //市区
  746. $("#order_counties").text(result.F_IncidentCountry); //县区F_QuestionType
  747. $("#order_village").text(result.F_IncidentTownship); //乡
  748. $("#order_address").text(result.F_IncidentDetailed); //详细地址
  749. $("#order_matrix").text(result.F_Channel); //渠道类型
  750. $("#order_matrix").text(result.F_SalesBase); //销售基地
  751. $("#order_macrocell").text(result.F_AreaName); //大区
  752. $("#order_filiale").text(result.F_BranchName); //分公司
  753. $("#order_material").text(result.F_DealTime); //客户编码
  754. $("#order_mate").text(result.F_DealTime); //物料编码
  755. $("#order_model").text(result.F_Model); //型号
  756. $("#order_product").text(result.F_ZX_ProName); //产品名称
  757. $("#order_Question").text(result.F_ZX_Quantity); //问题数量
  758. $("#Work_ownerRelations").text(result.F_DealBy); //处理人
  759. $("#Work_source").text(result.F_DealTime); //处理时间
  760. $(".Work_lastDealUser").text(result.F_DealContent); //处理内容
  761. $(".Work_last").text(result.F_DealResult); //处理结果
  762. $("#Work_workOrderID").text(result.F_DealReasons); //未处理原因
  763. $("#Work_workOrderID").text(result.F_IsVisit); //是否回访
  764. $("#Work_detail").text("问题描述:" + result.F_Description); //描述详情
  765. }
  766. },
  767. error: function(xhr, type, errorThrown) {
  768. //异常处理;
  769. }
  770. })
  771. }
  772. //跳转页面
  773. //修改
  774. $('.edit').on('tap', function() {
  775. window.location.href = "editWorkolder.html?id=" + id+'&itype='+itype;
  776. });
  777. //返回列表
  778. $('.return').on('tap', function() {
  779. if (itype==0) {
  780. window.location.href = "client_index.html"
  781. }if (itype==1) {
  782. window.location.href = "Waiting_list.html"
  783. } else if (itype==2){
  784. window.location.href = "haveorder_list.html"
  785. } else if (itype==3){
  786. window.location.href = "Have_list.html"
  787. }
  788. //window.location.href = "client_index.html?Itype=" + itype;
  789. });
  790. //工单跟踪
  791. function flow() {
  792. $.ajax({
  793. url: huayi.config.callcenter_url + 'WxLogin/GetDetails',
  794. data: {
  795. id: id, //工单编号
  796. OpenId: openid, //微信openid,
  797. },
  798. async: true,
  799. dataType: 'json',
  800. type: 'get', //HTTP请求类型
  801. success: function(data) {
  802. if(data.state.toLowerCase() == "success") {
  803. if(data.total && data.total.length > 0) {
  804. $(data.total).each(function(i, n) {
  805. var str = '';
  806. if(n.F_OptType == 0){
  807. str = str + n.F_OptContent+"<br>";
  808. // alert(str)
  809. }
  810. if(n.F_OptType == 1){
  811. str = str + n.F_OptContent+"<br>";
  812. // alert(str)
  813. }
  814. if(n.F_OptType == 2){
  815. str = str + n.F_OptContent+"<br>";
  816. // alert(str)
  817. }
  818. if(n.F_OptType == 3){
  819. str = str + n.F_OptContent+"<br>";
  820. // alert(str)
  821. }
  822. if(n.F_OptType == 4){
  823. str = str + n.F_OptContent+"<br>";
  824. // alert(str)
  825. }
  826. if(n.F_OptType == 5){
  827. str = str + n.F_OptContent+"<br>";
  828. // alert(str)
  829. }
  830. if(n.F_OptType == 6){
  831. str = str + n.F_OptContent+"<br>";
  832. // alert(str)
  833. }
  834. if(n.F_OptType == 7){
  835. str = str + n.F_OptContent+"<br>";
  836. // alert(str)
  837. }
  838. if(n.F_OptType == 8){
  839. str = str + n.F_OptContent+"<br>";
  840. // alert(str)
  841. }
  842. if(n.F_OptType == 9){
  843. str = str + n.F_OptContent+"<br>";
  844. // alert(str)
  845. }
  846. if(n.F_OptType == 10){
  847. str = str + n.F_OptContent+"<br>";
  848. // alert(str)
  849. }
  850. if(n.F_OptType == 11){
  851. str = str + n.F_OptContent+"<br>";
  852. // alert(str)
  853. }
  854. if(n.F_OptType == 12){
  855. str = str + n.F_OptContent+"<br>";
  856. // alert(str)
  857. }
  858. if(n.F_OptType == 13){
  859. str = str + n.F_OptContent+"<br>";
  860. // alert(str)
  861. }
  862. if(n.F_OptType == 14){
  863. str = str + n.F_OptContent+"<br>";
  864. // alert(str)
  865. }
  866. if(n.F_OptType == 15){
  867. str = str + n.F_OptContent+"<br>";
  868. // alert(str)
  869. }
  870. if(n.F_OptType == 16){
  871. str = str + n.F_OptContent+"<br>";
  872. // alert(str)
  873. }
  874. var spandeta="";
  875. // if (n.Detail==null) {
  876. // spandeta=""
  877. // } else if (n.Detail==""){
  878. // spandeta=""
  879. // }else if(n.IsLast == 1){
  880. // spandeta="完结内容:"+n.F_OptContent
  881. // }else if(n.SureUserName) {
  882. // spandeta="接单内容:"+n.F_OptContent
  883. // } else if(n.DealTime){
  884. // spandeta="处理内容:"+n.F_OptContent
  885. // }else if(n.ToDeptName){
  886. // spandeta="转派内容:"+n.F_OptContent
  887. // }
  888. if ($(".spandeta").text()=="") {
  889. $(this).hide();
  890. }
  891. //else if(row.IsStart) {str = str + row.CreateUserName + " 重新开启工单";}
  892. $('<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 +
  893. '</span></br><span style="font-size:12px;">' + str +
  894. '</span><span class="spandeta">'+spandeta+
  895. '</span></div><div class="string"></div><div class="circular_h"></div></li>').appendTo('#folow');
  896. });
  897. var num = data.rows.length - 1;
  898. $("#folow li:eq(0)").children(".string").css("top", "20px");
  899. $("#folow li:eq(" + num + ")").children(".string").css("height", "5px");
  900. $("#folow li:eq(0)").children(".string").css("top", "20px");
  901. $("#folow li:eq(0)").children(".circular_h").css({
  902. "background": "#2cc6a7",
  903. "left": "15px",
  904. "top": "20px",
  905. "width": "12px",
  906. "height": "12px",
  907. "border-radius": "6px"
  908. });
  909. $("#folow li:eq(" + num + ")").children(".circular_h").css({
  910. "left": "15px",
  911. "width": "12px",
  912. "height": "12px",
  913. "border-radius": "6px"
  914. });
  915. }
  916. }
  917. },
  918. error: function(xhr, type, errorThrown) {
  919. //异常处理;
  920. }
  921. })
  922. }
  923. //催单记录
  924. // function Remind() {
  925. // $.ajax({
  926. // url: huayi.config.callcenter_url + 'WxLogin/GetDetails',
  927. // data: {
  928. // id: id, //工单编号
  929. // type: 2,
  930. // OpenId: openid, //微信openid,
  931. // },
  932. // async: true,
  933. // dataType: 'json',
  934. // type: 'get', //HTTP请求类型
  935. // success: function(data) {
  936. // if(data.state.toLowerCase() == "success") {
  937. // if(data.rows && data.rows.length > 0) {
  938. // $(data.rows).each(function(i, n) {
  939. // var spandeta;
  940. // if (n.Detail==null) {
  941. // spandeta=""
  942. // } else if (n.Detail==""){
  943. // spandeta=""
  944. // }else{
  945. // spandeta="催办内容:"+n.Detail
  946. // }
  947. // var depart;
  948. // if(n.ToDeptName==null){
  949. // depart=""
  950. // }else{
  951. // depart=n.ToDeptName
  952. // }
  953. // var deperson;
  954. // if(n.ToUserName==null){
  955. // deperson=""
  956. // }else{
  957. // deperson=n.ToUserName
  958. // }
  959. // $('<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 +
  960. //// '</span></br><span>被催办部门:'+depart+
  961. //// '</span></br><span>被催办人:'+deperson+
  962. // '</span></br><span>催办人:' + n.CreateUserName +
  963. // '</span></br><span>'+spandeta+
  964. // '</span></div><div class="string"></div><div class="circular_h"></div></li>').appendTo('#remind');
  965. // });
  966. // var num = data.rows.length - 1;
  967. // $("#remind li:eq(0)").children(".string").css("top", "20px");
  968. // $("#remind li:eq(" + num + ")").children(".string").css("height", "5px");
  969. // $("#remind li:eq(0)").children(".string").css("top", "20px");
  970. // $("#remind li:eq(0)").children(".circular_h").css({
  971. // "background": "#2cc6a7",
  972. // "left": "15px",
  973. // "top": "20px",
  974. // "width": "12px",
  975. // "height": "12px",
  976. // "border-radius": "6px"
  977. // });
  978. // $("#remind li:eq(" + num + ")").children(".circular_h").css({
  979. // "left": "15px",
  980. // "width": "12px",
  981. // "height": "12px",
  982. // "border-radius": "6px"
  983. // });
  984. // }
  985. // }
  986. // },
  987. // error: function(xhr, type, errorThrown) {
  988. // //异常处理;
  989. // }
  990. // })
  991. // }
  992. //评论记录
  993. // function Comment() {
  994. // $.ajax({
  995. // url: huayi.config.callcenter_url + 'WxLogin/GetDetails',
  996. // data: {
  997. // id: id, //工单编号
  998. // type: 3,
  999. // OpenId: openid, //微信openid,
  1000. // },
  1001. // async: true,
  1002. // dataType: 'json',
  1003. // type: 'get', //HTTP请求类型
  1004. // success: function(data) {
  1005. // if(data.state.toLowerCase() == "success") {
  1006. // if(data.rows && data.rows.length > 0) {
  1007. //
  1008. // $(data.rows).each(function(i, n) {
  1009. // var spandeta;
  1010. // if (n.Detail==null) {
  1011. // spandeta=""
  1012. // } else if (n.Detail==""){
  1013. // spandeta=""
  1014. // }else{
  1015. // spandeta="评论内容:"+n.Detail
  1016. // }
  1017. // $('<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 +
  1018. // '</span></br><span >'+spandeta+
  1019. // '</span><span class="span3">' + n.CreateUserName +
  1020. // '</span></div><div class="string"></div><div class="circular_h"></div></li>').appendTo('#commentlist');
  1021. // if (n.Detail==null||n.Detail=="") {
  1022. // $(".spandeta").hide();
  1023. // } else{
  1024. // $(".spandeta").show();
  1025. // }
  1026. // });
  1027. // var num = data.rows.length - 1;
  1028. // $("#commentlist li:eq(0)").children(".string").css("top", "20px");
  1029. // $("#commentlist li:eq(" + num + ")").children(".string").css("height", "5px");
  1030. // $("#commentlist li:eq(0)").children(".string").css("top", "20px");
  1031. // $("#commentlist li:eq(0)").children(".circular_h").css({
  1032. // "background": "#2cc6a7",
  1033. // "left": "15px",
  1034. // "top": "20px",
  1035. // "width": "12px",
  1036. // "height": "12px",
  1037. // "border-radius": "6px"
  1038. // });
  1039. // $("#commentlist li:eq(" + num + ")").children(".circular_h").css({
  1040. // "left": "15px",
  1041. // "width": "12px",
  1042. // "height": "12px",
  1043. // "border-radius": "6px"
  1044. // });
  1045. // }
  1046. // }
  1047. // },
  1048. // error: function(xhr, type, errorThrown) {
  1049. // //异常处理;
  1050. // }
  1051. // })
  1052. // }
  1053. //转派
  1054. //转派弹框
  1055. $(".allot").click(function() {
  1056. var areaID = $("#Work_areaname").attr('data-index')
  1057. window.location.href = "redeploy.html?id=" + id+'&itype='+itype+'&areaID='+areaID;
  1058. })
  1059. // 处理提单框
  1060. $(".disp").click(function() {
  1061. var areaID = $("#Work_areaname").attr('data-index')
  1062. window.location.href = "dispose.html?id=" + id+'&itype='+itype+'&areaID='+areaID;
  1063. })
  1064. //评论工单
  1065. $(".comment").click(function(){
  1066. $(".pop_up_bj").fadeIn();
  1067. $(".pop_up_div1").fadeIn();
  1068. })
  1069. $(".pop_up_bj" ).click(function(){
  1070. $(".pop_up_bj").hide();
  1071. $(".pop_up_div1").hide();
  1072. })
  1073. $(".pop_up_div1 .btn .fl" ).click(function(){
  1074. $(".pop_up_bj").hide();
  1075. $(".pop_up_div1").hide();
  1076. })
  1077. $(".pop_up_div1 .btn .fr" ).click(function(){
  1078. $(".pop_up_bj").hide();
  1079. $(".pop_up_div1").hide();
  1080. })
  1081. $(".evaluate").click(function(){
  1082. if(!$(".evaluate_con").val()) {
  1083. mui.alert("请输入评论内容");
  1084. }else{
  1085. $(".pop_up_bj").hide();
  1086. $(".pop_up_div3").hide();
  1087. $.ajax({
  1088. type: "post",
  1089. dataType: 'json',
  1090. url: huayi.config.callcenter_url + '/WxLogin/CommentWorkOrder',
  1091. async: true,
  1092. data: {
  1093. orderid: id, //否 strubg 工单编号
  1094. cont: $(".evaluate_con").val(), //否 int 处理内容
  1095. openid: openid, //微信openid,
  1096. },
  1097. success: function(data) {
  1098. if(data.state == "success") {
  1099. debugger
  1100. mui.toast('评论成功');
  1101. window.location.href = "details.html?id=" + id+'&itype='+itype;
  1102. } else {
  1103. mui.toast(data.message);
  1104. }
  1105. }
  1106. });
  1107. }
  1108. })
  1109. //处理完结
  1110. $(".daal").click(function(){
  1111. $(".pop_up_bj").fadeIn();
  1112. $(".pop_up_div6").fadeIn();
  1113. })
  1114. $(".pop_up_bj" ).click(function(){
  1115. $(".pop_up_bj").hide();
  1116. $(".pop_up_div6").hide();
  1117. })
  1118. $(".pop_up_div6 .btn .fl" ).click(function(){
  1119. $(".pop_up_bj").hide();
  1120. $(".pop_up_div6").hide();
  1121. })
  1122. $(".pop_up_div6 .btn .fr" ).click(function(){
  1123. // $("#cont").text("");
  1124. $(".pop_up_bj").hide();
  1125. $(".pop_up_div6").hide();
  1126. if($("#deal_cont").val()=="") {
  1127. mui.alert("请输入处理内容");
  1128. }else{
  1129. $(".pop_up_bj").hide();
  1130. $(".pop_up_div6").hide();
  1131. $.ajax({
  1132. type: "post",
  1133. dataType: 'json',
  1134. url: huayi.config.callcenter_url + '/WxLogin/DealWorkOrder',
  1135. async: true,
  1136. data: {
  1137. orderid: id, //否 strubg 工单编号
  1138. isend: 1, //否 int 你看一下前端是什么参数
  1139. cont: $("#deal_cont").val(), //否 int 处理内容
  1140. openid: openid, //微信openid 测试用
  1141. },
  1142. success: function(data) {
  1143. if(data.state == "success") {
  1144. debugger
  1145. mui.toast('处理成功');
  1146. window.location.href = "pend_index.html";
  1147. } else {
  1148. mui.toast(data.message);
  1149. }
  1150. }
  1151. });
  1152. }
  1153. })
  1154. //完结
  1155. $(".finsh").click(function(){
  1156. $(".pop_up_bj").fadeIn();
  1157. $(".pop_up_div2").fadeIn();
  1158. })
  1159. $(".pop_up_bj" ).click(function(){
  1160. $(".pop_up_bj").hide();
  1161. $(".pop_up_div2").hide();
  1162. })
  1163. $(".pop_up_div2 .btn .fl" ).click(function(){
  1164. $(".pop_up_bj").hide();
  1165. $(".pop_up_div2").hide();
  1166. mui.alert("取消");
  1167. })
  1168. $(".pop_up_div2 .btn .fr" ).click(function(){
  1169. $("#finsh_cont").text("");
  1170. $(".pop_up_bj").hide();
  1171. $(".pop_up_div2").hide();
  1172. if($(".textcont").val()=="") {
  1173. mui.alert("请输入完结内容");
  1174. }else{
  1175. $(".pop_up_bj").hide();
  1176. $(".pop_up_div2").hide();
  1177. $.ajax({
  1178. type: "post",
  1179. dataType: 'json',
  1180. url: huayi.config.callcenter_url + '/WxLogin/DealWorkOrder',
  1181. async: true,
  1182. data: {
  1183. orderid: id, //否 strubg 工单编号
  1184. isend: 1, //否 int 你看一下前端是什么参数
  1185. cont: $("#finsh_cont").val(), //否 int 处理内容
  1186. openid: openid, //微信openid,
  1187. },
  1188. success: function(data) {
  1189. if(data.state == "success") {
  1190. debugger
  1191. mui.toast('处理成功');
  1192. window.location.href = "client_index.html?id=" + id+'&itype='+itype;
  1193. } else {
  1194. mui.toast(data.message);
  1195. }
  1196. }
  1197. });
  1198. }
  1199. })
  1200. //处理
  1201. $(".deal").click(function(){
  1202. $(".pop_up_bj").fadeIn();
  1203. $(".pop_up_div4").fadeIn();
  1204. })
  1205. $(".pop_up_bj" ).click(function(){
  1206. $(".pop_up_bj").hide();
  1207. $(".pop_up_div4").hide();
  1208. })
  1209. $(".pop_up_div4 .btn .fl" ).click(function(){
  1210. $(".pop_up_bj").hide();
  1211. $(".pop_up_div4").hide();
  1212. mui.alert("取消");
  1213. })
  1214. $(".pop_up_div4 .btn .fr" ).click(function(){
  1215. // $("#cont").text("");
  1216. $(".pop_up_bj").hide();
  1217. $(".pop_up_div4").hide();
  1218. if($(".textcont_deal").val()=="") {
  1219. mui.alert("请输入处理内容");
  1220. }else{
  1221. $(".pop_up_bj").hide();
  1222. $(".pop_up_div4").hide();
  1223. $.ajax({
  1224. type: "post",
  1225. dataType: 'json',
  1226. url: huayi.config.callcenter_url + '/WxLogin/DealWorkOrder',
  1227. async: true,
  1228. data: {
  1229. orderid: id, //否 strubg 工单编号
  1230. isend: itype, //否 int 你看一下前端是什么参数
  1231. cont: $("#textcont_deal").val(), //否 int 处理内容
  1232. Openid: openid, //微信openid,
  1233. },
  1234. success: function(data) {
  1235. if(data.state == "success") {
  1236. debugger
  1237. mui.toast('处理成功');
  1238. window.location.href = "pend_index.html?id=" + id+'&itype='+itype;
  1239. } else {
  1240. mui.toast(data.message);
  1241. }
  1242. }
  1243. });
  1244. }
  1245. })
  1246. //回复
  1247. $(".btn_reply").click(function(){
  1248. var btnArray = ['取消', '确定'];
  1249. mui.confirm('确定回复?', '提示', btnArray, function(f) {
  1250. if(f.index == 1) {
  1251. $.ajax({
  1252. type: "post",
  1253. dataType: 'json',
  1254. url: huayi.config.callcenter_url + 'WxLogin/ReplyWorkOrder',
  1255. async: true,
  1256. data: {
  1257. openid: openid,// 是 strubg openid
  1258. orderid: id// 是 string 工单号码
  1259. },
  1260. success: function(data) {
  1261. if(data.state == "success") {
  1262. mui.toast('操作成功');
  1263. window.location.href = "client_index.html?id=" + id+'&itype='+itype;
  1264. } else {
  1265. mui.toast(data.message);
  1266. }
  1267. }
  1268. });
  1269. } else {
  1270. mui.toast("取消操作");
  1271. }
  1272. })
  1273. });
  1274. //接单
  1275. $(".rece").click(function(){
  1276. var btnArray = ['否', '是'];
  1277. mui.confirm('确定接单?', '提示', btnArray, function(f) {
  1278. if(f.index == 1) {
  1279. $.ajax({
  1280. type: "get",
  1281. dataType: 'json',
  1282. url: huayi.config.callcenter_url + 'WxLogin/SureWorkOrder',
  1283. async: true,
  1284. data: {
  1285. orderid: id, //否 strubg 工单编号
  1286. OpenId: openid, //微信openid 测试用
  1287. },
  1288. success: function(data) {
  1289. debugger
  1290. // alert(data.state)
  1291. if(data.state == "success") {
  1292. mui.toast('接单成功');
  1293. window.location.href = "Waiting_list.html";
  1294. } else {
  1295. mui.toast(data.message);
  1296. }
  1297. }
  1298. });
  1299. } else {
  1300. mui.toast("取消");
  1301. }
  1302. })
  1303. })
  1304. //审批
  1305. $(".receiving").click(function(){
  1306. $(".pop_up_bj").fadeIn();
  1307. $(".pop_up_div9").fadeIn();
  1308. })
  1309. $(".pop_up_bj" ).click(function(){
  1310. $(".pop_up_bj").hide();
  1311. $(".pop_up_div9").hide();
  1312. })
  1313. $(".pop_up_div9 .btn .fl" ).click(function(){
  1314. $(".pop_up_bj").hide();
  1315. $(".pop_up_div9").hide();
  1316. })
  1317. $(".pop_up_div9 .btn .fr" ).click(function(){
  1318. // $("#cont").text("");
  1319. $(".pop_up_bj").hide();
  1320. $(".pop_up_div9").hide();
  1321. if($(".reasaa").val()=="") {
  1322. mui.alert("请输入审批意见.");
  1323. }else{
  1324. $(".pop_up_bj").hide();
  1325. $(".pop_up_div9").hide();
  1326. $.ajax({
  1327. type: "get",
  1328. dataType: 'json',
  1329. url: huayi.config.callcenter_url + 'WxLogin/GetApproval',
  1330. async: true,
  1331. data: {
  1332. orderid: id, //否 strubg 工单编号
  1333. OpenId: openid,
  1334. AuditCont: $(".reasaa").val(),
  1335. IsAudit:1,
  1336. AuditState:$('.order_ty').find('input[type="radio"]:checked').val(), //工单类型
  1337. },
  1338. success: function(data) {
  1339. debugger
  1340. if(data.state == "success") {
  1341. debugger
  1342. mui.toast('申请成功');
  1343. window.location.href = "client_index.html?id=" + id+'&itype='+itype;
  1344. } else {
  1345. mui.toast(data.message);
  1346. }
  1347. }
  1348. });
  1349. }
  1350. })
  1351. //高层审批
  1352. $(".approva").click(function(){
  1353. $(".pop_up_bj").fadeIn();
  1354. $(".pop_up_div10").fadeIn();
  1355. })
  1356. $(".pop_up_bj" ).click(function(){
  1357. $(".pop_up_bj").hide();
  1358. $(".pop_up_div10").hide();
  1359. })
  1360. $(".pop_up_div10 .btn .fl" ).click(function(){
  1361. $(".pop_up_bj").hide();
  1362. $(".pop_up_div10").hide();
  1363. })
  1364. $(".pop_up_div10 .btn .fr" ).click(function(){
  1365. // $("#cont").text("");
  1366. $(".pop_up_bj").hide();
  1367. $(".pop_up_div10").hide();
  1368. if($(".reaa").val()=="") {
  1369. mui.alert("请输入审批意见.11");
  1370. }else{
  1371. $(".pop_up_bj").hide();
  1372. $(".pop_up_div10").hide();
  1373. $.ajax({
  1374. type: "get",
  1375. dataType: 'json',
  1376. url: huayi.config.callcenter_url + 'WxLogin/HigApprovalOrder',
  1377. async: true,
  1378. data: {
  1379. orderid: id, //否 strubg 工单编号
  1380. OpenId: openid,
  1381. cont: $(".reaa").val(),
  1382. },
  1383. success: function(data) {
  1384. debugger
  1385. if(data.state == "success") {
  1386. debugger
  1387. mui.toast('申请成功');
  1388. window.location.href = "high_list.html?id=" + id+'&itype='+itype;
  1389. } else {
  1390. mui.toast(data.message);
  1391. }
  1392. }
  1393. });
  1394. }
  1395. })
  1396. //退回
  1397. $(".sendback").click(function(){
  1398. $(".pop_up_bj").fadeIn();
  1399. $(".pop_up_div6").fadeIn();
  1400. })
  1401. $(".pop_up_bj" ).click(function(){
  1402. $(".pop_up_bj").hide();
  1403. $(".pop_up_div6").hide();
  1404. })
  1405. $(".pop_up_div6 .btn .fl" ).click(function(){
  1406. $(".pop_up_bj").hide();
  1407. $(".pop_up_div6").hide();
  1408. })
  1409. $(".pop_up_div6 .btn .fr" ).click(function(){
  1410. // $("#cont").text("");
  1411. $(".pop_up_bj").hide();
  1412. $(".pop_up_div6").hide();
  1413. if($("#deal_cont").val()=="") {
  1414. mui.alert("请输入处理内容");
  1415. }else{
  1416. $(".pop_up_bj").hide();
  1417. $(".pop_up_div6").hide();
  1418. $.ajax({
  1419. type: "get",
  1420. dataType: 'json',
  1421. url: huayi.config.callcenter_url + 'WxLogin/BackWorkOrder',
  1422. async: true,
  1423. data: {
  1424. orderid: id, //否 strubg 工单编号
  1425. type: 0, //否 int 你看一下前端是什么参数
  1426. cont: $("#deal_cont").val(), //否 int 处理内容
  1427. openid: openid, //微信openid 测试用
  1428. },
  1429. success: function(data) {
  1430. if(data.state == "success") {
  1431. debugger
  1432. mui.toast('退回成功');
  1433. window.location.href = "Waiting_list.html?id=" + id+'&itype='+itype;
  1434. } else {
  1435. mui.toast(data.message);
  1436. }
  1437. }
  1438. });
  1439. }
  1440. })
  1441. //申请延期实现
  1442. $(".postpone").click(function(){
  1443. $(".pop_up_bj").fadeIn();
  1444. $(".pop_up_div8").fadeIn();
  1445. })
  1446. $(".pop_up_bj" ).click(function(){
  1447. $(".pop_up_bj").hide();
  1448. $(".pop_up_div8").hide();
  1449. })
  1450. $(".pop_up_div8 .btn .fl" ).click(function(){
  1451. $(".pop_up_bj").hide();
  1452. $(".pop_up_div8").hide();
  1453. })
  1454. $(".pop_up_div8 .btn .fr" ).click(function(){
  1455. // $("#cont").text("");
  1456. $(".pop_up_bj").hide();
  1457. $(".pop_up_div8").hide();
  1458. if($(".reas").val()=="") {
  1459. mui.alert("请输入延期说明.");
  1460. }else{
  1461. $(".pop_up_bj").hide();
  1462. $(".pop_up_div8").hide();
  1463. $.ajax({
  1464. type: "get",
  1465. dataType: 'json',
  1466. url: huayi.config.callcenter_url + 'WxLogin/DelayWorkOrder',
  1467. async: true,
  1468. data: {
  1469. orderid: id, //否 strubg 工单编号
  1470. // type: 0, //否 int 你看一下前端是什么参数 reas
  1471. cont: $(".reas").val(),
  1472. // limit:$("#order_source").val(), //否 int 处理内容
  1473. limit:$('.order_type').find('input[type="radio"]:checked').val(), //工单类型
  1474. openid: openid, //微信openid 测试用
  1475. },
  1476. success: function(data) {
  1477. debugger
  1478. if(data.state == "success") {
  1479. debugger
  1480. mui.toast('申请成功');
  1481. window.location.href = "haveorder_list.html?id=" + id+'&itype='+itype;
  1482. } else {
  1483. mui.toast(data.message);
  1484. }
  1485. }
  1486. });
  1487. }
  1488. })
  1489. //异常退回
  1490. $(".abnormal").click(function(){
  1491. $(".pop_up_bj").fadeIn();
  1492. $(".pop_up_div6").fadeIn();
  1493. })
  1494. $(".pop_up_bj" ).click(function(){
  1495. $(".pop_up_bj").hide();
  1496. $(".pop_up_div6").hide();
  1497. })
  1498. $(".pop_up_div6 .btn .fl" ).click(function(){
  1499. $(".pop_up_bj").hide();
  1500. $(".pop_up_div6").hide();
  1501. })
  1502. $(".pop_up_div6 .btn .fr" ).click(function(){
  1503. // $("#cont").text("");
  1504. $(".pop_up_bj").hide();
  1505. $(".pop_up_div6").hide();
  1506. if($("#deal_cont").val()=="") {
  1507. mui.alert("请输入处理内容");
  1508. }else{
  1509. $(".pop_up_bj").hide();
  1510. $(".pop_up_div6").hide();
  1511. $.ajax({
  1512. type: "post",
  1513. dataType: 'json',
  1514. url: huayi.config.callcenter_url + 'WxLogin/BackWorkOrder',
  1515. async: true,
  1516. data: {
  1517. orderid: id, //否 strubg 工单编号
  1518. type: 1, //否 int 你看一下前端是什么参数
  1519. cont: $("#deal_cont").val(), //否 int 处理内容
  1520. openid: openid, //微信openid 测试用
  1521. },
  1522. success: function(data) {
  1523. debugger
  1524. if(data.state == "success") {
  1525. debugger
  1526. mui.toast('退回成功');
  1527. window.location.href = "Waiting_list.html?id=" + id+'&itype='+itype;
  1528. } else {
  1529. mui.toast(data.message);
  1530. }
  1531. }
  1532. });
  1533. }
  1534. })
  1535. //删除工单
  1536. $(".delet").click(function(){
  1537. var btnArray = ['否', '是'];
  1538. mui.confirm('确定删除?', '提示', btnArray, function(f) {
  1539. if(f.index == 1) {
  1540. $.ajax({
  1541. type: "post",
  1542. dataType: 'json',
  1543. url: huayi.config.callcenter_url + '/WxLogin/DelWorkOrder',
  1544. async: true,
  1545. data: {
  1546. ids: $(".WordID").text(), //否 strubg 工单编号
  1547. openid: openid, //微信openid,
  1548. },
  1549. success: function(data) {
  1550. if(data.state == "success") {
  1551. debugger
  1552. mui.toast('删除成功');
  1553. if (itype==2) {
  1554. window.location.href = "pend_index.html";
  1555. } else if(itype==3){
  1556. window.location.href = "finsh_index.html";
  1557. }
  1558. } else {
  1559. mui.toast(data.message);
  1560. }
  1561. }
  1562. });
  1563. } else {
  1564. mui.toast("取消");
  1565. }
  1566. })
  1567. })
  1568. //催单
  1569. $(".reminder").click(function(){
  1570. $(".pop_up_bj").fadeIn();
  1571. $(".pop_up_div5").fadeIn();
  1572. })
  1573. $(".pop_up_bj" ).click(function(){
  1574. $(".pop_up_bj").hide();
  1575. $(".pop_up_div5").hide();
  1576. })
  1577. $(".pop_up_div5 .btn .fl" ).click(function(){
  1578. $(".pop_up_bj").hide();
  1579. $(".pop_up_div5").hide();
  1580. })
  1581. $(".pop_up_div5 .btn .fr" ).click(function(){
  1582. // $("#cont").text("");
  1583. $(".pop_up_bj").hide();
  1584. $(".pop_up_div5").hide();
  1585. if($(".textcont").val()=="") {
  1586. mui.alert("请输入催单内容");
  1587. }else{
  1588. $(".pop_up_bj").hide();
  1589. $(".pop_up_div5").hide();
  1590. $.ajax({
  1591. type: "post",
  1592. dataType: 'json',
  1593. url: huayi.config.callcenter_url + '/WxLogin/RemindWorkOrder',
  1594. async: true,
  1595. data: {
  1596. orderid: id, //否 strubg 工单编号
  1597. cont: $(".reminder_con").val(), //否 int 处理内容
  1598. openid: openid, //微信openid,
  1599. //openid: 'oXF5e1mWpX5DajW5_yjNLPKb8ThE', //微信openid 测试用
  1600. },
  1601. success: function(data) {
  1602. if(data.state == "success") {
  1603. // debugger
  1604. mui.toast('催单成功');
  1605. window.location.href = "pend_index.html?id=" + id+'&itype='+itype;
  1606. } else {
  1607. mui.toast(data.message);
  1608. }
  1609. }
  1610. });
  1611. }
  1612. })
  1613. $("#qita").click(function(){
  1614. $("#order_source").show();
  1615. })
  1616. $(".mui-input-row div label").click(function(){
  1617. })
  1618. mui-input-row
  1619. </script>
  1620. </body>
  1621. </html>