<?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'));
|
}
|
}
|