|
|
@@ -6,6 +6,7 @@ use biz\shop\classes\ShopAdminClass;
|
|
|
use biz\shop\classes\ShopClass;
|
|
|
use biz\shop\classes\ShopExtClass;
|
|
|
use biz\shop\models\Shop;
|
|
|
+use biz\sj\classes\SjClass;
|
|
|
use bizGhs\custom\models\Custom;
|
|
|
use bizGhs\express\services\DadaExpressServices;
|
|
|
use bizGhs\order\models\Order;
|
|
|
@@ -465,20 +466,34 @@ class OrderClass extends BaseClass
|
|
|
if ($debtAmount > 0) {
|
|
|
$content .= '累计欠款:' . $debtAmount . '<BR>';
|
|
|
}
|
|
|
- $i = self::getById($orderInfo['id']);
|
|
|
+
|
|
|
+ $shopId = $orderInfo['shopId'] ?? 0;
|
|
|
+ $shop = ShopClass::getById($shopId, true);
|
|
|
+ $sjId = $shop->sjId ?? 0;
|
|
|
+ $sj = SjClass::getById($sjId, true);
|
|
|
+ $sjName = $sj->name ?? '';
|
|
|
+ $currentName = $sjName;
|
|
|
+ if (isset($shop->default) == false || $shop->default != 1) {
|
|
|
+ $shopName = $shop->shopName ?? '';
|
|
|
+ if (!empty($shopName)) {
|
|
|
+ $currentName = $currentName . ' ' . $shopName;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ $getInfo = self::getById($orderInfo['id']);
|
|
|
$content .= '--------------------------------<BR>';
|
|
|
- $content .= '订单日期:' . $i['addTime'] . '<BR>';
|
|
|
+ $content .= '订单日期:' . $getInfo['addTime'] . '<BR>';
|
|
|
$content .= '订单编号:' . $respond['orderSn'] . '<BR>';
|
|
|
- $content .= '门店名称:纯彩花艺<BR>';
|
|
|
+ $content .= '门店名称:' . $currentName . '<BR>';
|
|
|
$content .= '门店地址:' . $respond['address'] . '<BR>';
|
|
|
$content .= "<BR>";
|
|
|
//$content .= "<C>扫码采购</C><BR>";
|
|
|
//$url = Yii::$app->params['ghsDomain'] . '/#/pagesPurchase/ghsProduct';
|
|
|
//$content .= '<QR>' . $url . '</QR>';//把二维码字符串用标签套上即可自动生成二维码
|
|
|
- $shopId = $orderInfo['shopId'] ?? 0;
|
|
|
+
|
|
|
$ext = ShopExtClass::getByCondition(['shopId' => $shopId]);
|
|
|
$printSn = $ext['printSn'] ?? '';
|
|
|
- if(!empty($printSn)){
|
|
|
+ if (!empty($printSn)) {
|
|
|
$p = new printUtil($printSn);
|
|
|
$p->printMsg($content);
|
|
|
}
|