shish 3 سال پیش
والد
کامیت
31007fc1b6
1فایلهای تغییر یافته به همراه8 افزوده شده و 13 حذف شده
  1. 8 13
      app-ghs/controllers/PurchaseOrderController.php

+ 8 - 13
app-ghs/controllers/PurchaseOrderController.php

@@ -52,25 +52,20 @@ class PurchaseOrderController extends BaseController
             $unit = $ratio . $smallUnit . '/' . $bigUnit;
 
             $content = '<TEXT x="360" y="30" font="12" w="2" h="2" r="90">' . $name . '</TEXT>';
-            $content .= '<BC128 x="260" y="30" h="70" s="1" r="90" n="4" w="11">' . $ptItemId . '</BC128>';
             if ($key % 2 == 1) {
                 $content .= '<TEXT x="415" y="20" font="12" w="2" h="2" r="90">.</TEXT>';
             }
-            if (in_array($mainId, [52, 1459])) {
-                $content .= '<TEXT x="80" y="30" font="12" w="2" h="2" r="90">惠雅鲜花</TEXT>';
-            } else {
-                $content .= '<TEXT x="80" y="30" font="12" w="2" h="2" r="90">' . $unit . '</TEXT>';
-            }
-
             if ($type == 0) {
-
+                $content .= '<BC128 x="30" y="100" h="70" s="1" r="0" n="4" w="11">' . $ptItemId . '</BC128>';
+                if (in_array($mainId, [52, 1459])) {
+                    $content .= '<TEXT x="30" y="250" font="12" w="2" h="2" r="0">惠雅鲜花</TEXT>';
+                } else {
+                    $content .= '<TEXT x="30" y="250" font="12" w="2" h="2" r="0">' . $unit . '</TEXT>';
+                }
             } else {
-                $content .= '<QR x="30"  y="390"  e="L"  w="5">' . Yii::$app->params['mallHost'] . "/item/show-info?id=" . $productId . '</QR>';
-                $content .= '<TEXT x="220" y="400" font="12" w="1" h="1" r="90">扫码看价格</TEXT>';
+                $content .= '<QR x="35"  y="100"  e="L"  w="5">' . Yii::$app->params['mallHost'] . "/item/show-info?id=" . $productId . '</QR>';
+                $content .= '<TEXT x="40" y="270" font="12" w="1" h="1" r="0">扫码看价格</TEXT>';
             }
-
-
-
             $p->printLabelMsg($content);
         }
         util::complete();