|
@@ -18,7 +18,8 @@ class Good extends Base
|
|
|
*/
|
|
|
public function list(){
|
|
|
$param=$this->request->param(["spuCode"=>"","status"=>"","good_name"=>"",'companyNo'=>'','supplierNo'=>'',
|
|
|
- 'creater'=>'','isZx'=>'',"cat_diff"=>"","tax_diff"=>"","is_diff"=>"","start"=>"",'end'=>'','page'=>'1',
|
|
|
+ 'creater'=>'','isZx'=>'','isChange'=>'',"cat_diff"=>"","tax_diff"=>"","is_diff"=>"","start"=>"",'end'=>'',
|
|
|
+ 'page'=>'1',
|
|
|
'size'=>'15'],"post","trim");
|
|
|
$where=[];
|
|
|
$param["spuCode"]==""?: $where[]=['spuCode','like',"%{$param['spuCode']}%"];
|
|
@@ -28,6 +29,7 @@ class Good extends Base
|
|
|
$param["creater"]==""?: $where[]=['creater','like',"%{$param['creater']}%"];
|
|
|
$param["status"]===""?: $where[]=['status','=',$param['status']];
|
|
|
$param["isZx"]==""?: $where[]=['isZx','=',$param['isZx']];
|
|
|
+ $param["isChange"]===""?: $where[]=['isChange','=',$param['isChange']];
|
|
|
$param["is_diff"]==""?: $where[]=['cat_diff|tax_diff','=',2];
|
|
|
$param["cat_diff"]==""?: $where[]=['cat_diff','=',$param['cat_diff']];
|
|
|
$param["tax_diff"]==""?: $where[]=['tax_diff','=',$param['tax_diff']];
|
|
@@ -93,7 +95,10 @@ class Good extends Base
|
|
|
$temp['cat_diff']= $temp['inv_cat_code']==$good->cgd_inv_cat_code?1:2;
|
|
|
}
|
|
|
$check = $this->checkChange($good,$temp);
|
|
|
- if(!empty($check))GoodChange::create($check);
|
|
|
+ if(!empty($check)){
|
|
|
+ GoodChange::create($check);
|
|
|
+ $temp['isChange']=1;
|
|
|
+ }
|
|
|
$examinfo=$good->exam_info;
|
|
|
$examinfo[]=['apply_name'=>$this->uname,'exam_status'=>$item['status'],"updatetime"=>date("Y-m-d H:i:s")];
|
|
|
$temp['exam_info'] = json_encode($examinfo,JSON_UNESCAPED_UNICODE);
|