liujiankang 7 лет назад
Родитель
Сommit
cb21a55427

+ 19 - 0
watero-rst-core/src/main/java/com.iamberry.rst.core/cm/CustomerInfo.java

@@ -139,6 +139,9 @@ public class CustomerInfo  implements Serializable {
     @DateTimeFormat(pattern="yyyy-MM-dd")
     @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
     private Date endTime;   //结束时间
+    private Integer customerLastId;
+    private Integer customerInitialId;
+
 
     public void setComplaintDetectList(List<ComplaintDetectInfo> complaintDetectList) {
         this.complaintDetectList = complaintDetectList;
@@ -671,4 +674,20 @@ public class CustomerInfo  implements Serializable {
     public void setCustomerSecondaryCustomer(String customerSecondaryCustomer) {
         this.customerSecondaryCustomer = customerSecondaryCustomer;
     }
+
+    public Integer getCustomerLastId() {
+        return customerLastId;
+    }
+
+    public void setCustomerLastId(Integer customerLastId) {
+        this.customerLastId = customerLastId;
+    }
+
+    public Integer getCustomerInitialId() {
+        return customerInitialId;
+    }
+
+    public void setCustomerInitialId(Integer customerInitialId) {
+        this.customerInitialId = customerInitialId;
+    }
 }

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

@@ -162,7 +162,8 @@
                     <input type="text" class="input-text associated-phone" placeholder="用户电话" id="customerTel" name="customerTel" value="">
                 </div>
             </div>
-            <div class="row cl" style="display: none;">
+            <input type="hidden" value="" id="">
+            <div class="row cl" >
                 <div class="formControls col-9 col-sm-9 text-c" id="onCustomerTable">
                     <table class="table table-border table-bg table-bordered">
                         <thead>
@@ -825,6 +826,13 @@
         })
 
     })
+    /**
+     *跳转到编辑页面
+     * @param employee
+     */
+    function admin_update_customer(customerId) {
+        window.location.href= "${path}/admin/customer/to_update_customer?customerId="+customerId;
+    }
 </script>
 
 </body>

+ 4 - 5
watero-rst-web/src/main/webapp/common/js/customer/customer.js

@@ -1938,7 +1938,8 @@ function processIsEmpty(process){
 /*===============================客诉提交  -- end -- =============================== */
 
 
-/*$("#customerWechatName").blur(function(){
+$("#customerWechatName").blur(function(){
+    alert("1");
     selectOnCustomer();
 });
 $("#customerName").blur(function(){
@@ -1946,7 +1947,7 @@ $("#customerName").blur(function(){
 });
 $("#customerTel").blur(function(){
     selectOnCustomer();
-});*/
+});
 /*根据客户信息查询老的客诉---start--*/
 function selectOnCustomer() {
     var customerWechatName = $("#customerWechatName").val();
@@ -1978,7 +1979,6 @@ function selectOnCustomer() {
                        switch (onCustomer.customerIsSolve){
                            case 1:
                                customerIsSolve = "已解决";
-
                                break;
                            case 2:
                                customerIsSolve = "未解决";
@@ -2004,7 +2004,6 @@ function selectOnCustomer() {
                        if(typeof(onCustomer.customerWechatName)=="undefined"){
                            customerWechatName = "";
                        }
-
                        var customerName = onCustomer.customerName;
                        //姓名
                        if(typeof(onCustomer.customerName)=="undefined"){
@@ -2020,7 +2019,7 @@ function selectOnCustomer() {
                            ' <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;"><a onclick="admin_update_customer('+onCustomer.customerId +')">继续跟进</a><br><a>标记为二次售后</a></td>' +
                            ' </tr>' +
                            '';
                    }