mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-12 22:29:59 +08:00
fix point of sale not found (#606)
* fix point of sale not found * rename parameter
This commit is contained in:
parent
999ce3de0a
commit
34a6e3a2af
@ -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,
|
||||||
|
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user