From 88632e6e4f3b25425b06f83a7d39981cc8ff000a Mon Sep 17 00:00:00 2001 From: liuyihe <2513762445@qq.com> Date: Tue, 20 Oct 2026 17:59:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ContainerSimulationCreate.test.ts | 4 +- .../components/ContainerSimulationCreate.vue | 58 ++++++++++++++++--- src/styles/adminDensity.css | 12 ++++ src/styles/adminDensity.test.ts | 8 +++ 4 files changed, 70 insertions(+), 12 deletions(-) diff --git a/src/modules/container-loading/components/ContainerSimulationCreate.test.ts b/src/modules/container-loading/components/ContainerSimulationCreate.test.ts index 63ad7007..be4dbf3f 100644 --- a/src/modules/container-loading/components/ContainerSimulationCreate.test.ts +++ b/src/modules/container-loading/components/ContainerSimulationCreate.test.ts @@ -27,14 +27,12 @@ describe('ContainerSimulationCreate opted-in form', () => { await flushPromises() expect(createContainerSimulation).not.toHaveBeenCalled() const fields = dialog.findAllComponents({ name: 'ElFormItem' }) - expect(fields).toHaveLength(4) + expect(fields).toHaveLength(3) fields.find(field => field.props('prop') === 'warehouseId')!.findComponent({ name: 'ElSelect' }).vm.$emit('update:modelValue', '8') await flushPromises() expect(listWarehouseLogisticsChannels).toHaveBeenCalledExactlyOnceWith('8') fields.find(field => field.props('prop') === 'channelGroupCode')!.findComponent({ name: 'ElSelect' }).vm.$emit('update:modelValue', 'MATSON_CLX') await flushPromises() - const specification = fields.find(field => field.props('label') === '统一规格')! - expect(specification.find('input').exists()).toBe(!dense) dialog.vm.$emit('confirm') await flushPromises() expect(createContainerSimulation).toHaveBeenCalledExactlyOnceWith({ warehouseId: '8', channelGroupCode: 'MATSON_CLX', containerType: '40HQ', capacityCbm: 68, maxWeightKg: 19500 }) diff --git a/src/modules/container-loading/components/ContainerSimulationCreate.vue b/src/modules/container-loading/components/ContainerSimulationCreate.vue index 14ef5f95..0566e828 100644 --- a/src/modules/container-loading/components/ContainerSimulationCreate.vue +++ b/src/modules/container-loading/components/ContainerSimulationCreate.vue @@ -1,7 +1,7 @@