瀏覽代碼

客户简称

cqpCow 1 年之前
父節點
當前提交
65a9429a98
共有 1 個文件被更改,包括 7 次插入7 次删除
  1. 7 7
      app/Service/U8ServerService.php

+ 7 - 7
app/Service/U8ServerService.php

@@ -570,15 +570,15 @@ class U8ServerService extends Service
             $sub_map[$value['sales_order_id']][] = $value;
         }
         foreach ($main as $key => $value){
-            $plat_type = $code_map[$value['plat_type']] ?? "";
-            if($plat_type == "营销部"){
-                $ccusabbname = "营销部客户";
-            }else{
-                $ccusabbname = $customer_map[$value['customer_id']] ?? "";
-            }
+//            $plat_type = $code_map[$value['plat_type']] ?? "";
+//            if($plat_type == "营销部"){
+//                $ccusabbname = "营销部客户";
+//            }else{
+//                $ccusabbname = $customer_map[$value['customer_id']] ?? "";
+//            }
             $main[$key]['cbustype'] = "普通销售"; //业务类型(本身就是中文)
             $main[$key]['cstname'] = SalesOrder::$model_type_title[$value['model_type']] ?? ""; //销售类型
-            $main[$key]['ccusabbname'] = $ccusabbname;//客户简称
+            $main[$key]['ccusabbname'] = $value['customer_short_name'];//客户简称
 //            $main[$key]['cdepname'] = $depart[$value['top_depart_id']] ?? "";//部门名称
 //            $main[$key]['cpersoncode'] = $emp[$value['crt_id']] ?? "";//业务员
             $main[$key]['jobnumber'] = $emp[$value['crt_id']] ?? "";