Compare commits

..

No commits in common. "2655d5469a072d621b9c8e1afdd8c0d7aa4b060a" and "9f0e95e475b016de0242addca51a01271c69ccc2" have entirely different histories.

4 changed files with 14 additions and 13 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 176 KiB

View File

@ -11,7 +11,7 @@
<el-table v-loading="listLoading" :data="list" border fit highlight-current-row style="width: 100%"> <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"> <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)"> <el-button v-if="scope.row.status ==0 && scope.row.status == 0" type="primary" size="small" icon="el-icon-check" @click="onPass(scope.row)">
确认 确认

View File

@ -58,14 +58,15 @@
<el-table-column <el-table-column
align="center" align="center"
label="平台商品ID" label="ID"
width="200" width="80"
prop="third_product_id" prop="id"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
align="center" align="center"
label="商品名称" label="商品名称"
width=""
prop="product_name" prop="product_name"
></el-table-column> ></el-table-column>

View File

@ -14,16 +14,16 @@ class OrderBooksController extends base {
* @throws \think\db\exception\DbException * @throws \think\db\exception\DbException
*/ */
public function list(Request $request) { public function list(Request $request) {
$where = []; $query = OrderBooks::where([])->order('id', 'desc');
if($request->get('sn')) { if($username = $request->get('username')) {
$order = Orders::where('sn', $request->get('sn'))->find(); $query->where('username', $username);
if ($order) { }
$where['order_id'] = $order->id; if($status = $request->get('status')) {
} else { $query->where('status', $status);
$where['order_id'] = '-1'; }
} 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)); $list = $query->with(['orderInfo'])->paginate($request->get('limit',10));
foreach ($list as &$val) { foreach ($list as &$val) {