fix(fleet): preserve drafts before dialog close and respect dashboard permissions

This commit is contained in:
2026-10-07 18:21:03 +08:00
parent 2477667c27
commit 2bc095ecac
11 changed files with 150 additions and 34 deletions
@@ -75,6 +75,9 @@ describe('overseas business mounted pages', () => {
expect(document.body.textContent).toContain('池来源订单按实际运输履约推进')
expect(document.body.textContent).toContain('FB-TEST'); expect(document.body.textContent).toContain('— / — / —')
expect(listUsTruckOrders).toHaveBeenCalledOnce(); expect(getUsTruckOrder).not.toHaveBeenCalled()
const dialog = wrapper.findComponent(AppDialog)
await dialog.findAll('.app-dialog__footer button').find(button => button.text() === '关闭')!.trigger('click'); await flushPromises()
expect(dialog.props('modelValue')).toBe(false)
})
it('keeps a pool order read-only even when an old edit deep link is used', async () => {
routing.route.params = { orderId: 'TR-200' }; routing.route.query = { customerId: truck.customerId }