feat(admin): remove customer from truck appointments

This commit is contained in:
2026-08-31 21:05:03 +08:00
parent 49babd731a
commit 66c6dfdadc
14 changed files with 234 additions and 51 deletions
@@ -25,4 +25,19 @@ describe('TruckAttachmentDialog interaction governance', () => {
expect(source).toContain('size="small" type="danger" plain')
expect(source).not.toContain(' text type="danger"')
})
it('keeps list-only access read-only and preserves traced mutation failures', () => {
expect(source).toContain('v-if="props.canManage" class="upload-panel"')
expect(source).toContain('props.appointmentId && props.canManage && item.id')
expect(source).toContain('if (busy.value || !props.appointmentId || !selectedFile.value || !props.canManage) return')
expect(source).toContain('if (busy.value || !props.appointmentId || !item.id || !props.canManage) return')
expect(source).toContain("getApiErrorDetails(cause, '附件上传失败,请稍后重试')")
expect(source).toContain("getApiErrorDetails(cause, '附件删除失败,请稍后重试')")
expect(source).toContain('<ApiErrorMeta :details="error" />')
})
it('wraps long Unicode file names without hiding the actions', () => {
expect(source).toContain('overflow-wrap:anywhere')
expect(source).toContain('.attachment-row>div{min-width:0}')
})
})