1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-08-10 20:39:48 +08:00

adjust point of sale catalog image (#886)

Co-authored-by: elsiosanchez <elsiossanches@gmail.com>
This commit is contained in:
Elsio Sanchez 2021-05-28 17:59:46 -04:00 committed by GitHub
parent ffd495501b
commit 72fb23abda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 12 deletions

View File

@ -165,15 +165,11 @@ export default {
}, },
displayedValue: { displayedValue: {
get() { get() {
const busineesPartner = this.$store.getters.posAttributes.currentPointOfSales.currentOrder.businessPartner.name return this.$store.getters.getValueOfField({
if (this.isEmptyValue(busineesPartner)) { containerUuid: this.parentMetadata.containerUuid,
return this.$store.getters.getValueOfField({ // DisplayColumn_'ColumnName'
containerUuid: this.parentMetadata.containerUuid, columnName: 'DisplayColumn_C_BPartner_ID' // this.parentMetadata.displayColumnName
// DisplayColumn_'ColumnName' })
columnName: 'DisplayColumn_C_BPartner_ID' // this.parentMetadata.displayColumnName
})
}
return busineesPartner
}, },
set(value) { set(value) {
this.$store.commit('updateValueOfField', { this.$store.commit('updateValueOfField', {

View File

@ -228,7 +228,7 @@ export default {
} }
const image = getImagePath({ const image = getImagePath({
file: fileName, file: fileName,
width: 200, width: 300,
height: 300 height: 300
}) })
return image.uri return image.uri
@ -304,7 +304,7 @@ export default {
<style lang="scss"> <style lang="scss">
.custom-card { .custom-card {
margin: 10px; margin: 1px;
cursor: pointer; cursor: pointer;
} }
.custom-card:hover { .custom-card:hover {

View File

@ -283,7 +283,7 @@ export default {
this.$store.dispatch('createOrder', { this.$store.dispatch('createOrder', {
posUuid, posUuid,
customerUuid, customerUuid,
salesRepresentativeUuid: this.currentPointOfSales.templateBusinessPartner.uuid salesRepresentativeUuid: this.currentPointOfSales.salesRepresentative.uuid
}) })
.then(response => { .then(response => {
// this.order = response // this.order = response