|
@@ -410,12 +410,12 @@ function initProduceType(){
|
|
|
* 选择处理结果-- 默认选择已解决
|
|
|
* type : 1 :已解决 2:未解决 3:换新 4:维修 5:补发 6:退货 7:无理由退货
|
|
|
*/
|
|
|
-function initProcessResult(type){
|
|
|
+function initProcessResult(type,allCustomerInfoType){
|
|
|
|
|
|
if(type == null || type == ""){
|
|
|
type = 1;
|
|
|
}
|
|
|
-
|
|
|
+ var customerInfoType = allCustomerInfoType;
|
|
|
allCustomerType = type;
|
|
|
|
|
|
if(allCustomerInfoType == null || allCustomerInfoType == ""){
|
|
@@ -439,12 +439,12 @@ function initProcessResult(type){
|
|
|
switch(type)
|
|
|
{
|
|
|
case 1:
|
|
|
- otherHied();
|
|
|
+ otherHied(customerInfoType);
|
|
|
visitByType(1);
|
|
|
|
|
|
break;
|
|
|
case 2:
|
|
|
- otherHied();
|
|
|
+ otherHied(customerInfoType);
|
|
|
visitByType(2);
|
|
|
|
|
|
break;
|
|
@@ -498,14 +498,21 @@ function initProcessResult(type){
|
|
|
|
|
|
|
|
|
$("#renewedProduct").show();
|
|
|
- $("#TDScollect").show();
|
|
|
+
|
|
|
$("#TDScollectShow").show();
|
|
|
$("#sendAddressInfo").show();
|
|
|
$("#sendAddressByPhone").show();
|
|
|
$("#updateProduct").hide();
|
|
|
$("#postageAccount").show();
|
|
|
visitByType(2);
|
|
|
- $("#salesChannelsSelect").show();
|
|
|
+
|
|
|
+ if(customerInfoType == 1){
|
|
|
+ $("#salesChannelsSelect").hide();
|
|
|
+ $("#TDScollect").hide();
|
|
|
+ }else{
|
|
|
+ $("#salesChannelsSelect").show();
|
|
|
+ $("#TDScollect").show();
|
|
|
+ }
|
|
|
break;
|
|
|
case 4:
|
|
|
result = isSolve.maintain;
|
|
@@ -519,14 +526,21 @@ function initProcessResult(type){
|
|
|
|
|
|
|
|
|
$("#renewedProduct").show();
|
|
|
- $("#TDScollect").show();
|
|
|
+
|
|
|
$("#TDScollectShow").show();
|
|
|
$("#sendAddressInfo").show();
|
|
|
$("#sendAddressByPhone").show();
|
|
|
$("#updateProduct").hide();
|
|
|
$("#postageAccount").show();
|
|
|
visitByType(2);
|
|
|
- $("#salesChannelsSelect").show();
|
|
|
+
|
|
|
+ if(customerInfoType == 1){
|
|
|
+ $("#salesChannelsSelect").hide();
|
|
|
+ $("#TDScollect").hide();
|
|
|
+ }else{
|
|
|
+ $("#salesChannelsSelect").show();
|
|
|
+ $("#TDScollect").show();
|
|
|
+ }
|
|
|
break;
|
|
|
case 5:
|
|
|
result = isSolve.reissue;
|
|
@@ -540,14 +554,21 @@ function initProcessResult(type){
|
|
|
|
|
|
|
|
|
$("#renewedProduct").hide();
|
|
|
- $("#TDScollect").show();
|
|
|
+
|
|
|
$("#TDScollectShow").show();
|
|
|
$("#sendAddressInfo").hide();
|
|
|
$("#sendAddressByPhone").hide();
|
|
|
$("#updateProduct").hide();
|
|
|
$("#postageAccount").hide();
|
|
|
visitByType(2);
|
|
|
- $("#salesChannelsSelect").show();
|
|
|
+
|
|
|
+ if(customerInfoType == 1){
|
|
|
+ $("#salesChannelsSelect").hide();
|
|
|
+ $("#TDScollect").hide();
|
|
|
+ }else{
|
|
|
+ $("#salesChannelsSelect").show();
|
|
|
+ $("#TDScollect").show();
|
|
|
+ }
|
|
|
break;
|
|
|
case 6:
|
|
|
result = isSolve.backGoods;
|
|
@@ -561,14 +582,21 @@ function initProcessResult(type){
|
|
|
|
|
|
|
|
|
$("#renewedProduct").show();
|
|
|
- $("#TDScollect").show();
|
|
|
+
|
|
|
$("#TDScollectShow").show();
|
|
|
$("#sendAddressInfo").show();
|
|
|
$("#sendAddressByPhone").show();
|
|
|
$("#updateProduct").hide();
|
|
|
$("#postageAccount").show();
|
|
|
visitByType(2);
|
|
|
- $("#salesChannelsSelect").show();
|
|
|
+
|
|
|
+ if(customerInfoType == 1){
|
|
|
+ $("#salesChannelsSelect").hide();
|
|
|
+ $("#TDScollect").hide();
|
|
|
+ }else{
|
|
|
+ $("#salesChannelsSelect").show();
|
|
|
+ $("#TDScollect").show();
|
|
|
+ }
|
|
|
break;
|
|
|
case 7:
|
|
|
result = isSolve.noReasonBack;
|
|
@@ -582,14 +610,21 @@ function initProcessResult(type){
|
|
|
|
|
|
|
|
|
$("#renewedProduct").show();
|
|
|
- $("#TDScollect").show();
|
|
|
+
|
|
|
$("#TDScollectShow").show();
|
|
|
$("#sendAddressInfo").show();
|
|
|
$("#sendAddressByPhone").show();
|
|
|
$("#updateProduct").hide();
|
|
|
$("#postageAccount").show();
|
|
|
visitByType(2);
|
|
|
- $("#salesChannelsSelect").show();
|
|
|
+
|
|
|
+ if(customerInfoType == 1){
|
|
|
+ $("#salesChannelsSelect").hide();
|
|
|
+ $("#TDScollect").hide();
|
|
|
+ }else{
|
|
|
+ $("#salesChannelsSelect").show();
|
|
|
+ $("#TDScollect").show();
|
|
|
+ }
|
|
|
break;
|
|
|
default:
|
|
|
break;
|
|
@@ -617,8 +652,8 @@ function initProcessResult(type){
|
|
|
}
|
|
|
|
|
|
|
|
|
-function otherHied(){
|
|
|
- $("#salesChannelsSelect").show();
|
|
|
+function otherHied(customerInfoType){
|
|
|
+
|
|
|
$("#processResultStatus").hide();
|
|
|
$("#orderHead").hide();
|
|
|
$("#order").hide();
|
|
@@ -627,11 +662,18 @@ function otherHied(){
|
|
|
$("#recipientAddress").hide();
|
|
|
$("#recipientAddressText").hide();
|
|
|
$("#renewedProduct").hide();
|
|
|
- $("#TDScollect").show();
|
|
|
+
|
|
|
$("#TDScollectShow").show();
|
|
|
$("#sendAddressInfo").hide();
|
|
|
$("#sendAddressByPhone").hide();
|
|
|
$("#updateProduct").hide();
|
|
|
+ if(customerInfoType == 1){
|
|
|
+ $("#salesChannelsSelect").hide();
|
|
|
+ $("#TDScollect").hide();
|
|
|
+ }else{
|
|
|
+ $("#salesChannelsSelect").show();
|
|
|
+ $("#TDScollect").show();
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|