|
@@ -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);
|
|
|
//getCompany();
|
|
|
break;
|
|
|
case 2:
|
|
|
- otherHied();
|
|
|
+ otherHied(customerInfoType);
|
|
|
visitByType(2);
|
|
|
//getCompany();
|
|
|
break;
|
|
@@ -498,14 +498,21 @@ function initProcessResult(type){
|
|
|
//$("#recipientAddress").show();
|
|
|
//$("#recipientAddressText").show();
|
|
|
$("#renewedProduct").show();
|
|
|
- $("#TDScollect").show();
|
|
|
+ //$("#TDScollect").show();
|
|
|
$("#TDScollectShow").show();
|
|
|
$("#sendAddressInfo").show();
|
|
|
$("#sendAddressByPhone").show();
|
|
|
$("#updateProduct").hide(); //换新产品
|
|
|
$("#postageAccount").show(); //邮费转账账户
|
|
|
visitByType(2); //需要回访
|
|
|
- $("#salesChannelsSelect").show(); //展示销售公司
|
|
|
+ //$("#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){
|
|
|
//$("#recipientAddress").show();
|
|
|
//$("#recipientAddressText").show();
|
|
|
$("#renewedProduct").show();
|
|
|
- $("#TDScollect").show();
|
|
|
+ //$("#TDScollect").show();
|
|
|
$("#TDScollectShow").show();
|
|
|
$("#sendAddressInfo").show();
|
|
|
$("#sendAddressByPhone").show();
|
|
|
$("#updateProduct").hide();//维修产品
|
|
|
$("#postageAccount").show(); //邮费转账账户
|
|
|
visitByType(2); //需要回访
|
|
|
- $("#salesChannelsSelect").show(); //展示销售公司
|
|
|
+ //$("#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){
|
|
|
// $("#recipientAddress").show();
|
|
|
// $("#recipientAddressText").show();
|
|
|
$("#renewedProduct").hide();
|
|
|
- $("#TDScollect").show();
|
|
|
+ //$("#TDScollect").show();
|
|
|
$("#TDScollectShow").show();
|
|
|
$("#sendAddressInfo").hide();
|
|
|
$("#sendAddressByPhone").hide();
|
|
|
$("#updateProduct").hide();
|
|
|
$("#postageAccount").hide(); //邮费转账账户 -- 隐藏
|
|
|
visitByType(2); //需要回访
|
|
|
- $("#salesChannelsSelect").show(); //展示销售公司
|
|
|
+ //$("#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){
|
|
|
//$("#recipientAddress").show();
|
|
|
//$("#recipientAddressText").show();
|
|
|
$("#renewedProduct").show();
|
|
|
- $("#TDScollect").show();
|
|
|
+ //$("#TDScollect").show();
|
|
|
$("#TDScollectShow").show();
|
|
|
$("#sendAddressInfo").show();
|
|
|
$("#sendAddressByPhone").show();
|
|
|
$("#updateProduct").hide();
|
|
|
$("#postageAccount").show(); //邮费转账账户
|
|
|
visitByType(2); //需要回访
|
|
|
- $("#salesChannelsSelect").show(); //展示销售公司
|
|
|
+ //$("#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){
|
|
|
//$("#recipientAddress").show();
|
|
|
//$("#recipientAddressText").show();
|
|
|
$("#renewedProduct").show();
|
|
|
- $("#TDScollect").show();
|
|
|
+ //$("#TDScollect").show();
|
|
|
$("#TDScollectShow").show();
|
|
|
$("#sendAddressInfo").show();
|
|
|
$("#sendAddressByPhone").show();
|
|
|
$("#updateProduct").hide();
|
|
|
$("#postageAccount").show(); //邮费转账账户
|
|
|
visitByType(2); //需要回访
|
|
|
- $("#salesChannelsSelect").show(); //展示销售公司
|
|
|
+ //$("#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){
|
|
|
+ //$("#salesChannelsSelect").show(); //展示销售公司
|
|
|
$("#processResultStatus").hide(); //处理结果的执行状态 已解决未解决没有该信息
|
|
|
$("#orderHead").hide();
|
|
|
$("#order").hide();
|
|
@@ -627,11 +662,18 @@ function otherHied(){
|
|
|
$("#recipientAddress").hide();
|
|
|
$("#recipientAddressText").hide();
|
|
|
$("#renewedProduct").hide();
|
|
|
- $("#TDScollect").show();
|
|
|
+ //$("#TDScollect").show();
|
|
|
$("#TDScollectShow").show();
|
|
|
$("#sendAddressInfo").hide();
|
|
|
$("#sendAddressByPhone").hide();
|
|
|
$("#updateProduct").hide();
|
|
|
+ if(customerInfoType == 1){
|
|
|
+ $("#salesChannelsSelect").hide(); //展示销售公司
|
|
|
+ $("#TDScollect").hide();
|
|
|
+ }else{
|
|
|
+ $("#salesChannelsSelect").show(); //展示销售公司
|
|
|
+ $("#TDScollect").show();
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/*初始化问题大类*/
|