1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-08-07 18:25:45 +08:00

Add image at the point of sale (#1104)

* add image to pos

* minimal changes

Co-authored-by: elsiosanchez <elsiossanches@gmail.com>
This commit is contained in:
Elsio Sanchez 2021-08-23 18:30:43 -04:00 committed by GitHub
parent d75bd43965
commit 966e63907e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 34 additions and 5 deletions

View File

@ -71,8 +71,8 @@
</template>
</div>
<div v-if="isEmptyValue(selectionTypeRefund)" class="text item">
<el-row :gutter="12">
<el-col v-for="(payment, index) in paymentTypeList" :key="index" :span="8">
<el-row :gutter="24">
<el-col v-for="(payment, index) in paymentTypeList" :key="index" :span="6">
<div @click="selectionTypeRefund = payment">
<el-card shadow="hover">
<div slot="header" class="clearfix" style="text-align: center;">
@ -80,6 +80,13 @@
<b>{{ payment.name }}</b> <br>
</span>
</div>
<div class="text item">
<el-image
:src="imageCard(payment.key)"
tyle="width: 100px; height: 100px"
fit="contain"
/>
</div>
</el-card>
</div>
</el-col>
@ -133,6 +140,7 @@
@click="close"
/>
<el-button
v-if="caseOrder === 1 && !isEmptyValue(selectionTypeRefund)"
type="primary"
class="custom-button-create-bp"
icon="el-icon-plus"
@ -228,9 +236,6 @@ export default {
case 'Z':
typePay = () => import('./paymentTypeChange/Zelle/index.vue')
break
default:
typePay = () => import('./paymentTypeChange/empty.vue')
break
}
return typePay
},
@ -317,6 +322,30 @@ export default {
},
methods: {
formatPrice,
imageCard(typeRefund) {
let image
switch (typeRefund) {
case 'P':
image = 'MobilePayment.jpg'
break
case 'X':
image = 'Cash.jpg'
break
case 'A':
image = 'ACH.jpg'
break
case 'M':
image = 'GiftCard.jpg'
break
case 'Z':
image = 'Zelle.jpg'
break
default:
image = 'Default.jpg'
break
}
return require('@/image/ADempiere/pos/typePayment/' + image)
},
addRefund() {
const values = this.$store.getters.getValuesView({
containerUuid: this.renderComponentContainer,

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 160 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 143 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 210 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB