master
wangxinglong 2022-06-06 14:51:01 +08:00
parent 07f3c1afa7
commit 61810a38f0
3 changed files with 11 additions and 3 deletions

View File

@ -38,7 +38,7 @@ class Order extends Base
try {
$data = OrderRepository::getInstance()->createOrder($accountId, $params);
OrderRepository::getInstance()->updateSpuStock([]);
//OrderRepository::getInstance()->updateSpuStock([]);
return $this->json(0, 'success', $data);
} catch (RepositoryException $e) {
return $this->json(4000, $e->getMessage());

View File

@ -42,12 +42,16 @@ class Order extends Base
$page = $this->request->param('page/d', 1);
$size = $this->request->param('size/d', 20);
$searchParams = $this->request->param('searchParams/a', []);
if(!empty(input("get.status/s"))){
$searchParams["status"]= input("get.status/s");
}
$res = $this->getOrderList($searchParams, $page, $size);
return $this->json(0, 'success', $res);
}
if(!empty(input("get.status/s"))){
$this->data['dataUrl'] = "/manager/mall/order/index?status=" . input("get.status/s");
}
$this->data['statusList'] = OrderModel::statusTextList();
return $this->view();

View File

@ -9,6 +9,8 @@
<div style="margin: 10px 10px 10px 10px">
<form class="layui-form layui-form-pane" action="">
<div class="layui-form-item">
{if empty(input("get.status/s"))}
<div class="layui-inline">
<label class="layui-form-label">订单状态</label>
<div class="layui-input-block">
@ -20,6 +22,8 @@
</select>
</div>
</div>
{/if}
<!-- <div class="layui-inline">-->
<!-- <label class="layui-form-label">虚拟商品</label>-->