feat(admin): 采购产品报价单列表增加订单编号模糊搜索功能
- 在 PurchaseProductOfferLists 类中添加订单编号模糊搜索逻辑 - 通过获取请求参数 order_sn,查询匹配的订单 ID 列表 - 将匹配的订单 ID 添加到搜索条件中,实现模糊搜索功能
This commit is contained in:
parent
e10e8ffe95
commit
597554b854
@ -59,6 +59,12 @@ class PurchaseProductOfferLists extends BaseAdminDataLists implements ListsSearc
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
$job_ids=$this->adminInfo['job_ids']??[];
|
$job_ids=$this->adminInfo['job_ids']??[];
|
||||||
|
if($this->request->get('order_sn')){
|
||||||
|
$ids=BeforehandOrder::where('order_id','like','%'.$this->request->get('order_sn'))->column('id');
|
||||||
|
if($ids){
|
||||||
|
$this->searchWhere[]=['order_id','in',$ids];
|
||||||
|
}
|
||||||
|
}
|
||||||
return PurchaseProductOffer::where($this->searchWhere)
|
return PurchaseProductOffer::where($this->searchWhere)
|
||||||
->limit($this->limitOffset, $this->limitLength)
|
->limit($this->limitOffset, $this->limitLength)
|
||||||
->order(['id' => 'desc'])
|
->order(['id' => 'desc'])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user