diff --git a/src/modules/inbounds/weight/components/WeightOcrPanel.test.ts b/src/modules/inbounds/weight/components/WeightOcrPanel.test.ts index 210e1d88..f1f63590 100644 --- a/src/modules/inbounds/weight/components/WeightOcrPanel.test.ts +++ b/src/modules/inbounds/weight/components/WeightOcrPanel.test.ts @@ -14,7 +14,7 @@ describe('WeightOcrPanel contract', () => { expect(template).not.toContain('租户') }) - it('covers upload, preview, OCR retry, correction, confirmation, and server totals', () => { + it('covers upload, preview, OCR retry, inline correction, confirmation, and server totals', () => { expect(source).toContain('uploadWeightImage') expect(source).toContain('downloadWeightImage') expect(source).toContain('retryWeightRecognition') @@ -23,6 +23,11 @@ describe('WeightOcrPanel contract', () => { expect(source).toContain('实际总毛重(服务端汇总)') expect(source).toContain('称重图片序号 #{{ index + 1 }}') expect(source).toContain('workspace.value?.actualGrossWeightKg') + expect(source).toContain('v-model="weightDrafts[row.id].value"') + expect(source).toContain('识别值已自动填入,可修改后直接确认保存。') + expect(source).toContain("adjustmentReason: '人工核对后修改识别重量'") + expect(source).toContain('version = corrected.version') + expect(source).not.toContain('title="人工修正重量"') }) it('matches backend image limits and preserves missing OCR text honestly', () => { diff --git a/src/modules/inbounds/weight/components/WeightOcrPanel.vue b/src/modules/inbounds/weight/components/WeightOcrPanel.vue index cd9c9eba..816a9f90 100644 --- a/src/modules/inbounds/weight/components/WeightOcrPanel.vue +++ b/src/modules/inbounds/weight/components/WeightOcrPanel.vue @@ -1,12 +1,11 @@