mg-ocr-invoice 0.2.4-beta0.5 → 0.2.4-beta0.7

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.4-beta0.5",
4
+ "version": "0.2.4-beta0.7",
5
5
  "type": "module",
6
6
  "types": "dist/types/index.d.ts",
7
7
  "module": "dist/index.es.js",
@@ -7,7 +7,7 @@
7
7
  alt="" />
8
8
  </div>
9
9
  <div>
10
- <Form label-width="65px">
10
+ <Form label-width="70px">
11
11
  <CellGroup inset>
12
12
  <template #title>
13
13
  <div class="Field-title">
@@ -121,7 +121,15 @@
121
121
  <div class="marPX">
122
122
  <Cell title="价税合计" :value="computed_amount">
123
123
  <template #value>
124
- <div style="color: #333;font-weight: 400; font-size: 16px;margin-right: 12px;">{{ computed_amount }}</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
- count = count.plus(new Decimal(item.itemExTaxAmount))
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)