|
@@ -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']] ?? "";
|