|
|
@@ -28,11 +28,10 @@ class PurchaseOrderController extends BaseController
|
|
|
$ext = $this->shopExt;
|
|
|
$printLabelSn = $ext->printLabelSn ?? '';
|
|
|
if (empty($printLabelSn)) {
|
|
|
- //util::fail('请设置标签打印机');
|
|
|
+ util::fail('请设置标签打印机');
|
|
|
}
|
|
|
$p = new printUtil($printLabelSn);
|
|
|
|
|
|
-
|
|
|
foreach ($itemList as $key => $item) {
|
|
|
$name = $item->name ?? '';
|
|
|
$num = !empty($item->itemNum) ? floatval($item->itemNum) : 0;
|
|
|
@@ -53,9 +52,7 @@ class PurchaseOrderController extends BaseController
|
|
|
$content .= '<TEXT x="415" y="20" font="12" w="2" h="2" r="90">.</TEXT>';
|
|
|
}
|
|
|
$content .= '<TEXT x="60" y="30" font="12" w="2" h="2" r="90">' . $unit . '</TEXT>';
|
|
|
- //$p->printLabelMsg($content);
|
|
|
- noticeUtil::push($unit, '15280215347');
|
|
|
-
|
|
|
+ $p->printLabelMsg($content);
|
|
|
}
|
|
|
util::complete();
|
|
|
}
|