unknown 9 ماه پیش
والد
کامیت
01742de008
1فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 3 2
      application/api/controller/PrintingPlate.php

+ 3 - 2
application/api/controller/PrintingPlate.php

@@ -109,14 +109,15 @@ class PrintingPlate extends Api
             }
             $where['a.存货编码'] = ['like', $code . '%'];
         }
-        if (isset($param['scarch']) && !empty($param['scarch'])){
-            $where['b.物料名称'] = ['like', '%' . $param['scarch'] . '%'];
+        if (isset($param['search']) && !empty($param['search'])){
+            $where['b.物料名称'] = ['like', '%' . $param['search'] . '%'];
         }
         //根据物料编码分类查询
         $list = db('产品_印版库')
             ->alias('a')
             ->join('物料_存货编码 b', 'a.存货编码 = b.物料代码')
             ->join('工单_印版领用记录 c', 'a.存货编码 = c.Yb_存货编码 AND a.供方批号 = c.Yb_供方批号', 'left')
+            ->where($where)
             ->group('a.存货编码, a.供方批号')
             ->order('报废日期, a.存货编码')
             ->field('