zx/route/admin/order.php

140 lines
5.4 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2022 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------
use think\facade\Route;
use app\common\middleware\AdminAuthMiddleware;
use app\common\middleware\AdminTokenMiddleware;
use app\common\middleware\AllowOriginMiddleware;
use app\common\middleware\LogMiddleware;
Route::group(function () {
Route::group('spread/order', function () {
Route::get('lst', 'Order/getAllList')->name('systemSpreadOrderLst')->option([
'_alias' => '列表',
]);
Route::get('title', 'Order/title')->name('systemSpreadOrderStat')->option([
'_alias' => '金额统计',
]);
Route::get('express/:id', 'Order/express')->name('systemSpreadOrderExpress')->option([
'_alias' => '快递查询',
]);
Route::get('chart', 'Order/spreadChart')->name('systemSpreadOrderTitle')->option([
'_alias' => '头部统计',
]);
Route::get('detail/:id', 'Order/detail')->name('systemSpreadOrderDetail')->option([
'_alias' => '详情',
]);
Route::get('excel', 'Order/Excel')->name('systemSpreadOrderExcel')->option([
'_alias' => '导出',
]);
Route::get('status/:id', 'Order/status')->name('systemSpreadOrderStatus')->option([
'_alias' => '记录',
]);
Route::get('children/:id', 'Order/childrenList')->name('systemSpreadOrderChildrenList')->option([
'_alias' => '关联订单',
]);
})->prefix('admin.order.')->option([
'_path' => '/promoter/orderList',
'_auth' => true,
])->append(['is_spread' => 1]);
Route::group('order', function () {
Route::get('lst', 'Order/getAllList')->name('systemOrderLst')->option([
'_alias' => '列表',
]);
Route::get('title', 'Order/title')->name('systemOrderStat')->option([
'_alias' => '金额统计',
]);
Route::get('express/:id', 'Order/express')->name('systemOrderExpress')->option([
'_alias' => '快递查询',
]);
Route::get('chart', 'Order/chart')->name('systemOrderTitle')->option([
'_alias' => '头部统计',
]);
Route::get('detail/:id', 'Order/detail')->name('systemOrderDetail')->option([
'_alias' => '详情',
]);
Route::get('excel', 'Order/Excel')->name('systemOrderExcel')->option([
'_alias' => '导出',
]);
Route::get('status/:id', 'Order/status')->name('systemOrderStatus')->option([
'_alias' => '记录',
]);
Route::get('children/:id', 'Order/childrenList')->name('systemOrderChildrenList')->option([
'_alias' => '关联订单',
]);
})->prefix('admin.order.')->option([
'_path' => '/order/list',
'_auth' => true,
'_append'=> [
[
'_name' =>'systemStoreExcelLst',
'_path' =>'/order/list',
'_alias' => '导出列表',
'_auth' => true,
],
[
'_name' =>'systemStoreExcelDownload',
'_path' =>'/order/list',
'_alias' => '导出列表',
'_auth' => true,
],
]
]);
Route::group('order', function () {
Route::get('take_title', 'Order/takeTitle')->name('systemOrderTakeStat')->option([
'_alias' => '核销',
]);
Route::get('takelst', 'Order/getTakeList')->name('systemTakeOrderLst')->option([
'_alias' => '核销订单',
]);
Route::get('takechart', 'Order/takeChart')->name('systemTakeOrderTitle')->option([
'_alias' => '头部统计',
]);
})->prefix('admin.order.')->option([
'_path' => '/order/cancellation',
'_auth' => true,
]);
Route::group('order', function () {
Route::get('refund/lst', 'RefundOrder/getAllList')->name('systemRefundOrderLst')->option([
'_alias' => '列表',
]);
Route::get('refund/excel', 'RefundOrder/Excel')->name('systemRefundOrderExcel')->option([
'_alias' => '导出',
]);
})->prefix('admin.order.')->option([
'_path' => '/order/refund',
'_auth' => true,
'_append'=> [
[
'_name' =>'systemStoreExcelLst',
'_path' =>'/order/refund',
'_alias' => '导出列表',
'_auth' => true,
],
[
'_name' =>'systemStoreExcelDownload',
'_path' =>'/order/refund',
'_alias' => '导出下载',
'_auth' => true,
],
]
]);
})->middleware(AllowOriginMiddleware::class)
->middleware(AdminTokenMiddleware::class, true)
->middleware(AdminAuthMiddleware::class)
->middleware(LogMiddleware::class);