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

Error creating order (#1063)

* fixe new orden

* delete comment

Co-authored-by: elsiosanchez <elsiossanches@gmail.com>
This commit is contained in:
Elsio Sanchez 2021-08-16 17:46:24 -04:00 committed by GitHub
parent a6197f67b2
commit 3e22f12a1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 5 deletions

View File

@ -180,11 +180,6 @@ export default {
}, },
customFocusGained(event) { customFocusGained(event) {
this.isFocus = true this.isFocus = true
// this.focusGained(event)
this.$nextTick(() => {
this.$refs[this.metadata.columnName].focus()
})
}, },
customFocusLost(event) { customFocusLost(event) {
this.isFocus = false this.isFocus = false

View File

@ -679,6 +679,7 @@ export default {
action: response.uuid action: response.uuid
} }
}).then(() => { }).then(() => {
this.$store.commit('setShowPOSCollection', false)
this.$store.dispatch('listOrdersFromServer', { this.$store.dispatch('listOrdersFromServer', {
posUuid: this.currentPointOfSales.uuid posUuid: this.currentPointOfSales.uuid
}) })

View File

@ -749,6 +749,7 @@ export default {
return this.formatPrice(this.currentOrder.grandTotal - this.currentOrder.totalLines, currency) return this.formatPrice(this.currentOrder.grandTotal - this.currentOrder.totalLines, currency)
}, },
newOrder() { newOrder() {
this.$store.commit('setShowPOSCollection', false)
this.createOrder({ withLine: false, newOrder: true }) this.createOrder({ withLine: false, newOrder: true })
}, },
changePos(pointOfSales) { changePos(pointOfSales) {