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

Fix copyOrder (#788)

* Fix copyOrder

* create order with the same customer

Co-authored-by: elsiosanchez <elsiosanche@gmail.com>
This commit is contained in:
Elsio Sanchez 2021-04-27 16:51:35 -04:00 committed by GitHub
parent 975e75a09a
commit f16e2c9afa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -180,7 +180,7 @@ export default {
this.$store.dispatch('processPos', { this.$store.dispatch('processPos', {
action: action, // process metadata action: action, // process metadata
parentUuid: this.parentUuid, parentUuid: this.parentUuid,
idProcess: this.$store.getters.posAttributes.currentOrder.id, idProcess: this.$store.getters.posAttributes.currentPointOfSales.currentOrder.id,
containerUuid: this.containerUuid, containerUuid: this.containerUuid,
panelType: this.panelType, // determinate if get table name and record id (window) or selection (browser) panelType: this.panelType, // determinate if get table name and record id (window) or selection (browser)
parametersList: this.$store.getters.getPosParameters parametersList: this.$store.getters.getPosParameters

View File

@ -474,7 +474,7 @@ export default {
this.$store.dispatch('addParametersProcessPos', parametersList) this.$store.dispatch('addParametersProcessPos', parametersList)
requestCreateOrder({ requestCreateOrder({
posUuid, posUuid,
customerUuid: this.currentPointOfSales.businessPartner.uuid, customerUuid: this.currentOrder.businessPartner.uuid,
salesRepresentativeUuid: this.currentPointOfSales.salesRepresentative.uuid salesRepresentativeUuid: this.currentPointOfSales.salesRepresentative.uuid
}) })
.then(order => { .then(order => {