修复:移除发货报表无效状态筛选
This commit is contained in:
@@ -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, /<el-date-picker\b[\s\S]*?type="daterange"[\s\S]*?value-format="YYYY-MM-DD"/)
|
||||
assert.match(source, /<el-table\b[^>]*v-loading="loading"[^>]*:data="reportList"/)
|
||||
|
||||
Reference in New Issue
Block a user