This commit is contained in:
2026-10-21 14:30:33 +08:00
parent 3953453090
commit 8498798a9c
47 changed files with 791 additions and 409 deletions
@@ -10,8 +10,8 @@ describe('overseas warehouse 1920px layout acceptance', () => {
const widths: Record<string, number> = {
'LastMileOrdersView.vue': 330,
'InboundOrdersView.vue': 300,
// Three compact RowActions plus the overflow menu; long business numbers use the saved space.
'DispatchesView.vue': 260,
// Primary action and detail plus the overflow menu; preserve space for business fields.
'DispatchesView.vue': 220,
'OutboundsView.vue': 180,
'DeliveryOrdersView.vue': 300,
'RelabelOrdersView.vue': 180,
@@ -24,6 +24,7 @@ describe('overseas warehouse 1920px layout acceptance', () => {
expect(columns).toMatch(new RegExp(`key: 'actions',[\\s\\S]*?label: '操作',[\\s\\S]*?width: ${width},[\\s\\S]*?fixed: 'left'`))
expect(columns.indexOf("key: 'actions'")).toBeLessThan(columns.indexOf("label:", columns.indexOf("key: 'actions'") + 20))
}
expect(page('DispatchesView.vue')).toMatch(/<RowActions\b[^>]*:max-visible="2"/)
})
it('keeps all inbound-order row actions on one line', () => {