优化
This commit is contained in:
@@ -15,10 +15,39 @@ describe('InboundWorkflowWorkspace', () => {
|
||||
expect(source).toContain('getPlatformInbound')
|
||||
expect(source).toContain('StatusBadge')
|
||||
expect(source).toContain('label="基本信息"')
|
||||
expect(source).toContain('label="货物与测量"')
|
||||
expect(source).toContain('label="货品与测量"')
|
||||
expect(source).toContain('label="测量审核"')
|
||||
expect(source).toContain('label="费用信息"')
|
||||
expect(source).toContain('label="状态与其他"')
|
||||
expect(source).toContain('label="状态历史"')
|
||||
expect(source).toContain('label="其他记录"')
|
||||
})
|
||||
|
||||
it('opens measurement editing and review in prototype-sized centered dialogs', () => {
|
||||
expect(source).toContain('title="编辑入库测量数据"')
|
||||
expect(source).toContain('width="min(1900px, calc(100vw - 32px))"')
|
||||
expect(source).toContain('title="审核入库测量数据"')
|
||||
expect(source).toContain('width="min(1700px, calc(100vw - 32px))"')
|
||||
expect(source).toContain('height: 92vh')
|
||||
expect(source).toContain('max-height: 92vh')
|
||||
expect(source).toContain('.el-dialog__body) { min-height: 0; flex: 1 1 auto; overflow-y: auto;')
|
||||
expect(source).toContain('@media (max-width: 720px)')
|
||||
expect(source).toContain('@media (max-width: 360px)')
|
||||
})
|
||||
|
||||
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("reviewPanelRef?.openReasonDialog('reject')")
|
||||
expect(source).toContain('reviewPanelRef?.confirmApprove()')
|
||||
expect(source).toContain('inbound-operation-dialog__footer')
|
||||
expect(source).not.toContain('approveMeasurement')
|
||||
expect(source).not.toContain('submitInboundMeasurement')
|
||||
})
|
||||
|
||||
it('uses the established first-leg detail density without nested framed surfaces', () => {
|
||||
@@ -54,7 +83,8 @@ describe('InboundWorkflowWorkspace', () => {
|
||||
|
||||
it('keeps pallet and location results read-only in the overview', () => {
|
||||
expect(source).toContain(':pallet-locations="detail.palletLocations"')
|
||||
expect(source).toContain('label="状态与其他"')
|
||||
expect(source).toContain(':sections="[\'history\']"')
|
||||
expect(source).toContain(':sections="[\'allocations\', \'files\', \'notes\', \'remark\']"')
|
||||
expect(source).not.toContain('reserveLocation')
|
||||
expect(source).not.toContain('allocatePallet')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user