fix: scope smart loading recommendation requests

This commit is contained in:
2026-09-14 17:22:08 +08:00
parent 7e29e6c25c
commit 22c755b02a
4 changed files with 42 additions and 6 deletions
@@ -760,8 +760,8 @@ describe('GlobalSmartLoadingView', () => {
await button!.trigger('click')
await flushPromises()
expect(recommendSmartLoading).toHaveBeenCalledWith(plan.id, 2)
expect(recommendSmartLoading).toHaveBeenCalledWith(plan.id, 3)
expect(recommendSmartLoading).toHaveBeenCalledWith(plan.id, 2, { customerId: '', inboundCode: '' })
expect(recommendSmartLoading).toHaveBeenCalledWith(plan.id, 3, { customerId: '', inboundCode: '' })
expect(getSmartLoadingPlanByBooking).toHaveBeenCalledTimes(2)
expect(warningMessage).not.toHaveBeenCalled()
expect(wrapper.text()).not.toContain('装柜操作失败')