shish 4 jaren geleden
bovenliggende
commit
cb14f66fbe

+ 5 - 5
app-ghs/controllers/PurchaseOrderController.php

@@ -40,10 +40,10 @@ class PurchaseOrderController extends BaseController
             }
             $ptItemId = $item->itemId ?? '';
             $p->times = $num;
-            $content = '<TEXT x="50" y="20" font="12" w="2" h="2" r="0">' . $name . '</TEXT>';
-            $content .= '<BC128 x="50" y="90" h="80" s="1" r="0" n="2" w="2">' . $ptItemId . '</BC128>';
+            $content = '<TEXT x="360" y="30" font="12" w="2" h="2" r="90">' . $name . '</TEXT>';
+            $content .= '<BC128 x="260" y="30" h="80" s="1" r="90" n="5" w="12">' . $ptItemId . '</BC128>';
             if ($key % 2 == 1) {
-                $content .= '<TEXT x="265" y="110" font="12" w="3" h="3" r="0">.</TEXT>';
+                $content .= '<TEXT x="90" y="30" font="12" w="2" h="2" r="90">.</TEXT>';
             }
             $p->printLabelMsg($content);
         }
@@ -74,8 +74,8 @@ class PurchaseOrderController extends BaseController
 
         $ptItemId = $item->itemId ?? '';
         $p->times = $num;
-        $content = '<TEXT x="50" y="20" font="12" w="2" h="2" r="0">' . $name . '</TEXT>';
-        $content .= '<BC128 x="50" y="90" h="80" s="1" r="0" n="2" w="2">' . $ptItemId . '</BC128>';
+        $content = '<TEXT x="360" y="30" font="12" w="2" h="2" r="90">' . $name . '</TEXT>';
+        $content .= '<BC128 x="260" y="30" h="80" s="1" r="90" n="5" w="12">' . $ptItemId . '</BC128>';
         $p->printLabelMsg($content);
         util::complete();
     }

+ 6 - 6
app-hd/controllers/PlantCgController.php

@@ -39,12 +39,12 @@ class PlantCgController extends BaseController
             }
             $goodsSn = $item->goodsSn ?? '';
             $price = floatval($item->price);
-            $content = '<TEXT x="40" y="20" font="12" w="2" h="2" r="0">' . $name . '</TEXT>';
-            $content .= '<BC128 x="40" y="90" h="80" s="1" r="0" n="2" w="2">' . $goodsSn . '</BC128>';
+            $content = '<TEXT x="360" y="30" font="12" w="2" h="2" r="90">' . $name . '</TEXT>';
+            $content .= '<BC128 x="260" y="30" h="80" s="1" r="90" n="5" w="12">' . $goodsSn . '</BC128>';
             if ($key % 2 == 1) {
                 $content .= '<TEXT x="265" y="120" font="12" w="3" h="3" r="0">.</TEXT>';
             }
-            $content .= '<TEXT x="240" y="115" font="12" w="1" h="1" r="0">' . $price . '元</TEXT>';
+            $content .= '<TEXT x="90" y="30" font="12" w="2" h="2" r="90">' . $price . '元</TEXT>';
             $p->times = $num;
             $p->printLabelMsg($content);
         }
@@ -76,9 +76,9 @@ class PlantCgController extends BaseController
 
         $goodsSn = $item->goodsSn ?? '';
         $price = floatval($item->price) ?? 0;
-        $content = '<TEXT x="40" y="20" font="12" w="2" h="2" r="0">' . $name . '</TEXT>';
-        $content .= '<BC128 x="40" y="90" h="80" s="1" r="0" n="2" w="2">' . $goodsSn . '</BC128>';
-        $content .= '<TEXT x="240" y="115" font="12" w="1" h="1" r="0">' . $price . '元</TEXT>';
+        $content = '<TEXT x="360" y="30" font="12" w="2" h="2" r="90">' . $name . '</TEXT>';
+        $content .= '<BC128 x="260" y="30" h="80" s="1" r="90" n="5" w="12">' . $goodsSn . '</BC128>';
+        $content .= '<TEXT x="90" y="30" font="12" w="2" h="2" r="90">' . $price . '元</TEXT>';
         $p->times = $num;
         $p->printLabelMsg($content);
         util::complete();

+ 2 - 2
app-hd/controllers/ProductController.php

@@ -42,8 +42,8 @@ class ProductController extends BaseController
         $p = new printUtil($printLabelSn);
 
         $p->times = $num;
-        $content = '<TEXT x="50" y="20" font="12" w="2" h="2" r="0">' . $name . '</TEXT>';
-        $content .= '<BC128 x="50" y="90" h="80" s="1" r="0" n="2" w="2">' . $ptItemId . '</BC128>';
+        $content = '<TEXT x="360" y="30" font="12" w="2" h="2" r="90">' . $name . '</TEXT>';
+        $content .= '<BC128 x="260" y="30" h="80" s="1" r="90" n="5" w="12">' . $ptItemId . '</BC128>';
         $p->printLabelMsg($content);
         util::complete();
     }

+ 2 - 2
biz-hd/work/classes/WorkClass.php

@@ -52,8 +52,8 @@ class WorkClass extends BaseClass
                         $goodsSn = $item->goodsSn ?? '';
                         $num = $item->num ?? 1;
                         $name = $item->name ?? '';
-                        $content = '<TEXT x="40" y="20" font="12" w="2" h="2" r="0">' . $name . '</TEXT>';
-                        $content .= '<BC128 x="40" y="90" h="80" s="1" r="0" n="2" w="2">' . $goodsSn . '</BC128>';
+                        $content = '<TEXT x="360" y="30" font="12" w="2" h="2" r="90">' . $name . '</TEXT>';
+                        $content .= '<BC128 x="260" y="30" h="80" s="1" r="90" n="5" w="12">' . $goodsSn . '</BC128>';
                         $p->times = $num;
                         $p->printLabelMsg($content);
                     }