forked from erp-dev/erp
feat: app verion && some field modify (printing & shipment)
This commit is contained in:
@@ -32,14 +32,18 @@ from .views.products import ProductQuickViewSet
|
||||
from .views.parameters import StateParameterViewSet
|
||||
from .views.users import CreateUserWithProfileView
|
||||
from .views.mingdaoyun import MDYPlateOrderStagingViewSet
|
||||
from .views.basic_info import CustomerAddressViewSet
|
||||
from .views.shipment import (
|
||||
SalesItemDetailView,
|
||||
SalesItemRebuildView,
|
||||
SalesItemByCustomerGroupView,
|
||||
SalesItemByCustomerView,
|
||||
SalesItemByPrintingOrderGroupView,
|
||||
SalesItemByPrintingOrderView,
|
||||
SalesItemCreateView,
|
||||
ShipmentStatusUpdateView,
|
||||
ShipmentDeliveryBindShipmentsView,
|
||||
ShipmentDeliveryByPrintingOrderView,
|
||||
ShipmentDeliveryCancelView,
|
||||
ShipmentDeliveryDetailView,
|
||||
ShipmentDeliveryListCreateView,
|
||||
@@ -69,6 +73,9 @@ main_router.register(r"plate-orders", PlateOrderViewSet, basename="plate-order")
|
||||
main_router.register(r"upload", UploadFileViewSet, basename="upload")
|
||||
main_router.register(r"products/quick", ProductQuickViewSet, basename="product-quick")
|
||||
main_router.register(r"parameters", StateParameterViewSet, basename="parameter")
|
||||
main_router.register(
|
||||
r"customer-addresses", CustomerAddressViewSet, basename="customer-address"
|
||||
)
|
||||
main_router.register(
|
||||
r"mdy-plate-order-staging",
|
||||
MDYPlateOrderStagingViewSet,
|
||||
@@ -76,6 +83,11 @@ main_router.register(
|
||||
)
|
||||
|
||||
urlpatterns = [
|
||||
path(
|
||||
"customer-address/<int:pk>/set-default/",
|
||||
CustomerAddressViewSet.as_view({"post": "set_default"}),
|
||||
name="customer_address_set_default",
|
||||
),
|
||||
# 库存变动相关API
|
||||
path(
|
||||
"stock-snapshots/", StockSnapshotListView.as_view(), name="list_stock_snapshots"
|
||||
@@ -355,6 +367,11 @@ urlpatterns = [
|
||||
ShipmentDeliveryListCreateView.as_view(),
|
||||
name="shipment_delivery_list_create",
|
||||
),
|
||||
path(
|
||||
"shipment/deliveries/by-printing-order/<str:printing_order_id>/",
|
||||
ShipmentDeliveryByPrintingOrderView.as_view(),
|
||||
name="shipment_deliveries_by_printing_order",
|
||||
),
|
||||
path(
|
||||
"shipment/deliveries/<int:pk>/",
|
||||
ShipmentDeliveryDetailView.as_view(),
|
||||
@@ -380,11 +397,21 @@ urlpatterns = [
|
||||
ShipmentSalesItemCustomerListView.as_view(),
|
||||
name="sales_item_customers",
|
||||
),
|
||||
path(
|
||||
"shipment/sales-items/by-customer/<int:customer_id>/group/",
|
||||
SalesItemByCustomerGroupView.as_view(),
|
||||
name="sales_items_by_customer_group",
|
||||
),
|
||||
path(
|
||||
"shipment/sales-items/by-customer/<int:customer_id>/",
|
||||
SalesItemByCustomerView.as_view(),
|
||||
name="sales_items_by_customer",
|
||||
),
|
||||
path(
|
||||
"shipment/sales-items/by-printing-order/<str:printing_order_id>/group/",
|
||||
SalesItemByPrintingOrderGroupView.as_view(),
|
||||
name="sales_items_by_printing_order_group",
|
||||
),
|
||||
path(
|
||||
"shipment/sales-items/by-printing-order/<str:printing_order_id>/",
|
||||
SalesItemByPrintingOrderView.as_view(),
|
||||
|
||||
Reference in New Issue
Block a user