更新登录页及优化相关功能
This commit is contained in:
@@ -23,6 +23,8 @@ from module_business.entity.vo.operation_vo import (
|
||||
ShipmentScanQueryModel,
|
||||
ShipmentUpdateModel,
|
||||
)
|
||||
from module_business.entity.vo.shipment_label_vo import ShipmentLabelModel
|
||||
from module_business.service.shipment_label_service import ShipmentLabelService
|
||||
from module_business.service.shipment_service import ShipmentService
|
||||
from utils.response_util import ResponseUtil
|
||||
|
||||
@@ -92,7 +94,7 @@ async def get_business_shipment_site_options(
|
||||
|
||||
|
||||
@shipment_controller.get(
|
||||
'/scan/{qr_token}',
|
||||
'/scan/{qr_token:path}',
|
||||
summary='扫描整托发货托盘接口',
|
||||
description='查询托盘是否可加入指定仓库至现场的整托发货单',
|
||||
response_model=DataResponseModel[PalletScanResponseModel],
|
||||
@@ -126,6 +128,24 @@ async def scan_business_shipment_pallet(
|
||||
return ResponseUtil.success(data=result)
|
||||
|
||||
|
||||
@shipment_controller.get(
|
||||
'/{shipment_id}/labels',
|
||||
summary='获取整托发货标签接口',
|
||||
description='在发货查询权限与仓库、现场、数据批次范围内读取原托盘标签',
|
||||
response_model=DataResponseModel[list[ShipmentLabelModel]],
|
||||
dependencies=[UserInterfaceAuthDependency('business:shipment:query')],
|
||||
)
|
||||
async def get_business_shipment_labels(
|
||||
request: Request,
|
||||
shipment_id: Annotated[int, Path(gt=0, description='发货单ID')],
|
||||
query_db: Annotated[AsyncSession, DBSessionDependency()],
|
||||
current_user: Annotated[CurrentUserModel, CurrentUserDependency()],
|
||||
test_scope: Annotated[TestBatchScope, TestBatchScopeDependency()],
|
||||
) -> Response:
|
||||
result = await ShipmentLabelService.get_labels_services(query_db, shipment_id, current_user, test_scope)
|
||||
return ResponseUtil.success(data=result, headers={'Cache-Control': 'no-store'})
|
||||
|
||||
|
||||
@shipment_controller.get(
|
||||
'/{shipment_id}',
|
||||
summary='获取整托发货单详情接口',
|
||||
|
||||
Reference in New Issue
Block a user