|
|
@@ -4,6 +4,7 @@ namespace bizGhs\order\classes;
|
|
|
|
|
|
use biz\shop\classes\ShopAdminClass;
|
|
|
use biz\shop\classes\ShopClass;
|
|
|
+use biz\shop\classes\ShopExtClass;
|
|
|
use biz\shop\models\Shop;
|
|
|
use bizGhs\custom\models\Custom;
|
|
|
use bizGhs\express\services\DadaExpressServices;
|
|
|
@@ -462,7 +463,7 @@ class OrderClass extends BaseClass
|
|
|
$content .= '实付金额:' . $respond['realPrice'] . '<BR>';
|
|
|
}
|
|
|
if ($debtAmount > 0) {
|
|
|
- $content .= '累计欠款:' . $debtAmount. '<BR>';
|
|
|
+ $content .= '累计欠款:' . $debtAmount . '<BR>';
|
|
|
}
|
|
|
$i = self::getById($orderInfo['id']);
|
|
|
$content .= '--------------------------------<BR>';
|
|
|
@@ -471,11 +472,16 @@ class OrderClass extends BaseClass
|
|
|
$content .= '门店名称:纯彩花艺<BR>';
|
|
|
$content .= '门店地址:' . $respond['address'] . '<BR>';
|
|
|
$content .= "<BR>";
|
|
|
- $content .= "<C>扫码采购</C><BR>";
|
|
|
- $url = Yii::$app->params['ghsDomain'] . '/#/pagesPurchase/ghsProduct';
|
|
|
- $content .= '<QR>' . $url . '</QR>';//把二维码字符串用标签套上即可自动生成二维码
|
|
|
- $p = new printUtil('530501507');
|
|
|
- $p->printMsg($content);
|
|
|
+ //$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)){
|
|
|
+ $p = new printUtil($printSn);
|
|
|
+ $p->printMsg($content);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
//打印数据 shish 20210702
|