wugg 3 years ago
parent
commit
85cfe0ea9f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/admin/controller/Purch.php

+ 2 - 1
app/admin/controller/Purch.php

@@ -110,7 +110,8 @@ class Purch extends \app\BaseController
                 $value['wsm_supplier'] =isset($wsmcode['name']) ? $wsmcode['name']:"";
                 $value['wsm_supplierNo'] =isset($wsmcode['code']) ? $wsmcode['code']:"";
             }
-            $value['child']=[];
+            $inorder= Db::name("purchease_in")->where(['cgdNo'=>$value['cgdNo'],"is_del"=>0])->select();
+            $value['child']=empty($inorder)? [] : $inorder;
             $data[]=$value;
         }
         return app_show(0,"获取成功",["list"=>$data,"count"=>$count]);