feat(admin): add simulated container booking links

This commit is contained in:
2026-08-14 20:59:19 +08:00
parent 1540b80c89
commit 086b4304c6
11 changed files with 235 additions and 48 deletions
@@ -149,15 +149,14 @@ describe('GlobalSmartLoadingView', () => {
expect(wrapper.findAll('button[aria-label="列设置"]')).toHaveLength(0)
})
it('keeps only customer, inbound code and destination warehouse filters', async () => {
it('keeps only customer and inbound code filters', async () => {
const source = readFileSync(resolve(process.cwd(), 'src/modules/container-loading/pages/GlobalSmartLoadingView.vue'), 'utf8')
const wrapper = mount(GlobalSmartLoadingView, { global: { plugins: [ElementPlus] } })
await flushPromises()
const fields = wrapper.findComponent(QueryToolbar).props('fields') as Array<{ key: string; options?: Array<{ label: string; value: string }> }>
expect(fields.map((field) => field.key)).toEqual(['customerId', 'inboundCode', 'destinationWarehouse'])
expect(fields.find((field) => field.key === 'destinationWarehouse')?.options).toEqual([
{ label: 'LAX9', value: '9' },
])
expect(fields.map((field) => field.key)).toEqual(['customerId', 'inboundCode'])
expect(source).not.toContain('目的仓')
expect(wrapper.text()).not.toContain('税率')
expect(wrapper.text()).not.toContain('是否退税')