1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-08-07 18:25:45 +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) {
this.isFocus = true
// this.focusGained(event)
this.$nextTick(() => {
this.$refs[this.metadata.columnName].focus()
})
},
customFocusLost(event) {
this.isFocus = false

View File

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

View File

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