forked from erp-dev/erp
feat: added shipments list api
This commit is contained in:
@@ -25,7 +25,12 @@ from .views.products import ProductQuickViewSet
|
||||
from .views.parameters import StateParameterViewSet
|
||||
from .views.users import CreateUserWithProfileView
|
||||
from .views.mingdaoyun import MDYPlateOrderStagingViewSet
|
||||
from .views.shipment import SalesItemByPrintingOrderView, ShipmentCreateView, ShipmentExternalCreateView
|
||||
from .views.shipment import (
|
||||
SalesItemByPrintingOrderView,
|
||||
ShipmentListCreateView,
|
||||
ShipmentDetailView,
|
||||
ShipmentExternalCreateView,
|
||||
)
|
||||
|
||||
# 创建 DRF Router for Stateflow
|
||||
stateflow_router = DefaultRouter()
|
||||
@@ -102,8 +107,13 @@ urlpatterns = [
|
||||
# Shipment API
|
||||
path(
|
||||
'shipment/shipments/',
|
||||
ShipmentCreateView.as_view(),
|
||||
name='shipment_create'
|
||||
ShipmentListCreateView.as_view(),
|
||||
name='shipment_list_create'
|
||||
),
|
||||
path(
|
||||
'shipment/shipments/<int:pk>/',
|
||||
ShipmentDetailView.as_view(),
|
||||
name='shipment_detail'
|
||||
),
|
||||
path(
|
||||
'shipment/shipments/external/',
|
||||
|
||||
Reference in New Issue
Block a user