|
@@ -13,7 +13,7 @@ use think\facade\Validate;
|
|
|
class Track extends Base
|
|
|
{
|
|
|
protected $model=null;
|
|
|
-// protected $novalidate=["*"];
|
|
|
+ protected $novalidate=["*"];
|
|
|
public function __construct(App $app) {
|
|
|
parent::__construct($app);
|
|
|
$this->model=new \app\admin\model\Track();
|
|
@@ -63,14 +63,14 @@ class Track extends Base
|
|
|
$param=$this->request->param(["outChildCode"=>"","order_type"=>"","order_source"=>"","supplierNo"=>"",
|
|
|
"companyNo"=>"","status"=>"","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']];
|
|
|
+ $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=$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()]);
|
|
@@ -81,12 +81,12 @@ class Track extends Base
|
|
|
$param=$this->request->param(['outChildCode'=>'','order_type'=>'','order_source'=>'','supplierNo'=>'',
|
|
|
'companyNo'=>'','orderCode'=>'','page'=>1,'size'=>10],'post','trim');
|
|
|
$where=[];
|
|
|
- $param['outChildCode']==''??$where[]=['outChildCode','like',"%{$param['outChildCode']}%"];
|
|
|
- $param['orderCode']==''??$where[]=['orderCode','like',"%{$param['orderCode']}%"];
|
|
|
- $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['outChildCode']==''?:$where[]=['outChildCode','like',"%{$param['outChildCode']}%"];
|
|
|
+ $param['orderCode']==''?:$where[]=['orderCode','like',"%{$param['orderCode']}%"];
|
|
|
+ $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']];
|
|
|
|
|
|
$list=(new FhdChild())->where($where)->order('id desc')->paginate(['list_rows'=>$param['size'],
|
|
|
'page'=>$param['page']]);
|