|
@@ -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();
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/*初始化问题大类*/
|
|
@@ -1938,7 +1980,7 @@ function processIsEmpty(process){
|
|
|
/*===============================客诉提交 -- end -- =============================== */
|
|
|
|
|
|
|
|
|
-/*$("#customerWechatName").blur(function(){
|
|
|
+$("#customerWechatName").blur(function(){
|
|
|
selectOnCustomer();
|
|
|
});
|
|
|
$("#customerName").blur(function(){
|
|
@@ -1946,7 +1988,7 @@ $("#customerName").blur(function(){
|
|
|
});
|
|
|
$("#customerTel").blur(function(){
|
|
|
selectOnCustomer();
|
|
|
-});*/
|
|
|
+});
|
|
|
/*根据客户信息查询老的客诉---start--*/
|
|
|
function selectOnCustomer() {
|
|
|
var customerWechatName = $("#customerWechatName").val();
|
|
@@ -1955,6 +1997,7 @@ function selectOnCustomer() {
|
|
|
if((customerWechatName == null || customerWechatName == "") &&
|
|
|
(customerName == null || customerName == "") &&
|
|
|
(customerTel == null || customerTel == "")){
|
|
|
+ $("#onCustomerTable").hide();
|
|
|
return;
|
|
|
}
|
|
|
$.ajax({
|
|
@@ -1968,6 +2011,7 @@ function selectOnCustomer() {
|
|
|
if (data.returnCode == 200) {
|
|
|
var onCustomerList = data.returnMsg.onCustomerList;
|
|
|
if(onCustomerList != null && onCustomerList.length >0 ){
|
|
|
+ $("#onCustomerTable").show();
|
|
|
var onCustomerTd = "";
|
|
|
for(var i = 0;i < onCustomerList.length; i++){
|
|
|
var onCustomer = onCustomerList[i];
|
|
@@ -1978,7 +2022,6 @@ function selectOnCustomer() {
|
|
|
switch (onCustomer.customerIsSolve){
|
|
|
case 1:
|
|
|
customerIsSolve = "已解决";
|
|
|
-
|
|
|
break;
|
|
|
case 2:
|
|
|
customerIsSolve = "未解决";
|
|
@@ -2004,7 +2047,6 @@ function selectOnCustomer() {
|
|
|
if(typeof(onCustomer.customerWechatName)=="undefined"){
|
|
|
customerWechatName = "";
|
|
|
}
|
|
|
-
|
|
|
var customerName = onCustomer.customerName;
|
|
|
//姓名
|
|
|
if(typeof(onCustomer.customerName)=="undefined"){
|
|
@@ -2019,8 +2061,10 @@ function selectOnCustomer() {
|
|
|
' <td style="text-align: center;">'+onCustomer.customerTel +'</td>' +
|
|
|
' <td style="text-align: center;">'+customerIsSolve +'</td>' +
|
|
|
' <td style="text-align: center;">'+onCustomer.describeTitle +'</td>' +
|
|
|
- ' <td style="text-align: center;">'+onCustomer.describeContent +'</td>' +
|
|
|
- ' <td style="text-align: center;"></td>' +
|
|
|
+ ' <td style="text-align: center;"><span class="txt2" style="display: inline-block;padding: 2px 4px;font-size: 11.844px;" title="'+onCustomer.describeContent +'" >'+onCustomer.describeContent +'</span></td>' +
|
|
|
+ ' <td style="text-align: center;"><a onclick="admin_update_customer('+onCustomer.customerId +')">继续跟进</a>' +
|
|
|
+ '<br><a onclick="markedSecondary('+onCustomer.customerId +','+onCustomer.customerInitialId +',this)">标记为二次售后</a>' +
|
|
|
+ '<a style="display: none;" onclick="cancelMarkedSecondary('+onCustomer.customerId+','+onCustomer.customerInitialId +',this)">取消二次售后标记</a></td>' +
|
|
|
' </tr>' +
|
|
|
'';
|
|
|
}
|