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:
parent
d75bd43965
commit
966e63907e
@ -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,
|
||||
|
BIN
src/image/ADempiere/pos/typePayment/ACH.jpg
Normal file
BIN
src/image/ADempiere/pos/typePayment/ACH.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 124 KiB |
BIN
src/image/ADempiere/pos/typePayment/Cash.jpg
Normal file
BIN
src/image/ADempiere/pos/typePayment/Cash.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 160 KiB |
BIN
src/image/ADempiere/pos/typePayment/Default.jpg
Normal file
BIN
src/image/ADempiere/pos/typePayment/Default.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
BIN
src/image/ADempiere/pos/typePayment/GiftCard.jpg
Normal file
BIN
src/image/ADempiere/pos/typePayment/GiftCard.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 143 KiB |
BIN
src/image/ADempiere/pos/typePayment/MobilePayment.jpg
Normal file
BIN
src/image/ADempiere/pos/typePayment/MobilePayment.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 210 KiB |
BIN
src/image/ADempiere/pos/typePayment/Zelle.jpg
Normal file
BIN
src/image/ADempiere/pos/typePayment/Zelle.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 61 KiB |
Loading…
x
Reference in New Issue
Block a user