1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-08-13 15:15:53 +08:00

fix point of sale not found (#606)

* fix point of sale not found

* rename parameter
This commit is contained in:
Elsio Sanchez 2021-02-25 22:20:41 -04:00 committed by GitHub
parent 999ce3de0a
commit 34a6e3a2af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -427,7 +427,7 @@ export default {
}, },
watch: { watch: {
currencyUuid(value) { currencyUuid(value) {
if (!this.isEmptyValue(value)) { if (!this.isEmptyValue(value) && !this.isEmptyValue(this.currentPoint)) {
this.$store.dispatch('conversionDivideRate', { this.$store.dispatch('conversionDivideRate', {
conversionTypeUuid: this.$store.getters.getCurrentPOS.conversionTypeUuid, conversionTypeUuid: this.$store.getters.getCurrentPOS.conversionTypeUuid,
currencyFromUuid: this.currencyPoint.uuid, currencyFromUuid: this.currencyPoint.uuid,
@ -436,7 +436,7 @@ export default {
} }
}, },
converCurrency(value) { converCurrency(value) {
if (!this.isEmptyValue(value)) { if (!this.isEmptyValue(value) && !this.isEmptyValue(this.currentPoint)) {
this.$store.dispatch('conversionMultiplyRate', { this.$store.dispatch('conversionMultiplyRate', {
containerUuid: 'Order', containerUuid: 'Order',
conversionTypeUuid: this.$store.getters.getCurrentPOS.conversionTypeUuid, conversionTypeUuid: this.$store.getters.getCurrentPOS.conversionTypeUuid,

View File

@ -199,7 +199,7 @@ export default {
}, },
updateOrder(update) { updateOrder(update) {
// user session // user session
if (update.value !== this.getOrder.businessPartner.uuid) { if (update.value !== this.getOrder.businessPartner.uuid && !this.isEmptyValue(this.currentPoint)) {
this.$store.dispatch('updateOrder', { this.$store.dispatch('updateOrder', {
orderUuid: this.$route.query.action, orderUuid: this.$route.query.action,
posUuid: this.currentPoint.uuid, posUuid: this.currentPoint.uuid,