Compare commits
No commits in common. "2655d5469a072d621b9c8e1afdd8c0d7aa4b060a" and "9f0e95e475b016de0242addca51a01271c69ccc2" have entirely different histories.
2655d5469a
...
9f0e95e475
Binary file not shown.
Before Width: | Height: | Size: 176 KiB |
|
@ -11,7 +11,7 @@
|
|||
|
||||
<el-table v-loading="listLoading" :data="list" border fit highlight-current-row style="width: 100%">
|
||||
|
||||
<el-table-column align="center" label="操作">
|
||||
<el-table-column align="center" fixed width="220" label="操作">
|
||||
<template slot-scope="scope">
|
||||
<el-button v-if="scope.row.status ==0 && scope.row.status == 0" type="primary" size="small" icon="el-icon-check" @click="onPass(scope.row)">
|
||||
确认
|
||||
|
|
|
@ -58,14 +58,15 @@
|
|||
|
||||
<el-table-column
|
||||
align="center"
|
||||
label="平台商品ID"
|
||||
width="200"
|
||||
prop="third_product_id"
|
||||
label="ID"
|
||||
width="80"
|
||||
prop="id"
|
||||
></el-table-column>
|
||||
|
||||
<el-table-column
|
||||
align="center"
|
||||
label="商品名称"
|
||||
width=""
|
||||
prop="product_name"
|
||||
></el-table-column>
|
||||
|
||||
|
|
|
@ -14,16 +14,16 @@ class OrderBooksController extends base {
|
|||
* @throws \think\db\exception\DbException
|
||||
*/
|
||||
public function list(Request $request) {
|
||||
$where = [];
|
||||
if($request->get('sn')) {
|
||||
$order = Orders::where('sn', $request->get('sn'))->find();
|
||||
if ($order) {
|
||||
$where['order_id'] = $order->id;
|
||||
} else {
|
||||
$where['order_id'] = '-1';
|
||||
}
|
||||
$query = OrderBooks::where([])->order('id', 'desc');
|
||||
if($username = $request->get('username')) {
|
||||
$query->where('username', $username);
|
||||
}
|
||||
if($status = $request->get('status')) {
|
||||
$query->where('status', $status);
|
||||
}
|
||||
if($is_order = $request->get('sn')) {
|
||||
$query->where('is_order', $is_order);
|
||||
}
|
||||
$query = OrderBooks::where($where)->order('id', 'desc');
|
||||
|
||||
$list = $query->with(['orderInfo'])->paginate($request->get('limit',10));
|
||||
foreach ($list as &$val) {
|
||||
|
|
Loading…
Reference in New Issue