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

sopporte a reversar transsaccion (#979)

Co-authored-by: elsiosanchez <elsiossanches@gmail.com>
This commit is contained in:
Elsio Sanchez 2021-07-12 19:56:55 -04:00 committed by GitHub
parent 427469e12f
commit 3b4765e40d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -354,7 +354,8 @@ export default {
return { return {
activeName: '', activeName: '',
processPos: '', processPos: '',
showFieldListOrder: false showFieldListOrder: false,
posProcess
} }
}, },
computed: { computed: {
@ -393,7 +394,7 @@ export default {
} }
}, },
created() { created() {
this.findProcess() this.findProcess(this.posProcess)
}, },
methods: { methods: {
notSubmitForm(event) { notSubmitForm(event) {
@ -473,7 +474,7 @@ export default {
}, },
{ {
columnName: 'C_DocTypeRMA_ID', columnName: 'C_DocTypeRMA_ID',
value: 'VO' value: this.currentOrder.documentType.id
} }
] ]
this.$store.dispatch('addParametersProcessPos', parametersList) this.$store.dispatch('addParametersProcessPos', parametersList)
@ -510,8 +511,7 @@ export default {
this.$store.dispatch('addParametersProcessPos', parametersList) this.$store.dispatch('addParametersProcessPos', parametersList)
createOrder({ createOrder({
posUuid, posUuid,
customerUuid: this.currentOrder.businessPartner.uuid, customerUuid: this.currentOrder.businessPartner.uuid
warehouseUuid: this.$store.getters.currentWarehouse.uuid
}) })
.then(order => { .then(order => {
this.$store.dispatch('currentOrder', order) this.$store.dispatch('currentOrder', order)
@ -538,13 +538,12 @@ export default {
}) })
}) })
.finally(() => { .finally(() => {
const process = this.$store.getters.getProcess(posProcess[1].uuid) const process = this.$store.getters.getProcess(this.posProcess[1].uuid)
this.showModal(process) this.showModal(process)
}) })
}, },
copyLineOrder() { copyLineOrder() {
this.processPos = posProcess[1].uuid const process = this.$store.getters.getProcess(this.posProcess[1].uuid)
const process = this.$store.getters.getProcess(posProcess[1].uuid)
this.showModal(process) this.showModal(process)
}, },
cashClosing() { cashClosing() {