This commit is contained in:
2026-09-29 17:56:03 +08:00
parent ffbe3480a8
commit a427aca5c3
19 changed files with 219 additions and 221 deletions
@@ -7,7 +7,7 @@ const api = readFileSync(new URL('../api/returnOrders.ts', import.meta.url), 'ut
test('退货签收照片通过客户鉴权下载接口加载并释放对象 URL', () => {
assert.match(api, /\/return-orders\/\$\{encodeURIComponent\(returnNo\)\}\/photos\/files\/\$\{encodeURIComponent\(String\(fileId\)\)\}\/download/)
assert.match(api, /overseasBlobRequest/)
assert.match(api, /apiBlobRequest/)
assert.match(view, /URL\.createObjectURL\(await downloadReturnPhoto\(detailReturnNo\.value, photo\.fileId\)\)/)
assert.match(view, /URL\.revokeObjectURL\(url\)/)
assert.match(view, /onBeforeUnmount\(clearPhotoUrls\)/)
@@ -213,7 +213,7 @@ test('客户可在换标列表或详情确认完工且照片使用二进制下
assert.match(view, /confirmRelabelFromList\(item\['0'\]\)/)
assert.match(view, /selectedRelabelDetail\?\.application\.status === 'CUSTOMER_CONFIRM_PENDING'/)
assert.match(view, /@click="confirmSelectedRelabel">确认换标完成/)
assert.match(api, /overseasBlobRequest/)
assert.match(api, /apiBlobRequest/)
})
test('客户详情进入页面后直接回显完工照片并支持大图预览', () => {