Aucune description

details.html 44KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365
  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_classname"></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="section"></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="customer"></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="customerTel"></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="Work_areaname" data-index=""></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="order_tower"></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_unit"></label>
  84. </div>
  85. </div>
  86. </li>
  87. <li class="mui-table-view-cell mui-table-view-li">
  88. <div class="mui-input-row">
  89. <label class="label font-color5">添加人工号:</label>
  90. <div class="mui-radio mui-right radio_box">
  91. <label class="font-color6" id="Work_houseID"></label>
  92. </div>
  93. </div>
  94. </li>
  95. <!--业主信息-->
  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">范冰冰 1566666666</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="Work_ownerRelations"></label>
  109. </div>
  110. </div>
  111. </li>
  112. <li class="mui-table-view-cell mui-table-view-li" id="source">
  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="Work_source"></label>
  117. </div>
  118. </div>
  119. </li>
  120. <li class="mui-table-view-cell mui-table-view-li Work_lastDealDiv">
  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 Work_lastDealUser"></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 Work_last"></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="Work_workOrderID"></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="Work_wor"></label>
  149. </div>
  150. </div>
  151. </li>
  152. <!--<li class="mui-table-view-cell mui-table-view-cell-pmargin ">
  153. <p><span class="font-color4">补充描述:</span>预约时间改为下午六点。现在不方便</p>
  154. </li>-->
  155. <li class="mui-table-view-cell mui-table-view-cell-pmargin">
  156. <p id="Work_detail"></p>
  157. </li>
  158. <!--<li class="mui-table-view-cell mui-table-view-cell-pmargin" id="Work_comment">
  159. </li>-->
  160. </ul>
  161. <ul class="mui-table-view mui-grid-view">
  162. <h4 class="mui-ellipsis size-16 mui_btn1_tit">操作按钮:</h4>
  163. <div class="type1">
  164. <!--待派单-->
  165. <div class="mui_btn1 dispose1">
  166. <li class=" mui-media mui-col-xs-3">
  167. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block redeploy">转派</button>
  168. </li>
  169. <li class=" mui-media mui-col-xs-3">
  170. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block finsh">完结</button>
  171. </li>
  172. </div>
  173. <!--待处理-->
  174. <div class="mui_btn1 dispose2">
  175. <li class=" mui-media mui-col-xs-3">
  176. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block edit">修改</button>
  177. </li>
  178. <!--<li class=" mui-media mui-col-xs-3">
  179. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block delet">删除</button>
  180. </li>
  181. <li class=" mui-media mui-col-xs-3">
  182. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block deal">处理</button>
  183. </li>
  184. <li class=" mui-media mui-col-xs-3">
  185. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block btn_reply">回复</button>
  186. </li>-->
  187. </div>
  188. <!--已完成-->
  189. <div class="mui_btn1 dispose3">
  190. <li class=" mui-media mui-col-xs-3">
  191. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block edit">修改</button>
  192. </li>
  193. <li class=" mui-media mui-col-xs-3">
  194. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block delet">删除</button>
  195. </li>
  196. <!--<li class=" mui-media mui-col-xs-3">
  197. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block comment">评论</button>
  198. </li>-->
  199. </div>
  200. </div>
  201. <div class="type2">
  202. <!--待派单-->
  203. <div class="mui_btn1 dispose1">
  204. <li class=" mui-media mui-col-xs-3">
  205. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block rece">接单</button>
  206. </li>
  207. <li class=" mui-media mui-col-xs-3">
  208. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block sendback">退回</button>
  209. </li>
  210. </div>
  211. <!--待处理-->
  212. <div class="mui_btn1 dispose2">
  213. <li class=" mui-media mui-col-xs-3">
  214. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block disp">处理</button>
  215. </li>
  216. <li class=" mui-media mui-col-xs-3">
  217. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block allot">分配</button>
  218. </li>
  219. <li class=" mui-media mui-col-xs-3">
  220. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block abnormal">异常退回</button>
  221. </li>
  222. <li class=" mui-media mui-col-xs-3">
  223. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block postpone">申请延期</button>
  224. </li>
  225. <!--<li class=" mui-media mui-col-xs-3">
  226. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block btn_reply">回复</button>
  227. </li>-->
  228. </div>
  229. <!--已完成-->
  230. <!--<div class="mui_btn1 dispose3">
  231. <li class=" mui-media mui-col-xs-3">
  232. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block comment">评论</button>
  233. </li>
  234. </div>-->
  235. </div>
  236. <div class="type3">
  237. <!--待派单-->
  238. <div class="mui_btn1 dispose1">
  239. <li class=" mui-media mui-col-xs-3">
  240. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block receiving">审批</button>
  241. </li>
  242. </div>
  243. </div>
  244. <div class="type4">
  245. <!--待派单-->
  246. <div class="mui_btn1 ">
  247. <li class=" mui-media mui-col-xs-3">
  248. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block receiving">接单</button>
  249. </li>
  250. </div>
  251. <!--待处理-->
  252. <div class="mui_btn1 dispose2">
  253. <li class=" mui-media mui-col-xs-3">
  254. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block daal">处理</button>
  255. </li>
  256. </div>
  257. <!--已完成-->
  258. <!--<div class="mui_btn1 dispose3">
  259. <li class=" mui-media mui-col-xs-3">
  260. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block comment">评论</button>
  261. </li>
  262. </div>-->
  263. </div>
  264. <div class="type5">
  265. <!--待处理-->
  266. <div class="mui_btn1 dispose3">
  267. <li class=" mui-media mui-col-xs-3">
  268. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block daal">催单</button>
  269. </li>
  270. </div>
  271. <!--待处理-->
  272. <div class="mui_btn1 dispose1">
  273. <li class=" mui-media mui-col-xs-3">
  274. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block daal">催单</button>
  275. </li>
  276. </div>
  277. <!--已完成-->
  278. <div class="mui_btn1 dispose2">
  279. <li class=" mui-media mui-col-xs-3">
  280. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block comment">评论</button>
  281. </li>
  282. </div>
  283. </div>
  284. </ul>
  285. <div id="slider" class="mui-slider">
  286. <div id="sliderSegmentedControl" class="mui-slider-indicator mui-segmented-control mui-segmented-control-inverted">
  287. <a class="mui-control-item mui-active" href="#item1mobile" data-index="1">
  288. 工单跟踪
  289. </a>
  290. <!--<a class="mui-control-item" href="#item2mobile" data-index="2">
  291. 催单记录
  292. </a>
  293. <a class="mui-control-item" href="#item3mobile" data-index="2">
  294. 评论记录
  295. </a>-->
  296. </div>
  297. <div class="mui-slider-group">
  298. <div id="item1mobile" class="mui-slider-item mui-control-content mui-active">
  299. <ul class="mui-table-view folowlist" id="folow"></ul>
  300. </div>
  301. <div id="item2mobile" class="mui-slider-item mui-control-content">
  302. <ul class="mui-table-view" id="remind"></ul>
  303. </div>
  304. <div id="item3mobile" class="mui-slider-item mui-control-content">
  305. <ul class="mui-table-view" id="commentlist"></ul>
  306. </div>
  307. </div>
  308. </div>
  309. </div>
  310. <div class="WordID" style="display: none;"></div>
  311. <!--弹框1-->
  312. <div class="pop_up_bj"></div>
  313. <div class="pop_up_div1">
  314. <div class="tit">请输入评论理由</div>
  315. <div class="contain">
  316. <textarea name="" rows="" cols="" class="evaluate_con"></textarea>
  317. </div>
  318. <div class="btn">
  319. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-royal fl">取消</button>
  320. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary fr evaluate">确定</button>
  321. </div>
  322. </div>
  323. <!--弹框2-->
  324. <div class="pop_up_div2">
  325. <div class="tit">请输入工单完结理由</div>
  326. <div class="contain">
  327. <textarea class="textcont" id="finsh_cont"></textarea>
  328. </div>
  329. <div class="btn">
  330. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-royal fl">取消</button>
  331. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary fr">确定</button>
  332. </div>
  333. </div>
  334. <!--弹框2-->
  335. <div class="pop_up_div6" style="display: none;">
  336. <div class="tit">请输入处理内容</div>
  337. <div class="contain">
  338. <textarea class="textcont" id="deal_cont"></textarea>
  339. </div>
  340. <div class="btn">
  341. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-royal fl">取消</button>
  342. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary fr">确定</button>
  343. </div>
  344. </div>
  345. <!--弹框4-->
  346. <div class="pop_up_div4">
  347. <div class="tit">请输入处理内容</div>
  348. <div class="contain">
  349. <textarea class="textcont_deal"></textarea>
  350. </div>
  351. <div class="btn">
  352. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-royal fl">取消</button>
  353. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary fr">确定</button>
  354. </div>
  355. </div>
  356. <!--弹框2-->
  357. <div class="pop_up_div5" style="display: none;">
  358. <div class="tit">请输入催单内容</div>
  359. <div class="contain">
  360. <textarea class="textcont reminder_con" ></textarea>
  361. </div>
  362. <div class="btn">
  363. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-royal fl">取消</button>
  364. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary fr">确定</button>
  365. </div>
  366. </div>
  367. <!--弹框3-->
  368. <div class="pop_up_div3">
  369. <div class="tit">请输入转派理由</div>
  370. <div class="contain">
  371. <textarea class="reason" name="" rows="" cols="" style="height: 100px;"></textarea>
  372. </div>
  373. <input type="text" id='complaintOrder_type' class="ui-alert type_con size-14" data-index="" readonly="readonly" />
  374. <div class="btn">
  375. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-royal fl">取消</button>
  376. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary fr showUserPicker" id="showUserPicker">下一步</button>
  377. </div>
  378. </div>
  379. <!--//申请延期弹出框-->
  380. <div class="pop_up_div8">
  381. <div class="tit">请输入延期说明</div>
  382. <div class="contain">
  383. <textarea class="reas" name="" rows="" cols="" style="height: 50px;"></textarea>
  384. </div>
  385. <div class="tit">申请延期时限</div>
  386. <div class="mui-input-row mui-radio mui-left radio_box order_type">
  387. <label>1小时</label>
  388. <input type="radio" type="radio" name="form" checked="checked" value="1小时" class="size-14" />
  389. </div>
  390. <div class="mui-input-row mui-radio mui-left radio_box order_type">
  391. <label>8小时</label>
  392. <input type="radio" type="radio" name="form" value="8小时" class="size-14" />
  393. </div>
  394. <div class="mui-input-row mui-radio mui-left radio_box order_type">
  395. <label>24小时</label>
  396. <input type="radio" type="radio" name="form" value="24小时" class="size-14" />
  397. </div>
  398. <div class="mui-input-row mui-radio mui-left radio_box order_type">
  399. <label>其他</label>
  400. <input type="radio" type="radio" name="form" value="其他" class="size-14" id="qita"/>
  401. </div>
  402. <input type="number" id='order_source' data-index="" placeholder="默认小时" style="width:55%;"/>
  403. <div class="btn">
  404. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-royal fl">取消</button>
  405. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary fr showUserPicker" id="showUserPicker">确定</button>
  406. </div>
  407. </div>
  408. <script src="../js/jquery.min.js"></script>
  409. <script src="js/details.js"></script>
  410. <script src="../Script/Common/huayi.config.js"></script>
  411. <script src="../Script/Common/huayi.http.js"></script>
  412. <script src="../js/mui.min.js"></script>
  413. <script src="../js/mui.picker.js"></script>
  414. <script src="../js/mui.poppicker.js"></script>
  415. <script src="js/city.data-3.js"></script>
  416. <script>
  417. var id = helper.request.queryString("id");
  418. var itype = helper.request.queryString("itype");
  419. var isReply = helper.request.queryString("IsReply"); // 是否已回复 0 未回复 1已回复
  420. var openid = helper.cookies.get("openid");
  421. var UserType = helper.cookies.get("usertype");
  422. // var openid = "oXF5e1mWpX5DajW5_yjNLPKb8ThE";
  423. if(isReply == 0){
  424. $('.btn_reply').show();
  425. }
  426. if (UserType==-1) {
  427. $(".type1").hide();
  428. $(".type2").hide();
  429. $(".type3").hide();
  430. $(".type4").hide();
  431. $(".type5").hide();
  432. } else if(UserType==0){
  433. // alert(UserType)
  434. $(".type1").hide();
  435. $(".type2").hide();
  436. $(".type3").hide();
  437. $(".type4").hide();
  438. $(".type5").hide();
  439. }else if(UserType==1){
  440. // alert(UserType)
  441. $(".type1").hide();
  442. $(".type2").hide();
  443. $(".type3").hide();
  444. $(".type4").hide();
  445. $(".type5").hide();
  446. }else if(UserType==2){
  447. $(".type1").hide();
  448. $(".type2").hide();
  449. $(".type3").hide();
  450. $(".type4").hide();
  451. $(".type5").hide();
  452. }else if(UserType==3){
  453. $(".type1").hide();
  454. $(".type2").hide();
  455. $(".type3").hide();
  456. $(".type4").hide();
  457. $(".type5").hide();
  458. }
  459. Ajax();
  460. flow();
  461. // Remind();
  462. // Comment();
  463. //获取数据
  464. function Ajax() {
  465. $.ajax({
  466. url: huayi.config.callcenter_url + 'WxLogin/GetDetails',
  467. data: {
  468. id: id, //工单编号
  469. OpenId: openid, //微信openid,
  470. },
  471. async: true,
  472. dataType: 'json',
  473. type: 'get', //HTTP请求类型
  474. success: function(data) {
  475. if(data.state.toLowerCase() == "success") {
  476. var result = data.rows[0];
  477. if(result.Source == 0) {
  478. $("#source").hide();
  479. } else {
  480. $("#source").show();
  481. }
  482. var itype=result.F_State;
  483. //
  484. if(itype == 0) {
  485. $(".dispose1").hide();
  486. $(".dispose2").hide();
  487. }else if(itype == 1) {
  488. //alert(itype)
  489. $(".dispose1").hide();
  490. } else if(itype == 2) {
  491. $(".dispose2").hide();
  492. } else if(itype == 3) {
  493. $(".dispose3").hide();
  494. }else if(itype == 4) {
  495. $(".dispose2").hide();
  496. }else if(itype == 5) {
  497. $(".dispose2").hide();
  498. }
  499. if (result.GDLXName=="咨询") {
  500. $(".Work_lastDealDiv").hide(); //受理人
  501. $("#source").hide(); //投诉
  502. } else{
  503. $(".Work_lastDealDiv").hide(); //受理人
  504. $("#source").hide(); //投诉
  505. }
  506. var builName
  507. if (result.buildingname==null) {
  508. builName=""
  509. } else{
  510. builName=result.buildingname
  511. }
  512. var proName
  513. if (result.proname==null) {
  514. proName=""
  515. } else{
  516. proName=result.proname
  517. }
  518. var complain
  519. if (result.ComplaintDepartment==null) {
  520. complain=""
  521. } else{
  522. complain=result.ComplaintDepartment
  523. }
  524. $(".WordID").text(result.ID);
  525. $("#Work_classname").text(result.F_TypeName); //工单类型
  526. $("#section").text(result.F_DeptName); //部门
  527. $("#customer").text(result.F_CusName); //客户姓名
  528. $("#customerTel").text(result.F_CusPhone); //联系电话
  529. $("#Work_areaname").text(result.F_CompanyName); //公司名称
  530. $("#Work_areaname").attr('data-index',result.IsAdminSend);
  531. $("#order_tower").text(result.F_Salesman); //业务员
  532. $("#order_unit").text(result.F_SalesPhone); //单元号
  533. $("#Work_houseID").text(result.F_CreateBy); //添加人工号
  534. $("#Work_ownerRelations").text(result.F_DealBy); //处理人
  535. $("#Work_source").text(result.F_DealTime); //处理时间
  536. $(".Work_lastDealUser").text(result.F_DealContent); //处理内容
  537. $(".Work_last").text(result.F_DealResult); //处理结果
  538. $("#Work_workOrderID").text(result.F_DealReasons); //未处理原因
  539. $("#Work_workOrderID").text(result.F_IsVisit); //是否回访
  540. $("#Work_detail").text("问题描述:" + result.F_Description); //描述详情
  541. }
  542. },
  543. error: function(xhr, type, errorThrown) {
  544. //异常处理;
  545. }
  546. })
  547. }
  548. //跳转页面
  549. //修改
  550. $('.edit').on('tap', function() {
  551. window.location.href = "editWorkolder.html?id=" + id+'&itype='+itype;
  552. });
  553. //返回列表
  554. $('.return').on('tap', function() {
  555. if (itype==-1) {
  556. window.location.href = "inquire.html"
  557. }if (itype==0) {
  558. window.location.href = "inquire.html"
  559. }if (itype==1) {
  560. window.location.href = "inquire.html"
  561. } else if (itype==2){
  562. window.location.href = "inquire.html"
  563. } else if (itype==3){
  564. window.location.href = "inquire.html"
  565. }
  566. //window.location.href = "client_index.html?Itype=" + itype;
  567. });
  568. //工单跟踪
  569. function flow() {
  570. $.ajax({
  571. url: huayi.config.callcenter_url + 'WxLogin/GetDetails',
  572. data: {
  573. id: id, //工单编号
  574. OpenId: openid, //微信openid,
  575. },
  576. async: true,
  577. dataType: 'json',
  578. type: 'get', //HTTP请求类型
  579. success: function(data) {
  580. if(data.state.toLowerCase() == "success") {
  581. if(data.total && data.total.length > 0) {
  582. $(data.total).each(function(i, n) {
  583. var str = '';
  584. if(n.F_OptType == 1){
  585. str = str + n.F_OptContent+"<br>";
  586. // alert(str)
  587. }
  588. if(n.F_OptType == 2){
  589. str = str + n.F_OptContent+"<br>";
  590. // alert(str)
  591. }
  592. if(n.F_OptType == 3){
  593. str = str + n.F_OptContent+"<br>";
  594. // alert(str)
  595. }
  596. if(n.F_OptType == 4){
  597. str = str + n.F_OptContent+"<br>";
  598. // alert(str)
  599. }
  600. if(n.F_OptType == 5){
  601. str = str + n.F_OptContent+"<br>";
  602. // alert(str)
  603. }
  604. if(n.F_OptType == 6){
  605. str = str + n.F_OptContent+"<br>";
  606. // alert(str)
  607. }
  608. if(n.F_OptType == 7){
  609. str = str + n.F_OptContent+"<br>";
  610. // alert(str)
  611. }
  612. if(n.F_OptType == 8){
  613. str = str + n.F_OptContent+"<br>";
  614. // alert(str)
  615. }
  616. if(n.F_OptType == 9){
  617. str = str + n.F_OptContent+"<br>";
  618. // alert(str)
  619. }
  620. if(n.F_OptType == 10){
  621. str = str + n.F_OptContent+"<br>";
  622. // alert(str)
  623. }
  624. if(n.F_OptType == 11){
  625. str = str + n.F_OptContent+"<br>";
  626. // alert(str)
  627. }
  628. if(n.F_OptType == 12){
  629. str = str + n.F_OptContent+"<br>";
  630. // alert(str)
  631. }
  632. if(n.F_OptType == 13){
  633. str = str + n.F_OptContent+"<br>";
  634. // alert(str)
  635. }
  636. if(n.F_OptType == 14){
  637. str = str + n.F_OptContent+"<br>";
  638. // alert(str)
  639. }
  640. if(n.F_OptType == 15){
  641. str = str + n.F_OptContent+"<br>";
  642. // alert(str)
  643. }
  644. var spandeta="";
  645. // if (n.Detail==null) {
  646. // spandeta=""
  647. // } else if (n.Detail==""){
  648. // spandeta=""
  649. // }else if(n.IsLast == 1){
  650. // spandeta="完结内容:"+n.F_OptContent
  651. // }else if(n.SureUserName) {
  652. // spandeta="接单内容:"+n.F_OptContent
  653. // } else if(n.DealTime){
  654. // spandeta="处理内容:"+n.F_OptContent
  655. // }else if(n.ToDeptName){
  656. // spandeta="转派内容:"+n.F_OptContent
  657. // }
  658. if ($(".spandeta").text()=="") {
  659. $(this).hide();
  660. }
  661. //else if(row.IsStart) {str = str + row.CreateUserName + " 重新开启工单";}
  662. $('<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 +
  663. '</span></br><span style="font-size:12px;">' + str +
  664. '</span><span class="spandeta">'+spandeta+
  665. '</span></div><div class="string"></div><div class="circular_h"></div></li>').appendTo('#folow');
  666. });
  667. var num = data.rows.length - 1;
  668. $("#folow li:eq(0)").children(".string").css("top", "20px");
  669. $("#folow li:eq(" + num + ")").children(".string").css("height", "5px");
  670. $("#folow li:eq(0)").children(".string").css("top", "20px");
  671. $("#folow li:eq(0)").children(".circular_h").css({
  672. "background": "#2cc6a7",
  673. "left": "15px",
  674. "top": "20px",
  675. "width": "12px",
  676. "height": "12px",
  677. "border-radius": "6px"
  678. });
  679. $("#folow li:eq(" + num + ")").children(".circular_h").css({
  680. "left": "15px",
  681. "width": "12px",
  682. "height": "12px",
  683. "border-radius": "6px"
  684. });
  685. }
  686. }
  687. },
  688. error: function(xhr, type, errorThrown) {
  689. //异常处理;
  690. }
  691. })
  692. }
  693. //催单记录
  694. // function Remind() {
  695. // $.ajax({
  696. // url: huayi.config.callcenter_url + 'WxLogin/GetDetails',
  697. // data: {
  698. // id: id, //工单编号
  699. // type: 2,
  700. // OpenId: openid, //微信openid,
  701. // },
  702. // async: true,
  703. // dataType: 'json',
  704. // type: 'get', //HTTP请求类型
  705. // success: function(data) {
  706. // if(data.state.toLowerCase() == "success") {
  707. // if(data.rows && data.rows.length > 0) {
  708. // $(data.rows).each(function(i, n) {
  709. // var spandeta;
  710. // if (n.Detail==null) {
  711. // spandeta=""
  712. // } else if (n.Detail==""){
  713. // spandeta=""
  714. // }else{
  715. // spandeta="催办内容:"+n.Detail
  716. // }
  717. // var depart;
  718. // if(n.ToDeptName==null){
  719. // depart=""
  720. // }else{
  721. // depart=n.ToDeptName
  722. // }
  723. // var deperson;
  724. // if(n.ToUserName==null){
  725. // deperson=""
  726. // }else{
  727. // deperson=n.ToUserName
  728. // }
  729. // $('<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 +
  730. //// '</span></br><span>被催办部门:'+depart+
  731. //// '</span></br><span>被催办人:'+deperson+
  732. // '</span></br><span>催办人:' + n.CreateUserName +
  733. // '</span></br><span>'+spandeta+
  734. // '</span></div><div class="string"></div><div class="circular_h"></div></li>').appendTo('#remind');
  735. // });
  736. // var num = data.rows.length - 1;
  737. // $("#remind li:eq(0)").children(".string").css("top", "20px");
  738. // $("#remind li:eq(" + num + ")").children(".string").css("height", "5px");
  739. // $("#remind li:eq(0)").children(".string").css("top", "20px");
  740. // $("#remind li:eq(0)").children(".circular_h").css({
  741. // "background": "#2cc6a7",
  742. // "left": "15px",
  743. // "top": "20px",
  744. // "width": "12px",
  745. // "height": "12px",
  746. // "border-radius": "6px"
  747. // });
  748. // $("#remind li:eq(" + num + ")").children(".circular_h").css({
  749. // "left": "15px",
  750. // "width": "12px",
  751. // "height": "12px",
  752. // "border-radius": "6px"
  753. // });
  754. // }
  755. // }
  756. // },
  757. // error: function(xhr, type, errorThrown) {
  758. // //异常处理;
  759. // }
  760. // })
  761. // }
  762. //评论记录
  763. // function Comment() {
  764. // $.ajax({
  765. // url: huayi.config.callcenter_url + 'WxLogin/GetDetails',
  766. // data: {
  767. // id: id, //工单编号
  768. // type: 3,
  769. // OpenId: openid, //微信openid,
  770. // },
  771. // async: true,
  772. // dataType: 'json',
  773. // type: 'get', //HTTP请求类型
  774. // success: function(data) {
  775. // if(data.state.toLowerCase() == "success") {
  776. // if(data.rows && data.rows.length > 0) {
  777. //
  778. // $(data.rows).each(function(i, n) {
  779. // var spandeta;
  780. // if (n.Detail==null) {
  781. // spandeta=""
  782. // } else if (n.Detail==""){
  783. // spandeta=""
  784. // }else{
  785. // spandeta="评论内容:"+n.Detail
  786. // }
  787. // $('<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 +
  788. // '</span></br><span >'+spandeta+
  789. // '</span><span class="span3">' + n.CreateUserName +
  790. // '</span></div><div class="string"></div><div class="circular_h"></div></li>').appendTo('#commentlist');
  791. // if (n.Detail==null||n.Detail=="") {
  792. // $(".spandeta").hide();
  793. // } else{
  794. // $(".spandeta").show();
  795. // }
  796. // });
  797. // var num = data.rows.length - 1;
  798. // $("#commentlist li:eq(0)").children(".string").css("top", "20px");
  799. // $("#commentlist li:eq(" + num + ")").children(".string").css("height", "5px");
  800. // $("#commentlist li:eq(0)").children(".string").css("top", "20px");
  801. // $("#commentlist li:eq(0)").children(".circular_h").css({
  802. // "background": "#2cc6a7",
  803. // "left": "15px",
  804. // "top": "20px",
  805. // "width": "12px",
  806. // "height": "12px",
  807. // "border-radius": "6px"
  808. // });
  809. // $("#commentlist li:eq(" + num + ")").children(".circular_h").css({
  810. // "left": "15px",
  811. // "width": "12px",
  812. // "height": "12px",
  813. // "border-radius": "6px"
  814. // });
  815. // }
  816. // }
  817. // },
  818. // error: function(xhr, type, errorThrown) {
  819. // //异常处理;
  820. // }
  821. // })
  822. // }
  823. //转派
  824. //转派弹框
  825. $(".allot").click(function() {
  826. var areaID = $("#Work_areaname").attr('data-index')
  827. window.location.href = "redeploy.html?id=" + id+'&itype='+itype+'&areaID='+areaID;
  828. })
  829. // 处理提单框
  830. $(".disp").click(function() {
  831. var areaID = $("#Work_areaname").attr('data-index')
  832. window.location.href = "dispose.html?id=" + id+'&itype='+itype+'&areaID='+areaID;
  833. })
  834. //评论工单
  835. $(".comment").click(function(){
  836. $(".pop_up_bj").fadeIn();
  837. $(".pop_up_div1").fadeIn();
  838. })
  839. $(".pop_up_bj" ).click(function(){
  840. $(".pop_up_bj").hide();
  841. $(".pop_up_div1").hide();
  842. })
  843. $(".pop_up_div1 .btn .fl" ).click(function(){
  844. $(".pop_up_bj").hide();
  845. $(".pop_up_div1").hide();
  846. })
  847. $(".pop_up_div1 .btn .fr" ).click(function(){
  848. $(".pop_up_bj").hide();
  849. $(".pop_up_div1").hide();
  850. })
  851. $(".evaluate").click(function(){
  852. if(!$(".evaluate_con").val()) {
  853. mui.alert("请输入评论内容");
  854. }else{
  855. $(".pop_up_bj").hide();
  856. $(".pop_up_div3").hide();
  857. $.ajax({
  858. type: "post",
  859. dataType: 'json',
  860. url: huayi.config.callcenter_url + '/WxLogin/CommentWorkOrder',
  861. async: true,
  862. data: {
  863. orderid: id, //否 strubg 工单编号
  864. cont: $(".evaluate_con").val(), //否 int 处理内容
  865. openid: openid, //微信openid,
  866. },
  867. success: function(data) {
  868. if(data.state == "success") {
  869. debugger
  870. mui.toast('评论成功');
  871. window.location.href = "details.html?id=" + id+'&itype='+itype;
  872. } else {
  873. mui.toast(data.message);
  874. }
  875. }
  876. });
  877. }
  878. })
  879. //处理完结
  880. $(".daal").click(function(){
  881. $(".pop_up_bj").fadeIn();
  882. $(".pop_up_div6").fadeIn();
  883. })
  884. $(".pop_up_bj" ).click(function(){
  885. $(".pop_up_bj").hide();
  886. $(".pop_up_div6").hide();
  887. })
  888. $(".pop_up_div6 .btn .fl" ).click(function(){
  889. $(".pop_up_bj").hide();
  890. $(".pop_up_div6").hide();
  891. })
  892. $(".pop_up_div6 .btn .fr" ).click(function(){
  893. // $("#cont").text("");
  894. $(".pop_up_bj").hide();
  895. $(".pop_up_div6").hide();
  896. if($("#deal_cont").val()=="") {
  897. mui.alert("请输入处理内容");
  898. }else{
  899. $(".pop_up_bj").hide();
  900. $(".pop_up_div6").hide();
  901. $.ajax({
  902. type: "post",
  903. dataType: 'json',
  904. url: huayi.config.callcenter_url + '/WxLogin/DealWorkOrder',
  905. async: true,
  906. data: {
  907. orderid: id, //否 strubg 工单编号
  908. isend: 1, //否 int 你看一下前端是什么参数
  909. cont: $("#deal_cont").val(), //否 int 处理内容
  910. openid: openid, //微信openid 测试用
  911. },
  912. success: function(data) {
  913. if(data.state == "success") {
  914. debugger
  915. mui.toast('处理成功');
  916. window.location.href = "pend_index.html";
  917. } else {
  918. mui.toast(data.message);
  919. }
  920. }
  921. });
  922. }
  923. })
  924. //完结
  925. $(".finsh").click(function(){
  926. $(".pop_up_bj").fadeIn();
  927. $(".pop_up_div2").fadeIn();
  928. })
  929. $(".pop_up_bj" ).click(function(){
  930. $(".pop_up_bj").hide();
  931. $(".pop_up_div2").hide();
  932. })
  933. $(".pop_up_div2 .btn .fl" ).click(function(){
  934. $(".pop_up_bj").hide();
  935. $(".pop_up_div2").hide();
  936. mui.alert("取消");
  937. })
  938. $(".pop_up_div2 .btn .fr" ).click(function(){
  939. $("#finsh_cont").text("");
  940. $(".pop_up_bj").hide();
  941. $(".pop_up_div2").hide();
  942. if($(".textcont").val()=="") {
  943. mui.alert("请输入完结内容");
  944. }else{
  945. $(".pop_up_bj").hide();
  946. $(".pop_up_div2").hide();
  947. $.ajax({
  948. type: "post",
  949. dataType: 'json',
  950. url: huayi.config.callcenter_url + '/WxLogin/DealWorkOrder',
  951. async: true,
  952. data: {
  953. orderid: id, //否 strubg 工单编号
  954. isend: 1, //否 int 你看一下前端是什么参数
  955. cont: $("#finsh_cont").val(), //否 int 处理内容
  956. openid: openid, //微信openid,
  957. },
  958. success: function(data) {
  959. if(data.state == "success") {
  960. debugger
  961. mui.toast('处理成功');
  962. window.location.href = "client_index.html?id=" + id+'&itype='+itype;
  963. } else {
  964. mui.toast(data.message);
  965. }
  966. }
  967. });
  968. }
  969. })
  970. //处理
  971. $(".deal").click(function(){
  972. $(".pop_up_bj").fadeIn();
  973. $(".pop_up_div4").fadeIn();
  974. })
  975. $(".pop_up_bj" ).click(function(){
  976. $(".pop_up_bj").hide();
  977. $(".pop_up_div4").hide();
  978. })
  979. $(".pop_up_div4 .btn .fl" ).click(function(){
  980. $(".pop_up_bj").hide();
  981. $(".pop_up_div4").hide();
  982. mui.alert("取消");
  983. })
  984. $(".pop_up_div4 .btn .fr" ).click(function(){
  985. // $("#cont").text("");
  986. $(".pop_up_bj").hide();
  987. $(".pop_up_div4").hide();
  988. if($(".textcont_deal").val()=="") {
  989. mui.alert("请输入处理内容");
  990. }else{
  991. $(".pop_up_bj").hide();
  992. $(".pop_up_div4").hide();
  993. $.ajax({
  994. type: "post",
  995. dataType: 'json',
  996. url: huayi.config.callcenter_url + '/WxLogin/DealWorkOrder',
  997. async: true,
  998. data: {
  999. orderid: id, //否 strubg 工单编号
  1000. isend: itype, //否 int 你看一下前端是什么参数
  1001. cont: $("#textcont_deal").val(), //否 int 处理内容
  1002. Openid: openid, //微信openid,
  1003. },
  1004. success: function(data) {
  1005. if(data.state == "success") {
  1006. debugger
  1007. mui.toast('处理成功');
  1008. window.location.href = "pend_index.html?id=" + id+'&itype='+itype;
  1009. } else {
  1010. mui.toast(data.message);
  1011. }
  1012. }
  1013. });
  1014. }
  1015. })
  1016. //回复
  1017. $(".btn_reply").click(function(){
  1018. var btnArray = ['取消', '确定'];
  1019. mui.confirm('确定回复?', '提示', btnArray, function(f) {
  1020. if(f.index == 1) {
  1021. $.ajax({
  1022. type: "post",
  1023. dataType: 'json',
  1024. url: huayi.config.callcenter_url + 'WxLogin/ReplyWorkOrder',
  1025. async: true,
  1026. data: {
  1027. openid: openid,// 是 strubg openid
  1028. orderid: id// 是 string 工单号码
  1029. },
  1030. success: function(data) {
  1031. if(data.state == "success") {
  1032. mui.toast('操作成功');
  1033. window.location.href = "client_index.html?id=" + id+'&itype='+itype;
  1034. } else {
  1035. mui.toast(data.message);
  1036. }
  1037. }
  1038. });
  1039. } else {
  1040. mui.toast("取消操作");
  1041. }
  1042. })
  1043. });
  1044. //接单
  1045. $(".rece").click(function(){
  1046. var btnArray = ['否', '是'];
  1047. mui.confirm('确定接单?', '提示', btnArray, function(f) {
  1048. if(f.index == 1) {
  1049. $.ajax({
  1050. type: "get",
  1051. dataType: 'json',
  1052. url: huayi.config.callcenter_url + 'WxLogin/SureWorkOrder',
  1053. async: true,
  1054. data: {
  1055. orderid: id, //否 strubg 工单编号
  1056. OpenId: openid, //微信openid 测试用
  1057. },
  1058. success: function(data) {
  1059. debugger
  1060. // alert(data.state)
  1061. if(data.state == "success") {
  1062. mui.toast('接单成功');
  1063. window.location.href = "Waiting_list.html";
  1064. } else {
  1065. mui.toast(data.message);
  1066. }
  1067. }
  1068. });
  1069. } else {
  1070. mui.toast("取消");
  1071. }
  1072. })
  1073. })
  1074. //审批
  1075. $(".receiving").click(function(){
  1076. var btnArray = ['否', '是'];
  1077. mui.confirm('确定审批?', '提示', btnArray, function(f) {
  1078. if(f.index == 1) {
  1079. $.ajax({
  1080. type: "get",
  1081. dataType: 'json',
  1082. url: huayi.config.callcenter_url + 'WxLogin/GetApproval',
  1083. async: true,
  1084. data: {
  1085. orderid: id, //否 strubg 工单编号
  1086. OpenId: openid, //微信openid 测试用
  1087. AuditCont:"没意见",
  1088. IsAudit:1,
  1089. AuditState:0,
  1090. },
  1091. success: function(data) {
  1092. if(data.state == "success") {
  1093. mui.toast('审批成功');
  1094. window.location.href = "client_index.html?id=" + id+'&itype='+itype;
  1095. } else {
  1096. mui.toast(data.message);
  1097. }
  1098. }
  1099. });
  1100. } else {
  1101. mui.toast("取消");
  1102. }
  1103. })
  1104. })
  1105. //退回
  1106. $(".sendback").click(function(){
  1107. $(".pop_up_bj").fadeIn();
  1108. $(".pop_up_div6").fadeIn();
  1109. })
  1110. $(".pop_up_bj" ).click(function(){
  1111. $(".pop_up_bj").hide();
  1112. $(".pop_up_div6").hide();
  1113. })
  1114. $(".pop_up_div6 .btn .fl" ).click(function(){
  1115. $(".pop_up_bj").hide();
  1116. $(".pop_up_div6").hide();
  1117. })
  1118. $(".pop_up_div6 .btn .fr" ).click(function(){
  1119. // $("#cont").text("");
  1120. $(".pop_up_bj").hide();
  1121. $(".pop_up_div6").hide();
  1122. if($("#deal_cont").val()=="") {
  1123. mui.alert("请输入处理内容");
  1124. }else{
  1125. $(".pop_up_bj").hide();
  1126. $(".pop_up_div6").hide();
  1127. $.ajax({
  1128. type: "get",
  1129. dataType: 'json',
  1130. url: huayi.config.callcenter_url + 'WxLogin/BackWorkOrder',
  1131. async: true,
  1132. data: {
  1133. orderid: id, //否 strubg 工单编号
  1134. type: 0, //否 int 你看一下前端是什么参数
  1135. cont: $("#deal_cont").val(), //否 int 处理内容
  1136. openid: openid, //微信openid 测试用
  1137. },
  1138. success: function(data) {
  1139. if(data.state == "success") {
  1140. debugger
  1141. mui.toast('退回成功');
  1142. window.location.href = "Waiting_list.html?id=" + id+'&itype='+itype;
  1143. } else {
  1144. mui.toast(data.message);
  1145. }
  1146. }
  1147. });
  1148. }
  1149. })
  1150. //申请延期实现
  1151. $(".postpone").click(function(){
  1152. $(".pop_up_bj").fadeIn();
  1153. $(".pop_up_div8").fadeIn();
  1154. })
  1155. $(".pop_up_bj" ).click(function(){
  1156. $(".pop_up_bj").hide();
  1157. $(".pop_up_div8").hide();
  1158. })
  1159. $(".pop_up_div8 .btn .fl" ).click(function(){
  1160. $(".pop_up_bj").hide();
  1161. $(".pop_up_div8").hide();
  1162. })
  1163. $(".pop_up_div8 .btn .fr" ).click(function(){
  1164. // $("#cont").text("");
  1165. $(".pop_up_bj").hide();
  1166. $(".pop_up_div8").hide();
  1167. if($(".reas").val()=="") {
  1168. mui.alert("请输入延期说明.");
  1169. }else{
  1170. $(".pop_up_bj").hide();
  1171. $(".pop_up_div8").hide();
  1172. $.ajax({
  1173. type: "get",
  1174. dataType: 'json',
  1175. url: huayi.config.callcenter_url + 'WxLogin/DelayWorkOrder',
  1176. async: true,
  1177. data: {
  1178. orderid: id, //否 strubg 工单编号
  1179. // type: 0, //否 int 你看一下前端是什么参数 reas
  1180. cont: $(".reas").val(),
  1181. // limit:$("#order_source").val(), //否 int 处理内容
  1182. limit:$('.order_type').find('input[type="radio"]:checked').val(), //工单类型
  1183. openid: openid, //微信openid 测试用
  1184. },
  1185. success: function(data) {
  1186. debugger
  1187. if(data.state == "success") {
  1188. debugger
  1189. mui.toast('申请成功');
  1190. window.location.href = "haveorder_list.html?id=" + id+'&itype='+itype;
  1191. } else {
  1192. mui.toast(data.message);
  1193. }
  1194. }
  1195. });
  1196. }
  1197. })
  1198. //异常退回
  1199. $(".abnormal").click(function(){
  1200. $(".pop_up_bj").fadeIn();
  1201. $(".pop_up_div6").fadeIn();
  1202. })
  1203. $(".pop_up_bj" ).click(function(){
  1204. $(".pop_up_bj").hide();
  1205. $(".pop_up_div6").hide();
  1206. })
  1207. $(".pop_up_div6 .btn .fl" ).click(function(){
  1208. $(".pop_up_bj").hide();
  1209. $(".pop_up_div6").hide();
  1210. })
  1211. $(".pop_up_div6 .btn .fr" ).click(function(){
  1212. // $("#cont").text("");
  1213. $(".pop_up_bj").hide();
  1214. $(".pop_up_div6").hide();
  1215. if($("#deal_cont").val()=="") {
  1216. mui.alert("请输入处理内容");
  1217. }else{
  1218. $(".pop_up_bj").hide();
  1219. $(".pop_up_div6").hide();
  1220. $.ajax({
  1221. type: "post",
  1222. dataType: 'json',
  1223. url: huayi.config.callcenter_url + 'WxLogin/BackWorkOrder',
  1224. async: true,
  1225. data: {
  1226. orderid: id, //否 strubg 工单编号
  1227. type: 1, //否 int 你看一下前端是什么参数
  1228. cont: $("#deal_cont").val(), //否 int 处理内容
  1229. openid: openid, //微信openid 测试用
  1230. },
  1231. success: function(data) {
  1232. debugger
  1233. if(data.state == "success") {
  1234. debugger
  1235. mui.toast('退回成功');
  1236. window.location.href = "Waiting_list.html?id=" + id+'&itype='+itype;
  1237. } else {
  1238. mui.toast(data.message);
  1239. }
  1240. }
  1241. });
  1242. }
  1243. })
  1244. //删除工单
  1245. $(".delet").click(function(){
  1246. var btnArray = ['否', '是'];
  1247. mui.confirm('确定删除?', '提示', btnArray, function(f) {
  1248. if(f.index == 1) {
  1249. $.ajax({
  1250. type: "post",
  1251. dataType: 'json',
  1252. url: huayi.config.callcenter_url + '/WxLogin/DelWorkOrder',
  1253. async: true,
  1254. data: {
  1255. ids: $(".WordID").text(), //否 strubg 工单编号
  1256. openid: openid, //微信openid,
  1257. },
  1258. success: function(data) {
  1259. if(data.state == "success") {
  1260. debugger
  1261. mui.toast('删除成功');
  1262. if (itype==2) {
  1263. window.location.href = "pend_index.html";
  1264. } else if(itype==3){
  1265. window.location.href = "finsh_index.html";
  1266. }
  1267. } else {
  1268. mui.toast(data.message);
  1269. }
  1270. }
  1271. });
  1272. } else {
  1273. mui.toast("取消");
  1274. }
  1275. })
  1276. })
  1277. //催单
  1278. $(".reminder").click(function(){
  1279. $(".pop_up_bj").fadeIn();
  1280. $(".pop_up_div5").fadeIn();
  1281. })
  1282. $(".pop_up_bj" ).click(function(){
  1283. $(".pop_up_bj").hide();
  1284. $(".pop_up_div5").hide();
  1285. })
  1286. $(".pop_up_div5 .btn .fl" ).click(function(){
  1287. $(".pop_up_bj").hide();
  1288. $(".pop_up_div5").hide();
  1289. })
  1290. $(".pop_up_div5 .btn .fr" ).click(function(){
  1291. // $("#cont").text("");
  1292. $(".pop_up_bj").hide();
  1293. $(".pop_up_div5").hide();
  1294. if($(".textcont").val()=="") {
  1295. mui.alert("请输入催单内容");
  1296. }else{
  1297. $(".pop_up_bj").hide();
  1298. $(".pop_up_div5").hide();
  1299. $.ajax({
  1300. type: "post",
  1301. dataType: 'json',
  1302. url: huayi.config.callcenter_url + '/WxLogin/RemindWorkOrder',
  1303. async: true,
  1304. data: {
  1305. orderid: id, //否 strubg 工单编号
  1306. cont: $(".reminder_con").val(), //否 int 处理内容
  1307. openid: openid, //微信openid,
  1308. //openid: 'oXF5e1mWpX5DajW5_yjNLPKb8ThE', //微信openid 测试用
  1309. },
  1310. success: function(data) {
  1311. if(data.state == "success") {
  1312. debugger
  1313. mui.toast('催单成功');
  1314. window.location.href = "pend_index.html?id=" + id+'&itype='+itype;
  1315. } else {
  1316. mui.toast(data.message);
  1317. }
  1318. }
  1319. });
  1320. }
  1321. })
  1322. $("#qita").click(function(){
  1323. $("#order_source").show();
  1324. })
  1325. </script>
  1326. </body>
  1327. </html>