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.
crmeb_php/route/admin/order.php

126 lines
4.8 KiB

1 year ago
<?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' => '关联订单',
]);
12 months ago
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' => '订单等级配置编辑',
]);
1 year ago
})->prefix('admin.order.')->option([
'_path' => '/order/list',
'_auth' => true,
12 months ago
'_append' => [
1 year ago
[
12 months ago
'_name' => 'systemStoreExcelLst',
'_path' => '/order/list',
1 year ago
'_alias' => '导出列表',
12 months ago
'_auth' => true,
1 year ago
],
[
12 months ago
'_name' => 'systemStoreExcelDownload',
'_path' => '/order/list',
1 year ago
'_alias' => '导出列表',
12 months ago
'_auth' => true,
1 year ago
],
]
]);
Route::group('order', function () {
Route::get('take_title', 'Order/takeTitle')->name('systemOrderTakeStat')->option([
'_alias' => '核销',
12 months ago
]);
1 year ago
Route::get('takelst', 'Order/getTakeList')->name('systemTakeOrderLst')->option([
'_alias' => '核销订单',
12 months ago
]);
1 year ago
Route::get('takechart', 'Order/takeChart')->name('systemTakeOrderTitle')->option([
'_alias' => '头部统计',
12 months ago
]);
1 year ago
})->prefix('admin.order.')->option([
'_path' => '/order/cancellation',
'_auth' => true,
]);
Route::group('order', function () {
Route::get('refund/lst', 'RefundOrder/getAllList')->name('systemRefundOrderLst')->option([
'_alias' => '列表',
12 months ago
]);
1 year ago
Route::get('refund/excel', 'RefundOrder/Excel')->name('systemRefundOrderExcel')->option([
'_alias' => '导出',
12 months ago
]);
1 year ago
})->prefix('admin.order.')->option([
'_path' => '/order/refund',
'_auth' => true,
12 months ago
'_append' => [
1 year ago
[
12 months ago
'_name' => 'systemStoreExcelLst',
'_path' => '/order/refund',
1 year ago
'_alias' => '导出列表',
12 months ago
'_auth' => true,
1 year ago
],
[
12 months ago
'_name' => 'systemStoreExcelDownload',
'_path' => '/order/refund',
1 year ago
'_alias' => '导出下载',
12 months ago
'_auth' => true,
1 year ago
],
]
]);
})->middleware(AllowOriginMiddleware::class)
->middleware(AdminTokenMiddleware::class, true)
->middleware(AdminAuthMiddleware::class)
->middleware(LogMiddleware::class);