|
@@ -606,10 +606,21 @@ Route::group(['middleware' => 'auth'], function ($route) {
|
|
|
/** 手持入库 */
|
|
/** 手持入库 */
|
|
|
Route::group(['prefix' => 'handInStorage'], function () {
|
|
Route::group(['prefix' => 'handInStorage'], function () {
|
|
|
Route::get('receive', function () {
|
|
Route::get('receive', function () {
|
|
|
- return view('store.handInStorage.receive');
|
|
|
|
|
|
|
+ /** @var \App\Services\UserService $userService */
|
|
|
|
|
+ $userService=app(\App\Services\UserService::class);
|
|
|
|
|
+ $ownerIds=$userService->getUserUnderOwnerIdArr();
|
|
|
|
|
+ $isGm=\App\Owner::query()->where("code","GM")->first()['id'];
|
|
|
|
|
+ if (in_array($isGm,$ownerIds)){
|
|
|
|
|
+ return view('store.handInStorage.receive');
|
|
|
|
|
+ }
|
|
|
});//收货页面
|
|
});//收货页面
|
|
|
Route::get('putaway', function () {
|
|
Route::get('putaway', function () {
|
|
|
- return view('store.handInStorage.putaway');
|
|
|
|
|
|
|
+ $userService=app(\App\Services\UserService::class);
|
|
|
|
|
+ $ownerIds=$userService->getUserUnderOwnerIdArr();
|
|
|
|
|
+ $isGm=\App\Owner::query()->where("code","GM")->first()['id'];
|
|
|
|
|
+ if (in_array($isGm,$ownerIds)){
|
|
|
|
|
+ return view('store.handInStorage.putaway');
|
|
|
|
|
+ }
|
|
|
});//上架页面
|
|
});//上架页面
|
|
|
Route::get('inventoryInfo', function () {
|
|
Route::get('inventoryInfo', function () {
|
|
|
return view('store.handInStorage.inventoryInfo');
|
|
return view('store.handInStorage.inventoryInfo');
|