mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-07 18:25:45 +08:00
adjust point of sale catalog image (#886)
Co-authored-by: elsiosanchez <elsiossanches@gmail.com>
This commit is contained in:
parent
ffd495501b
commit
72fb23abda
@ -165,15 +165,11 @@ export default {
|
||||
},
|
||||
displayedValue: {
|
||||
get() {
|
||||
const busineesPartner = this.$store.getters.posAttributes.currentPointOfSales.currentOrder.businessPartner.name
|
||||
if (this.isEmptyValue(busineesPartner)) {
|
||||
return this.$store.getters.getValueOfField({
|
||||
containerUuid: this.parentMetadata.containerUuid,
|
||||
// DisplayColumn_'ColumnName'
|
||||
columnName: 'DisplayColumn_C_BPartner_ID' // this.parentMetadata.displayColumnName
|
||||
})
|
||||
}
|
||||
return busineesPartner
|
||||
return this.$store.getters.getValueOfField({
|
||||
containerUuid: this.parentMetadata.containerUuid,
|
||||
// DisplayColumn_'ColumnName'
|
||||
columnName: 'DisplayColumn_C_BPartner_ID' // this.parentMetadata.displayColumnName
|
||||
})
|
||||
},
|
||||
set(value) {
|
||||
this.$store.commit('updateValueOfField', {
|
||||
|
@ -228,7 +228,7 @@ export default {
|
||||
}
|
||||
const image = getImagePath({
|
||||
file: fileName,
|
||||
width: 200,
|
||||
width: 300,
|
||||
height: 300
|
||||
})
|
||||
return image.uri
|
||||
@ -304,7 +304,7 @@ export default {
|
||||
|
||||
<style lang="scss">
|
||||
.custom-card {
|
||||
margin: 10px;
|
||||
margin: 1px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.custom-card:hover {
|
||||
|
@ -283,7 +283,7 @@ export default {
|
||||
this.$store.dispatch('createOrder', {
|
||||
posUuid,
|
||||
customerUuid,
|
||||
salesRepresentativeUuid: this.currentPointOfSales.templateBusinessPartner.uuid
|
||||
salesRepresentativeUuid: this.currentPointOfSales.salesRepresentative.uuid
|
||||
})
|
||||
.then(response => {
|
||||
// this.order = response
|
||||
|
Loading…
x
Reference in New Issue
Block a user