Browse Source

拍照数据提交

dev-V1.10.2-temp
wangmingyong@163.com 2 months ago
parent
commit
6fe9886018
  1. 6
      zdxt-web-client/zdxt-efcode-enterprise-app/src/views/enterprise/nos/components/NosDetailMaterialsTab.vue

6
zdxt-web-client/zdxt-efcode-enterprise-app/src/views/enterprise/nos/components/NosDetailMaterialsTab.vue

@ -413,13 +413,13 @@ const onTakePhoto = async (item) => {
try { try {
const watermarkContent = $globalStore.useCommon?.enterpriseName || '深圳市行政执法监督码' const watermarkContent = $globalStore.useCommon?.enterpriseName || '深圳市行政执法监督码'
const res = await takePhotoWithWaterMark({ content: watermarkContent }) const res = await takePhotoWithWaterMark({ content: watermarkContent })
console.log('[NosDetail] 拍照返回 res:', res, 'imageURL:', res?.imageURL, 'key:', res?.key) console.log('[NosDetail] 拍照返回 res:', res, 'imageURL:', res?.result.imageURL, 'key:', res?.result.key)
const localPath = res.imageURL || res.key const localPath = res.result.imageURL || res.result.key
console.log('[NosDetail] 解析出的 localPath:', localPath) console.log('[NosDetail] 解析出的 localPath:', localPath)
await pushSdkFileToFileList(item, { await pushSdkFileToFileList(item, {
localPath, localPath,
fileName: `photo-${Date.now()}.jpg`, fileName: `photo-${Date.now()}.jpg`,
mimeType: 'image/jpeg', mimeType: res.result.mimeType || 'image/jpeg',
isImage: true, isImage: true,
}) })
} catch (err) { } catch (err) {

Loading…
Cancel
Save