shish 3 anni fa
parent
commit
bd669b5640

+ 3 - 0
app-ghs/controllers/PurchaseOrderController.php

@@ -51,6 +51,9 @@ class PurchaseOrderController extends BaseController
             $bigUnit = $item->bigUnit ?? '';
             $ratio = $item->ratio ?? 0;
             $unit = $ratio . $smallUnit . '/' . $bigUnit;
+            if(isset($item->ratioType) && $item->ratioType == 1){
+                $unit = '若干' . $smallUnit . '/' . $bigUnit;
+            }
 
             if (stringUtil::getWordNum($name) > 7) {
                 $content = '<TEXT x="30" y="30" font="12" w="1" h="1" r="0">' . $name . '</TEXT>';

+ 3 - 0
app-hd/controllers/ProductController.php

@@ -42,6 +42,9 @@ class ProductController extends BaseController
         $p = new printUtil($printLabelSn);
 
         $unit = $info->ratio . $info->smallUnit . '/' . $info->bigUnit;
+        if (isset($info->ratioType) && $info->ratioType == 1) {
+            $unit = '若干' . $info->smallUnit . '/' . $info->bigUnit;
+        }
 
         $p->times = $num;
         $content = '<TEXT x="360" y="30" font="12" w="2" h="2" r="90">' . $name . '</TEXT>';