1
0
forked from erp-dev/erp

feat: added shipments list api

This commit is contained in:
2026-01-15 16:47:12 +08:00
parent ea9f378de9
commit a0cd168397
6 changed files with 284 additions and 8 deletions

View File

@@ -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/',