|
@@ -2,7 +2,7 @@
|
|
|
|
|
|
use Webman\Route;
|
|
use Webman\Route;
|
|
|
|
|
|
-Route::options('[{path:.+}]', function (){
|
|
|
|
|
|
+Route::options('[{path:.+}]', function () {
|
|
return response('');
|
|
return response('');
|
|
});
|
|
});
|
|
|
|
|
|
@@ -55,7 +55,7 @@ Route::group('/admin', function () {
|
|
Route::get('/selectAll', [\app\admin\controller\goods\EntityGoodsController::class, 'selectAll']);
|
|
Route::get('/selectAll', [\app\admin\controller\goods\EntityGoodsController::class, 'selectAll']);
|
|
Route::get('/selectAllByGoodsName', [\app\admin\controller\goods\EntityGoodsController::class, 'selectAllByGoodsName']);
|
|
Route::get('/selectAllByGoodsName', [\app\admin\controller\goods\EntityGoodsController::class, 'selectAllByGoodsName']);
|
|
Route::get('/selectAllByCategoryForRuleAddComponent', [\app\admin\controller\goods\EntityGoodsController::class, 'selectAllByCategoryForRuleAddComponent']);
|
|
Route::get('/selectAllByCategoryForRuleAddComponent', [\app\admin\controller\goods\EntityGoodsController::class, 'selectAllByCategoryForRuleAddComponent']);
|
|
- Route::get('/getPremises', [\app\admin\controller\goods\EntityGoodsController::class, 'selectPremisesByGoodsId']);
|
|
|
|
|
|
+ Route::get('/getPremises', [\app\admin\controller\goods\EntityGoodsController::class, 'selectPremisesByGoodsId']);
|
|
Route::get('/list', [\app\admin\controller\goods\EntityGoodsController::class, 'select']);
|
|
Route::get('/list', [\app\admin\controller\goods\EntityGoodsController::class, 'select']);
|
|
Route::get('/info', [\app\admin\controller\goods\EntityGoodsController::class, 'info']);
|
|
Route::get('/info', [\app\admin\controller\goods\EntityGoodsController::class, 'info']);
|
|
Route::post('/add', [\app\admin\controller\goods\EntityGoodsController::class, 'insert']);
|
|
Route::post('/add', [\app\admin\controller\goods\EntityGoodsController::class, 'insert']);
|
|
@@ -108,23 +108,23 @@ Route::group('/admin', function () {
|
|
]);
|
|
]);
|
|
});
|
|
});
|
|
/* 财务管理 */
|
|
/* 财务管理 */
|
|
- Route::group('/finance',function (){
|
|
|
|
- Route::group('/writeOff',function (){
|
|
|
|
- Route::get('/list',[\app\admin\controller\finance\WriteOffController::class,'list']);
|
|
|
|
- Route::get('/statistics',[\app\admin\controller\finance\WriteOffController::class,'statistics']);
|
|
|
|
|
|
+ Route::group('/finance', function () {
|
|
|
|
+ Route::group('/writeOff', function () {
|
|
|
|
+ Route::get('/list', [\app\admin\controller\finance\WriteOffController::class, 'list']);
|
|
|
|
+ Route::get('/statistics', [\app\admin\controller\finance\WriteOffController::class, 'statistics']);
|
|
});
|
|
});
|
|
- Route::group('/goodsSales',function (){
|
|
|
|
- Route::get('/statistics',[\app\admin\controller\finance\GoodsSalesController::class,'statistics']);
|
|
|
|
- Route::get('/list',[\app\admin\controller\finance\GoodsSalesController::class,'list']);
|
|
|
|
|
|
+ Route::group('/goodsSales', function () {
|
|
|
|
+ Route::get('/statistics', [\app\admin\controller\finance\GoodsSalesController::class, 'statistics']);
|
|
|
|
+ Route::get('/list', [\app\admin\controller\finance\GoodsSalesController::class, 'list']);
|
|
});
|
|
});
|
|
- Route::group('/memberAccount',function (){
|
|
|
|
- Route::get('/list',[\app\admin\controller\finance\MemberAccountController::class,'list']);
|
|
|
|
|
|
+ Route::group('/memberAccount', function () {
|
|
|
|
+ Route::get('/list', [\app\admin\controller\finance\MemberAccountController::class, 'list']);
|
|
});
|
|
});
|
|
- Route::group('/premisesMember',function (){
|
|
|
|
- Route::get('/list',[\app\admin\controller\finance\PremisesMemberController::class,'list']);
|
|
|
|
|
|
+ Route::group('/premisesMember', function () {
|
|
|
|
+ Route::get('/list', [\app\admin\controller\finance\PremisesMemberController::class, 'list']);
|
|
});
|
|
});
|
|
- Route::group('/incomeAndExpend',function (){
|
|
|
|
- Route::get('/list',[\app\admin\controller\finance\IncomeAndExpendController::class,'list']);
|
|
|
|
|
|
+ Route::group('/incomeAndExpend', function () {
|
|
|
|
+ Route::get('/list', [\app\admin\controller\finance\IncomeAndExpendController::class, 'list']);
|
|
});
|
|
});
|
|
});
|
|
});
|
|
/* 系统管理中心 */
|
|
/* 系统管理中心 */
|
|
@@ -138,7 +138,7 @@ Route::group('/admin', function () {
|
|
})->middleware([
|
|
})->middleware([
|
|
\app\middleware\AdminAuthCheck::class
|
|
\app\middleware\AdminAuthCheck::class
|
|
]);
|
|
]);
|
|
-
|
|
|
|
|
|
+
|
|
/* 绿通医院 */
|
|
/* 绿通医院 */
|
|
Route::group('/greenChannel', function () {
|
|
Route::group('/greenChannel', function () {
|
|
Route::get('/list', [\app\admin\controller\sys_manage\GreenChannelController::class, 'select']);
|
|
Route::get('/list', [\app\admin\controller\sys_manage\GreenChannelController::class, 'select']);
|
|
@@ -183,7 +183,7 @@ Route::group('/admin', function () {
|
|
Route::delete('/delete', [\app\admin\controller\sys_manage\RestaurantController::class, 'delete']);
|
|
Route::delete('/delete', [\app\admin\controller\sys_manage\RestaurantController::class, 'delete']);
|
|
Route::get('/getPrinterByPremiseName', [\app\admin\controller\sys_manage\RestaurantController::class, 'getPrinterByPremiseName']);
|
|
Route::get('/getPrinterByPremiseName', [\app\admin\controller\sys_manage\RestaurantController::class, 'getPrinterByPremiseName']);
|
|
Route::get('/getByUser', [\app\admin\controller\sys_manage\RestaurantController::class, 'getByUser']);
|
|
Route::get('/getByUser', [\app\admin\controller\sys_manage\RestaurantController::class, 'getByUser']);
|
|
-
|
|
|
|
|
|
+
|
|
})->middleware([
|
|
})->middleware([
|
|
\app\middleware\AdminAuthCheck::class
|
|
\app\middleware\AdminAuthCheck::class
|
|
]);
|
|
]);
|
|
@@ -212,9 +212,9 @@ Route::group('/admin', function () {
|
|
Route::post('/updateStatus/{id:\w+}', [\app\admin\controller\sys_manage\UserController::class, 'updateStatus']);
|
|
Route::post('/updateStatus/{id:\w+}', [\app\admin\controller\sys_manage\UserController::class, 'updateStatus']);
|
|
Route::post('/updatePassword/{id:\w+}', [\app\admin\controller\sys_manage\UserController::class, 'updatePassword']);
|
|
Route::post('/updatePassword/{id:\w+}', [\app\admin\controller\sys_manage\UserController::class, 'updatePassword']);
|
|
Route::delete('/delete', [\app\admin\controller\sys_manage\UserController::class, 'delUser']);
|
|
Route::delete('/delete', [\app\admin\controller\sys_manage\UserController::class, 'delUser']);
|
|
- Route::post('/correlationMember',[\app\admin\controller\sys_manage\UserController::class,'correlationMember']);
|
|
|
|
- Route::get('/selectDoctorList',[\app\admin\controller\sys_manage\UserController::class,'selectDoctorList']);
|
|
|
|
- Route::get('/selectSalesmanList',[\app\admin\controller\sys_manage\UserController::class,'selectSalesmanList']);
|
|
|
|
|
|
+ Route::post('/correlationMember', [\app\admin\controller\sys_manage\UserController::class, 'correlationMember']);
|
|
|
|
+ Route::get('/selectDoctorList', [\app\admin\controller\sys_manage\UserController::class, 'selectDoctorList']);
|
|
|
|
+ Route::get('/selectSalesmanList', [\app\admin\controller\sys_manage\UserController::class, 'selectSalesmanList']);
|
|
})->middleware([
|
|
})->middleware([
|
|
\app\middleware\AdminAuthCheck::class
|
|
\app\middleware\AdminAuthCheck::class
|
|
]);
|
|
]);
|
|
@@ -610,7 +610,7 @@ Route::group('/admin', function () {
|
|
/* 营销团队管理 */
|
|
/* 营销团队管理 */
|
|
Route::group('/market', function () {
|
|
Route::group('/market', function () {
|
|
/* 团队管理 */
|
|
/* 团队管理 */
|
|
- Route::group('/team', function (){
|
|
|
|
|
|
+ Route::group('/team', function () {
|
|
Route::get('/list', [\app\admin\controller\consultant\TeamController::class, 'select']);
|
|
Route::get('/list', [\app\admin\controller\consultant\TeamController::class, 'select']);
|
|
Route::post('/add', [\app\admin\controller\consultant\TeamController::class, 'addDept']);
|
|
Route::post('/add', [\app\admin\controller\consultant\TeamController::class, 'addDept']);
|
|
Route::post('/update', [\app\admin\controller\consultant\TeamController::class, 'updateDept']);
|
|
Route::post('/update', [\app\admin\controller\consultant\TeamController::class, 'updateDept']);
|
|
@@ -619,7 +619,7 @@ Route::group('/admin', function () {
|
|
Route::get('/check', [\app\admin\controller\consultant\TeamController::class, 'checkDept']);
|
|
Route::get('/check', [\app\admin\controller\consultant\TeamController::class, 'checkDept']);
|
|
});
|
|
});
|
|
/* 员工管理 */
|
|
/* 员工管理 */
|
|
- Route::group('/consultant', function (){
|
|
|
|
|
|
+ Route::group('/consultant', function () {
|
|
Route::get('/list', [\app\admin\controller\consultant\IndexController::class, 'select']);
|
|
Route::get('/list', [\app\admin\controller\consultant\IndexController::class, 'select']);
|
|
Route::post('/add', [\app\admin\controller\consultant\IndexController::class, 'addConsultant']);
|
|
Route::post('/add', [\app\admin\controller\consultant\IndexController::class, 'addConsultant']);
|
|
Route::post('/update', [\app\admin\controller\consultant\IndexController::class, 'updateConsultant']);
|
|
Route::post('/update', [\app\admin\controller\consultant\IndexController::class, 'updateConsultant']);
|
|
@@ -627,7 +627,7 @@ Route::group('/admin', function () {
|
|
Route::get('/user', [\app\admin\controller\consultant\IndexController::class, 'getUserList']);
|
|
Route::get('/user', [\app\admin\controller\consultant\IndexController::class, 'getUserList']);
|
|
});
|
|
});
|
|
/* 客户管理 */
|
|
/* 客户管理 */
|
|
- Route::group('/custom', function (){
|
|
|
|
|
|
+ Route::group('/custom', function () {
|
|
Route::get('/config', [\app\admin\controller\consultant\CustomController::class, 'getOptionConfig']);
|
|
Route::get('/config', [\app\admin\controller\consultant\CustomController::class, 'getOptionConfig']);
|
|
Route::post('/add', [\app\admin\controller\consultant\CustomController::class, 'addCustom']);
|
|
Route::post('/add', [\app\admin\controller\consultant\CustomController::class, 'addCustom']);
|
|
Route::post('/update', [\app\admin\controller\consultant\CustomController::class, 'updateCustom']);
|
|
Route::post('/update', [\app\admin\controller\consultant\CustomController::class, 'updateCustom']);
|
|
@@ -666,13 +666,14 @@ Route::group('/admin', function () {
|
|
Route::group('/account', function () {
|
|
Route::group('/account', function () {
|
|
Route::get('/my/{id:\w+}', [\app\admin\controller\member\AccountController::class, 'my']);
|
|
Route::get('/my/{id:\w+}', [\app\admin\controller\member\AccountController::class, 'my']);
|
|
Route::post('/incomeExpend', [\app\admin\controller\member\AccountController::class, 'incomeExpend']);
|
|
Route::post('/incomeExpend', [\app\admin\controller\member\AccountController::class, 'incomeExpend']);
|
|
|
|
+ Route::post('/updateStatus', [\app\admin\controller\member\AccountController::class, 'updateStatus']);
|
|
Route::get('/selectMemberAccount', [\app\admin\controller\member\AccountController::class, 'selectMemberAccount']);
|
|
Route::get('/selectMemberAccount', [\app\admin\controller\member\AccountController::class, 'selectMemberAccount']);
|
|
})->middleware([
|
|
})->middleware([
|
|
\app\middleware\AdminAuthCheck::class
|
|
\app\middleware\AdminAuthCheck::class
|
|
]);
|
|
]);
|
|
- Route::group('/writeOff',function(){
|
|
|
|
- Route::get('/list',[\app\admin\controller\member\WriteOffController::class,'list']);
|
|
|
|
- Route::post('/remark',[\app\admin\controller\member\WriteOffController::class,'remark']);
|
|
|
|
|
|
+ Route::group('/writeOff', function () {
|
|
|
|
+ Route::get('/list', [\app\admin\controller\member\WriteOffController::class, 'list']);
|
|
|
|
+ Route::post('/remark', [\app\admin\controller\member\WriteOffController::class, 'remark']);
|
|
})->middleware([
|
|
})->middleware([
|
|
\app\middleware\AdminAuthCheck::class
|
|
\app\middleware\AdminAuthCheck::class
|
|
]);
|
|
]);
|
|
@@ -884,7 +885,27 @@ Route::group('/admin', function () {
|
|
Route::get('/list', [\app\admin\controller\coupon\CouponDetailController::class, 'select']);
|
|
Route::get('/list', [\app\admin\controller\coupon\CouponDetailController::class, 'select']);
|
|
Route::get('/info', [\app\admin\controller\coupon\CouponDetailController::class, 'info']);
|
|
Route::get('/info', [\app\admin\controller\coupon\CouponDetailController::class, 'info']);
|
|
Route::post('/updateStatus', [\app\admin\controller\coupon\CouponDetailController::class, 'updateStatus']);
|
|
Route::post('/updateStatus', [\app\admin\controller\coupon\CouponDetailController::class, 'updateStatus']);
|
|
- Route::get('/myCouponGrouping',[\app\admin\controller\coupon\CouponDetailController::class,'myCouponGrouping']);
|
|
|
|
|
|
+ Route::get('/myCouponGrouping', [\app\admin\controller\coupon\CouponDetailController::class, 'myCouponGrouping']);
|
|
|
|
+ })->middleware([
|
|
|
|
+ \app\middleware\AdminAuthCheck::class
|
|
|
|
+ ]);
|
|
|
|
+ /* 券包 */
|
|
|
|
+ Route::group('/packet', function () {
|
|
|
|
+ Route::get('/list', [\app\admin\controller\coupon\CouponPacketController::class, 'select']);
|
|
|
|
+ Route::post('/add', [\app\admin\controller\coupon\CouponPacketController::class, 'insert']);
|
|
|
|
+ Route::post('/update', [\app\admin\controller\coupon\CouponPacketController::class, 'update']);
|
|
|
|
+ Route::get('/info', [\app\admin\controller\coupon\CouponPacketController::class, 'info']);
|
|
|
|
+ Route::delete('/delete', [\app\admin\controller\coupon\CouponPacketController::class, 'delete']);
|
|
|
|
+ Route::post('/packetIssue',[\app\admin\controller\coupon\CouponPacketController::class,'packetIssue']);
|
|
|
|
+ Route::post('/packetReIssue',[\app\admin\controller\coupon\CouponPacketController::class,'packetReIssue']);
|
|
|
|
+ })->middleware([
|
|
|
|
+ \app\middleware\AdminAuthCheck::class
|
|
|
|
+ ]);
|
|
|
|
+
|
|
|
|
+ Route::group('/packetSequence', function () {
|
|
|
|
+ Route::get('/list', [\app\admin\controller\coupon\CouponPacketSequenceController::class, 'select']);
|
|
|
|
+ Route::get('/info', [\app\admin\controller\coupon\CouponPacketSequenceController::class, 'info']);
|
|
|
|
+ Route::post('/updateStatus', [\app\admin\controller\coupon\CouponPacketSequenceController::class, 'updateStatus']);
|
|
})->middleware([
|
|
})->middleware([
|
|
\app\middleware\AdminAuthCheck::class
|
|
\app\middleware\AdminAuthCheck::class
|
|
]);
|
|
]);
|
|
@@ -917,7 +938,7 @@ Route::group('/admin', function () {
|
|
})->middleware([
|
|
})->middleware([
|
|
\app\middleware\AdminAuthCheck::class
|
|
\app\middleware\AdminAuthCheck::class
|
|
]);
|
|
]);
|
|
- Route::group('/statistics',function (){
|
|
|
|
|
|
+ Route::group('/statistics', function () {
|
|
Route::get('/order', [\app\admin\controller\order\StatisticsController::class, 'order']);
|
|
Route::get('/order', [\app\admin\controller\order\StatisticsController::class, 'order']);
|
|
})->middleware([
|
|
})->middleware([
|
|
\app\middleware\AdminAuthCheck::class
|
|
\app\middleware\AdminAuthCheck::class
|
|
@@ -948,6 +969,7 @@ Route::group('/admin', function () {
|
|
Route::post('/pay', [\app\admin\controller\order\KangyangCityController::class, 'pay']);
|
|
Route::post('/pay', [\app\admin\controller\order\KangyangCityController::class, 'pay']);
|
|
Route::get('/sheet', [\app\admin\controller\order\KangyangCityController::class, 'sheet']);
|
|
Route::get('/sheet', [\app\admin\controller\order\KangyangCityController::class, 'sheet']);
|
|
Route::get('/getPaidOrder', [\app\admin\controller\order\KangyangCityController::class, 'getPaidOrder']);
|
|
Route::get('/getPaidOrder', [\app\admin\controller\order\KangyangCityController::class, 'getPaidOrder']);
|
|
|
|
+ Route::post('/uploadTicket', [\app\admin\controller\order\KangyangCityController::class, 'uploadTicket']);
|
|
})->middleware([
|
|
})->middleware([
|
|
\app\middleware\AdminAuthCheck::class
|
|
\app\middleware\AdminAuthCheck::class
|
|
]);
|
|
]);
|
|
@@ -960,6 +982,7 @@ Route::group('/admin', function () {
|
|
// 套包订单
|
|
// 套包订单
|
|
Route::group('/packages', function () {
|
|
Route::group('/packages', function () {
|
|
Route::get('/list', [\app\admin\controller\order\PackagesController::class, 'select']);
|
|
Route::get('/list', [\app\admin\controller\order\PackagesController::class, 'select']);
|
|
|
|
+ Route::post('/writeOff', [\app\admin\controller\order\PackagesController::class, 'writeOff']);
|
|
})->middleware([
|
|
})->middleware([
|
|
\app\middleware\AdminAuthCheck::class
|
|
\app\middleware\AdminAuthCheck::class
|
|
]);
|
|
]);
|
|
@@ -985,9 +1008,9 @@ Route::group('/admin', function () {
|
|
Route::post('/confirm/{id:[0-9a-zA-Z]+}', [\app\admin\controller\order\AppointmentController::class, 'confirm']);
|
|
Route::post('/confirm/{id:[0-9a-zA-Z]+}', [\app\admin\controller\order\AppointmentController::class, 'confirm']);
|
|
Route::get('/getTimes', [\app\admin\controller\order\AppointmentController::class, 'getTimes']);
|
|
Route::get('/getTimes', [\app\admin\controller\order\AppointmentController::class, 'getTimes']);
|
|
Route::get('/my', [\app\admin\controller\order\AppointmentController::class, 'myAppointments']);
|
|
Route::get('/my', [\app\admin\controller\order\AppointmentController::class, 'myAppointments']);
|
|
- Route::post('/arrival',[\app\admin\controller\order\AppointmentController::class, 'arrival']);
|
|
|
|
- Route::post('/done',[\app\admin\controller\order\AppointmentController::class, 'done']);
|
|
|
|
- Route::post('/cancelApply',[\app\admin\controller\order\AppointmentController::class, 'cancelApply']);
|
|
|
|
|
|
+ Route::post('/arrival', [\app\admin\controller\order\AppointmentController::class, 'arrival']);
|
|
|
|
+ Route::post('/done', [\app\admin\controller\order\AppointmentController::class, 'done']);
|
|
|
|
+ Route::post('/cancelApply', [\app\admin\controller\order\AppointmentController::class, 'cancelApply']);
|
|
|
|
|
|
})->middleware([
|
|
})->middleware([
|
|
\app\middleware\AdminAuthCheck::class
|
|
\app\middleware\AdminAuthCheck::class
|
|
@@ -996,7 +1019,7 @@ Route::group('/admin', function () {
|
|
Route::group('/refund', function () {
|
|
Route::group('/refund', function () {
|
|
Route::get('/list', [\app\admin\controller\order\RefundController::class, 'select']);
|
|
Route::get('/list', [\app\admin\controller\order\RefundController::class, 'select']);
|
|
Route::get('/sheet', [\app\admin\controller\order\RefundController::class, 'sheet']);
|
|
Route::get('/sheet', [\app\admin\controller\order\RefundController::class, 'sheet']);
|
|
- Route::post('/customRefund',[\app\admin\controller\order\RefundController::class,'customRefund']);
|
|
|
|
|
|
+ Route::post('/customRefund', [\app\admin\controller\order\RefundController::class, 'customRefund']);
|
|
})->middleware([
|
|
})->middleware([
|
|
\app\middleware\AdminAuthCheck::class
|
|
\app\middleware\AdminAuthCheck::class
|
|
]);
|
|
]);
|
|
@@ -1004,9 +1027,9 @@ Route::group('/admin', function () {
|
|
Route::group('/payDetail', function () {
|
|
Route::group('/payDetail', function () {
|
|
Route::get('/list', [\app\admin\controller\order\PayDetailController::class, 'select']);
|
|
Route::get('/list', [\app\admin\controller\order\PayDetailController::class, 'select']);
|
|
Route::get('/welfareList', [\app\admin\controller\order\PayDetailController::class, 'selectWelfare']);
|
|
Route::get('/welfareList', [\app\admin\controller\order\PayDetailController::class, 'selectWelfare']);
|
|
- Route::get('/goodsOrder',[\app\admin\controller\order\PayDetailController::class,'goodsOrder']);
|
|
|
|
- Route::post('/insertRecharge',[\app\admin\controller\order\PayDetailController::class,'insertRecharge']);
|
|
|
|
- Route::post('/insertRechargeWelfare',[\app\admin\controller\order\PayDetailController::class,'insertRechargeWelfare']);
|
|
|
|
|
|
+ Route::get('/goodsOrder', [\app\admin\controller\order\PayDetailController::class, 'goodsOrder']);
|
|
|
|
+ Route::post('/insertRecharge', [\app\admin\controller\order\PayDetailController::class, 'insertRecharge']);
|
|
|
|
+ Route::post('/insertRechargeWelfare', [\app\admin\controller\order\PayDetailController::class, 'insertRechargeWelfare']);
|
|
// Route::get('/info', [\app\admin\controller\order\AppointmentController::class, 'info']);
|
|
// Route::get('/info', [\app\admin\controller\order\AppointmentController::class, 'info']);
|
|
});
|
|
});
|
|
});
|
|
});
|
|
@@ -1036,7 +1059,7 @@ Route::group('/admin', function () {
|
|
})->middleware([
|
|
})->middleware([
|
|
\app\middleware\AdminAuthCheck::class
|
|
\app\middleware\AdminAuthCheck::class
|
|
]);
|
|
]);
|
|
-
|
|
|
|
|
|
+
|
|
/* 评价管理 */
|
|
/* 评价管理 */
|
|
Route::group('/evaluate', function () {
|
|
Route::group('/evaluate', function () {
|
|
Route::get('/list', [\app\admin\controller\client\EvaluateController::class, 'select']);
|
|
Route::get('/list', [\app\admin\controller\client\EvaluateController::class, 'select']);
|