shish 2 жил өмнө
parent
commit
c452c25b51

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

@@ -510,6 +510,13 @@ class PurchaseOrderController extends BaseController
         if (is_numeric($location)) {
             $where['location'] = $location;
         }
+        $name = $get['name'] ?? '';
+        if (!empty($name)) {
+            $re = strstr($name, 'PH');
+            if (!empty($re)) {
+                $where['orderSn'] = $name;
+            }
+        }
 
         //采购限制访问,有多处要同步修改,关键词cg_limit_access
         if (getenv('YII_ENV') == 'production') {