mg-ocr-invoice 0.2.6 → 0.2.7

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.2.6",
4
+ "version": "0.2.7",
5
5
  "type": "module",
6
6
  "types": "dist/types/index.d.ts",
7
7
  "module": "dist/index.es.js",
@@ -269,15 +269,26 @@ const openDetails = (row: any) => {
269
269
  }
270
270
  const selectStatus = (item: any) => {
271
271
  // 未使用&& (验真通过||无需验真|| 手工录入||验真异常) && 发票推断状态错误值为空 && 发票识别任务已完成
272
- if (item.invoiceStatus) {
273
- return true
274
- } else if (item.manualModify) {
275
- return true
276
- } else if (!item.invoiceExceptionInfo) {
277
- return true
272
+ if (item.invoiceStatus === 'unused') {
273
+ if (item.manualModify) {
274
+ return true
275
+ }
276
+ if (!item.invoiceExceptionInfo) {
277
+ return true
278
+ }
279
+ return false
278
280
  } else {
279
281
  return false
280
282
  }
283
+ // if (item.invoiceStatus==='unused') {
284
+ // return true
285
+ // } else if (item.manualModify) {
286
+ // return true
287
+ // } else if (!item.invoiceExceptionInfo) {
288
+ // return true
289
+ // } else {
290
+ // return false
291
+ // }
281
292
  }
282
293
  const selectedAll: any = ref(false)
283
294
  const changeSelectAll = (v: any) => {