From 13b979c314e7af2b0b09e70d7af46d92657650c0 Mon Sep 17 00:00:00 2001 From: dengbw Date: Fri, 15 Oct 2021 11:15:04 +0800 Subject: [PATCH] admin_orders_1015 --- admin/controllers/Common.php | 15 ++++++--------- admin/views/receiver/orders/get.php | 2 +- admin/views/receiver/orders/oinfo.php | 24 ++++++++++++------------ 3 files changed, 19 insertions(+), 22 deletions(-) diff --git a/admin/controllers/Common.php b/admin/controllers/Common.php index 69a7ca83..3fc915c1 100644 --- a/admin/controllers/Common.php +++ b/admin/controllers/Common.php @@ -1454,15 +1454,12 @@ class Common extends CI_Controller $page = $this->input->post('page') ? intval($this->input->post('page')) : 1; $size = $this->input->post('size') ? intval($this->input->post('size')) : 10; $where = "status=1 "; - if ($vin) { - $where .= " and vin='{$vin}'"; - } else { - $brand_id && $where .= " and brand_id=$brand_id"; - $s_id && $where .= " and s_id=$s_id"; - $v_id && $where .= " and v_id=$v_id"; - $cor_id && $where .= " and cor_id=$cor_id"; - $incor_id && $where .= " and incor_id=$incor_id"; - } + $vin && $where .= ' and vin LIKE "%' . trim($vin) . '%"'; + $brand_id && $where .= " and brand_id=$brand_id"; + $s_id && $where .= " and s_id=$s_id"; + $v_id && $where .= " and v_id=$v_id"; + $cor_id && $where .= " and cor_id=$cor_id"; + $incor_id && $where .= " and incor_id=$incor_id"; if ($select_id) { $fhwhere = [ diff --git a/admin/views/receiver/orders/get.php b/admin/views/receiver/orders/get.php index a6165f64..7c804dd7 100644 --- a/admin/views/receiver/orders/get.php +++ b/admin/views/receiver/orders/get.php @@ -357,7 +357,7 @@ that.getCars(1); layer.open({ type: 1, - area: ['50%', '80%'], //宽高 + area: ['60%', '85%'], //宽高 content: $('#car-modal'), title: '选择车辆', shade: false, diff --git a/admin/views/receiver/orders/oinfo.php b/admin/views/receiver/orders/oinfo.php index cda23021..34cbe517 100644 --- a/admin/views/receiver/orders/oinfo.php +++ b/admin/views/receiver/orders/oinfo.php @@ -112,14 +112,14 @@