65 lines
2.8 KiB
PHP
65 lines
2.8 KiB
PHP
<?php
|
||
|
||
namespace app\store\controller\finance;
|
||
|
||
use app\admin\lists\store_finance_flow\StoreFinanceFlowDayLists;
|
||
use app\admin\lists\store_finance_flow\StoreFinanceFlowLists;
|
||
use app\admin\lists\store_finance_flow\StoreFinanceFlowMonthLists;
|
||
use app\admin\lists\store_finance_flow\StoreFinanceFlowWeekLists;
|
||
use app\common\controller\Definitions;
|
||
use app\common\lists\StoreBillLists;
|
||
use app\store\controller\BaseAdminController;
|
||
|
||
// #[ApiDoc\title('账单记录')]
|
||
class StoreBillController extends BaseAdminController
|
||
{
|
||
|
||
// #[
|
||
// ApiDoc\Title('列表'),
|
||
// ApiDoc\url('/store/finance/storeBill/lists'),
|
||
// ApiDoc\Method('GET'),
|
||
// ApiDoc\NotHeaders(),
|
||
// ApiDoc\Author('中国队长'),
|
||
// ApiDoc\Query(name: 'type', type: 'int', require: false, desc: '类型:1日账单,2周账单,3月账单'),
|
||
// ApiDoc\Query(name: 'start_time', type: 'string', require: false, desc: '开始时间'),
|
||
// ApiDoc\Query(name: 'end_time', type: 'string', require: false, desc: '结束时间'),
|
||
// ApiDoc\Query(name: 'export', type: 'int', require: false, desc: '是否导出:2是'),
|
||
// ApiDoc\Header(ref: [Definitions::class, "token"]),
|
||
// ApiDoc\Query(ref: [Definitions::class, "page"]),
|
||
// ApiDoc\ResponseSuccess("data", type: "array"),
|
||
// ]
|
||
public function lists()
|
||
{
|
||
$type = $this->request->get('type');
|
||
if($type == 1){
|
||
return $this->dataLists(new StoreFinanceFlowDayLists());
|
||
}else if($type == 2){
|
||
return $this->dataLists(new StoreFinanceFlowWeekLists());
|
||
}else{
|
||
return $this->dataLists(new StoreFinanceFlowMonthLists());
|
||
}
|
||
// return $this->dataLists(new StoreBillLists());
|
||
}
|
||
|
||
// #[
|
||
// ApiDoc\Title('详情'),
|
||
// ApiDoc\url('/store/finance/storeBill/detail'),
|
||
// ApiDoc\Method('GET'),
|
||
// ApiDoc\NotHeaders(),
|
||
// ApiDoc\Author('中国队长'),
|
||
// ApiDoc\Param(name: 'id', type: 'int', require: true, desc: 'id'),
|
||
// ApiDoc\Query(name: 'date_type', type: 'int', require: false, desc: '日期类型:1日账单,2周账单,3月账单'),
|
||
// ApiDoc\Query(name: 'date', type: 'string', require: false, desc: '日期,日账单:2021-01-01,周账单:2024-W23,月账单:2021-01'),
|
||
// ApiDoc\Query(name: 'staff_id', type: 'int', require: false, desc: '店员id'),
|
||
// ApiDoc\Query(name: 'keyword', type: 'string', require: false, desc: '流水号/用户昵称'),
|
||
// ApiDoc\Header(ref: [Definitions::class, "token"]),
|
||
// ApiDoc\Query(ref: [Definitions::class, "page"]),
|
||
// ApiDoc\ResponseSuccess("data", type: "array"),
|
||
// ]
|
||
public function detail()
|
||
{
|
||
return $this->dataLists(new StoreFinanceFlowLists());
|
||
}
|
||
|
||
}
|