|
@@ -71,11 +71,28 @@ class Track extends Base
|
|
|
$param['supplierNo']==''??$where[]=["supplierNo","=",$param['supplierNo']];
|
|
|
$param['companyNo']==''??$where[]=["companyNo","=",$param['companyNo']];
|
|
|
$param['status']==''??$where[]=["status","=",$param['status']];
|
|
|
- $list=$this->model->with(['fhdChild'])->order("id desc")->paginate(["list_rows"=>$param['size'],
|
|
|
+ $list=$this->model->with(['fhdChild'])->where($where)->order("id desc")->paginate(["list_rows"=>$param['size'],
|
|
|
"page"=>$param['page']]);
|
|
|
$this->success("获取成功",["list"=>$list->items(),"count"=>$list->total()]);
|
|
|
}
|
|
|
|
|
|
+ //***列表
|
|
|
+ public function fhdList(){
|
|
|
+ $param=$this->request->param(['outChildCode'=>'','order_type'=>'','order_source'=>'','supplierNo'=>'',
|
|
|
+ 'companyNo'=>'','orderCode'=>'','cgdNo'=>'','page'=>1,'size'=>10],'post','trim');
|
|
|
+ $where=[];
|
|
|
+ $param['outChildCode']==''??$where[]=['outChildCode','like',"%{$param['outChildCode']}%"];
|
|
|
+ $param['orderCode']==''??$where[]=['orderCode','like',"%{$param['orderCode']}%"];
|
|
|
+ $param['cgdNo']==''??$where[]=['cgdNo','like',"%{$param['cgdNo']}%"];
|
|
|
+ $param['order_type']==''??$where[]=['order_type','=',$param['order_type']];
|
|
|
+ $param['order_source']==''??$where[]=['order_source','=',$param['order_source']];
|
|
|
+ $param['supplierNo']==''??$where[]=['supplierNo','=',$param['supplierNo']];
|
|
|
+ $param['companyNo']==''??$where[]=['companyNo','=',$param['companyNo']];
|
|
|
+ $param['status']==''??$where[]=['status','=',$param['status']];
|
|
|
+ $list=(new FhdChild())->where($where)->order('id desc')->paginate(['list_rows'=>$param['size'],
|
|
|
+ 'page'=>$param['page']]);
|
|
|
+ $this->success('获取成功',['list'=>$list->items(),'count'=>$list->total()]);
|
|
|
+ }
|
|
|
//***列表
|
|
|
public function info(){
|
|
|
$param=$this->request->param(["id"=>""],'post','trim');
|
|
@@ -259,7 +276,5 @@ class Track extends Base
|
|
|
}
|
|
|
$this->success('更新成功');
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
|