urls.py 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. # urls.py
  2. from django.urls import path,re_path
  3. from . import views
  4. urlpatterns = [
  5. path('createInboundApply', views.InboundApplyCreate.as_view()),
  6. path('createOutboundApply', views.OutboundApplyCreate.as_view()),
  7. path('updateBatchInfo', views.BatchUpdate.as_view()),
  8. path('productInfo', views.ProductInfo.as_view()),
  9. path('generateinbound', views.GenerateInbound.as_view()),
  10. path('generateoutbound', views.GenerateOutbound.as_view()),
  11. path('inboundBills/', views.InboundBills.as_view({"get": "list"}),name="inboundBills"),
  12. re_path(r'^inboundBills/(?P<pk>\d+)/$', views.InboundBills.as_view({
  13. 'get': 'retrieve'
  14. }), name="inboundBills_1"),
  15. path('outboundBills/', views.OutboundBills.as_view({"get": "list"}),name="outboutBills"),
  16. re_path(r'^outboundBills/(?P<pk>\d+)/$', views.OutboundBills.as_view({
  17. 'get': 'retrieve'
  18. }), name="outboundBills_1"),
  19. path('materials/', views.Materials.as_view({"get": "list"}),name="Materials"),
  20. re_path(r'^materials/(?P<pk>\d+)/$', views.Materials.as_view({
  21. 'get': 'retrieve',
  22. }), name="Materials_1"),
  23. path('outmaterials/', views.OutMaterials.as_view({"get": "list"}),name="OutMaterials"),
  24. re_path(r'^outmaterials/(?P<pk>\d+)/$', views.OutMaterials.as_view({
  25. 'get': 'retrieve',
  26. }), name="OutMaterials_1"),
  27. ]