shish 4 лет назад
Родитель
Сommit
0fc26dc961
2 измененных файлов с 8 добавлено и 1 удалено
  1. 1 1
      app-ghs/controllers/ConsoleController.php
  2. 7 0
      biz-ghs/order/classes/OrderClass.php

+ 1 - 1
app-ghs/controllers/ConsoleController.php

@@ -53,8 +53,8 @@ class ConsoleController extends BaseController
             ["name" => "商城", "img" => "ghs/home/shop.png", "url" => "/admin/home/mall"],
             ["name" => "改价", "img" => "ghs/home/gj.png", "url" => "/admin/changePrice/list"],
             ["name" => "花材", "img" => "ghs/home/hcgl.png", "url" => "/admin/item/list"],
-            ["name" => "采购单", "img" => "ghs/home/icon_caigou.png", "url" => "/pagesPurchase/order"],
             ["name" => "供应商", "img" => "ghs/home/icon_ghs.png", "url" => "/pagesPurchase/supplier"],
+            ["name" => "采购单", "img" => "ghs/home/icon_caigou.png", "url" => "/pagesPurchase/order"],
             ["name" => "报损单", "img" => "ghs/home/kcyjs.png", "url" => "/admin/breakage/list"],
             ["name" => "预订单", "img" => "ghs/home/kcyjs.png", "url" => "/admin/order/statBook"],
             ["name" => "调拨出库", "img" => "ghs/home/dbck.png", "url" => "/pagesStorehouse/allot/allotEx"],

+ 7 - 0
biz-ghs/order/classes/OrderClass.php

@@ -914,6 +914,10 @@ class OrderClass extends BaseClass
     {
         $showItem = OrderClass::getShowItem(true, $orderInfo);
 
+        $mainId = $orderInfo['mainId'] ?? 0;
+        $staff = ShopAdminClass::getByCondition(['mainId' => $mainId, 'founder' => 2], true);
+        $mobile = $staff->mobile ?? '';
+
         $customId = $orderInfo['customId'] ?? 0;
         $ghsId = $orderInfo['ghsId'] ?? 0;
         $c = CustomClass::getById($customId);
@@ -1019,6 +1023,9 @@ class OrderClass extends BaseClass
         $content .= '订单日期:' . $getInfo['addTime'] . '<BR>';
         $content .= '订单编号:' . $respond['orderSn'] . '<BR>';
         $content .= '门店名称:' . $currentName . '<BR>';
+        if (!empty($mobile)) {
+            $content .= '联系电话:' . $mobile . '<BR>';
+        }
         $content .= "<BR>";
         if ($debtAmount > 0) {
             $content .= "<C>扫码结清欠款</C>";