mg-ocr-invoice 0.2.4-beta0.5 → 0.2.4-beta0.6
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 +460 -455
- package/dist/index.umd.js +19 -19
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/Invoice/index.vue +16 -3
- package/src/components/InvoiceList/index.vue +3 -3
package/package.json
CHANGED
|
@@ -121,7 +121,15 @@
|
|
|
121
121
|
<div class="marPX">
|
|
122
122
|
<Cell title="价税合计" :value="computed_amount">
|
|
123
123
|
<template #value>
|
|
124
|
-
<div
|
|
124
|
+
<div
|
|
125
|
+
style="
|
|
126
|
+
color: #333;
|
|
127
|
+
font-weight: 400;
|
|
128
|
+
font-size: 16px;
|
|
129
|
+
margin-right: 12px;
|
|
130
|
+
">
|
|
131
|
+
{{ computed_amount }}
|
|
132
|
+
</div>
|
|
125
133
|
</template>
|
|
126
134
|
<template #right-icon>
|
|
127
135
|
<div @click="expandObj.showPrice = !expandObj.showPrice">
|
|
@@ -325,7 +333,7 @@ const isEdit = computed(() => {
|
|
|
325
333
|
props.invoiceData.manualModify ||
|
|
326
334
|
props.invoiceData.rerealStatus === 'checkFail'
|
|
327
335
|
)
|
|
328
|
-
})
|
|
336
|
+
})
|
|
329
337
|
const submit = async () => {
|
|
330
338
|
showLoading.value = true
|
|
331
339
|
try {
|
|
@@ -400,7 +408,12 @@ const blurInput = (e: any, key: any) => {
|
|
|
400
408
|
const computed_amount = computed(() => {
|
|
401
409
|
let count = new Decimal(0)
|
|
402
410
|
formData.value.itemAmountReqs.forEach((item) => {
|
|
403
|
-
|
|
411
|
+
let tax_amount = new Decimal(filterNumber(item.itemExTaxAmount)).times(
|
|
412
|
+
new Decimal(filterNumber(item.itemTaxRate / 100))
|
|
413
|
+
)
|
|
414
|
+
count = count.plus(
|
|
415
|
+
new Decimal(filterNumber(item.itemExTaxAmount)).plus(tax_amount)
|
|
416
|
+
)
|
|
404
417
|
})
|
|
405
418
|
return count.toFixed(2)
|
|
406
419
|
})
|
|
@@ -273,11 +273,11 @@ const selectStatus = (item: any) => {
|
|
|
273
273
|
(item.realStatus === 'checked' ||
|
|
274
274
|
item.realStatus === 'noNeed' ||
|
|
275
275
|
item.manualModify ||
|
|
276
|
-
item.realStatus === 'checkFail'
|
|
277
|
-
!item.invoiceExceptionInfo) &&
|
|
276
|
+
item.realStatus === 'checkFail') &&
|
|
278
277
|
(item.taskStatus === 'ocr_success' ||
|
|
279
278
|
item.taskStatus === 'repeat' ||
|
|
280
|
-
item.taskStatus === 'finish')
|
|
279
|
+
item.taskStatus === 'finish') &&
|
|
280
|
+
!item.invoiceExceptionInfo
|
|
281
281
|
)
|
|
282
282
|
}
|
|
283
283
|
const selectedAll: any = ref(false)
|