|
|
@@ -433,19 +433,23 @@ 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>美团编号 ' . $order->thirdSn . '</B><BR>';
|
|
|
+ } else {
|
|
|
+ $content = '<B>' . $respond['sendNum'] . ' ' . $fromTypeName . '</B><BR>';
|
|
|
+ }
|
|
|
$content .= '--------------------------------<BR>';
|
|
|
|
|
|
$readPeriod = $order->reachPeriod ?? 0;
|