shish 3 жил өмнө
parent
commit
bcf8c981f6

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

@@ -110,6 +110,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;
         if (stringUtil::getWordNum($name) > 7) {
             $content = '<TEXT x="30" y="30" font="12" w="1" h="1" r="0">' . $name . '</TEXT>';