quanwei
18 hours ago c441dea81bd86bdfb12dff35821fed51f4cc91c2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
 
namespace app\operations\controller\store;
 
use app\operations\controller\Controller;
use app\operations\model\supplier\Supplier as SupplierModel;
use app\operations\model\store\Store as StoreModel;
use app\operations\model\store\Coupon as CouponModel;
 
/**
 * 订单核销控制器
 */
class Coupon extends Controller
{
    /**
     * 订单核销记录列表
     */
    public function index($store_id = 0, $search = '')
    {
        $data = $this->postData();
        // 核销记录列表
 
        $model = new CouponModel;
        $list = $model->getList($store_id, $search, $data);
        // 商户列表
        $supplier_list = (new SupplierModel)->getAll();
        // 门店列表
        $store_list = (new StoreModel)->getAllList();
        return $this->renderSuccess('', compact('list','supplier_list','store_list'));
    }
}