mg-ocr-invoice 0.2.5 → 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.5",
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,17 +269,26 @@ 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 === 'unused') {
273
+ if (item.manualModify) {
274
+ return true
275
+ }
276
+ if (!item.invoiceExceptionInfo) {
277
+ return true
278
+ }
279
+ return false
280
+ } else {
281
+ return false
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
+ // }
283
292
  }
284
293
  const selectedAll: any = ref(false)
285
294
  const changeSelectAll = (v: any) => {