mg-ocr-invoice 0.2.1 → 0.2.3

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.1",
4
+ "version": "0.2.3",
5
5
  "type": "module",
6
6
  "types": "dist/types/index.d.ts",
7
7
  "module": "dist/index.es.js",
@@ -1,7 +1,9 @@
1
1
  <template>
2
2
  <div class="InvoiceList">
3
3
  <div class="selectAll">
4
- <div class="left">已选 {{ selectedLength }}/{{ selectedLengthCount }}</div>
4
+ <div class="left">
5
+ 已选 {{ selectedLength }}/{{ selectedLengthCount }}
6
+ </div>
5
7
  <div class="right">
6
8
  <span>全选</span>
7
9
  <input
@@ -20,10 +22,7 @@
20
22
 
21
23
  <div class="card">
22
24
  <ul>
23
- <li
24
- v-for="(item, index) in list"
25
- :key="index"
26
- @click="clickItem(item)">
25
+ <li v-for="(item, index) in list" :key="index" @click="clickItem(item)">
27
26
  <div class="li">
28
27
  <div
29
28
  class="item-card"
@@ -210,7 +209,7 @@ const selectId = computed(() => {
210
209
  const getList = async () => {
211
210
  return new Promise(async (resolve, reject) => {
212
211
  const data: any = {}
213
- data.batchId = listId || '1691015132836003840'
212
+ data.batchId = listId
214
213
  if (!data.batchId) return
215
214
  try {
216
215
  const res: any = await __getUploadInvoiceList(data, token.value)
@@ -248,17 +247,15 @@ const openDetails = (row: any) => {
248
247
  }
249
248
  const everyStatus = (item: any) => {
250
249
  return (
251
- item.invoiceStatus === 'unused' &&
252
- (item.taskStatus === 'ocr_success' ||
253
- item.taskStatus === 'repeat' ||
254
- item.taskStatus === 'finish' ||
255
- item.invoiceStatus === 'invalid' ||
256
- item.invoiceStatus === 'invalid' ||
257
- item.invoiceStatus === 'used' ||
258
- item.realStatus === 'noNeed' ||
259
- item.realStatus === 'notCheck' ||
260
- item.realStatus === 'checked' ||
261
- item.realStatus === 'checkFail')
250
+ item.invoiceStatus === 'unused' ||
251
+ item.invoiceStatus === 'invalid' ||
252
+ item.taskStatus === 'ocr_success' ||
253
+ item.taskStatus === 'repeat' ||
254
+ item.taskStatus === 'finish' ||
255
+ item.realStatus === 'noNeed' ||
256
+ item.realStatus === 'notCheck' ||
257
+ item.realStatus === 'checked' ||
258
+ item.realStatus === 'checkFail'
262
259
  )
263
260
  }
264
261
  const selectedAll: any = ref(false)
@@ -330,6 +327,9 @@ const submitBtn = computed(() => {
330
327
  const flag = list.value
331
328
  .filter((item) => item.selected)
332
329
  .every((item) => {
330
+ console.log(item.invoiceStatus, 'invoiceStatus')
331
+ console.log(item.taskStatus, 'taskStatus')
332
+ console.log(item.realStatus, 'realStatus')
333
333
  return everyStatus(item)
334
334
  // item.invoiceStatus === 'unused' &&
335
335
  // (item.taskStatus === 'ocr_success' ||
@@ -59,11 +59,10 @@ const { token, multiple, Base_URL, OCR_AuthDomain, batchId } = defineProps({
59
59
  })
60
60
 
61
61
  const initToken = () => {
62
- activePage.value = 2
62
+ activePage.value = 1
63
63
  const params = getUrlParams(window.location.href)
64
64
  const linkToken = params.token
65
65
  Cookies.set('token', linkToken || token)
66
- ;('1690993442433269760')
67
66
  }
68
67
  const init_Base_URL = () => {
69
68
  const params = getUrlParams(window.location.href)
@@ -100,10 +99,11 @@ onMounted(() => {
100
99
  <style lang="scss" scoped>
101
100
  .OCRInvoice {
102
101
  width: 100%;
103
- height: 100%;
102
+ height: 100vh;
104
103
  .box {
105
104
  width: 100%;
106
105
  min-height: 100%;
106
+ height: 100%;
107
107
  }
108
108
  }
109
109
  </style>