|
|
@@ -790,7 +790,7 @@ class OrderClass extends BaseClass
|
|
|
}
|
|
|
|
|
|
//云打印 ssh 20210709
|
|
|
- public static function onlinePrint($order, $must = false, $port = 'front', $params = [])
|
|
|
+ public static function onlinePrint($order, $must = false, $port = 'front')
|
|
|
{
|
|
|
if (empty($order)) {
|
|
|
return false;
|
|
|
@@ -809,6 +809,13 @@ class OrderClass extends BaseClass
|
|
|
}
|
|
|
|
|
|
$shopId = $order->shopId ?? 0;
|
|
|
+ $shop = ShopClass::getById($shopId, true);
|
|
|
+ $sjId = $shop->sjId ?? 0;
|
|
|
+ $sj = SjClass::getById($sjId, true);
|
|
|
+ $sjName = $sj->name ?? '';
|
|
|
+ $shopName = $shop->shopName ?? '';
|
|
|
+ $currentName = $shopName == '首店' ? $sjName : $sjName . ' ' . $shopName;
|
|
|
+
|
|
|
$ext = ShopExtClass::getByCondition(['shopId' => $shopId]);
|
|
|
$printSn = $ext['printSn'] ?? '';
|
|
|
if ($port == 'make') {
|
|
|
@@ -891,9 +898,10 @@ class OrderClass extends BaseClass
|
|
|
$content .= '<B>' . $currentReachDate . ' ' . $readPeriod . '前</B><BR><BR>';
|
|
|
}
|
|
|
}
|
|
|
- $fastOrder = $params['fastOrder'] ?? 0;
|
|
|
+ $defaultCustomId = $shop->defaultCustomId ?? 0;
|
|
|
+ $fastOrder = $defaultCustomId == $customId ? 1 : 0;
|
|
|
//快捷开单不需要显示这些东西
|
|
|
- if($fastOrder == 0){
|
|
|
+ if ($fastOrder == 0) {
|
|
|
if (!empty($order->receiveUserName)) {
|
|
|
$content .= '收花人:<BR>';
|
|
|
$content .= '<B>' . $order->receiveUserName . '</B><BR>';
|
|
|
@@ -992,13 +1000,6 @@ class OrderClass extends BaseClass
|
|
|
$content .= '<B>待付尾款:' . floatval($order->remainDebtPrice) . '</B><BR>';
|
|
|
}
|
|
|
|
|
|
- $shop = ShopClass::getById($shopId, true);
|
|
|
- $sjId = $shop->sjId ?? 0;
|
|
|
- $sj = SjClass::getById($sjId, true);
|
|
|
- $sjName = $sj->name ?? '';
|
|
|
- $shopName = $shop->shopName ?? '';
|
|
|
- $currentName = $shopName == '首店' ? $sjName : $sjName . ' ' . $shopName;
|
|
|
-
|
|
|
$content .= '--------------------------------<BR>';
|
|
|
$content .= '订单日期:' . $order->addTime . '<BR>';
|
|
|
$content .= '订单编号:' . $respond['orderSn'] . '<BR>';
|