1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-08-10 12:01:57 +08:00

Add big total converted (#555)

* Add big total converted

* minimal change
This commit is contained in:
Elsio Sanchez 2020-12-02 16:45:18 -04:00 committed by GitHub
parent add8639a74
commit 20b9d90f18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 6 deletions

View File

@ -35,14 +35,15 @@
label="Producto"
>
<template slot-scope="scope">
<el-popover trigger="click" placement="right" width="300">
<el-popover trigger="click" placement="right" width="450">
<b><i> {{ scope.row.product.name }} </i> </b>
<el-divider />
<p><b style="float: left">{{ $t('form.productInfo.code') }}</b><spam style="float: right">{{ scope.row.product.value }}</spam></p><br>
<p><b style="float: left">{{ $t('form.productInfo.price') }}</b><spam style="float: right"> {{ formatPrice(scope.row.priceStandard, scope.row.currency.iSOCode) }} </spam></p><br>
<p><b style="float: left">{{ $t('form.productInfo.taxAmount') }}</b><spam style="float: right"> {{ formatPrice(getTaxAmount(scope.row.priceStandard, scope.row.taxRate.rate), scope.row.currency.iSOCode) }} </spam></p><br>
<p><b style="float: left">{{ $t('form.productInfo.grandTotal') }}</b><spam style="float: right"> {{ formatPrice(getTaxAmount(scope.row.priceStandard, scope.row.taxRate.rate) + scope.row.priceStandard, scope.row.currency.iSOCode) }} </spam></p><br>
<p><b style="float: left">{{ $t('form.productInfo.upc') }}</b><spam style="float: right"> {{ scope.row.product.upc }} </spam></p>
<p><b style="float: left">{{ $t('form.productInfo.code') }}</b><span style="float: right">{{ scope.row.product.value }}</span></p><br>
<p><b style="float: left">{{ $t('form.productInfo.upc') }}</b><span style="float: right"> {{ scope.row.product.upc }} </span></p><br>
<p><b style="float: left">{{ $t('form.productInfo.price') }}</b><span style="float: right"> {{ formatPrice(scope.row.priceStandard, scope.row.currency.iSOCode) }} </span></p><br>
<p><b style="float: left">{{ $t('form.productInfo.taxAmount') }}</b><span style="float: right"> {{ formatPrice(getTaxAmount(scope.row.priceStandard, scope.row.taxRate.rate), scope.row.currency.iSOCode) }} </span></p><br>
<p><b style="float: left">{{ $t('form.productInfo.grandTotal') }}</b><span style="float: right"> {{ formatPrice(getTaxAmount(scope.row.priceStandard, scope.row.taxRate.rate) + scope.row.priceStandard, scope.row.currency.iSOCode) }} </span></p><br>
<p><b style="float: left">{{ $t('form.productInfo.grandTotalConverted') }} {{ scope.row.schemaCurrency.iSOCode }} </b><span style="float: right"> {{ formatPrice(getTaxAmount(scope.row.schemaPriceStandard, scope.row.taxRate.rate) + scope.row.schemaPriceStandard, scope.row.schemaCurrency.iSOCode) }} </span></p>
<div slot="reference" class="name-wrapper">
{{ scope.row.product.name }}
</div>

View File

@ -402,6 +402,7 @@ export default {
price: 'Price',
taxAmount: 'Tax Amount',
grandTotal: 'Grand Total',
grandTotalConverted: 'Grand Total Converted',
quantityAvailable: 'Quantity Avalible',
upc: 'UPC / EAN'
}

View File

@ -377,6 +377,7 @@ export default {
price: 'Precio',
taxAmount: 'Monto de Impuesto',
grandTotal: 'Total General',
grandTotalConverted: 'Grand Total Convertido',
quantityAvailable: 'Cantidad Disponible',
upc: 'Código de Barras'
}