fix(pl): 将段证明上传状态与附件前置以便快速核对。

This commit is contained in:
wuzilong committed 2026-11-01 23:24:33 +08:00
1 parent eb12c755d3
commit e62b7afc35
2 files changed
+31 -5

No files matched your search

+26
View File
@@ -539,3 +539,29 @@ test('latest refresh wins and hidden column/reset preserve server filter semanti
await flush()
h.stop()
})
test('expanded segment columns prioritize upload state and attachments', () => {
const template = parse(
readFileSync(
new URL('../src/views/pl/legal-use-document/StopDocuments.vue', import.meta.url),
'utf8'
)
).descriptor.template!.content
const table = template.slice(template.indexOf('<el-table\n'), template.indexOf('</el-table>'))
assert.deepEqual(
[...table.matchAll(/<el-table-column\b[^>]*\blabel="([^"]+)"/g)].map((match) => match[1]),
[
'运输段',
'产品',
'上传情况',
'附件',
'合同编号',
'本段主体',
'规格',
'单位',
'本段位置',
'上传时间',
'操作'
]
)
})