mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-10 20:39:48 +08:00
changer le style du couvre-chef du catalogue (#884)
* load the title of the payment method on the payment cards * style of catalog cards Co-authored-by: elsiosanchez <elsiossanches@gmail.com>
This commit is contained in:
parent
4cc5a8a897
commit
615aeacd99
@ -108,6 +108,7 @@
|
|||||||
:currency="pointOfSalesCurrency"
|
:currency="pointOfSalesCurrency"
|
||||||
:list-types-payment="fieldsList[2]"
|
:list-types-payment="fieldsList[2]"
|
||||||
:is-loaded="isLoadedPayments"
|
:is-loaded="isLoadedPayments"
|
||||||
|
:list-payment-type="fieldsPaymentType"
|
||||||
/>
|
/>
|
||||||
<div
|
<div
|
||||||
v-else
|
v-else
|
||||||
|
@ -111,6 +111,10 @@ export default {
|
|||||||
type: Array,
|
type: Array,
|
||||||
default: undefined
|
default: undefined
|
||||||
},
|
},
|
||||||
|
openPanel: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
},
|
||||||
currency: {
|
currency: {
|
||||||
type: Object,
|
type: Object,
|
||||||
default: undefined
|
default: undefined
|
||||||
@ -119,6 +123,10 @@ export default {
|
|||||||
type: Object,
|
type: Object,
|
||||||
default: undefined
|
default: undefined
|
||||||
},
|
},
|
||||||
|
listPaymentType: {
|
||||||
|
type: Object,
|
||||||
|
default: undefined
|
||||||
|
},
|
||||||
isLoaded: {
|
isLoaded: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: false
|
||||||
@ -142,10 +150,23 @@ export default {
|
|||||||
return this.$store.getters.getConvertionPayment
|
return this.$store.getters.getConvertionPayment
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
listPaymentType(value) {
|
||||||
|
if (!this.isEmptyValue(value.reference)) {
|
||||||
|
this.tenderTypeDisplaye({
|
||||||
|
tableName: value.reference.tableName,
|
||||||
|
query: value.reference.query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
created() {
|
created() {
|
||||||
this.convertingPaymentMethods()
|
this.convertingPaymentMethods()
|
||||||
if (this.isEmptyValue(this.labelTypesPayment)) {
|
if (this.isEmptyValue(this.labelTypesPayment)) {
|
||||||
this.tenderTypeDisplaye(this.listTypesPayment)
|
this.tenderTypeDisplaye({
|
||||||
|
tableName: this.listPaymentType.reference.tableName,
|
||||||
|
query: this.listPaymentType.reference.query
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@ -228,14 +249,14 @@ export default {
|
|||||||
paymentUuid
|
paymentUuid
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
tenderTypeDisplaye(value) {
|
tenderTypeDisplaye({
|
||||||
if (!this.isEmptyValue(value.reference)) {
|
tableName,
|
||||||
const tenderType = value.reference
|
query
|
||||||
if (!this.isEmptyValue(tenderType)) {
|
}) {
|
||||||
|
if (!this.isEmptyValue(tableName)) {
|
||||||
this.$store.dispatch('getLookupListFromServer', {
|
this.$store.dispatch('getLookupListFromServer', {
|
||||||
tableName: tenderType.tableName,
|
tableName,
|
||||||
query: tenderType.query,
|
query
|
||||||
filters: []
|
|
||||||
})
|
})
|
||||||
.then(response => {
|
.then(response => {
|
||||||
this.labelTypesPayment = response
|
this.labelTypesPayment = response
|
||||||
@ -243,7 +264,6 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -46,8 +46,9 @@
|
|||||||
<template v-for="(keyValue, key) in getKeyList">
|
<template v-for="(keyValue, key) in getKeyList">
|
||||||
<el-col :key="key" :span="size">
|
<el-col :key="key" :span="size">
|
||||||
<el-card
|
<el-card
|
||||||
:body-style="{ padding: '0px' }"
|
shadow="never"
|
||||||
shadow="always"
|
class="custom-card"
|
||||||
|
:body-style="{ padding: '10px' }"
|
||||||
>
|
>
|
||||||
<span>
|
<span>
|
||||||
<p style="padding-left: 10px; font-size: 12px; color: #0e2ea4">
|
<p style="padding-left: 10px; font-size: 12px; color: #0e2ea4">
|
||||||
@ -105,8 +106,7 @@ export default {
|
|||||||
identifier: 'undefined',
|
identifier: 'undefined',
|
||||||
value: '',
|
value: '',
|
||||||
isLoaded: true
|
isLoaded: true
|
||||||
}],
|
}]
|
||||||
hola: ''
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -228,7 +228,7 @@ export default {
|
|||||||
}
|
}
|
||||||
const image = getImagePath({
|
const image = getImagePath({
|
||||||
file: fileName,
|
file: fileName,
|
||||||
width: 300,
|
width: 200,
|
||||||
height: 300
|
height: 300
|
||||||
})
|
})
|
||||||
return image.uri
|
return image.uri
|
||||||
@ -301,3 +301,14 @@ export default {
|
|||||||
padding-right: 5px !important;
|
padding-right: 5px !important;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
.custom-card {
|
||||||
|
margin: 10px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.custom-card:hover {
|
||||||
|
background-color: #eaf5fe;
|
||||||
|
border: 1px solid #36a3f7;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user