urls.py 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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('inboundcheck', views.FindExistingBatch.as_view()),
  11. path('generateoutbound', views.GenerateOutbound.as_view()),
  12. path('inboundBills/log/', views.InboundBillsLog.as_view({"get": "list"}),name="inboundBillslog"),
  13. path('outboundBills/log/', views.OutboundBillsLog.as_view({"get": "list"}),name="outboundBillslog"),
  14. path('inboundBills/number/', views.InboundBills.as_view({"post": "get_bound_number"}),name="inboundBillsnumber"),
  15. path('outboundBills/number/', views.OutboundBills.as_view({"post": "get_bound_number"}),name="outboundBillsnumber"),
  16. # path('inboundBills/audit/', views.bound_apply.as_view(), name="inboundBills-audit"),
  17. # path('inboundBills/save/', views.bound_apply.as_view(), name="inboundBills-save"),
  18. path('boundBills/<str:action_type>/', views.bound_apply.as_view(), name="inboundBills-action"),
  19. path('inboundBills/', views.InboundBills.as_view({"get": "list"}),name="inboundBills"),
  20. re_path(r'^inboundBills/(?P<pk>\d+)/$', views.InboundBills.as_view({
  21. 'get': 'retrieve',
  22. 'put': 'update_inbound',
  23. 'delete': 'destroy',
  24. }), name="inboundBills_1"),
  25. path('outboundBills/', views.OutboundBills.as_view({"get": "list"}),name="outboutBills"),
  26. re_path(r'^outboundBills/(?P<pk>\d+)/$', views.OutboundBills.as_view({
  27. 'get': 'retrieve',
  28. 'put': 'update_outbound',
  29. 'delete': 'destroy',
  30. }), name="outboundBills_1"),
  31. path('materials/', views.Materials.as_view({"get": "list"}),name="Materials"),
  32. re_path(r'^materials/(?P<pk>\d+)/$', views.Materials.as_view({
  33. 'get': 'retrieve',
  34. 'put': 'update_material',
  35. }), name="Materials_1"),
  36. path('materials/check/', views.Materials.as_view({
  37. 'put': 'check_status',
  38. }), name="check_status_1"),
  39. path('outmaterials/', views.OutMaterials.as_view({"get": "list"}),name="OutMaterials"),
  40. re_path(r'^outmaterials/(?P<pk>\d+)/$', views.OutMaterials.as_view({
  41. 'get': 'retrieve',
  42. }), name="OutMaterials_1"),
  43. ]