Răsfoiți Sursa

显示客户手机号

shish 2 ani în urmă
părinte
comite
ad6c41389f
1 a modificat fișierele cu 7 adăugiri și 1 ștergeri
  1. 7 1
      app-ghs/controllers/OrderController.php

+ 7 - 1
app-ghs/controllers/OrderController.php

@@ -1244,6 +1244,12 @@ class OrderController extends BaseController
             util::fail('没有找到客户');
         }
         $customName = $custom->name ?? '';
+        $customMobile = $custom->customMobile ?? '';
+        $fullCustom = $customName . ' ' . $customMobile;
+        if ($this->mainId == 8164) {
+            //花大苪不需要显示客户手机号
+            $fullCustom = '';
+        }
         $seatSn = $custom->seatSn ?? '';
         $sendTimeWant = $info['sendTimeWant'] ?? '';
         $shortSendTimeWant = !empty($sendTimeWant) ? substr($sendTimeWant, 5, 5) : '';
@@ -1253,7 +1259,7 @@ class OrderController extends BaseController
                 $currentName = $val['name'] ?? '';
                 $num = $val['xhNum'] ?? 0;
                 $table[] = [
-                    'name' => $currentName,
+                    'name' => $fullCustom,
                     'num' => $num,
                     'confirmNum' => '',
                     'remark' => '',