123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603 |
- <!DOCTYPE HTML>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="renderer" content="webkit|ie-comp|ie-stand">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
- <meta http-equiv="Cache-Control" content="no-siteapp" />
- <#include "/base/add_base.ftl">
- <link href="${path}/common/lib/jquery.ui/jquery-ui.css" rel="stylesheet" type="text/css"/>
- <link href="${path}/common/lib/webuploader/0.1.5/webuploader.css" rel="stylesheet" type="text/css"/>
- <link href="${path}/common/lib/icheck/icheck.css" rel="stylesheet" type="text/css"/>
- <style>
- .tit{position: relative;text-align: left;font-size: 16px;padding-left: 10px;}
- .tit:after{content: '';position: absolute;left: 0;top: 20%;height: 60%;width: 3px;background-color: #32a3d8;}
- .tit-2{position: relative;text-align: left;font-size: 16px;padding-left: 10px;}
- .tit-2:after{content: '';position: absolute;left: 0;top: 20%;height: 60%;width: 3px;background-color: #32a3d8;}
- #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;}
- #suggest, #suggest2 {width:200px}
- .gray {color:gray}
- .ac_results {background:#fff;border:1px solid #7f9db9;position: absolute;z-index: 10000;display: none}
- .ac_results li a {white-space: nowrap;text-decoration:none;display:block;color:#05a;padding:1px 3px}
- .ac_results li {border:1px solid #fff}
- .ac_over, .ac_results li a:hover {background:#c8e3fc}
- .ac_results li a span {float:right}
- .ac_result_tip {border-bottom:1px dashed #666;padding:3px}
- .select-box{background: url(${path}/common/images/cm/select-1.png) right center no-repeat;background-size: auto 100%;}
- .select-box select{-webkit-appearance:none !important;background-color: transparent; appearance:none;padding-right: 25px;}
- .dalog-ask{position: absolute;left:60%;top:0;-webkit-transform: translateY(-30%);transform: translateY(-30%);display: none;background-color: #fff;z-index: 10;}
- .tag{ width:300px; min-height:300px; border:1px solid #32a3d8; position:relative;background-color: #fff;line-height: 1.5;padding: 10px 12px;}
- .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;}
- .dalog-ask .ask{color: #000;margin: 10px 0 5px 0;}
- .dalog-ask .answer{color: #666;margin-bottom: 10px;}
- .dalog-ask .answer:hover{color: #32a3d8;cursor: pointer;}
- .time-line-list{list-style: none;width: 100%;margin-left: -20px;}
- .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;}
- .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%;}
- .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%;}
- .time-line-list>li:before{content:'';position: absolute;height: 1px;width: 30%;right:0;top: 15px; background-color: #32a3d8;}
- .time-line-list>li:after{content: '';position: absolute;height: 1px;width: 30%;left: 0;top: 15px;background:#32a3d8;}
- .time-line-list>li:first-child:after,.time-line-list>li:last-child:before{display: none;}
- .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;}
- .time-line-list>li:first-child .arrow{display: none;}
- .table-bg th{background-color: #e2f6ff;}
- .update-parts>span{margin-right: 10px;padding: 3px 4px;background-color: #effaff;border: 1px solid #32a3d8;}
- .my-search-input{padding-left: 30px;background: url(${path}/common/images/cm/search.png) 6px center no-repeat;background-size: auto 60%; }
- .txt-red{color:red}
- </style>
- <title>客诉基本信息</title>
- </head>
- <body>
- <article class="cl pd-20">
- <form action="" method="post" class="form form-horizontal" id="form-article-add">
- <div class="row cl">
- <label class="form-label col-3">
- <div class="tit-2">客诉基本信息</div>
- </label>
- <div class="formControls col-9">
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-1 col-sm-1">跟进客服:</label>
- <div class="formControls col-4 col-sm-4">
- <label id="adminName"></label>
- </div>
- <label class="form-label col-1 col-sm-1">来源入口:</label>
- <div class="formControls col-4 col-sm-4">
- <label id="customerSourceType"></label>
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-1 col-sm-1">咨询类型:</label>
- <div class="formControls col-4 col-sm-4">
- <label id="customerCounselType"></label>
- </div>
- <label class="form-label col-1 col-sm-1">产品类别:</label>
- <div class="formControls col-4 col-sm-4">
- <label id="typeName"></label>
- </div>
- </div>
- <div class="row cl" style="position: relative;">
- <label class="form-label col-1 col-sm-1">客诉问题:</label>
- <div class="formControls col-4 col-sm-4">
- <label id="describeTitle"></label>
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-1 col-sm-1">回复内容:</label>
- <div class="formControls col-5 col-sm-5">
- <label id="questionProfile"></label>
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-1 col-sm-1">用户信息:</label>
- <div class="formControls col-5 col-sm-5" style="margin-top: 2px;">
- <label id="customerName"></label>
- <label id="customerTel"></label>
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-3">
- <div class="tit-2">
- 处理结果(<label id="customerIsSolve" style="color: red"></label>)
- <label id="postage" style="color: red"></label>
- </div>
- </label>
- <div class="formControls col-10 col-sm-10">
- </div>
- </div>
- <div id="div_costomer" style="display: none;">
- <div class="row cl">
- <label class="form-label col-1 col-sm-1"></label>
- <div class="formControls col-10 col-sm-10">
- <ul class="time-line-list">
- <!--<li id="li-1"><span class="arrow"></span><div id="number-1" class="number">1</div><div id="txt-1">录入客诉</div></li>
- <li id="li-2"><span class="arrow"></span><div id="number-2" class="number">2</div><div id="txt-2">督促用户寄回</div></li>
- <li id="li-3"><span class="arrow"></span><div id="number-3" class="number">3</div><div id="txt-3">录入快递单号</div></li>
- <li id="li-4"><span class="arrow"></span><div id="number-4" class="number">4</div><div id="txt-4">仓库收货</div></li>
- <li id="li-5"><span class="arrow"></span><div id="number-5" class="number">5</div><div id="txt-5">换新发货</div></li>
- <li id="li-6"><span class="arrow"></span><div id="number-6" class="number">6</div><div id="txt-6">发货通知用户</div></li>
- <li id="li-7"><span class="arrow"></span><div id="number-7" class="number">7</div><div id="txt-7">收货后回访</div></li>-->
- </ul>
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-1 col-sm-1">订单信息</label>
- <div class="formControls col-7 col-sm-7 text-c">
- <table class="table table-border table-bg table-bordered">
- <tr>
- <th>销售</th>
- <th>订单号</th>
- <th>姓名</th>
- <th>电话</th>
- <th>订单金额</th>
- <th>购买产品</th>
- <th>购买日期</th>
- </tr>
- <tr>
- <td id="companyName"></td>
- <td id="salesOrderId"></td>
- <td id="salesAddressName"></td>
- <td id="salesAddressTel"></td>
- <td id="salesPayMoney"></td>
- <td id="salesItem"></td>
- <td id="salesPayTime"></td>
- </tr>
- </table>
- </div>
- </div>
- <div class="row cl" id="divCloseProdcue">
- <label class="form-label col-1 col-sm-1">寄回产品:</label>
- <div class="formControls col-7 col-sm-7">
- <div class="update-parts" id="closeprodcue"></div><br/>
- </div>
- </div>
- <div class="row cl" style="margin-top: 0px;">
- <label class="form-label col-1 col-sm-1"></label>
- <div class="formControls col-5 col-sm-5">
- <!--TDS收集-->
- <label id="customerTDS"></label>
- <div style="border-bottom:#ddd 1px solid; overflow:hidden"></div>
- </div>
- </div>
- <div class="row cl" id="sendMergeAddressDiv">
- <label class="form-label col-1 col-sm-1">收货地址:</label>
- <div class="formControls col-5 col-sm-5">
- <label id="relationSendMergeAddress"></label>
- </div>
- </div>
- <div class="row cl" id="divSendProdcue">
- <label class="form-label col-1 col-sm-1">寄送产品:</label>
- <div class="formControls col-7 col-sm-7">
- <div class="update-parts" id="sendprodcue"></div>
- </div>
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-1 col-sm-1">客服备注:</label>
- <div class="formControls col-7 col-sm-7" id="describeHandleDesc" style="border: 1px solid #ddd;">
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-1 col-sm-1">回访信息:</label>
- <div class="formControls col-7 col-sm-7">
- <label id="txtVisit"></label>
- </div>
- </div>
- </form>
- </div>
- </article>
- <script type="text/javascript" src="${path}/common/lib/My97DatePicker/4.8/WdatePicker.js"></script>
- <script type="text/javascript" src="${path}/common/lib/webuploader/0.1.5/webuploader.min.js"></script>
- <script type="text/javascript" src="${path}/common/lib/icheck/jquery.icheck.min.js"></script>
- <script type="text/javascript" src="${path}/common/lib/cm.lib/jquery.provincesCity.js"></script>
- <script type="text/javascript" src="${path}/common/lib/cm.lib/provincesData.js"></script>
- <script type="text/javascript" src="${path}/common/lib/cm.lib/airCity.js"></script>
- <script type="text/javascript" src="${path}/common/lib/cm.lib/suggest.js"></script>
- <script type="text/javascript" charset="utf-8" src="${path}/common/lib/ueditor/1.4.3/ueditor.config.js"></script>
- <script type="text/javascript" charset="utf-8" src="${path}/common/lib/ueditor/1.4.3/ueditor.all.js"></script>
- <script type="text/javascript" charset="utf-8" src="${path}/common/lib/ueditor/1.4.3/ueditor.parse.js"></script>
- <script type="text/javascript" charset="utf-8" src="${path}/common/lib/ueditor/1.4.3/lang/zh-cn/zh-cn.js"></script>
- <script type="text/javascript">
- $(function(){
- $('.skin-minimal input').iCheck({
- checkboxClass: 'icheckbox-blue',
- radioClass: 'iradio-blue',
- increaseArea: '20%'
- });
- $("#province").ProvinceCity();
- $('.skin-minimal input').iCheck({
- checkboxClass: 'icheckbox-blue',
- radioClass: 'iradio-blue',
- increaseArea: '20%'
- });
- $("#arrcity").suggest(citys,{hot_list:commoncitys,dataContainer:'#arrcity_3word',onSelect:function(result){
- console.log($(this)[0].value);
- // $("#city2").click()
- },
- attachObject:'#suggest'
- });
- //$("#city2").suggest(citys,{hot_list:commoncitys,attachObject:"#suggest2"})
- getCustomerInfo();
- });
- var sendprodcue = '';
- var sendprodcueshow = false; //寄送产品
- var closeprodcue = '';
- var closeprodcueshow = false; //寄回产品
- /**
- * 查询客诉基本信息
- */
- function getCustomerInfo() {
- $.ajax({
- cache: true,
- type: "POST",
- data: {"customerId":${customerId!''}},
- url: "${path}/admin/customer/get_customer_info",
- async: false,
- success: function(data){
- if (data.returnCode == 200) {
- console.log(data.returnMsg);
- var customer = data.returnMsg.customer;
- var customerCommon = data.returnMsg.customerCommon;
- var salesOrder = data.returnMsg.salesOrder;
- if (customer.customerIsSolve != 1 && customer.customerIsSolve != 2) {
- resultshow(customer.customerIsSolve, customerCommon.relationBackStatus,customerCommon.relationSendStatus,
- customerCommon.maintenanceIsRepair,customerCommon.detectState);
- var postage = '';
- var postageMoney = 0;
- if (customerCommon.relationBackPostage != null) {
- postageMoney = customerCommon.relationBackPostage;
- }
- switch (customerCommon.relationIsTransfer) {
- case 0:
- postage = '不需要转账。';
- break;
- case 1:
- postage = '已转账邮费'+postageMoney/100+'元。';
- break;
- case 2:
- postage = '待转账邮费'+postageMoney/100+'元。';
- break;
- }
- $('#postage').html(postage);
- }
- $('#adminName').html(customer.adminName);
- var customerSource = '';
- switch (customer.customerSourceType) {
- case 1:customerSource = '400电话';break;
- case 2:customerSource = '微信公众号';break;
- case 3:customerSource = customer.customerSource;break;
- }
- $('#customerSourceType').html(customerSource);
- var customerCounsel = '';
- switch (customer.customerCounselType) {
- case 1:customerCounsel = '售前咨询';break;
- case 2:customerCounsel = '售后咨询';break;
- case 3:customerCounsel = '其他';break;
- }
- $('#customerCounselType').html(customerCounsel);
- $('#typeName').html(customer.typeName);
- $('#describeTitle').html(customer.describeTitle);
- $('#questionProfile').html(customer.describeHandleDesc);
- $('#customerName').html(customer.customerName);
- $('#customerTel').html(customer.customerTel);
- var txtcustomerIsSolve = '';
- switch (customer.customerIsSolve) {
- case 1:txtcustomerIsSolve = '已解决';break;
- case 2:txtcustomerIsSolve = '未解决';break;
- case 3:txtcustomerIsSolve = '换新';break;
- case 4:txtcustomerIsSolve = '维修';break;
- case 5:txtcustomerIsSolve = '补发';break;
- case 6:
- $('#sendMergeAddressDiv').hide();
- txtcustomerIsSolve = '退货';
- break;
- case 7:
- $('#sendMergeAddressDiv').hide();
- txtcustomerIsSolve = '无理由退货';
- break;
- }
- $('#customerIsSolve').html(txtcustomerIsSolve);
- $('#companyName').html(convertUndefinedToEmpty(customer.companyName)+"-"+convertUndefinedToEmpty(customer.storeName));
- $('#salesOrderId').html(salesOrder.salesOrderId);
- $('#salesAddressName').html(salesOrder.salesAddressName);
- $('#salesAddressTel').html(salesOrder.salesAddressTel);
- $('#salesPayMoney').html('¥'+salesOrder.salesPayMoney/100);
- var salesItem = '';
- $.each(salesOrder.salesOrderItemList,function(index,item){
- salesItem = this.itemProductName + '*' + this.itemNum
- })
- $('#salesItem').html(salesItem);
- $('#salesPayTime').html(salesOrder.salesPayTime);
- $('#relationSendMergeAddress').html( convertUndefinedToEmpty(customerCommon.relationSendMergeAddress)+"-"+convertUndefinedToEmpty(customerCommon.relationSendAddress));
- $('#describeHandleDesc').html(customer.describeHandleDesc);
- if (customerCommon.sendProdcues != null && customerCommon.sendProdcues.length > 0) {
- $.each(customerCommon.sendProdcues,function(index,item){
- sendprodcue += '<span style="margin-bottom: 10px;display: inline-block;float: left;">' + this.sendProduceName + '*' + this.sendProdcueNumber + '</span>';
- })
- }
- if (customerCommon.sendFittings != null && customerCommon.sendFittings.length > 0) {
- $.each(customerCommon.sendFittings,function(index,item){
- sendprodcue += '<span style="margin-bottom: 10px;display: inline-block;float: left;">' + this.sendFittingsName + '*' + this.sendFittingNumber + '</span>';
- })
- }
- if (customerCommon.closedProdcues != null && customerCommon.closedProdcues.length > 0) {
- $.each(customerCommon.closedProdcues,function(index,item){
- closeprodcue += '<span style="margin-bottom: 10px;display: inline-block;float: left;">' + this.closedProductName + '*' + this.closedProdcueNumber + '</span>';
- })
- }
- if (customerCommon.closedFittings != null && customerCommon.closedFittings.length > 0) {
- $.each(customerCommon.closedFittings,function(index,item){
- closeprodcue += '<span style="margin-bottom: 10px;display: inline-block;float: left;">' + this.closedFittingsName + '*' + this.closedFittingNumber + '</span>';
- })
- }
- $('#sendprodcue').html(sendprodcue+"<br/>");
- $('#closeprodcue').html(closeprodcue+"<br/>");
- if (sendprodcueshow) {
- $('#divSendProdcue').show();
- } else {
- $('#divSendProdcue').hide();
- }
- if (closeprodcueshow) {
- $('#divCloseProdcue').show();
- } else {
- $('#divCloseProdcue').hide();
- }
- $('#customerTDS').html("<strong>TDS收集:</strong>"+ convertUndefinedToEmpty(customerCommon.relationSendMergeAddress) +",进水"+
- (customer.customerInTDS==undefined?0:customer.customerInTDS)+"ppm"+",出水"+(customer.customerOutTDS==undefined?0:customer.customerOutTDS)+"ppm");
- if (customer.customerIsVisit == 2) {
- var visitTime = '';
- switch (customer.visitTimeSelect) {
- case 1:visitTime = '9:00-12:00';break;
- case 2:visitTime = '12:00-14:00';break;
- case 3:visitTime = '14:00-18:00';break;
- }
- var visitText = "";
- if(customer.visitStatus == 1){
- visitText = '(<span class="txt-red">'+convertUndefinedToEmpty(customer.visitName)+'</span>) '+
- '在 <span class="txt-red">'+convertUndefinedToEmpty(customer.visitDate)+
- ' '+convertUndefinedToEmpty(visitTime)+'</span>对 <span class="txt-red">'+
- convertUndefinedToEmpty(customer.visitName)+' '+
- convertUndefinedToEmpty(customer.visitTel)+'</span> 进行回访';
- }
- if(customer.visitStatus == 2){
- visitText = '(<span class="txt-red">'+convertUndefinedToEmpty(customer.visitName)+'</span>) '+
- '在 <span class="txt-red">'+convertUndefinedToEmpty(customer.visitDate)+
- ' '+convertUndefinedToEmpty(visitTime)+'</span>对 <span class="txt-red">'+
- convertUndefinedToEmpty(customer.visitCompleteName)+' '+
- convertUndefinedToEmpty(customer.visitCompleteTel)+'</span> 完成回访';
- }
- $('#txtVisit').html(visitText);
- }
- }
- },
- error: function(XmlHttpRequest, textStatus, errorThrown){
- }
- });
- }
- /*处理结果的执行状态*/
- var isSolve = {
- solved : [],
- noSolved : [],
- renewed : ["录入客诉","督促用户寄回","录入快递单号","仓库收货","换新发货","发货通知用户","收货后回访"],
- maintain : ["录入客诉","督促用户寄回","录入快递单号","仓库收货","品质检测","产线维修","换新发货","发货通知用户","收货后回访"],
- reissue : ["录入客诉","生成E订单","督促仓库发货","仓库发货","发货通知用户","收货后回访"],
- backGoods : ["录入客诉","督促用户寄回","录入快递单号","仓库收货","品质检测","退款","退货完成"],
- noReasonBack : ["录入客诉","督促用户寄回","录入快递单号","仓库收货","品质检测","退款","退货完成"]
- }
- /*
- * 按条件展示步骤的对应颜色
- * backStatus:寄回状态
- * sendStatus:寄送状态
- */
- function resultshow(customerIsSolve, backStatus, sendStatus, maintenanceIsRepair, detectState) {
- 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>';
- var result = [];
- var resultHtml = '';
- switch (customerIsSolve) {
- case 1:result = isSolve.solved;break;
- case 2:result = isSolve.noSolved;break;
- case 3:
- result = isSolve.renewed;
- $('#div_costomer').show();
- sendprodcueshow = true;
- closeprodcueshow = true;
- break;
- case 4:
- result = isSolve.maintain;
- $('#div_costomer').show();
- sendprodcueshow = true;
- closeprodcueshow = true;
- break;
- case 5:
- result = isSolve.reissue;
- $('#div_costomer').show();
- sendprodcueshow = true;
- break;
- case 6:
- result = isSolve.backGoods;
- $('#div_costomer').show();
- closeprodcueshow = true;
- break;
- case 7:
- result = isSolve.noReasonBack;
- $('#div_costomer').show();
- closeprodcueshow = true;
- break;
- }
- for(var i = 0;i < result.length;i++){
- var html = statusHtml.replace("status_index",i+1);
- html = html.replace("div_li","li-"+(i+1));
- html = html.replace("div_number","number-"+(i+1));
- html = html.replace("div_txt","txt-"+(i+1));
- html = html.replace("status_html",result[i]);
- resultHtml += html;
- }
- $(".time-line-list").html(resultHtml);
- $('#number-1').attr('class','red');
- $('#txt-1').attr('class','txt-red');
- if (customerIsSolve == 3) {
- switch (backStatus) {
- case 1:
- $('#number-2').attr('class','red');
- $('#txt-2').attr('class','txt-red');
- break;
- case 2:
- $('#number-2').attr('class','red');
- $('#number-3').attr('class','red');
- $('#txt-2').attr('class','txt-red');
- $('#txt-3').attr('class','txt-red');
- break;
- case 3:
- $('#number-2').attr('class','red');
- $('#number-3').attr('class','red');
- $('#number-4').attr('class','red');
- $('#txt-2').attr('class','txt-red');
- $('#txt-3').attr('class','txt-red');
- $('#txt-4').attr('class','txt-red');
- break;
- }
- switch (sendStatus) {
- case 1:
- $('#number-5').attr('class','red');
- $('#txt-5').attr('class','txt-red');
- break;
- case 2:
- $('#number-5').attr('class','red');
- $('#number-6').attr('class','red');
- $('#txt-5').attr('class','txt-red');
- $('#txt-6').attr('class','txt-red');
- break;
- case 3:
- $('#number-5').attr('class','red');
- $('#number-6').attr('class','red');
- $('#number-7').attr('class','red');
- $('#txt-5').attr('class','txt-red');
- $('#txt-6').attr('class','txt-red');
- $('#txt-7').attr('class','txt-red');
- break;
- }
- } else if (customerIsSolve == 4) {
- switch (backStatus) {
- case 1:
- $('#number-2').attr('class','red');
- $('#txt-2').attr('class','txt-red');
- break;
- case 2:
- $('#number-2').attr('class','red');
- $('#number-3').attr('class','red');
- $('#txt-2').attr('class','txt-red');
- $('#txt-3').attr('class','txt-red');
- break;
- case 3:
- $('#number-2').attr('class','red');
- $('#number-3').attr('class','red');
- $('#number-4').attr('class','red');
- $('#txt-2').attr('class','txt-red');
- $('#txt-3').attr('class','txt-red');
- $('#txt-4').attr('class','txt-red');
- break;
- }
- switch (sendStatus) {
- case 1:
- $('#number-7').attr('class','red');
- $('#txt-7').attr('class','txt-red');
- break;
- case 2:
- $('#number-7').attr('class','red');
- $('#number-8').attr('class','red');
- $('#txt-7').attr('class','txt-red');
- $('#txt-8').attr('class','txt-red');
- break;
- case 3:
- $('#number-7').attr('class','red');
- $('#number-8').attr('class','red');
- $('#number-9').attr('class','red');
- $('#txt-7').attr('class','txt-red');
- $('#txt-8').attr('class','txt-red');
- $('#txt-9').attr('class','txt-red');
- break;
- }
- if (detectState == 2 || detectState == 3 || detectState == 4) {
- $('#number-5').attr('class','red');
- $('#txt-5').attr('class','txt-red');
- }
- if (maintenanceIsRepair != null && maintenanceIsRepair != '') {
- $('#number-6').attr('class','red');
- $('#txt-6').attr('class','txt-red');
- }
- } else if (customerIsSolve == 5) {
- $('#number-2').attr('class','red');
- $('#txt-2').attr('class','txt-red');
- switch (sendStatus) {
- case 1:
- $('#number-3').attr('class','red');
- $('#txt-3').attr('class','txt-red');
- break;
- case 2:
- $('#number-3').attr('class','red');
- $('#number-4').attr('class','red');
- $('#number-5').attr('class','red');
- $('#txt-3').attr('class','txt-red');
- $('#txt-4').attr('class','txt-red');
- $('#txt-5').attr('class','txt-red');
- break;
- case 3:
- $('#number-3').attr('class','red');
- $('#number-4').attr('class','red');
- $('#number-5').attr('class','red');
- $('#number-6').attr('class','red');
- $('#txt-3').attr('class','txt-red');
- $('#txt-4').attr('class','txt-red');
- $('#txt-5').attr('class','txt-red');
- $('#txt-6').attr('class','txt-red');
- break;
- }
- } else if (customerIsSolve == 6 || customerIsSolve == 7) {
- switch (backStatus) {
- case 1:
- $('#number-2').attr('class', 'red');
- $('#txt-2').attr('class', 'txt-red');
- break;
- case 2:
- $('#number-2').attr('class', 'red');
- $('#number-3').attr('class', 'red');
- $('#txt-2').attr('class', 'txt-red');
- $('#txt-3').attr('class', 'txt-red');
- break;
- case 3:
- $('#number-2').attr('class', 'red');
- $('#number-3').attr('class', 'red');
- $('#number-4').attr('class', 'red');
- $('#txt-2').attr('class', 'txt-red');
- $('#txt-3').attr('class', 'txt-red');
- $('#txt-4').attr('class', 'txt-red');
- break;
- }
- if (detectState == 2 || detectState == 3 || detectState == 4) {
- $('#number-5').attr('class', 'red');
- $('#txt-5').attr('class', 'txt-red');
- }
- }
- }
- </script>
- </body>
- </html>
|