mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-07 18:25:45 +08:00
Change document type at the point of sale (#1108)
Co-authored-by: elsiosanchez <elsiossanches@gmail.com>
This commit is contained in:
parent
966e63907e
commit
540b8807a3
@ -751,19 +751,27 @@ export default {
|
||||
this.clearOrder()
|
||||
},
|
||||
changeWarehouse(warehouse) {
|
||||
const attributePin = {
|
||||
...warehouse,
|
||||
action: 'changeWarehouse',
|
||||
type: 'actionPos',
|
||||
label: this.$t('form.pos.pinMessage.warehouse')
|
||||
if (warehouse.is_pos_required_pin) {
|
||||
const attributePin = {
|
||||
...warehouse,
|
||||
action: 'changeWarehouse',
|
||||
type: 'actionPos',
|
||||
label: this.$t('form.pos.pinMessage.warehouse')
|
||||
}
|
||||
const visible = true
|
||||
this.visible = visible
|
||||
this.$store.dispatch('changePopoverOverdrawnInvoice', { attributePin, visible: true })
|
||||
} else {
|
||||
this.$store.commit('setCurrentWarehousePos', warehouse)
|
||||
}
|
||||
const visible = true
|
||||
this.visible = visible
|
||||
this.$store.dispatch('changePopoverOverdrawnInvoice', { attributePin, visible: true })
|
||||
},
|
||||
changeDocumentType(documentType) {
|
||||
if (this.adviserPin) {
|
||||
this.$store.commit('setCurrentDocumentTypePos', documentType)
|
||||
if (!documentType.is_pos_required_pin) {
|
||||
this.$store.dispatch('updateOrder', {
|
||||
orderUuid: this.currentOrder.uuid,
|
||||
posUuid: this.currentPointOfSales.uuid,
|
||||
documentTypeUuid: documentType.uuid
|
||||
})
|
||||
} else {
|
||||
const attributePin = {
|
||||
...documentType,
|
||||
@ -776,14 +784,18 @@ export default {
|
||||
}
|
||||
},
|
||||
changePriceList(priceList) {
|
||||
const attributePin = {
|
||||
...priceList,
|
||||
action: 'changePriceList',
|
||||
type: 'actionPos',
|
||||
label: this.$t('form.pos.pinMessage.priceList')
|
||||
if (priceList.is_pos_required_pin) {
|
||||
const attributePin = {
|
||||
...priceList,
|
||||
action: 'changePriceList',
|
||||
type: 'actionPos',
|
||||
label: this.$t('form.pos.pinMessage.priceList')
|
||||
}
|
||||
this.$store.dispatch('changePopoverOverdrawnInvoice', { attributePin, visible: true })
|
||||
this.visible = true
|
||||
} else {
|
||||
this.$store.commit('setCurrentPriceList', priceList)
|
||||
}
|
||||
this.$store.dispatch('changePopoverOverdrawnInvoice', { attributePin, visible: true })
|
||||
this.visible = true
|
||||
},
|
||||
arrowTop() {
|
||||
if (this.currentTable > 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user