mg-ocr-invoice 0.2.3 → 0.2.4-beta0.1

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.
@@ -10,6 +10,7 @@
10
10
  <InvoiceList
11
11
  :multiple="multiple"
12
12
  :listId="listId"
13
+ :catchList="catchList"
13
14
  @ok="submit"
14
15
  @edit="edit">
15
16
  </InvoiceList>
@@ -31,6 +32,8 @@ import Cookies from 'js-cookie'
31
32
  // import eruda from 'eruda'
32
33
  // eruda.init()
33
34
  import VConsole from 'vconsole'
35
+ // import { data as dataObj } from './const'
36
+
34
37
  const setLog = () => {
35
38
  if (getUrlParams(window.location.href).log == 1) {
36
39
  const vConsole = new VConsole()
@@ -55,6 +58,7 @@ const { token, multiple, Base_URL, OCR_AuthDomain, batchId } = defineProps({
55
58
  },
56
59
  batchId: {
57
60
  required: false,
61
+
58
62
  },
59
63
  })
60
64
 
@@ -76,13 +80,16 @@ const activePage = ref(0)
76
80
  const listId: any = ref(null)
77
81
  const ids = ref({})
78
82
  const invoiceData = ref({})
83
+ // invoiceData.value = dataObj
79
84
  const uploadSuccess = (id: any) => {
80
85
  listId.value = id
81
86
  activePage.value = 2
82
87
  }
83
- const edit = (id: object, row: any) => {
88
+ const catchList: any = ref(null)
89
+ const edit = (id: object, row: any, list: any) => {
84
90
  ids.value = id
85
91
  invoiceData.value = row
92
+ catchList.value = list
86
93
  activePage.value = 3
87
94
  }
88
95
  const saveSuccess = (id: object) => {
@@ -65,7 +65,6 @@ const handleClickText = async (text: any) => {
65
65
  if (props.batchId) {
66
66
  fd.append('batchId', props.batchId)
67
67
  }
68
- console.log(props.batchId,'props.batchIdprops.batchIdprops.batchId')
69
68
  showLoading.value = true
70
69
  try {
71
70
  const res: any = await __uploadInvoice(fd)