from django.urls import path, re_path from . import views urlpatterns = [ path ('', views.locationViewSet.as_view({"get": "list"}), name='location_list'), path ('check/', views.locationViewSet.as_view({"post": "batch_status_location"}), name='location_list'), re_path(r'^(?P\d+)/$', views.locationViewSet.as_view({"get": "retrieve", "put": "update"}), name='location_detail'), path (r'group/', views.locationGroupViewSet.as_view({"get": "list"}), name='location_list'), path (r'group/check-pallet-consistency/', views.locationGroupViewSet.as_view({"get": "check_pallet_consistency"}), name='location_group_check_pallet_consistency'), path (r'group/fix-pallet-consistency/', views.locationGroupViewSet.as_view({"post": "fix_pallet_consistency"}), name='location_group_fix_pallet_consistency'), re_path(r'^group/(?P\d+)/$', views.locationGroupViewSet.as_view({"get": "retrieve", "put": "update"}), name='location_detail'), # 库位-托盘关联查询 path (r'link/', views.locationContainerLinkViewSet.as_view({"get": "list"}), name='location_container_link_list'), re_path(r'^link/(?P\d+)/$', views.locationContainerLinkViewSet.as_view({"get": "retrieve"}), name='location_container_link_detail'), # path(r'management/', views.stockshelfViewSet.as_view({"get": "list", "post": "create"}), name="management"), # re_path(r'^management/(?P\d+)/$', views.stockshelfViewSet.as_view({'get': 'retrieve','put': 'update','patch': 'partial_update','delete': 'destroy'}), name="staff_1"), ]