fix: align loading and weight acceptance

This commit is contained in:
2026-09-04 16:28:44 +08:00
parent 871d0a56b9
commit bc6629d400
5 changed files with 5 additions and 3 deletions
@@ -368,6 +368,7 @@ describe('WeightOcrPanel confirmation behavior', () => {
)
expect(getWeightWorkspace).toHaveBeenCalledTimes(2)
expect(wrapper.findAll('.weight-card')).toHaveLength(0)
expect(wrapper.text()).toContain('尚未上传称重图片')
expect(wrapper.find('.putaway-guide').exists()).toBe(false)
})
@@ -44,6 +44,7 @@ describe('WeightOcrPanel contract', () => {
expect(source).not.toContain('尚未分配整票预留库位')
expect(source).not.toContain('class="weight-card__putaway"')
expect(source).toContain('<div><dt>库位</dt><dd')
expect(source).not.toContain('workspace.palletLocationGuide.slots')
expect(source).toContain('对应库位仍为本票保留,不会释放给其他订单')
expect(source).toContain("emit('summaryChanged', workspace.value?.actualGrossWeightKg ?? null, workspace.value?.actualNetWeightKg ?? null)")
})