|
|
@@ -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();
|