fix: compact smart loading text

This commit is contained in:
2026-09-04 15:54:36 +08:00
parent ac96249f7d
commit 6a88d21f10
7 changed files with 23 additions and 17 deletions
@@ -49,6 +49,8 @@ describe('SmartLoadingWorkbenchView', () => {
expect(source).toContain('<LineClampText v-if="row.coLoadGroup" :content="`${row.packageCount} 箱(整组固定)`" />')
expect(source).toContain('.candidate-group { display: grid; width: 100%; min-width: 0;')
expect(source).toContain('.candidate-group :deep(.line-clamp-text) { width: 100%;')
expect(source).toContain('<template #goods="{ row }"><div class="goods-cell"><LineClampText')
expect(source).toContain('<template #goodsSummary="{ row }"><LineClampText')
expect(source).not.toContain('<span v-for="summary in row.memberOrderSummaries"')
})
@@ -109,7 +111,7 @@ describe('SmartLoadingWorkbenchView', () => {
expect(getSmartLoadingPlanByBooking).toHaveBeenCalledTimes(2)
expect(recommendSmartLoading).toHaveBeenCalledWith(planResponse.id, 2)
expect(recommendSmartLoading).toHaveBeenCalledWith(planResponse.id, 3)
expect(wrapper.text()).not.toContain('排柜操作失败')
expect(wrapper.text()).not.toContain('装柜操作失败')
})
it('uses bordered row actions and has no manual preload push', () => {