diff --git a/app/admin/lists/user_product_storage_log/UserProductStorageLogLists.php b/app/admin/lists/user_product_storage_log/UserProductStorageLogLists.php index 398313058..42e9b5e73 100644 --- a/app/admin/lists/user_product_storage_log/UserProductStorageLogLists.php +++ b/app/admin/lists/user_product_storage_log/UserProductStorageLogLists.php @@ -46,6 +46,15 @@ class UserProductStorageLogLists extends BaseAdminDataLists implements ListsSear */ public function lists(): array { + $store_id = $this->request->get('store_id',''); + $order_sn = $this->request->get('order_sn',''); + $order = StoreOrder::where('store_id',$store_id) + ->where('order_id','like','%'.$order_sn.'%')->column('id'); + if($order){ + $where[]=['oid','in',$order]; + $this->searchWhere[]=$where; + } + return UserProductStorageLog::where($this->searchWhere) ->field(['id', 'oid', 'uid', 'product_id', 'store_id', 'financial_pm', 'nums','times','update_time']) ->limit($this->limitOffset, $this->limitLength) @@ -63,6 +72,10 @@ class UserProductStorageLogLists extends BaseAdminDataLists implements ListsSear $order = StoreOrder::where('id',$item['oid'])->withTrashed()->field('order_id,verify_code')->find(); $item['verify_code'] = $order['verify_code']??''; $item['order_id'] = $order['order_id']??''; + $item['verify_img'] = ''; + if($order['verify_img']){ + $item['verify_img'] = 'https://'.$this->request->host(true).$order['verify_img']; + } if($item['financial_pm']==1){ $item['financial_pm']='增加'; }else{