urls.py 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  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('inboundBills/', views.InboundBills.as_view({"get": "list"}),name="inboundBills"),
  11. re_path(r'^inboundBills/(?P<pk>\d+)/$', views.InboundBills.as_view({
  12. 'get': 'retrieve'
  13. }), name="inboundBills_1"),
  14. path('outboundBills/', views.OutboundBills.as_view({"get": "list"}),name="outboutBills"),
  15. re_path(r'^outboundBills/(?P<pk>\d+)/$', views.OutboundBills.as_view({
  16. 'get': 'retrieve'
  17. }), name="outboundBills_1"),
  18. path('materials/', views.Materials.as_view({"get": "list"}),name="Materials"),
  19. re_path(r'^materials/(?P<pk>\d+)/$', views.Materials.as_view({
  20. 'get': 'retrieve',
  21. }), name="Materials_1"),
  22. path('outmaterials/', views.OutMaterials.as_view({"get": "list"}),name="OutMaterials"),
  23. re_path(r'^outmaterials/(?P<pk>\d+)/$', views.OutMaterials.as_view({
  24. 'get': 'retrieve',
  25. }), name="OutMaterials_1"),
  26. ]