mg-ocr-invoice 0.2.4-beta0.1 → 0.2.4-beta0.5
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/dist/index.es.js +1606 -1590
- package/dist/index.umd.js +21 -21
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/Invoice/index.vue +15 -5
- package/src/components/InvoiceList/index.vue +4 -13
package/package.json
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<template #title>
|
|
13
13
|
<div class="Field-title">
|
|
14
14
|
<span class="titleLeft">公司信息</span>
|
|
15
|
-
<span class="titleright">重新查验</span>
|
|
15
|
+
<!-- <span class="titleright">重新查验</span> -->
|
|
16
16
|
</div>
|
|
17
17
|
</template>
|
|
18
18
|
<div class="marPX">
|
|
@@ -211,11 +211,11 @@
|
|
|
211
211
|
</CellGroup>
|
|
212
212
|
<div class="submit">
|
|
213
213
|
<span
|
|
214
|
-
style="
|
|
214
|
+
style="flex: 1; background-color: #07c160; color: #fff"
|
|
215
215
|
@click="close">
|
|
216
216
|
返回
|
|
217
217
|
</span>
|
|
218
|
-
<span @click="submit">保存</span>
|
|
218
|
+
<span v-if="isEdit" @click="submit">保存</span>
|
|
219
219
|
</div>
|
|
220
220
|
</Form>
|
|
221
221
|
</div>
|
|
@@ -317,7 +317,15 @@ const close = () => {
|
|
|
317
317
|
const openPreViewImg = () => {
|
|
318
318
|
showImagePreview([props.invoiceData.attachmentLink])
|
|
319
319
|
}
|
|
320
|
-
|
|
320
|
+
const isEdit = computed(() => {
|
|
321
|
+
// true 允许
|
|
322
|
+
return (
|
|
323
|
+
props.invoiceData.realStatus === 'noNeed' ||
|
|
324
|
+
props.invoiceData.invoiceExceptionInfo === 'abnormal' ||
|
|
325
|
+
props.invoiceData.manualModify ||
|
|
326
|
+
props.invoiceData.rerealStatus === 'checkFail'
|
|
327
|
+
)
|
|
328
|
+
})
|
|
321
329
|
const submit = async () => {
|
|
322
330
|
showLoading.value = true
|
|
323
331
|
try {
|
|
@@ -525,9 +533,11 @@ onMounted(() => {
|
|
|
525
533
|
padding: 0 12px;
|
|
526
534
|
z-index: 2;
|
|
527
535
|
background-color: #fff;
|
|
536
|
+
gap: 12px;
|
|
528
537
|
span {
|
|
538
|
+
flex: 2;
|
|
529
539
|
background-color: #266fe8;
|
|
530
|
-
width: 68%;
|
|
540
|
+
// width: 68%;
|
|
531
541
|
font-size: 15px;
|
|
532
542
|
color: #fff;
|
|
533
543
|
height: 44px;
|
|
@@ -251,19 +251,11 @@ const getList = async () => {
|
|
|
251
251
|
const clickItem = (row: any) => {
|
|
252
252
|
row.selected = !row.selected
|
|
253
253
|
}
|
|
254
|
-
|
|
255
|
-
// true 允许
|
|
256
|
-
return (
|
|
257
|
-
row.realStatus === 'noNeed' ||
|
|
258
|
-
row.invoiceExceptionInfo === 'abnormal' ||
|
|
259
|
-
row.manualModify ||
|
|
260
|
-
row.rerealStatus === 'checkFail'
|
|
261
|
-
)
|
|
262
|
-
}
|
|
254
|
+
|
|
263
255
|
const openDetails = (row: any) => {
|
|
264
|
-
if (!isEdit(row)) {
|
|
265
|
-
|
|
266
|
-
}
|
|
256
|
+
// if (!isEdit(row)) {
|
|
257
|
+
// return
|
|
258
|
+
// }
|
|
267
259
|
emit(
|
|
268
260
|
'edit',
|
|
269
261
|
{
|
|
@@ -275,7 +267,6 @@ const openDetails = (row: any) => {
|
|
|
275
267
|
)
|
|
276
268
|
}
|
|
277
269
|
const selectStatus = (item: any) => {
|
|
278
|
-
console.log(item)
|
|
279
270
|
// 未使用&& (验真通过||无需验真|| 手工录入||验真异常) && 发票推断状态错误值为空 && 发票识别任务已完成
|
|
280
271
|
return (
|
|
281
272
|
item.invoiceStatus === 'unused' &&
|