소스 검색

扫码查货位号

shish 2 년 전
부모
커밋
7e72c8b612
1개의 변경된 파일9개의 추가작업 그리고 6개의 파일을 삭제
  1. 9 6
      biz-ghs/order/classes/PurchaseOrderClass.php

+ 9 - 6
biz-ghs/order/classes/PurchaseOrderClass.php

@@ -437,12 +437,15 @@ class PurchaseOrderClass extends BaseClass
             $content .= '录入人员:' . $orderInfo['shopAdminName'] . '<BR>';
         }
         $content .= "<BR>";
-        $content .= "<CB>扫码查货位号</CB>";
-        $content .= "<BR>";
-        $host = Yii::$app->params['ghsHost'];
-        $orderSn = $orderInfo->orderSn ?? '';
-        $salt = $orderInfo->salt ?? '';
-        $content .= "<QR>" . $host . "/#/pagesPurchase/info?orderSn=" . $orderSn . "&salt=" . $salt . "</QR>";
+        $bookSn = $shop->bookSn??0;
+        if(!empty($bookSn)){
+            $content .= "<CB>扫码查货位号</CB>";
+            $content .= "<BR>";
+            $host = Yii::$app->params['ghsHost'];
+            $orderSn = $orderInfo->orderSn ?? '';
+            $salt = $orderInfo->salt ?? '';
+            $content .= "<QR>" . $host . "/#/pagesPurchase/info?orderSn=" . $orderSn . "&salt=" . $salt . "</QR>";
+        }
         $content .= "<BR>";
 
         $ext = ShopExtClass::getByCondition(['shopId' => $shopId]);