| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- <?php
- namespace admin\controllers;
- use biz\order\services\OrderService;
- use Yii;
- use yii\data\Pagination;
- use yii\helpers\Json;
- use common\models\xhOrder;
- use common\models\xhOrderGoods;
- use common\components\util;
- use common\components\stringUtil;
- use common\components\weixinUtil;
- use common\services\xhOrderService;
- use common\services\xhGoodsService;
- use common\services\xhTMessageService;
- use common\services\xhUserService;
- use common\services\xhUserAlipayService;
- use common\components\page;
- use common\components\configDict;
- class OrderController extends BaseController
- {
-
- public $enableCsrfValidation = false;
-
- public function actionList()
- {
- $get = Yii::$app->request->get();
-
- //组建where
- $status = isset($get['status']) ? $get['status'] : 0;
- $search = isset($get['search']) ? $get['search'] : '';
- $where = ['merchantId' => $this->merchantId, 'status' => $status];
- if (!empty($search)) {
- if (stringUtil::isMobieNumber($search)) {
- $where['receiveMobile'] = $search;
- } else {
- $where['id'] = $search;
- }
- }
-
- $list = OrderService::getOrderList($where);
- util::success($list);
- }
-
- //发货管理 shish 2019.11.30
- public function actionSend()
- {
- return [
- 'orderId' => '201911232278449',
- 'price' => '390',
- 'progress' => [
- [
- 'name' => '下单',
- 'reach' => 1,
- 'time' => '11.20 12:30',
- 'show' => ['hint' => '已下单']
- ],
- [
- 'name' => '打单',
- 'reach' => 1,
- 'time' => '11.20 12:30',
- 'show' => ['option' => 1, 'info' => ['收花人信息待写上'], 'hint' => '已确认'],
-
- ],
- [
- 'name' => '发货',
- 'reach' => 1,
- 'time' => '11.20 12:30',
- 'show' => ['option' => 0, 'info' => ['配送信息待写上'], 'hint' => '已确认'],
- ],
- [
- 'name' => '送达',
- 'reach' => 1,
- 'time' => '11.20 12:30',
- 'show' => ['hint' => '已送达']
- ],
- [
- 'name' => '完成',
- 'reach' => 1,
- 'time' => '11.20 12:30',
- 'show' => ['hint' => '订单已完成']
- ],
- ]
- ];
- }
-
- }
|