edit-admin-order_list_filter

This commit is contained in:
lccsw
2022-03-31 14:04:55 +08:00
parent e39a810888
commit be66e2c68d
3 changed files with 8 additions and 6 deletions
@@ -42,6 +42,7 @@ class Orders extends HD_Controller
public function lists()
{
$old_oid = Orders_v2_entity::V2_START_ID;
$params = $this->input->get();
$statusAry = $this->receiver_order_status_model->statusAry();
$status_arr = array();
@@ -52,7 +53,8 @@ class Orders extends HD_Controller
continue;
}
$cate = $where = array();
$where = ["$t1.status<>" => -1];
$where["$t1.status<>"] = -1;
$where["$t1.id>="] = $old_oid;
if(is_product()){
$where["{$t1}.brand_id<>3"] = null;//狸车品牌不显示
$where["{$t1}.biz_id<>1"] = null;//biz_id=1不显示
@@ -820,9 +822,4 @@ class Orders extends HD_Controller
}
}
public function test(){
$o_id = 10062;
$res = $this->orders_v2_entity->create_pdf($o_id);
print_r($res);
}
}
+3
View File
@@ -195,6 +195,9 @@ class Ordersv2List
if($params['status_pid']==3){
$where["{$this->t1}.id in (select o_id from lc_app_liche_orders where status=1 group by o_id)"] = null;
}
if(strlen($params['status_pid'])){
$where["{$this->t1}.id>="] = Orders_v2_entity::V2_START_ID;
}
if(strlen($params['status_pid']) && $params['status']){
$where["{$this->t2}.pid_status"] = $params['status_pid'];
$up_key = $params['status']+1;
+2
View File
@@ -51,6 +51,8 @@
<div class="coms-table-wrap mt10">
<form class="form-search coms-table-hd clearfix no-border" onsubmit="return false"
action="/receiver/orderv2/orders">
<input name="status_pid" type='hidden' value="<?=$params['status_pid']?>">
<input name="status" type='hidden' value="<?=$params['status']?>">
<div class="am-form am-form-horizontal">
<div class="am-form-group fl">
<label class="am-para-label w100">客户搜索:</label>