af-mobile-client-vue3 1.6.44 → 1.6.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/.env +1 -1
  2. package/package.json +1 -1
  3. package/src/components/common/otherCharge/GridFileUploader.vue +1 -1
  4. package/src/components/core/ImageUploader/index.vue +5 -1
  5. package/src/components/data/OtherCharge/OtherChargeGroupModal.vue +542 -542
  6. package/src/components/data/XCellList/index.vue +0 -2
  7. package/src/components/data/XCellListFilter/index.vue +0 -1
  8. package/src/components/data/XForm/index.vue +2 -1
  9. package/src/components/data/XFormItem/index.vue +2 -1
  10. package/src/components/data/XReportGrid/XReportDemo.vue +33 -33
  11. package/src/components/data/XReportGrid/print.js +184 -184
  12. package/src/stores/modules/safecheckStore.ts +47 -47
  13. package/src/utils/PhotoClean.ts +21 -21
  14. package/src/utils/appBackManager.ts +23 -23
  15. package/src/utils/safeBack.ts +38 -38
  16. package/src/utils/timeUtil.ts +27 -27
  17. package/src/views/SafeInspection/SecurityCertificate/AddDevice/index.vue +1 -0
  18. package/src/views/SafeInspection/SecurityCertificate/AddDevice/types/device.ts +2 -0
  19. package/src/views/SafeInspection/SecurityCertificate/OverallHiddenDangers/index.vue +2 -1
  20. package/src/views/SafeInspection/SecurityCertificate/contractSign/index.vue +2 -1
  21. package/src/views/SafeInspection/SecurityCertificate/index.vue +14 -11
  22. package/src/views/SafeInspection/SecurityCertificate/photoAiRecognition/components/PhotoCaptureCard.vue +3 -2
  23. package/src/views/SafeInspection/SecurityCertificate/photoAiRecognition/index.vue +2 -1
  24. package/src/views/SafeInspection/SecurityCertificate/photoSignature/index.vue +2 -1
  25. package/src/views/SafeInspection/SecurityCertificate/photoSignature/slots/QinHuaSignature.vue +16 -11
  26. package/src/views/SafeInspection/SecurityCertificate/slots/GasDevice.vue +1 -0
  27. package/src/views/SafeInspection/SecurityCertificate/userInfo/index.vue +6 -1
  28. package/src/views/SafeInspection/SecurityFormItem/CameraView/index.vue +4 -4
  29. package/src/views/SafeInspection/SecurityFormItem/FormItem.vue +2 -1
  30. package/src/views/SafeInspection/SecurityFormItem/XMultiSelect/index.vue +1 -1
  31. package/src/views/SafeInspection/SecurityFormItem/index.vue +4 -1
  32. package/src/views/component/XFormView/index.vue +2 -2
  33. package/vite.config.ts +1 -1
package/.env CHANGED
@@ -5,7 +5,7 @@ VITE_APP_OUT_DIR=dist_af-library-mobile-web
5
5
  VITE_APP_VCONSOLE=false
6
6
  # 自定义参数
7
7
  VITE_APP_WEB_CONFIG_KEY=admin.webconfig
8
- VITE_APP_SYSTEM_NAME=af-system
8
+ VITE_APP_SYSTEM_NAME=af-safecheck
9
9
  # 最低兼容性 V4(最新产品)V3(V3产品) OA(公司OA)
10
10
  VITE_APP_COMPATIBLE=V4
11
11
  VITE_RSA_PRIVATE_KEY=MIICdQIBADANBgkqhkiG9w0BAQEFAASCAl8wggJbAgEAAoGBAIRrmftLDHCQqREEJ132Onu+W3vmFbdF7QD751SrcDDGDTfzuz1zBuElvkHhuDBb7KZkXrCIe+MhvX2IvxcLObl3faX+evYlnfj2HRbF0hIpQLuIq22tL06ZcV5w7wqLxUZRpFElIFm8gZTkUvfKXVuHw89e4daDVhU5hK3GHNGTAgMBAAECgYABiINrFaE1E8pkBYx1JJA5yuhL73aUktfd2TeCU00vFg6kyrWCI85Sa2RKu/6CJNZWeOFgdubEUv7a22tRrNIZb3yUMaqtTwSso78mspIOJqjWXTkTH9WPElfTcdpdIse/lgZtPz6egxkuhadSvwrM9Y6NgusiW/5+x95Ct08iOQJBAN5aK+7uISURvGQj2EaRtgGEd8+d4oHl+BYvvTeG3qSgUikHQW3j0sp4gXPw2kxw6sjVgLFOc4FB6LGqwzOTzokCQQCYdYG8ty3Uo/ebUlNzeJFxHXjy/KvBSytAUzAXkRu3nZrkEaPQsi3dgOkZgk+F1fMDzfQ4EbDIU6xvqOoZXHg7AkATCW9XfoXR8anKfRMoP5Nwn9HOMbtR2cmaxK2TknV/bMZ8AsYETYwfj5+tuIJIJybC2RyykX/sIiN1CqS5xr7ZAkArj19rMRdaKyMi8MnBM1Cy9g3Jt2HHj5ejAGG8SgyWUOShh1y70z0BjcSMMkxQXAncK2s83ekZw7aADM4eQupjAkARRgTwwMOnn3IoKmQusKhZk0uxilZ4Zc2LH6Z4GiWnvteM0W8Zw4Z1lJUcjgQq3dGqL2RdmzeQZ+HgPIOXrZVK
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "af-mobile-client-vue3",
3
3
  "type": "module",
4
- "version": "1.6.44",
4
+ "version": "1.6.46",
5
5
  "packageManager": "pnpm@10.13.1",
6
6
  "description": "Vue + Vite component lib",
7
7
  "engines": {
@@ -10,7 +10,7 @@ import {
10
10
  Icon as VanIcon,
11
11
  ImagePreview as VanImagePreview,
12
12
  } from 'vant'
13
- import {computed, onBeforeUnmount, onMounted, onUnmounted, reactive, ref} from 'vue'
13
+ import { computed, onBeforeUnmount, onMounted, onUnmounted, reactive, ref } from 'vue'
14
14
 
15
15
  export interface FileTypeConfig {
16
16
  userType: string
@@ -35,7 +35,7 @@ const props = defineProps({
35
35
  readonly: { type: Boolean, default: false },
36
36
  isAsyncUpload: { type: Boolean, default: false },
37
37
  })
38
- const emit = defineEmits(['updateFileList', 'updateAllFileList'])
38
+ const emit = defineEmits(['updateFileList', 'updateAllFileList', 'photoQualityChange'])
39
39
 
40
40
  const imageList = ref<Array<any>>(props.imageList ?? [])
41
41
 
@@ -187,6 +187,9 @@ function triggerCamera() {
187
187
  rePhotoCheck(result.data)
188
188
  }
189
189
  else if (result.status === 'error') {
190
+ if (result?.message && result.message.startsWith('图片质量检测失败')) {
191
+ emit('photoQualityChange', 'quality-failed')
192
+ }
190
193
  const env = detectEnvironment()
191
194
  // App 环境下弹窗提示错误
192
195
  if (env.isApp) {
@@ -230,6 +233,7 @@ function rePhotoCheck(photoData: any) {
230
233
  if (result && result.status === 'success') {
231
234
  const checkRePhotoResult = result.data
232
235
  if (checkRePhotoResult.is_rephoto === true || checkRePhotoResult.is_rephoto === 'true') {
236
+ emit('photoQualityChange', 'rephoto-detected')
233
237
  console.warn(`检测到当前图片属于翻拍照片\n请上传合法图片!`)
234
238
  showFailToast({
235
239
  message: `当前图片属于翻拍照片\n请上传合法图片!`,