feat(admin): show inbound business relationships

This commit is contained in:
2026-08-30 17:46:45 +08:00
parent ae52141952
commit cee0464e69
3 changed files with 5 additions and 5 deletions
@@ -129,9 +129,10 @@ describe('FinanceCustomerArapView G2 operations', () => {
expect(adjustFinanceFeeSource).not.toHaveBeenCalled()
})
it('keeps the customer dropdown open while its option list is scrolled', async () => {
it('closes the customer dropdown when the surrounding page is scrolled', async () => {
const source = readFileSync(resolve(process.cwd(), 'src/modules/finance/pages/FinanceCustomerArapView.vue'), 'utf8')
expect(source).not.toContain("document.addEventListener('scroll', closeCustomerSelectOnScroll, true)")
expect(source).toContain("document.addEventListener('scroll', closeCustomerSelectOnScroll, true)")
expect(source).toContain('onVisibleChange: onCustomerSelectVisible')
expect(source).not.toContain('input?.blur()')
expect(source).toContain("class: 'finance-customer-select'")
})
@@ -57,8 +57,8 @@ describe('PalletsView', () => {
await wrapper.findAll('button').find((button) => button.text().includes('新增托盘'))!.trigger('click')
await flushPromises()
const setupState = wrapper.vm.$.setupState as { form: { warehouseId: string; fbaWarehouseCode: string; code: string } }
Object.assign(setupState.form, { warehouseId: '200', fbaWarehouseCode: 'ABE3', code: 'PLT-LAX-ABE3' })
const view = wrapper.vm as unknown as { form: { warehouseId: string; fbaWarehouseCode: string; code: string } }
Object.assign(view.form, { warehouseId: '200', fbaWarehouseCode: 'ABE3', code: 'PLT-LAX-ABE3' })
await flushPromises()
wrapper.findComponent(AppDialog).vm.$emit('confirm')
await flushPromises()