浏览代码

修改客户信息

liujiankang 7 年之前
父节点
当前提交
14a10b19f4

+ 4 - 3
watero-rst-web/src/main/java/com/iamberry/rst/controllers/cm/AdminCustomerController.java

@@ -1740,14 +1740,14 @@ public class AdminCustomerController {
         ResultMsg msg = new ResultMsg();
         CustomerInfo customerInfo = new CustomerInfo();
         //获取登录员工id
-        Integer adminId = AdminUtils.getLoginAdminId();
-        customerInfo.setAdminId(adminId);
+        Admin admin = AdminUtils.getLoginAdmin();
+        customerInfo.setAdminId(admin.getAdminId());
         customerInfo.setCustomerIsSolve(2);
         //未解决客诉数量
         Integer notSolvedCustomer = customerService.selectNotSolvedCustomer(customerInfo);
         //需要向工厂确认所有已签收的产品数量
         CustomerCommon customerCommon = new CustomerCommon();
-        customerCommon.setAdminId(adminId);
+        customerCommon.setAdminId(admin.getAdminId());
         customerCommon.setRelationBackStatus(4);
         Integer amountReceivedCustomer = customerCommonService.listCustomerCommonByStatus(customerCommon);
         //需要填写Efast订单号的客诉数量
@@ -1763,6 +1763,7 @@ public class AdminCustomerController {
         numberMap.put("amountReceivedCustomer",amountReceivedCustomer);
         numberMap.put("noEntryCustomer",noEntryCustomer);
         numberMap.put("notSendCustomer",notSendCustomer);
+        numberMap.put("adminDept",admin.getAdminDept());
         msg.setResultCode(ResultInfo.SUCCESSCODE);
         msg.setStatus(true);
         msg.setData(numberMap);

+ 15 - 9
watero-rst-web/src/main/webapp/WEB-INF/views/home/pc_index.ftl

@@ -124,21 +124,27 @@
                 $("#amountReceivedCustomer").html(data.data.amountReceivedCustomer);
                 $("#noEntryCustomer").html(data.data.noEntryCustomer);
                 $("#notSendCustomer").html(data.data.notSendCustomer);
+                if(data.data.adminDept == 3){
+                    toDoShow();
+                }
             }
         },
         "error":function(data){
             alert("操作失败,请联系管理员!");
         }
     });
-    //页面层
-    layer.open({
-        title: '待办事项',
-        type: 1,
-        area: ['300px', '180px'], //宽高
-        content: $("#selectTodo").html(),
-        offset: 'rb',
-        shade: 0
-    });
+    function toDoShow(){
+        //页面层
+        layer.open({
+            title: '待办事项',
+            type: 1,
+            area: ['300px', '180px'], //宽高
+            content: $("#selectTodo").html(),
+            offset: 'rb',
+            shade: 0
+        });
+    }
+
 
     function toOrserList(url){
         //去除其它选项选中样式