custome_detail.ftl 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579
  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">
  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. <!--TDS收集-->
  155. <label id="customerTDS"></label>
  156. <div style="border-bottom:#ddd 1px solid; overflow:hidden"></div>
  157. </div>
  158. </div>
  159. <div class="row cl">
  160. <label class="form-label col-1 col-sm-1">收货地址:</label>
  161. <div class="formControls col-5 col-sm-5">
  162. <label id="relationSendMergeAddress"></label>
  163. </div>
  164. </div>
  165. <div class="row cl" id="divSendProdcue">
  166. <label class="form-label col-1 col-sm-1">寄送产品:</label>
  167. <div class="formControls col-7 col-sm-7">
  168. <div class="update-parts" id="sendprodcue"></div>
  169. </div>
  170. </div>
  171. </div>
  172. <div class="row cl">
  173. <label class="form-label col-1 col-sm-1">处理描述:</label>
  174. <div class="formControls col-7 col-sm-7" id="describeHandleDesc" style="border: 1px solid #ddd;">
  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">
  180. <label id="txtVisit"></label>
  181. </div>
  182. </div>
  183. </form>
  184. </div>
  185. </article>
  186. <script type="text/javascript" src="${path}/common/lib/My97DatePicker/4.8/WdatePicker.js"></script>
  187. <script type="text/javascript" src="${path}/common/lib/webuploader/0.1.5/webuploader.min.js"></script>
  188. <script type="text/javascript" src="${path}/common/lib/icheck/jquery.icheck.min.js"></script>
  189. <script type="text/javascript" src="${path}/common/lib/cm.lib/jquery.provincesCity.js"></script>
  190. <script type="text/javascript" src="${path}/common/lib/cm.lib/provincesData.js"></script>
  191. <script type="text/javascript" src="${path}/common/lib/cm.lib/airCity.js"></script>
  192. <script type="text/javascript" src="${path}/common/lib/cm.lib/suggest.js"></script>
  193. <script type="text/javascript" charset="utf-8" src="${path}/common/lib/ueditor/1.4.3/ueditor.config.js"></script>
  194. <script type="text/javascript" charset="utf-8" src="${path}/common/lib/ueditor/1.4.3/ueditor.all.js"></script>
  195. <script type="text/javascript" charset="utf-8" src="${path}/common/lib/ueditor/1.4.3/ueditor.parse.js"></script>
  196. <script type="text/javascript" charset="utf-8" src="${path}/common/lib/ueditor/1.4.3/lang/zh-cn/zh-cn.js"></script>
  197. <script type="text/javascript">
  198. $(function(){
  199. $('.skin-minimal input').iCheck({
  200. checkboxClass: 'icheckbox-blue',
  201. radioClass: 'iradio-blue',
  202. increaseArea: '20%'
  203. });
  204. $("#province").ProvinceCity();
  205. $('.skin-minimal input').iCheck({
  206. checkboxClass: 'icheckbox-blue',
  207. radioClass: 'iradio-blue',
  208. increaseArea: '20%'
  209. });
  210. $("#arrcity").suggest(citys,{hot_list:commoncitys,dataContainer:'#arrcity_3word',onSelect:function(result){
  211. console.log($(this)[0].value);
  212. // $("#city2").click()
  213. },
  214. attachObject:'#suggest'
  215. });
  216. //$("#city2").suggest(citys,{hot_list:commoncitys,attachObject:"#suggest2"})
  217. getCustomerInfo();
  218. });
  219. var sendprodcue = '';
  220. var sendprodcueshow = false; //寄送产品
  221. var closeprodcue = '';
  222. var closeprodcueshow = false; //寄回产品
  223. /**
  224. * 查询客诉基本信息
  225. */
  226. function getCustomerInfo() {
  227. $.ajax({
  228. cache: true,
  229. type: "POST",
  230. data: {"customerId":${customerId!''}},
  231. url: "${path}/admin/customer/get_customer_info",
  232. async: false,
  233. success: function(data){
  234. if (data.returnCode == 200) {
  235. console.log(data.returnMsg);
  236. var customer = data.returnMsg.customer;
  237. var customerCommon = data.returnMsg.customerCommon;
  238. var salesOrder = data.returnMsg.salesOrder;
  239. if (customer.customerIsSolve != 1 && customer.customerIsSolve != 2) {
  240. resultshow(customer.customerIsSolve, customerCommon.relationBackStatus,customerCommon.relationSendStatus,
  241. customerCommon.maintenanceIsRepair,customerCommon.detectState);
  242. var postage = '';
  243. var postageMoney = 0;
  244. if (customerCommon.relationBackPostage != null) {
  245. postageMoney = customerCommon.relationBackPostage;
  246. }
  247. switch (customerCommon.relationIsTransfer) {
  248. case 0:
  249. postage = '不需要转账。';
  250. break;
  251. case 1:
  252. postage = '已转账邮费'+postageMoney/100+'元。';
  253. break;
  254. case 2:
  255. postage = '待转账邮费'+postageMoney/100+'元。';
  256. break;
  257. }
  258. $('#postage').html(postage);
  259. }
  260. $('#adminName').html(customer.adminName);
  261. var customerSource = '';
  262. switch (customer.customerSourceType) {
  263. case 1:customerSource = '400电话';break;
  264. case 2:customerSource = '微信公众号';break;
  265. case 3:customerSource = customer.customerSource;break;
  266. }
  267. $('#customerSourceType').html(customerSource);
  268. var customerCounsel = '';
  269. switch (customer.customerCounselType) {
  270. case 1:customerCounsel = '售前咨询';break;
  271. case 2:customerCounsel = '售后咨询';break;
  272. case 3:customerCounsel = '其他';break;
  273. }
  274. $('#customerCounselType').html(customerCounsel);
  275. $('#typeName').html(customer.typeName);
  276. $('#describeTitle').html(customer.describeTitle);
  277. $('#questionProfile').html(customer.questionProfile);
  278. $('#customerName').html(customer.customerName);
  279. $('#customerTel').html(customer.customerTel);
  280. var txtcustomerIsSolve = '';
  281. switch (customer.customerIsSolve) {
  282. case 1:txtcustomerIsSolve = '已解决';break;
  283. case 2:txtcustomerIsSolve = '未解决';break;
  284. case 3:txtcustomerIsSolve = '换新';break;
  285. case 4:txtcustomerIsSolve = '维修';break;
  286. case 5:txtcustomerIsSolve = '补发';break;
  287. case 6:txtcustomerIsSolve = '退货';break;
  288. case 7:txtcustomerIsSolve = '无理由退货';break;
  289. }
  290. $('#customerIsSolve').html(txtcustomerIsSolve);
  291. $('#companyName').html(convertUndefinedToEmpty(customer.companyName)+"-"+convertUndefinedToEmpty(customer.storeName));
  292. $('#salesOrderId').html(salesOrder.salesOrderId);
  293. $('#salesAddressName').html(salesOrder.salesAddressName);
  294. $('#salesAddressTel').html(salesOrder.salesAddressTel);
  295. $('#salesPayMoney').html('¥'+salesOrder.salesPayMoney/100);
  296. var salesItem = '';
  297. $.each(salesOrder.salesOrderItemList,function(index,item){
  298. salesItem = this.itemProductName + '*' + this.itemNum
  299. })
  300. $('#salesItem').html(salesItem);
  301. $('#salesPayTime').html(salesOrder.salesPayTime);
  302. $('#relationSendMergeAddress').html( convertUndefinedToEmpty(customerCommon.relationSendMergeAddress)+"-"+convertUndefinedToEmpty(customerCommon.relationSendAddress));
  303. $('#describeHandleDesc').html(customer.describeHandleDesc);
  304. if (customerCommon.sendProdcues != null && customerCommon.sendProdcues.length > 0) {
  305. $.each(customerCommon.sendProdcues,function(index,item){
  306. sendprodcue += '<span style="margin-bottom: 10px;display: inline-block;float: left;">' + this.sendProduceName + '*' + this.sendProdcueNumber + '</span>';
  307. })
  308. }
  309. if (customerCommon.sendFittings != null && customerCommon.sendFittings.length > 0) {
  310. $.each(customerCommon.sendFittings,function(index,item){
  311. sendprodcue += '<span style="margin-bottom: 10px;display: inline-block;float: left;">' + this.sendProductName + '*' + this.sendFittingNumber + '</span>';
  312. })
  313. }
  314. if (customerCommon.closedProdcues != null && customerCommon.closedProdcues.length > 0) {
  315. $.each(customerCommon.closedProdcues,function(index,item){
  316. closeprodcue += '<span style="margin-bottom: 10px;display: inline-block;float: left;">' + this.closedProductName + '*' + this.closedProdcueNumber + '</span>';
  317. })
  318. }
  319. if (customerCommon.closedFittings != null && customerCommon.closedFittings.length > 0) {
  320. $.each(customerCommon.closedFittings,function(index,item){
  321. closeprodcue += '<span style="margin-bottom: 10px;display: inline-block;float: left;">' + this.fittingName + '*' + this.closedFittingNumber + '</span>';
  322. })
  323. }
  324. $('#sendprodcue').html(sendprodcue+"<br/>");
  325. $('#closeprodcue').html(closeprodcue+"<br/>");
  326. if (sendprodcueshow) {
  327. $('#divSendProdcue').show();
  328. } else {
  329. $('#divSendProdcue').hide();
  330. }
  331. if (closeprodcueshow) {
  332. $('#divCloseProdcue').show();
  333. } else {
  334. $('#divCloseProdcue').hide();
  335. }
  336. $('#customerTDS').html("<strong>TDS收集:</strong>"+ convertUndefinedToEmpty(customerCommon.relationSendMergeAddress) +",进水"+
  337. (customer.customerInTDS==undefined?0:customer.customerInTDS)+"ppm"+",出水"+(customer.customerOutTDS==undefined?0:customer.customerOutTDS)+"ppm");
  338. if (customer.customerIsVisit == '2') {
  339. var visitTime = '';
  340. switch (customer.visitTimeSelect) {
  341. case 1:visitTime = '9:00-12:00';break;
  342. case 2:visitTime = '12:00-14:00';break;
  343. case 3:visitTime = '14:00-18:00';break;
  344. }
  345. var visitText = '(<span class="txt-red">'+convertUndefinedToEmpty(customer.visitName)+'</span>)&nbsp;&nbsp;'+
  346. '在&nbsp;&nbsp;<span class="txt-red">'+convertUndefinedToEmpty(customer.visitDate)+
  347. '&nbsp;&nbsp;'+convertUndefinedToEmpty(visitTime)+'</span>对&nbsp;&nbsp;<span class="txt-red">'+
  348. convertUndefinedToEmpty(customer.visitCompleteName)+'&nbsp;&nbsp;'+
  349. convertUndefinedToEmpty(customer.visitCompleteTel)+'</span>&nbsp;&nbsp;完成回访';
  350. $('#txtVisit').html(visitText);
  351. }
  352. }
  353. },
  354. error: function(XmlHttpRequest, textStatus, errorThrown){
  355. }
  356. });
  357. }
  358. /*处理结果的执行状态*/
  359. var isSolve = {
  360. solved : [],
  361. noSolved : [],
  362. renewed : ["录入客诉","督促用户寄回","录入快递单号","仓库收货","换新发货","发货通知用户","收货后回访"],
  363. maintain : ["录入客诉","督促用户寄回","录入快递单号","仓库收货","品质检测","产线维修","换新发货","发货通知用户","收货后回访"],
  364. reissue : ["录入客诉","生成E订单","督促仓库发货","仓库发货","发货通知用户","收货后回访"],
  365. backGoods : ["录入客诉","督促用户寄回","录入快递单号","仓库收货","品质检测","退款","退货完成"],
  366. noReasonBack : ["录入客诉","督促用户寄回","录入快递单号","仓库收货","品质检测","退款","退货完成"]
  367. }
  368. /*
  369. * 按条件展示步骤的对应颜色
  370. * backStatus:寄回状态
  371. * sendStatus:寄送状态
  372. */
  373. function resultshow(customerIsSolve, backStatus, sendStatus, maintenanceIsRepair, detectState) {
  374. 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>';
  375. var result = [];
  376. var resultHtml = '';
  377. switch (customerIsSolve) {
  378. case 1:result = isSolve.solved;break;
  379. case 2:result = isSolve.noSolved;break;
  380. case 3:
  381. result = isSolve.renewed;
  382. $('#div_costomer').show();
  383. sendprodcueshow = true;
  384. closeprodcueshow = true;
  385. break;
  386. case 4:
  387. result = isSolve.maintain;
  388. $('#div_costomer').show();
  389. sendprodcueshow = true;
  390. closeprodcueshow = true;
  391. break;
  392. case 5:
  393. result = isSolve.reissue;
  394. $('#div_costomer').show();
  395. sendprodcueshow = true;
  396. break;
  397. case 6:
  398. result = isSolve.backGoods;
  399. $('#div_costomer').show();
  400. closeprodcueshow = true;
  401. break;
  402. case 7:
  403. result = isSolve.noReasonBack;
  404. $('#div_costomer').show();
  405. closeprodcueshow = true;
  406. break;
  407. }
  408. for(var i = 0;i < result.length;i++){
  409. var html = statusHtml.replace("status_index",i+1);
  410. html = html.replace("div_li","li-"+(i+1));
  411. html = html.replace("div_number","number-"+(i+1));
  412. html = html.replace("div_txt","txt-"+(i+1));
  413. html = html.replace("status_html",result[i]);
  414. resultHtml += html;
  415. }
  416. $(".time-line-list").html(resultHtml);
  417. $('#number-1').attr('class','red');
  418. $('#txt-1').attr('class','txt-red');
  419. if (customerIsSolve == 3) {
  420. switch (backStatus) {
  421. case 1:
  422. $('#number-2').attr('class','red');
  423. $('#txt-2').attr('class','txt-red');
  424. break;
  425. case 2:
  426. $('#number-2').attr('class','red');
  427. $('#number-3').attr('class','red');
  428. $('#txt-2').attr('class','txt-red');
  429. $('#txt-3').attr('class','txt-red');
  430. break;
  431. case 3:
  432. $('#number-2').attr('class','red');
  433. $('#number-3').attr('class','red');
  434. $('#number-4').attr('class','red');
  435. $('#txt-2').attr('class','txt-red');
  436. $('#txt-3').attr('class','txt-red');
  437. $('#txt-4').attr('class','txt-red');
  438. break;
  439. }
  440. switch (sendStatus) {
  441. case 1:
  442. $('#number-5').attr('class','red');
  443. $('#txt-5').attr('class','txt-red');
  444. break;
  445. case 2:
  446. $('#number-5').attr('class','red');
  447. $('#number-6').attr('class','red');
  448. $('#txt-5').attr('class','txt-red');
  449. $('#txt-6').attr('class','txt-red');
  450. break;
  451. case 3:
  452. $('#number-5').attr('class','red');
  453. $('#number-6').attr('class','red');
  454. $('#number-7').attr('class','red');
  455. $('#txt-5').attr('class','txt-red');
  456. $('#txt-6').attr('class','txt-red');
  457. $('#txt-7').attr('class','txt-red');
  458. break;
  459. }
  460. } else if (customerIsSolve == 4) {
  461. switch (backStatus) {
  462. case 1:
  463. $('#number-2').attr('class','red');
  464. $('#txt-2').attr('class','txt-red');
  465. break;
  466. case 2:
  467. $('#number-2').attr('class','red');
  468. $('#number-3').attr('class','red');
  469. $('#txt-2').attr('class','txt-red');
  470. $('#txt-3').attr('class','txt-red');
  471. break;
  472. case 3:
  473. $('#number-2').attr('class','red');
  474. $('#number-3').attr('class','red');
  475. $('#number-4').attr('class','red');
  476. $('#txt-2').attr('class','txt-red');
  477. $('#txt-3').attr('class','txt-red');
  478. $('#txt-4').attr('class','txt-red');
  479. break;
  480. }
  481. switch (sendStatus) {
  482. case 1:
  483. $('#number-7').attr('class','red');
  484. $('#txt-7').attr('class','txt-red');
  485. break;
  486. case 2:
  487. $('#number-7').attr('class','red');
  488. $('#number-8').attr('class','red');
  489. $('#txt-7').attr('class','txt-red');
  490. $('#txt-8').attr('class','txt-red');
  491. break;
  492. case 3:
  493. $('#number-7').attr('class','red');
  494. $('#number-8').attr('class','red');
  495. $('#number-9').attr('class','red');
  496. $('#txt-7').attr('class','txt-red');
  497. $('#txt-8').attr('class','txt-red');
  498. $('#txt-9').attr('class','txt-red');
  499. break;
  500. }
  501. if (detectState == 2 || detectState == 3 || detectState == 4) {
  502. $('#number-5').attr('class','red');
  503. $('#txt-5').attr('class','txt-red');
  504. }
  505. if (maintenanceIsRepair != null && maintenanceIsRepair != '') {
  506. $('#number-6').attr('class','red');
  507. $('#txt-6').attr('class','txt-red');
  508. }
  509. } else if (customerIsSolve == 5) {
  510. $('#number-2').attr('class','red');
  511. $('#txt-2').attr('class','txt-red');
  512. switch (sendStatus) {
  513. case 1:
  514. $('#number-3').attr('class','red');
  515. $('#txt-3').attr('class','txt-red');
  516. break;
  517. case 2:
  518. $('#number-3').attr('class','red');
  519. $('#number-4').attr('class','red');
  520. $('#number-5').attr('class','red');
  521. $('#txt-3').attr('class','txt-red');
  522. $('#txt-4').attr('class','txt-red');
  523. $('#txt-5').attr('class','txt-red');
  524. break;
  525. case 3:
  526. $('#number-3').attr('class','red');
  527. $('#number-4').attr('class','red');
  528. $('#number-5').attr('class','red');
  529. $('#number-6').attr('class','red');
  530. $('#txt-3').attr('class','txt-red');
  531. $('#txt-4').attr('class','txt-red');
  532. $('#txt-5').attr('class','txt-red');
  533. $('#txt-6').attr('class','txt-red');
  534. break;
  535. }
  536. } else if (customerIsSolve == 6 || customerIsSolve == 7) {
  537. switch (backStatus) {
  538. case 1:
  539. $('#number-2').attr('class', 'red');
  540. $('#txt-2').attr('class', 'txt-red');
  541. break;
  542. case 2:
  543. $('#number-2').attr('class', 'red');
  544. $('#number-3').attr('class', 'red');
  545. $('#txt-2').attr('class', 'txt-red');
  546. $('#txt-3').attr('class', 'txt-red');
  547. break;
  548. case 3:
  549. $('#number-2').attr('class', 'red');
  550. $('#number-3').attr('class', 'red');
  551. $('#number-4').attr('class', 'red');
  552. $('#txt-2').attr('class', 'txt-red');
  553. $('#txt-3').attr('class', 'txt-red');
  554. $('#txt-4').attr('class', 'txt-red');
  555. break;
  556. }
  557. if (detectState == 2 || detectState == 3 || detectState == 4) {
  558. $('#number-5').attr('class', 'red');
  559. $('#txt-5').attr('class', 'txt-red');
  560. }
  561. }
  562. }
  563. </script>
  564. </body>
  565. </html>