fix(admin): 修复预订单出库单号搜索功能
- 将出库单号的查询字段从 'oid' 修改为 'id',以确保正确的数据返回 - 优化了搜索条件的判断逻辑,提高搜索准确性
This commit is contained in:
parent
8e13d8f0dd
commit
1ab27fbb97
@ -76,7 +76,7 @@ class BeforehandOrderLists extends BaseAdminDataLists implements ListsSearchInte
|
|||||||
$oid=WarehouseOrder::where('financial_pm',1)->where('code','like','%'.$order_rk)->column('id');
|
$oid=WarehouseOrder::where('financial_pm',1)->where('code','like','%'.$order_rk)->column('id');
|
||||||
$this->searchWhere[] = ['warehousing_id','in',$oid];
|
$this->searchWhere[] = ['warehousing_id','in',$oid];
|
||||||
}elseif ($order_ck!='') {
|
}elseif ($order_ck!='') {
|
||||||
$oid=WarehouseOrder::where('financial_pm',0)->where('code','like','%'.$order_ck)->column('oid');
|
$oid=WarehouseOrder::where('financial_pm',0)->where('code','like','%'.$order_ck)->column('id');
|
||||||
$this->searchWhere[] = ['outbound_id','in',$oid];
|
$this->searchWhere[] = ['outbound_id','in',$oid];
|
||||||
}
|
}
|
||||||
$file=['id', 'order_id', 'order_sn','store_id', 'order_type', 'total_num', 'total_price', 'outbound_id', 'admin_id', 'create_time', 'status', 'mark', 'warehousing_id', 'file'];
|
$file=['id', 'order_id', 'order_sn','store_id', 'order_type', 'total_num', 'total_price', 'outbound_id', 'admin_id', 'create_time', 'status', 'mark', 'warehousing_id', 'file'];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user