mg-ocr-invoice 0.2.8 → 0.3.0

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.8",
4
+ "version": "0.3.0",
5
5
  "type": "module",
6
6
  "types": "dist/types/index.d.ts",
7
7
  "module": "dist/index.es.js",
@@ -331,7 +331,8 @@ const isEdit = computed(() => {
331
331
  props.invoiceData.realStatus === 'noNeed' ||
332
332
  props.invoiceData.invoiceExceptionInfo === 'abnormal' ||
333
333
  props.invoiceData.manualModify ||
334
- props.invoiceData.rerealStatus === 'checkFail'
334
+ props.invoiceData.realStatus === 'checkFail'||
335
+ props.invoiceData.realStatus === 'notCheck'
335
336
  )
336
337
  })
337
338
  const submit = async () => {
@@ -410,7 +411,7 @@ const computed_amount = computed(() => {
410
411
  formData.value.itemAmountReqs.forEach((item) => {
411
412
  let tax_amount = new Decimal(filterNumber(item.itemExTaxAmount)).times(
412
413
  new Decimal(filterNumber(item.itemTaxRate / 100))
413
- )
414
+ ).toFixed(2)
414
415
  count = count.plus(
415
416
  new Decimal(filterNumber(item.itemExTaxAmount)).plus(tax_amount)
416
417
  )