1
0
forked from erp-dev/erp

fix: added permission for plate_order and printing_order api

This commit is contained in:
2026-01-14 18:14:22 +08:00
parent fae667c965
commit cae0f8434e
17 changed files with 867 additions and 15 deletions

View File

@@ -25,7 +25,7 @@ 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
from .views.shipment import SalesItemByPrintingOrderView, ShipmentCreateView
# 创建 DRF Router for Stateflow
stateflow_router = DefaultRouter()
@@ -100,6 +100,11 @@ urlpatterns = [
path('stateflow/', include(stateflow_router.urls)),
# Shipment API
path(
'shipment/shipments/',
ShipmentCreateView.as_view(),
name='shipment_create'
),
path(
'shipment/sales-items/by-printing-order/<int:printing_order_id>/',
SalesItemByPrintingOrderView.as_view(),