Quellcode durchsuchen

订单检索优化

dev
nizongfeng vor 3 Jahren
Ursprung
Commit
a77d1acf89
2 geänderte Dateien mit 5 neuen und 5 gelöschten Zeilen
  1. +1
    -1
      application/admin/service/OrderMainService.php
  2. +4
    -4
      application/admin/view/order_main/index.html

+ 1
- 1
application/admin/service/OrderMainService.php Datei anzeigen

@@ -290,7 +290,7 @@ class OrderMainService
$where['commissioner_id'] = $param['commissioner_id'];
}
if (!empty($param['user_name'])) {
$where['user_name'] = ["like","'%".$param['user_name']."%'"];
$where['user_name'] = ["like","%".$param['user_name']."%"];
}
if (!empty($param['user_phone'])) {
$where['user_phone'] = $param['user_phone'];


+ 4
- 4
application/admin/view/order_main/index.html Datei anzeigen

@@ -10,7 +10,7 @@
<div>
<div class="header-search" style="width: 100%;margin-bottom: 10px">
<span>订单ID:</span>
<el-input v-model="search.order_id" style="width: 150px;" placeholder="请输入内容"></el-input>
<el-input v-model="search.order_id" style="width: 150px;" placeholder="请输入内容" clearable></el-input>
<span>订单状态:</span>
<el-select v-model="search.order_status" style="width: 150px;" placeholder="请选择" clearable>
<el-option
@@ -21,7 +21,7 @@
</el-option>
</el-select>
<span>收款单ID:</span>
<el-input v-model="search.receipt_order_id" style="width: 150px;" placeholder="请输入内容"></el-input>
<el-input v-model="search.receipt_order_id" style="width: 150px;" placeholder="请输入内容" clearable></el-input>
<span>收款单状态</span>
<el-select v-model="search.receipt_order_status" style="width: 150px;" placeholder="请选择" clearable>
<el-option
@@ -36,7 +36,7 @@
<span>用户名</span>
<el-input v-model="search.user_name" style="width: 150px;" placeholder="请输入内容" clearable></el-input>
<span>渠道订单号:</span>
<el-input v-model="search.channel_order_no" style="width: 150px;" placeholder="请输入内容"></el-input>
<el-input v-model="search.channel_order_no" style="width: 150px;" placeholder="请输入内容" clearable></el-input>
<span>渠道:</span>
<el-select v-model="search.channel_id" style="width: 150px;" placeholder="请选择" clearable>
<el-option
@@ -106,7 +106,7 @@
<el-table-column prop="user_name" label="用户" min-width="80" >
<template slot-scope="scope">
<div><i class="el-icon-user-solid" v-html="scope.row.user_name"></i></div>
<div><i class="el-icon-phone" v-html="scope.row.user_name"></i></div>
<div><i class="el-icon-phone" v-html="scope.row.user_phone"></i></div>
</template>
</el-table-column>
<el-table-column prop="total_amount" label="金额" min-width="80" >


Laden…
Abbrechen
Speichern