diff --git a/app/admin/lists/purchase_product_offer/PurchaseProductOfferLists.php b/app/admin/lists/purchase_product_offer/PurchaseProductOfferLists.php index 1844286e2..5d72a652f 100644 --- a/app/admin/lists/purchase_product_offer/PurchaseProductOfferLists.php +++ b/app/admin/lists/purchase_product_offer/PurchaseProductOfferLists.php @@ -59,6 +59,12 @@ class PurchaseProductOfferLists extends BaseAdminDataLists implements ListsSearc } } $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) ->limit($this->limitOffset, $this->limitLength) ->order(['id' => 'desc'])