diff --git a/shierfeng-fastapi-frontend/scripts/verify-business-contract.mjs b/shierfeng-fastapi-frontend/scripts/verify-business-contract.mjs index 4ad1040..1942874 100644 --- a/shierfeng-fastapi-frontend/scripts/verify-business-contract.mjs +++ b/shierfeng-fastapi-frontend/scripts/verify-business-contract.mjs @@ -283,7 +283,7 @@ const reportPageContracts = { permission: 'report:shipment:list', queryKeys: [ 'pageNum', 'pageSize', 'beginTime', 'endTime', 'shipmentNo', - 'sourceWarehouseId', 'targetSiteId', 'palletCode', 'status' + 'sourceWarehouseId', 'targetSiteId', 'palletCode' ], columnKeys: [ 'shipmentNo', 'confirmedAt', 'sourceWarehouseName', 'customerName', @@ -799,6 +799,14 @@ test('六个只读报表页面逐页满足 API、权限、筛选、列和异步 'palletTrace 变更后位置必须同时传入仓库、现场和产线的名称与 ID' ) } + if (resource === 'shipment') { + assert.doesNotMatch(source, /\bDRAFT\b/, 'shipment 报表只展示已确认事实,不得提供草稿筛选') + assert.doesNotMatch( + source, + /queryParams\.status|prop=["']status["']|\bstatus\s*:/, + 'shipment 报表不得提交与固定 CONFIRMED 范围冲突的状态筛选' + ) + } assert.match(source, /]*v-loading="loading"[^>]*:data="reportList"/) diff --git a/shierfeng-fastapi-frontend/src/views/report/shipment/index.vue b/shierfeng-fastapi-frontend/src/views/report/shipment/index.vue index 683681a..c691ed3 100644 --- a/shierfeng-fastapi-frontend/src/views/report/shipment/index.vue +++ b/shierfeng-fastapi-frontend/src/views/report/shipment/index.vue @@ -16,12 +16,6 @@ - - - - - - 搜索 重置 @@ -77,8 +71,7 @@ const queryParams = ref({ shipmentNo: undefined, sourceWarehouseId: undefined, targetSiteId: undefined, - palletCode: undefined, - status: undefined + palletCode: undefined }) let listGeneration = 0