|
@@ -231,7 +231,8 @@
|
|
|
var customerCommon = data.returnMsg.customerCommon;
|
|
|
var salesOrder = data.returnMsg.salesOrder;
|
|
|
if (customer.customerIsSolve != 1 && customer.customerIsSolve != 2) {
|
|
|
- resultshow(customer.customerIsSolve, customerCommon.relationBackStatus,customerCommon.relationSendStatus);
|
|
|
+ resultshow(customer.customerIsSolve, customerCommon.relationBackStatus,customerCommon.relationSendStatus,
|
|
|
+ customerCommon.maintenanceIsRepair,customerCommon.detectState);
|
|
|
}
|
|
|
|
|
|
$('#adminName').html(customer.adminName);
|
|
@@ -355,7 +356,7 @@
|
|
|
* backStatus:寄回状态
|
|
|
* sendStatus:寄送状态
|
|
|
*/
|
|
|
- function resultshow(customerIsSolve, 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 = '';
|
|
@@ -368,7 +369,7 @@
|
|
|
case 6:result = isSolve.backGoods;break;
|
|
|
case 7:result = isSolve.noReasonBack;break;
|
|
|
}
|
|
|
- for(var i=0;i< result.length;i++){
|
|
|
+ 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));
|
|
@@ -377,6 +378,151 @@
|
|
|
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>
|