mg-ocr-invoice 0.3.7 → 0.3.8

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.3.7",
4
+ "version": "0.3.8",
5
5
  "type": "module",
6
6
  "types": "dist/types/index.d.ts",
7
7
  "module": "dist/index.es.js",
@@ -144,7 +144,7 @@
144
144
  <div class="btn-form">
145
145
  <div class="operate">
146
146
  <div class="delete" @click="deleteSelectItem">
147
- <span >移除</span>
147
+ <span>移除</span>
148
148
  </div>
149
149
  <div class="right-btn">
150
150
  <span class="add" @click="add">继续添加发票</span>
@@ -184,7 +184,7 @@ import {
184
184
  showToast,
185
185
  showConfirmDialog,
186
186
  Overlay,
187
- showImagePreview
187
+ showImagePreview,
188
188
  } from 'vant'
189
189
  import '@/utils/disableZoom'
190
190
  import { selectPhoto, takePhoto } from '@/utils/upload'
@@ -244,10 +244,14 @@ const getList = async () => {
244
244
  if (res.code === 200) {
245
245
  list.value = res.data.invoiceList.map((item: any) => {
246
246
  let data = list.value.find((v: any) => v.taskId === item.taskId) || {}
247
+ // 保持选择状态
247
248
  return {
248
- ...Object.assign(data, item),
249
+ ...item,
250
+ selected: data.selected
251
+ // ...Object.assign(data, item),
249
252
  }
250
253
  })
254
+ console.log(list.value)
251
255
  batchId.value = res.data.batchId
252
256
  if (list.value.length <= 0) {
253
257
  selectedAll.value = false