mg-ocr-invoice 0.2.5 → 0.2.6

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