Pārlūkot izejas kodu

修改客户信息

liujiankang 7 gadi atpakaļ
vecāks
revīzija
2137750378

+ 8 - 2
watero-rst-web/src/main/webapp/WEB-INF/views/cm/customer/add_customer.ftl

@@ -54,6 +54,12 @@
 
         /*用于邮寄信息的css*/
         .youxi_xinxi{width: 980px}
+        .txt2{
+            width:80px;
+            overflow: hidden;
+            white-space: nowrap;
+            text-overflow: ellipsis;
+        }
     </style>
     <title>添加客诉 - 客诉管理 - RST</title>
 </head>
@@ -164,8 +170,8 @@
             </div>
             <input type="hidden" value="" id="customerLastId" name="customerLastId">
             <input type="hidden" value="" id="customerInitialId" name="customerInitialId">
-            <div class="row cl" >
-                <div class="formControls col-9 col-sm-9 text-c" id="onCustomerTable">
+            <div class="row cl">
+                <div class="formControls col-9 col-sm-9 text-c" style="display:none;" id="onCustomerTable">
                     <table class="table table-border table-bg table-bordered">
                         <thead>
                         <tr class="text-c">

+ 3 - 1
watero-rst-web/src/main/webapp/common/js/customer/customer.js

@@ -1955,6 +1955,7 @@ function selectOnCustomer() {
     if((customerWechatName == null || customerWechatName == "") &&
         (customerName == null || customerName == "") &&
         (customerTel == null || customerTel == "")){
+        $("#onCustomerTable").hide();
         return;
     }
     $.ajax({
@@ -1968,6 +1969,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];
@@ -2017,7 +2019,7 @@ 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;"><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>' +