From 626e15fe897fc42bc3ced6ecfe76eac191d8ee2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=84=A6=E9=BE=99=E8=A8=80?= Date: Mon, 27 Jul 2026 12:25:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E5=8F=91=E8=B4=A7=E6=8A=A5=E8=A1=A8=E6=97=A0=E6=95=88=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E7=AD=9B=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../scripts/verify-business-contract.mjs | 10 +++++++++- .../src/views/report/shipment/index.vue | 9 +-------- 2 files changed, 10 insertions(+), 9 deletions(-) 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