shish 4 лет назад
Родитель
Сommit
2bd9b16ec6
1 измененных файлов с 6 добавлено и 3 удалено
  1. 6 3
      biz-hd/order/classes/OrderClass.php

+ 6 - 3
biz-hd/order/classes/OrderClass.php

@@ -433,19 +433,22 @@ class OrderClass extends BaseClass
         $customId = $order->customId ?? 0;
         $custom = CustomClass::getById($customId);
         $debtAmount = $custom['debtAmount'] ?? 0;
+        $respond = self::getPrintData($order, $debtAmount);
 
         $fromType = $order->fromType ?? dict::getDict('fromType', 'shop');
         $fromTypeMap = dict::getDict('fromTypeMap');
         $fromTypeName = $fromTypeMap[$fromType] ?? '门店';
-        //如果是微信下的单则显示哪个客服和客户名称
+        //客服下的单则显示客服号和客户名称
         if ($fromType == dict::getDict('fromType', 'friend')) {
             $staffName = $order->shopAdminName ?? '';
             $bookName = $order->bookName ?? '';
             $fromTypeName = $staffName . ' ' . $bookName;
         }
-
-        $respond = self::getPrintData($order, $debtAmount);
         $content = '<B>' . $respond['sendNum'] . ' ' . $fromTypeName . '</B><BR>';
+        if ($fromType == dict::getDict('fromType', 'mt')) {
+            $content = '<B>' . $respond['sendNum'] . ' ' . $fromTypeName . ' ' . '美团编号:' . $order->thirdSn . '</B><BR>';
+        }
+
         $content .= '--------------------------------<BR>';
 
         $readPeriod = $order->reachPeriod ?? 0;