This commit is contained in:
2026-08-04 09:05:01 +08:00
parent 2d38c90d1c
commit 198101c42c
7 changed files with 305 additions and 113 deletions
@@ -25,8 +25,24 @@ test('implements company details, contact information and qualification workflow
assert.match(profileSource, /async function saveProfile\(\)/)
assert.match(profileSource, /function submitQualification\(\)/)
assert.match(profileSource, /validateQualificationFile/)
assert.match(profileSource, /function removeSelectedFile\(\)/)
assert.match(profileSource, /function removeSelectedFile\(type: MerchantQualificationType\)/)
assert.match(profileSource, /qualificationSubmitting/)
assert.match(profileSource, /const qualificationDrafts = reactive<QualificationDraftItem\[\]>/)
assert.match(profileSource, /inputVersion: number/)
assert.match(profileSource, /:key="`\$\{item\.value\}-\$\{item\.inputVersion\}`"/)
assert.match(profileSource, /class="qualification-upload-grid"/)
assert.match(profileSource, /v-for="item in qualificationDrafts"/)
assert.match(profileSource, /保存全部资质/)
assert.match(profileSource, /for \(const item of pendingItems\)/)
assert.match(profileSource, /item\.fileName = ''[\s\S]*item\.uploadState = 'uploaded'/)
assert.match(profileSource, /const canSaveQualificationBatch = computed/)
assert.match(profileSource, /const qualificationCreditCodeReady = computed/)
assert.match(profileSource, /:close-on-click-modal="!qualificationSubmitting"/)
assert.match(profileSource, /:close-on-press-escape="!qualificationSubmitting"/)
assert.match(profileSource, /:show-close="!qualificationSubmitting"/)
assert.match(profileSource, /请重新选择营业执照,并填写18位统一社会信用代码/)
assert.match(profileSource, /companyCreditCodeValid\.value/)
assert.doesNotMatch(profileSource, /<el-select v-model="qualificationDraft\.type"/)
assert.match(profileSource, /class="mobile-qualification-list"/)
assert.match(profileSource, /import DataTable, \{ type DataTableColumn \} from '@\/components\/common\/DataTable\.vue'/)
assert.match(profileSource, /const qualificationColumns: DataTableColumn\[\]/)
@@ -37,18 +53,17 @@ test('implements company details, contact information and qualification workflow
assert.match(profileSource, /class="info-panel-header"[\s\S]*auth\.hasPermission\('company:profile:edit'\)/)
assert.match(profileSource, /ref="profileFormRef" :model="draft" :rules="profileFormRules"/)
assert.match(profileSource, /prop="companyName" required><el-input v-model="draft\.companyName" placeholder="请输入公司名称"/)
assert.match(profileSource, /prop="fileName" required :error="qualificationFileError"/)
assert.match(profileSource, /const valid = await profileFormRef\.value\?\.validate\(\)/)
assert.match(profileSource, /qualificationFileError\.value = '请选择资质文件'/)
assert.match(profileSource, /请选择该项资质文件/)
assert.match(profileSource, /submitTenantQualificationReview/)
assert.match(profileSource, /提交企业审核/)
assert.match(profileSource, /资质文件已上传,尚未提交审核/)
assert.match(profileSource, /资质文件已上传,但最新状态刷新失败/)
assert.match(profileSource, /已保存.*项资质文件,尚未提交审核/)
assert.match(profileSource, /资质文件已保存,但最新状态刷新失败/)
assert.match(profileSource, /企业资料已提交审核,但最新状态刷新失败/)
assert.match(profileSource, /qualificationStatusMeta/)
assert.match(profileSource, /const canUploadQualification = computed/)
assert.match(profileSource, /:disabled="!canUploadQualification"/)
assert.match(profileSource, /error\.code === 'A0409'/)
assert.doesNotMatch(profileSource, /error\.code === 'A0409'\) break/)
assert.match(profileSource, /downloadQualificationImage/)
assert.match(profileSource, /当前资质文件尚未迁移到安全预览地址/)
assert.match(profileSource, /previewError/)