优化编号讲解布局与返回流程

- 将讲解编号置于标题上方并增强辨识度
- 编号详情返回后保留输入界面并清空原编号
- 增加页面栈丢失时恢复编号输入页的兜底逻辑
- 补充编号布局和返回流程回归测试

Made-with: Proma
This commit is contained in:
lyf
2026-08-31 17:00:42 +08:00
parent 1c908dfc1a
commit 5de005e011
8 changed files with 83 additions and 9 deletions

View File

@@ -95,6 +95,11 @@ describe('讲解展厅选择列表', () => {
expect(wrapper.emitted('codeSubmit')).toEqual([['0231']])
expect(wrapper.find('.code-entry-sheet').exists()).toBe(true)
wrapper.vm.completeCodeEntry()
await wrapper.vm.$nextTick()
expect(wrapper.find('.code-entry-sheet').exists()).toBe(true)
expect(wrapper.findAll('.code-digit-value').map((item) => item.text())).toEqual(['', '', '', ''])
await wrapper.setProps({ codeSubmitting: true })
expect(wrapper.get('.code-entry-native-input').attributes('disabled')).toBeDefined()
expect(wrapper.get('.code-entry-action.primary').text()).toBe('正在查询')