1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-08-10 20:39:48 +08:00

Fix error when closing popover of amount to be converted (#895)

* fixe Point of Sales

* fix error when closing popover of amount to be converted

Co-authored-by: elsiosanchez <elsiossanches@gmail.com>
This commit is contained in:
Elsio Sanchez 2021-06-02 21:36:28 -04:00 committed by GitHub
parent cd308aa485
commit ff8bef0b41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 2 deletions

View File

@ -26,7 +26,7 @@ export default [
size: 24, size: 24,
handleActionKeyPerformed: true, handleActionKeyPerformed: true,
handleActionPerformed: true, handleActionPerformed: true,
validationCode: 'C_Currency.C_Currency_ID = 100', validationCode: 'C_Currency.C_Currency_ID = 100 OR C_Currency.C_Currency_ID = 50001',
isActiveLogics: true, isActiveLogics: true,
isMandatory: true isMandatory: true
} }

View File

@ -89,7 +89,7 @@ export default {
data() { data() {
return { return {
fieldsList: fieldsListConvertAmountCollection, fieldsList: fieldsListConvertAmountCollection,
amountConvertionTotal: 0 amountConvertionTotal: this.amount
} }
}, },
computed: { computed: {

View File

@ -243,6 +243,8 @@
<el-popover <el-popover
:v-model="seeConversion" :v-model="seeConversion"
placement="top-start" placement="top-start"
trigger="click"
@hide="closeConvertion"
> >
<convert-amount <convert-amount
v-show="seeConversion" v-show="seeConversion"
@ -516,6 +518,9 @@ export default {
formatDate, formatDate,
formatPrice, formatPrice,
formatQuantity, formatQuantity,
closeConvertion() {
this.seeConversion = false
},
openCollectionPanel() { openCollectionPanel() {
this.isShowedPOSKeyLayout = this.isMobile ? !this.isShowedPOSKeyLayout : true this.isShowedPOSKeyLayout = this.isMobile ? !this.isShowedPOSKeyLayout : true
this.$store.commit('setShowPOSCollection', true) this.$store.commit('setShowPOSCollection', true)