custome_detail.ftl 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="renderer" content="webkit|ie-comp|ie-stand">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  7. <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
  8. <meta http-equiv="Cache-Control" content="no-siteapp" />
  9. <#include "/base/add_base.ftl">
  10. <link href="${path}/common/lib/jquery.ui/jquery-ui.css" rel="stylesheet" type="text/css"/>
  11. <link href="${path}/common/lib/webuploader/0.1.5/webuploader.css" rel="stylesheet" type="text/css"/>
  12. <link href="${path}/common/lib/icheck/icheck.css" rel="stylesheet" type="text/css"/>
  13. <style>
  14. .tit{position: relative;text-align: left;font-size: 16px;padding-left: 10px;}
  15. .tit:after{content: '';position: absolute;left: 0;top: 20%;height: 60%;width: 3px;background-color: #32a3d8;}
  16. .tit-2{position: relative;text-align: left;font-size: 16px;padding-left: 10px;}
  17. .tit-2:after{content: '';position: absolute;left: 0;top: 20%;height: 60%;width: 3px;background-color: #32a3d8;}
  18. #province select{margin-right:10px; width:100px;height: 31px;-webkit-appearance:none !important;appearance:none;background: url(${path}/common/images/cm/select-1.png) right center no-repeat;background-size: auto 100%;padding-left:3px;padding-right: 25px;}
  19. #suggest, #suggest2 {width:200px}
  20. .gray {color:gray}
  21. .ac_results {background:#fff;border:1px solid #7f9db9;position: absolute;z-index: 10000;display: none}
  22. .ac_results li a {white-space: nowrap;text-decoration:none;display:block;color:#05a;padding:1px 3px}
  23. .ac_results li {border:1px solid #fff}
  24. .ac_over, .ac_results li a:hover {background:#c8e3fc}
  25. .ac_results li a span {float:right}
  26. .ac_result_tip {border-bottom:1px dashed #666;padding:3px}
  27. .select-box{background: url(${path}/common/images/cm/select-1.png) right center no-repeat;background-size: auto 100%;}
  28. .select-box select{-webkit-appearance:none !important;background-color: transparent; appearance:none;padding-right: 25px;}
  29. .dalog-ask{position: absolute;left:60%;top:0;-webkit-transform: translateY(-30%);transform: translateY(-30%);display: none;background-color: #fff;z-index: 10;}
  30. .tag{ width:300px; min-height:300px; border:1px solid #32a3d8; position:relative;background-color: #fff;line-height: 1.5;padding: 10px 12px;}
  31. .tag em{display:block; border-width:15px; position:absolute; top:30%; left:-30px;border-style:solid dashed dashed; border-color:transparent #32a3d8 transparent transparent;font-size:0; line-height:0;}
  32. .dalog-ask .ask{color: #000;margin: 10px 0 5px 0;}
  33. .dalog-ask .answer{color: #666;margin-bottom: 10px;}
  34. .dalog-ask .answer:hover{color: #32a3d8;cursor: pointer;}
  35. .time-line-list{list-style: none;width: 100%;margin-left: -20px;}
  36. .time-line-list>li{position: relative;float: left; text-align: center;width: 100px;overflow: hidden;white-space: nowrap;word-break: break-all;padding: 2px 0;}
  37. .time-line-list .number{display: inline-block; padding: 2px; background: #32a3d8;border: 2px solid #fff;box-shadow:0 0 0 1px #32a3d8;width: 20px;height: 20px;color: #fff;line-height: 20px;border-radius: 50%;}
  38. .time-line-list .red{display: inline-block; padding: 2px; background: red;border: 2px solid #fff;box-shadow:0 0 0 1px #32a3d8;width: 20px;height: 20px;color: #fff;line-height: 20px;border-radius: 50%;}
  39. .time-line-list>li:before{content:'';position: absolute;height: 1px;width: 30%;right:0;top: 15px; background-color: #32a3d8;}
  40. .time-line-list>li:after{content: '';position: absolute;height: 1px;width: 30%;left: 0;top: 15px;background:#32a3d8;}
  41. .time-line-list>li:first-child:after,.time-line-list>li:last-child:before{display: none;}
  42. .time-line-list .arrow{border-width:7px; position:absolute; left:25%; top:9px;border-style:solid dashed dashed; border-color:transparent transparent transparent #32a3d8;font-size:0; line-height:0;}
  43. .time-line-list>li:first-child .arrow{display: none;}
  44. .table-bg th{background-color: #e2f6ff;}
  45. .update-parts>span{margin-right: 10px;padding: 3px 4px;background-color: #effaff;border: 1px solid #32a3d8;}
  46. .my-search-input{padding-left: 30px;background: url(${path}/common/images/cm/search.png) 6px center no-repeat;background-size: auto 60%; }
  47. .txt-red{color:red}
  48. </style>
  49. <title>客诉基本信息</title>
  50. </head>
  51. <body>
  52. <article class="cl pd-20">
  53. <form action="" method="post" class="form form-horizontal" id="form-article-add">
  54. <div class="row cl">
  55. <label class="form-label col-3">
  56. <div class="tit-2">客诉基本信息</div>
  57. </label>
  58. <div class="formControls col-9">
  59. </div>
  60. </div>
  61. <div class="row cl">
  62. <label class="form-label col-1 col-sm-1">跟进客服:</label>
  63. <div class="formControls col-4 col-sm-4">
  64. <label id="adminName"></label>
  65. </div>
  66. <label class="form-label col-1 col-sm-1">来源入口:</label>
  67. <div class="formControls col-4 col-sm-4">
  68. <label id="customerSourceType"></label>
  69. </div>
  70. </div>
  71. <div class="row cl">
  72. <label class="form-label col-1 col-sm-1">咨询类型:</label>
  73. <div class="formControls col-4 col-sm-4">
  74. <label id="customerCounselType"></label>
  75. </div>
  76. <label class="form-label col-1 col-sm-1">产品类别:</label>
  77. <div class="formControls col-4 col-sm-4">
  78. <label id="typeName"></label>
  79. </div>
  80. </div>
  81. <div class="row cl" style="position: relative;">
  82. <label class="form-label col-1 col-sm-1">客诉问题:</label>
  83. <div class="formControls col-4 col-sm-4">
  84. <label id="describeTitle"></label>
  85. </div>
  86. </div>
  87. <div class="row cl">
  88. <label class="form-label col-1 col-sm-1">回复内容:</label>
  89. <div class="formControls col-5 col-sm-5">
  90. <label id="questionProfile"></label>
  91. </div>
  92. </div>
  93. <div class="row cl">
  94. <label class="form-label col-1 col-sm-1">用户信息:</label>
  95. <div class="formControls col-5 col-sm-5" style="margin-top: 2px;">
  96. <label id="customerName"></label>
  97. <label id="customerTel"></label>
  98. </div>
  99. </div>
  100. <div class="row cl">
  101. <label class="form-label col-3">
  102. <div class="tit-2">
  103. 处理结果(<label id="customerIsSolve" style="color: red"></label>)
  104. <label id="postage" style="color: red"></label>
  105. </div>
  106. </label>
  107. <div class="formControls col-10 col-sm-10">
  108. </div>
  109. </div>
  110. <div id="div_costomer" style="display: none;">
  111. <div class="row cl">
  112. <label class="form-label col-1 col-sm-1"></label>
  113. <div class="formControls col-10 col-sm-10">
  114. <ul class="time-line-list">
  115. <!--<li id="li-1"><span class="arrow"></span><div id="number-1" class="number">1</div><div id="txt-1">录入客诉</div></li>
  116. <li id="li-2"><span class="arrow"></span><div id="number-2" class="number">2</div><div id="txt-2">督促用户寄回</div></li>
  117. <li id="li-3"><span class="arrow"></span><div id="number-3" class="number">3</div><div id="txt-3">录入快递单号</div></li>
  118. <li id="li-4"><span class="arrow"></span><div id="number-4" class="number">4</div><div id="txt-4">仓库收货</div></li>
  119. <li id="li-5"><span class="arrow"></span><div id="number-5" class="number">5</div><div id="txt-5">换新发货</div></li>
  120. <li id="li-6"><span class="arrow"></span><div id="number-6" class="number">6</div><div id="txt-6">发货通知用户</div></li>
  121. <li id="li-7"><span class="arrow"></span><div id="number-7" class="number">7</div><div id="txt-7">收货后回访</div></li>-->
  122. </ul>
  123. </div>
  124. </div>
  125. <div class="row cl">
  126. <label class="form-label col-1 col-sm-1">订单信息</label>
  127. <div class="formControls col-7 col-sm-7 text-c">
  128. <table class="table table-border table-bg table-bordered">
  129. <tr>
  130. <th>销售</th>
  131. <th>订单号</th>
  132. <th>姓名</th>
  133. <th>电话</th>
  134. <th>订单金额</th>
  135. <th>购买产品</th>
  136. <th>购买日期</th>
  137. </tr>
  138. <tr>
  139. <td id="companyName"></td>
  140. <td id="salesOrderId"></td>
  141. <td id="salesAddressName"></td>
  142. <td id="salesAddressTel"></td>
  143. <td id="salesPayMoney"></td>
  144. <td id="salesItem"></td>
  145. <td id="salesPayTime"></td>
  146. </tr>
  147. </table>
  148. </div>
  149. </div>
  150. <div class="row cl" id="divCloseProdcue">
  151. <label class="form-label col-1 col-sm-1">寄回产品:</label>
  152. <div class="formControls col-7 col-sm-7">
  153. <div class="update-parts" id="closeprodcue"></div><br/>
  154. </div>
  155. </div>
  156. <div class="row cl" style="margin-top: 0px;">
  157. <label class="form-label col-1 col-sm-1"></label>
  158. <div class="formControls col-5 col-sm-5">
  159. <!--TDS收集-->
  160. <label id="customerTDS"></label>
  161. <div style="border-bottom:#ddd 1px solid; overflow:hidden"></div>
  162. </div>
  163. </div>
  164. <div class="row cl" id="sendMergeAddressDiv">
  165. <label class="form-label col-1 col-sm-1">收货地址:</label>
  166. <div class="formControls col-5 col-sm-5">
  167. <label id="relationSendMergeAddress"></label>
  168. </div>
  169. </div>
  170. <div class="row cl" id="divSendProdcue">
  171. <label class="form-label col-1 col-sm-1">寄送产品:</label>
  172. <div class="formControls col-7 col-sm-7">
  173. <div class="update-parts" id="sendprodcue"></div>
  174. </div>
  175. </div>
  176. </div>
  177. <div class="row cl">
  178. <label class="form-label col-1 col-sm-1">客服备注:</label>
  179. <div class="formControls col-7 col-sm-7" id="describeHandleDesc" style="border: 1px solid #ddd;">
  180. </div>
  181. </div>
  182. <div class="row cl">
  183. <label class="form-label col-1 col-sm-1">回访信息:</label>
  184. <div class="formControls col-7 col-sm-7">
  185. <label id="txtVisit"></label>
  186. </div>
  187. </div>
  188. </form>
  189. </div>
  190. </article>
  191. <script type="text/javascript" src="${path}/common/lib/My97DatePicker/4.8/WdatePicker.js"></script>
  192. <script type="text/javascript" src="${path}/common/lib/webuploader/0.1.5/webuploader.min.js"></script>
  193. <script type="text/javascript" src="${path}/common/lib/icheck/jquery.icheck.min.js"></script>
  194. <script type="text/javascript" src="${path}/common/lib/cm.lib/jquery.provincesCity.js"></script>
  195. <script type="text/javascript" src="${path}/common/lib/cm.lib/provincesData.js"></script>
  196. <script type="text/javascript" src="${path}/common/lib/cm.lib/airCity.js"></script>
  197. <script type="text/javascript" src="${path}/common/lib/cm.lib/suggest.js"></script>
  198. <script type="text/javascript" charset="utf-8" src="${path}/common/lib/ueditor/1.4.3/ueditor.config.js"></script>
  199. <script type="text/javascript" charset="utf-8" src="${path}/common/lib/ueditor/1.4.3/ueditor.all.js"></script>
  200. <script type="text/javascript" charset="utf-8" src="${path}/common/lib/ueditor/1.4.3/ueditor.parse.js"></script>
  201. <script type="text/javascript" charset="utf-8" src="${path}/common/lib/ueditor/1.4.3/lang/zh-cn/zh-cn.js"></script>
  202. <script type="text/javascript">
  203. $(function(){
  204. $('.skin-minimal input').iCheck({
  205. checkboxClass: 'icheckbox-blue',
  206. radioClass: 'iradio-blue',
  207. increaseArea: '20%'
  208. });
  209. $("#province").ProvinceCity();
  210. $('.skin-minimal input').iCheck({
  211. checkboxClass: 'icheckbox-blue',
  212. radioClass: 'iradio-blue',
  213. increaseArea: '20%'
  214. });
  215. $("#arrcity").suggest(citys,{hot_list:commoncitys,dataContainer:'#arrcity_3word',onSelect:function(result){
  216. console.log($(this)[0].value);
  217. // $("#city2").click()
  218. },
  219. attachObject:'#suggest'
  220. });
  221. //$("#city2").suggest(citys,{hot_list:commoncitys,attachObject:"#suggest2"})
  222. getCustomerInfo();
  223. });
  224. var sendprodcue = '';
  225. var sendprodcueshow = false; //寄送产品
  226. var closeprodcue = '';
  227. var closeprodcueshow = false; //寄回产品
  228. /**
  229. * 查询客诉基本信息
  230. */
  231. function getCustomerInfo() {
  232. $.ajax({
  233. cache: true,
  234. type: "POST",
  235. data: {"customerId":${customerId!''}},
  236. url: "${path}/admin/customer/get_customer_info",
  237. async: false,
  238. success: function(data){
  239. if (data.returnCode == 200) {
  240. console.log(data.returnMsg);
  241. var customer = data.returnMsg.customer;
  242. var customerCommon = data.returnMsg.customerCommon;
  243. var salesOrder = data.returnMsg.salesOrder;
  244. if (customer.customerIsSolve != 1 && customer.customerIsSolve != 2) {
  245. resultshow(customer.customerIsSolve, customerCommon.relationBackStatus,customerCommon.relationSendStatus,
  246. customerCommon.maintenanceIsRepair,customerCommon.detectState);
  247. var postage = '';
  248. var postageMoney = 0;
  249. if (customerCommon.relationBackPostage != null) {
  250. postageMoney = customerCommon.relationBackPostage;
  251. }
  252. switch (customerCommon.relationIsTransfer) {
  253. case 0:
  254. postage = '不需要转账。';
  255. break;
  256. case 1:
  257. postage = '已转账邮费'+postageMoney/100+'元。';
  258. break;
  259. case 2:
  260. postage = '待转账邮费'+postageMoney/100+'元。';
  261. break;
  262. }
  263. $('#postage').html(postage);
  264. }
  265. $('#adminName').html(customer.adminName);
  266. var customerSource = '';
  267. switch (customer.customerSourceType) {
  268. case 1:customerSource = '400电话';break;
  269. case 2:customerSource = '微信公众号';break;
  270. case 3:customerSource = customer.customerSource;break;
  271. }
  272. $('#customerSourceType').html(customerSource);
  273. var customerCounsel = '';
  274. switch (customer.customerCounselType) {
  275. case 1:customerCounsel = '售前咨询';break;
  276. case 2:customerCounsel = '售后咨询';break;
  277. case 3:customerCounsel = '其他';break;
  278. }
  279. $('#customerCounselType').html(customerCounsel);
  280. $('#typeName').html(customer.typeName);
  281. $('#describeTitle').html(customer.describeTitle);
  282. $('#questionProfile').html(customer.describeHandleDesc);
  283. $('#customerName').html(customer.customerName);
  284. $('#customerTel').html(customer.customerTel);
  285. var txtcustomerIsSolve = '';
  286. switch (customer.customerIsSolve) {
  287. case 1:txtcustomerIsSolve = '已解决';break;
  288. case 2:txtcustomerIsSolve = '未解决';break;
  289. case 3:txtcustomerIsSolve = '换新';break;
  290. case 4:txtcustomerIsSolve = '维修';break;
  291. case 5:txtcustomerIsSolve = '补发';break;
  292. case 6:
  293. $('#sendMergeAddressDiv').hide();
  294. txtcustomerIsSolve = '退货';
  295. break;
  296. case 7:
  297. $('#sendMergeAddressDiv').hide();
  298. txtcustomerIsSolve = '无理由退货';
  299. break;
  300. }
  301. $('#customerIsSolve').html(txtcustomerIsSolve);
  302. $('#companyName').html(convertUndefinedToEmpty(customer.companyName)+"-"+convertUndefinedToEmpty(customer.storeName));
  303. $('#salesOrderId').html(salesOrder.salesOrderId);
  304. $('#salesAddressName').html(salesOrder.salesAddressName);
  305. $('#salesAddressTel').html(salesOrder.salesAddressTel);
  306. $('#salesPayMoney').html('¥'+salesOrder.salesPayMoney/100);
  307. var salesItem = '';
  308. $.each(salesOrder.salesOrderItemList,function(index,item){
  309. salesItem = this.itemProductName + '*' + this.itemNum
  310. })
  311. $('#salesItem').html(salesItem);
  312. $('#salesPayTime').html(salesOrder.salesPayTime);
  313. $('#relationSendMergeAddress').html( convertUndefinedToEmpty(customerCommon.relationSendMergeAddress)+"-"+convertUndefinedToEmpty(customerCommon.relationSendAddress));
  314. $('#describeHandleDesc').html(customer.describeHandleDesc);
  315. if (customerCommon.sendProdcues != null && customerCommon.sendProdcues.length > 0) {
  316. $.each(customerCommon.sendProdcues,function(index,item){
  317. sendprodcue += '<span style="margin-bottom: 10px;display: inline-block;float: left;">' + this.sendProduceName + '*' + this.sendProdcueNumber + '</span>';
  318. })
  319. }
  320. if (customerCommon.sendFittings != null && customerCommon.sendFittings.length > 0) {
  321. $.each(customerCommon.sendFittings,function(index,item){
  322. sendprodcue += '<span style="margin-bottom: 10px;display: inline-block;float: left;">' + this.sendFittingsName + '*' + this.sendFittingNumber + '</span>';
  323. })
  324. }
  325. if (customerCommon.closedProdcues != null && customerCommon.closedProdcues.length > 0) {
  326. $.each(customerCommon.closedProdcues,function(index,item){
  327. closeprodcue += '<span style="margin-bottom: 10px;display: inline-block;float: left;">' + this.closedProductName + '*' + this.closedProdcueNumber + '</span>';
  328. })
  329. }
  330. if (customerCommon.closedFittings != null && customerCommon.closedFittings.length > 0) {
  331. $.each(customerCommon.closedFittings,function(index,item){
  332. closeprodcue += '<span style="margin-bottom: 10px;display: inline-block;float: left;">' + this.closedFittingsName + '*' + this.closedFittingNumber + '</span>';
  333. })
  334. }
  335. $('#sendprodcue').html(sendprodcue+"<br/>");
  336. $('#closeprodcue').html(closeprodcue+"<br/>");
  337. if (sendprodcueshow) {
  338. $('#divSendProdcue').show();
  339. } else {
  340. $('#divSendProdcue').hide();
  341. }
  342. if (closeprodcueshow) {
  343. $('#divCloseProdcue').show();
  344. } else {
  345. $('#divCloseProdcue').hide();
  346. }
  347. $('#customerTDS').html("<strong>TDS收集:</strong>"+ convertUndefinedToEmpty(customerCommon.relationSendMergeAddress) +",进水"+
  348. (customer.customerInTDS==undefined?0:customer.customerInTDS)+"ppm"+",出水"+(customer.customerOutTDS==undefined?0:customer.customerOutTDS)+"ppm");
  349. if (customer.customerIsVisit == 2) {
  350. var visitTime = '';
  351. switch (customer.visitTimeSelect) {
  352. case 1:visitTime = '9:00-12:00';break;
  353. case 2:visitTime = '12:00-14:00';break;
  354. case 3:visitTime = '14:00-18:00';break;
  355. }
  356. var visitText = "";
  357. if(customer.visitStatus == 1){
  358. visitText = '(<span class="txt-red">'+convertUndefinedToEmpty(customer.visitName)+'</span>)&nbsp;&nbsp;'+
  359. '在&nbsp;&nbsp;<span class="txt-red">'+convertUndefinedToEmpty(customer.visitDate)+
  360. '&nbsp;&nbsp;'+convertUndefinedToEmpty(visitTime)+'</span>对&nbsp;&nbsp;<span class="txt-red">'+
  361. convertUndefinedToEmpty(customer.visitName)+'&nbsp;&nbsp;'+
  362. convertUndefinedToEmpty(customer.visitTel)+'</span>&nbsp;&nbsp;进行回访';
  363. }
  364. if(customer.visitStatus == 2){
  365. visitText = '(<span class="txt-red">'+convertUndefinedToEmpty(customer.visitName)+'</span>)&nbsp;&nbsp;'+
  366. '在&nbsp;&nbsp;<span class="txt-red">'+convertUndefinedToEmpty(customer.visitDate)+
  367. '&nbsp;&nbsp;'+convertUndefinedToEmpty(visitTime)+'</span>对&nbsp;&nbsp;<span class="txt-red">'+
  368. convertUndefinedToEmpty(customer.visitCompleteName)+'&nbsp;&nbsp;'+
  369. convertUndefinedToEmpty(customer.visitCompleteTel)+'</span>&nbsp;&nbsp;完成回访';
  370. }
  371. $('#txtVisit').html(visitText);
  372. }
  373. }
  374. },
  375. error: function(XmlHttpRequest, textStatus, errorThrown){
  376. }
  377. });
  378. }
  379. /*处理结果的执行状态*/
  380. var isSolve = {
  381. solved : [],
  382. noSolved : [],
  383. renewed : ["录入客诉","督促用户寄回","录入快递单号","仓库收货","换新发货","发货通知用户","收货后回访"],
  384. maintain : ["录入客诉","督促用户寄回","录入快递单号","仓库收货","品质检测","产线维修","换新发货","发货通知用户","收货后回访"],
  385. reissue : ["录入客诉","生成E订单","督促仓库发货","仓库发货","发货通知用户","收货后回访"],
  386. backGoods : ["录入客诉","督促用户寄回","录入快递单号","仓库收货","品质检测","退款","退货完成"],
  387. noReasonBack : ["录入客诉","督促用户寄回","录入快递单号","仓库收货","品质检测","退款","退货完成"]
  388. }
  389. /*
  390. * 按条件展示步骤的对应颜色
  391. * backStatus:寄回状态
  392. * sendStatus:寄送状态
  393. */
  394. function resultshow(customerIsSolve, backStatus, sendStatus, maintenanceIsRepair, detectState) {
  395. var statusHtml = '<li id="div_li"><span class="arrow"></span><div id="div_number" class="number">status_index</div><div id="div_txt">status_html</div></li>';
  396. var result = [];
  397. var resultHtml = '';
  398. switch (customerIsSolve) {
  399. case 1:result = isSolve.solved;break;
  400. case 2:result = isSolve.noSolved;break;
  401. case 3:
  402. result = isSolve.renewed;
  403. $('#div_costomer').show();
  404. sendprodcueshow = true;
  405. closeprodcueshow = true;
  406. break;
  407. case 4:
  408. result = isSolve.maintain;
  409. $('#div_costomer').show();
  410. sendprodcueshow = true;
  411. closeprodcueshow = true;
  412. break;
  413. case 5:
  414. result = isSolve.reissue;
  415. $('#div_costomer').show();
  416. sendprodcueshow = true;
  417. break;
  418. case 6:
  419. result = isSolve.backGoods;
  420. $('#div_costomer').show();
  421. closeprodcueshow = true;
  422. break;
  423. case 7:
  424. result = isSolve.noReasonBack;
  425. $('#div_costomer').show();
  426. closeprodcueshow = true;
  427. break;
  428. }
  429. for(var i = 0;i < result.length;i++){
  430. var html = statusHtml.replace("status_index",i+1);
  431. html = html.replace("div_li","li-"+(i+1));
  432. html = html.replace("div_number","number-"+(i+1));
  433. html = html.replace("div_txt","txt-"+(i+1));
  434. html = html.replace("status_html",result[i]);
  435. resultHtml += html;
  436. }
  437. $(".time-line-list").html(resultHtml);
  438. $('#number-1').attr('class','red');
  439. $('#txt-1').attr('class','txt-red');
  440. if (customerIsSolve == 3) {
  441. switch (backStatus) {
  442. case 1:
  443. $('#number-2').attr('class','red');
  444. $('#txt-2').attr('class','txt-red');
  445. break;
  446. case 2:
  447. $('#number-2').attr('class','red');
  448. $('#number-3').attr('class','red');
  449. $('#txt-2').attr('class','txt-red');
  450. $('#txt-3').attr('class','txt-red');
  451. break;
  452. case 3:
  453. $('#number-2').attr('class','red');
  454. $('#number-3').attr('class','red');
  455. $('#number-4').attr('class','red');
  456. $('#txt-2').attr('class','txt-red');
  457. $('#txt-3').attr('class','txt-red');
  458. $('#txt-4').attr('class','txt-red');
  459. break;
  460. }
  461. switch (sendStatus) {
  462. case 1:
  463. $('#number-5').attr('class','red');
  464. $('#txt-5').attr('class','txt-red');
  465. break;
  466. case 2:
  467. $('#number-5').attr('class','red');
  468. $('#number-6').attr('class','red');
  469. $('#txt-5').attr('class','txt-red');
  470. $('#txt-6').attr('class','txt-red');
  471. break;
  472. case 3:
  473. $('#number-5').attr('class','red');
  474. $('#number-6').attr('class','red');
  475. $('#number-7').attr('class','red');
  476. $('#txt-5').attr('class','txt-red');
  477. $('#txt-6').attr('class','txt-red');
  478. $('#txt-7').attr('class','txt-red');
  479. break;
  480. }
  481. } else if (customerIsSolve == 4) {
  482. switch (backStatus) {
  483. case 1:
  484. $('#number-2').attr('class','red');
  485. $('#txt-2').attr('class','txt-red');
  486. break;
  487. case 2:
  488. $('#number-2').attr('class','red');
  489. $('#number-3').attr('class','red');
  490. $('#txt-2').attr('class','txt-red');
  491. $('#txt-3').attr('class','txt-red');
  492. break;
  493. case 3:
  494. $('#number-2').attr('class','red');
  495. $('#number-3').attr('class','red');
  496. $('#number-4').attr('class','red');
  497. $('#txt-2').attr('class','txt-red');
  498. $('#txt-3').attr('class','txt-red');
  499. $('#txt-4').attr('class','txt-red');
  500. break;
  501. }
  502. switch (sendStatus) {
  503. case 1:
  504. $('#number-7').attr('class','red');
  505. $('#txt-7').attr('class','txt-red');
  506. break;
  507. case 2:
  508. $('#number-7').attr('class','red');
  509. $('#number-8').attr('class','red');
  510. $('#txt-7').attr('class','txt-red');
  511. $('#txt-8').attr('class','txt-red');
  512. break;
  513. case 3:
  514. $('#number-7').attr('class','red');
  515. $('#number-8').attr('class','red');
  516. $('#number-9').attr('class','red');
  517. $('#txt-7').attr('class','txt-red');
  518. $('#txt-8').attr('class','txt-red');
  519. $('#txt-9').attr('class','txt-red');
  520. break;
  521. }
  522. if (detectState == 2 || detectState == 3 || detectState == 4) {
  523. $('#number-5').attr('class','red');
  524. $('#txt-5').attr('class','txt-red');
  525. }
  526. if (maintenanceIsRepair != null && maintenanceIsRepair != '') {
  527. $('#number-6').attr('class','red');
  528. $('#txt-6').attr('class','txt-red');
  529. }
  530. } else if (customerIsSolve == 5) {
  531. $('#number-2').attr('class','red');
  532. $('#txt-2').attr('class','txt-red');
  533. switch (sendStatus) {
  534. case 1:
  535. $('#number-3').attr('class','red');
  536. $('#txt-3').attr('class','txt-red');
  537. break;
  538. case 2:
  539. $('#number-3').attr('class','red');
  540. $('#number-4').attr('class','red');
  541. $('#number-5').attr('class','red');
  542. $('#txt-3').attr('class','txt-red');
  543. $('#txt-4').attr('class','txt-red');
  544. $('#txt-5').attr('class','txt-red');
  545. break;
  546. case 3:
  547. $('#number-3').attr('class','red');
  548. $('#number-4').attr('class','red');
  549. $('#number-5').attr('class','red');
  550. $('#number-6').attr('class','red');
  551. $('#txt-3').attr('class','txt-red');
  552. $('#txt-4').attr('class','txt-red');
  553. $('#txt-5').attr('class','txt-red');
  554. $('#txt-6').attr('class','txt-red');
  555. break;
  556. }
  557. } else if (customerIsSolve == 6 || customerIsSolve == 7) {
  558. switch (backStatus) {
  559. case 1:
  560. $('#number-2').attr('class', 'red');
  561. $('#txt-2').attr('class', 'txt-red');
  562. break;
  563. case 2:
  564. $('#number-2').attr('class', 'red');
  565. $('#number-3').attr('class', 'red');
  566. $('#txt-2').attr('class', 'txt-red');
  567. $('#txt-3').attr('class', 'txt-red');
  568. break;
  569. case 3:
  570. $('#number-2').attr('class', 'red');
  571. $('#number-3').attr('class', 'red');
  572. $('#number-4').attr('class', 'red');
  573. $('#txt-2').attr('class', 'txt-red');
  574. $('#txt-3').attr('class', 'txt-red');
  575. $('#txt-4').attr('class', 'txt-red');
  576. break;
  577. }
  578. if (detectState == 2 || detectState == 3 || detectState == 4) {
  579. $('#number-5').attr('class', 'red');
  580. $('#txt-5').attr('class', 'txt-red');
  581. }
  582. }
  583. }
  584. </script>
  585. </body>
  586. </html>