mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-10 12:01:57 +08:00
Add Quantity on hand for Product Info
This commit is contained in:
parent
0e22b1d714
commit
17b086fa04
@ -32,7 +32,7 @@
|
||||
:label="$t('form.productInfo.code')"
|
||||
/>
|
||||
<el-table-column
|
||||
label="Producto"
|
||||
:label="$t('form.productInfo.product')"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-popover trigger="click" placement="right" width="450">
|
||||
@ -51,12 +51,12 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
:label="$t('form.productInfo.taxAmount')"
|
||||
:label="$t('form.productInfo.quantityOnHand')"
|
||||
align="right"
|
||||
width="150"
|
||||
width="200"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
{{ formatPrice(getTaxAmount(scope.row.priceStandard, scope.row.taxRate.rate), scope.row.currency.iSOCode) }}
|
||||
{{ formatQuantity(scope.row.quantityOnHand) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
@ -68,6 +68,15 @@
|
||||
{{ formatPrice(scope.row.priceStandard, scope.row.currency.iSOCode) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
:label="$t('form.productInfo.taxAmount')"
|
||||
align="right"
|
||||
width="150"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
{{ formatPrice(getTaxAmount(scope.row.priceStandard, scope.row.taxRate.rate), scope.row.currency.iSOCode) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
:label="$t('form.productInfo.grandTotal')"
|
||||
align="right"
|
||||
@ -90,7 +99,7 @@
|
||||
import formMixin from '@/components/ADempiere/Form/formMixin.js'
|
||||
import CustomPagination from '@/components/ADempiere/Pagination'
|
||||
import fieldsListProductPrice from './fieldsList.js'
|
||||
import { formatPrice } from '@/utils/ADempiere/valueFormat.js'
|
||||
import { formatPrice, formatQuantity } from '@/utils/ADempiere/valueFormat.js'
|
||||
|
||||
export default {
|
||||
name: 'ProductList',
|
||||
@ -151,7 +160,7 @@ export default {
|
||||
shortsKey() {
|
||||
return {
|
||||
closeProductList: ['esc'],
|
||||
refreshList: ['f5']
|
||||
refreshList: ['enter']
|
||||
}
|
||||
},
|
||||
isReadyFromGetData() {
|
||||
@ -178,6 +187,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
formatPrice,
|
||||
formatQuantity,
|
||||
srcImage(keyValue) {
|
||||
if (this.isEmptyValue(keyValue)) {
|
||||
return this.defaultImage
|
||||
|
@ -396,11 +396,13 @@ export default {
|
||||
basePrice: 'Base price'
|
||||
},
|
||||
productInfo: {
|
||||
product: 'Product',
|
||||
productInformation: 'Product information',
|
||||
code: 'Code',
|
||||
name: 'Name',
|
||||
description: 'Description',
|
||||
price: 'Price',
|
||||
quantityOnHand: 'Quantity On Hand',
|
||||
taxAmount: 'Tax Amount',
|
||||
grandTotal: 'Grand Total',
|
||||
grandTotalConverted: 'Grand Total Converted',
|
||||
|
@ -371,10 +371,12 @@ export default {
|
||||
basePrice: 'Precio Base'
|
||||
},
|
||||
productInfo: {
|
||||
productInformation: 'Product information',
|
||||
product: 'Producto',
|
||||
productInformation: 'Información de Producto',
|
||||
code: 'Código',
|
||||
name: 'Nombre',
|
||||
description: 'Descripción',
|
||||
quantityOnHand: 'Existencia',
|
||||
price: 'Precio',
|
||||
taxAmount: 'Monto de Impuesto',
|
||||
grandTotal: 'Total General',
|
||||
|
Loading…
x
Reference in New Issue
Block a user