You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
125 lines
4.8 KiB
125 lines
4.8 KiB
<?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('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' => '关联订单',
|
|
]);
|
|
Route::get('level/list', 'Order/getLevelList')->name('OrderLevelList')->option([
|
|
'_alias' => '订单等级配置列表',
|
|
]);
|
|
Route::get('level/detail/:id', 'Order/getLevelDetail')->name('OrderLevelDetail')->option([
|
|
'_alias' => '订单等级配置详情',
|
|
]);
|
|
Route::get('level/delete/:id', 'Order/getLevelDelete')->name('OrderLevelDelete')->option([
|
|
'_alias' => '订单等级配置删除',
|
|
]);
|
|
Route::post('level/add', 'Order/getLevelAdd')->name('OrderLevelAdd')->option([
|
|
'_alias' => '订单等级配置添加',
|
|
]);
|
|
Route::post('level/edit', 'Order/getLevelEdit')->name('OrderLevelEdit')->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);
|
|
|