This commit is contained in:
2026-08-17 17:49:10 +08:00
parent 911a3620e1
commit c7334b2cf8
30 changed files with 1043 additions and 249 deletions
@@ -8,8 +8,7 @@ describe('InboundWorkflowWorkspace', () => {
it('assembles every phase-two inbound domain behind one server-backed workspace', () => {
expect(source).toContain('InboundSummaryPanel')
expect(source).toContain('InboundHistoryPanel')
expect(source).toContain('InboundMeasurementPanel')
expect(source).toContain('WeightOcrPanel')
expect(source).toContain('InboundMeasurementDialog')
expect(source).toContain('MeasurementReviewPanel')
expect(source).toContain('InboundFeePanel')
expect(source).toContain('getPlatformInbound')
@@ -23,7 +22,7 @@ describe('InboundWorkflowWorkspace', () => {
})
it('opens measurement editing and review in prototype-sized centered dialogs', () => {
expect(source).toContain(':title="`测量 · ${title}`"')
expect(source).toContain('<InboundMeasurementDialog')
expect(source).toContain('width="min(1240px, calc(100vw - 32px))"')
expect(source).toContain(':title="`测量审核 · ${title}`"')
expect(source).toContain('width="min(1240px, calc(100vw - 32px))"')
@@ -37,12 +36,11 @@ describe('InboundWorkflowWorkspace', () => {
it('keeps domain writes inside their existing panels and mounts them only in dialog bodies', () => {
expect(source).toContain('@click="measurementDialogOpen = true"')
expect(source).toContain('@click="reviewDialogOpen = true"')
expect(source).toContain(':key="`measurement-dialog-${revision}`"')
expect(source).toContain(':key="`review-dialog-${revision}`"')
expect(source).toContain('@changed="handleReviewChanged"')
expect(source).toContain('<template #footer>')
expect(source).toContain('measurementPanelRef?.saveDraft()')
expect(source).toContain('measurementPanelRef?.submitForReview()')
expect(source).toContain('@updated="handleDomainChanged"')
expect(source).toContain('@submitted="handleDomainChanged"')
expect(source).toContain("reviewPanelRef?.openReasonDialog('reject')")
expect(source).toContain('reviewPanelRef?.confirmApprove()')
expect(source).toContain('inbound-operation-dialog__footer')
@@ -69,7 +67,7 @@ describe('InboundWorkflowWorkspace', () => {
it('uses customer context in the page layer and maps it to compatible domain APIs', () => {
expect(source).toContain('customerId: string')
expect(source).toContain('getPlatformInbound(props.customerId, props.inboundId)')
expect(source).toContain(':tenant-id="customerId"')
expect(source).toContain(':customer-id="customerId"')
expect(source).toContain('缺少所属企业信息')
expect(source).not.toContain('请选择企业')
expect(source).not.toContain('租户')