fix: show dropship outbound measurements

This commit is contained in:
2026-09-18 15:23:43 +08:00
parent f64dedfb52
commit e10d0534ae
5 changed files with 30 additions and 4 deletions
@@ -19,6 +19,7 @@ const fixtures = Array.from({ length: 7 }, (_, index) => ({
inventoryPositionId: `position-${index}`, orderNo: `ORDER-${index}`, customerId: 'customer-a',
customerName: '客户甲', overseasWarehouseId: 'warehouse-a', palletNo: `PALLET-${index}`,
inboundCode: `IN-${index}`, skuCode: index < 6 ? 'MATCH' : 'OTHER', productName: '测试品名', availablePackages: index + 1,
grossWeightKg: (index + 1) * 10, volumeWeightKg: (index + 1) * 20, volumeCbm: index + 1,
}))
let wrapper: VueWrapper
async function clickButton(text: string) {
@@ -60,6 +61,9 @@ describe('outbound candidate search and selection', () => {
it('selects and deselects the current page while preserving other pages, then submits all selected quantities', async () => {
await openCreate()
expect(wrapper.text()).toContain('可出毛重(kg)')
expect(wrapper.text()).toContain('可出材积重(kg)')
expect(wrapper.text()).toContain('可出体积(m³)')
pageCheckbox().vm.$emit('change', true)
await flushPromises()
expect(wrapper.text()).toContain('已选择 5 条')