mg-ocr-invoice 0.1.9 → 0.2.0

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mg-ocr-invoice",
3
3
  "private": false,
4
- "version": "0.1.9",
4
+ "version": "0.2.0",
5
5
  "type": "module",
6
6
  "types": "dist/types/index.d.ts",
7
7
  "module": "dist/index.es.js",
@@ -1,5 +1,5 @@
1
1
  export const const_invoiceStatus: any = {
2
- invalid: '无效发票',
2
+ invalid: '异常发票',
3
3
  unused: '未使用',
4
4
  using: '使用中',
5
5
  used: '已使用',
@@ -8,7 +8,7 @@ export const const_realStatus: any = {
8
8
  noNeed: '无需验真',
9
9
  notCheck: '未验真',
10
10
  checked: '已验真',
11
- checkFail: '验真失败',
11
+ checkFail: '验真异常',
12
12
  }
13
13
  export const const_taskStatus: any = {
14
14
  init: '初始状态',
@@ -135,7 +135,7 @@
135
135
  <Loading class="loading" color="#0094ff">上传中...</Loading>
136
136
  </Overlay>
137
137
  </template>
138
- <!-- 无效发票, 已使用的, 使用中的, 识别失败 禁止提交 -->
138
+ <!-- 异常发票, 已使用的, 使用中的, 识别失败 禁止提交 -->
139
139
  <script setup lang="ts">
140
140
  import 'vant/lib/index.css'
141
141
  import { ref, onMounted, computed } from 'vue'
@@ -280,7 +280,14 @@ const submitBtn = computed(() => {
280
280
  item.invoiceStatus === 'unused' &&
281
281
  (item.taskStatus === 'ocr_success' ||
282
282
  item.taskStatus === 'repeat' ||
283
- item.taskStatus === 'finish')
283
+ item.taskStatus === 'finish' ||
284
+ item.invoiceStatus === 'invalid' ||
285
+ item.invoiceStatus === 'invalid' ||
286
+ item.invoiceStatus === 'used' ||
287
+ item.realStatus === 'noNeed' ||
288
+ item.realStatus === 'notCheck' ||
289
+ item.realStatus === 'checked' ||
290
+ item.realStatus === 'checkFail')
284
291
  )
285
292
  })
286
293
  return flag && list.value.filter((item) => item.selected).length > 0
@@ -292,7 +299,7 @@ const ok = () => {
292
299
  return
293
300
  }
294
301
  if (!submitBtn.value) {
295
- showToast({ type: 'text', message: '存在无效发票,无法提交' })
302
+ showToast({ type: 'text', message: '存在异常发票,无法提交' })
296
303
  return
297
304
  }
298
305
  // showDeleteBtn.value = false