mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-10 20:39:48 +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>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="isEmptyValue(selectionTypeRefund)" class="text item">
|
<div v-if="isEmptyValue(selectionTypeRefund)" class="text item">
|
||||||
<el-row :gutter="12">
|
<el-row :gutter="24">
|
||||||
<el-col v-for="(payment, index) in paymentTypeList" :key="index" :span="8">
|
<el-col v-for="(payment, index) in paymentTypeList" :key="index" :span="6">
|
||||||
<div @click="selectionTypeRefund = payment">
|
<div @click="selectionTypeRefund = payment">
|
||||||
<el-card shadow="hover">
|
<el-card shadow="hover">
|
||||||
<div slot="header" class="clearfix" style="text-align: center;">
|
<div slot="header" class="clearfix" style="text-align: center;">
|
||||||
@ -80,6 +80,13 @@
|
|||||||
<b>{{ payment.name }}</b> <br>
|
<b>{{ payment.name }}</b> <br>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="text item">
|
||||||
|
<el-image
|
||||||
|
:src="imageCard(payment.key)"
|
||||||
|
tyle="width: 100px; height: 100px"
|
||||||
|
fit="contain"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
</div>
|
</div>
|
||||||
</el-col>
|
</el-col>
|
||||||
@ -133,6 +140,7 @@
|
|||||||
@click="close"
|
@click="close"
|
||||||
/>
|
/>
|
||||||
<el-button
|
<el-button
|
||||||
|
v-if="caseOrder === 1 && !isEmptyValue(selectionTypeRefund)"
|
||||||
type="primary"
|
type="primary"
|
||||||
class="custom-button-create-bp"
|
class="custom-button-create-bp"
|
||||||
icon="el-icon-plus"
|
icon="el-icon-plus"
|
||||||
@ -228,9 +236,6 @@ export default {
|
|||||||
case 'Z':
|
case 'Z':
|
||||||
typePay = () => import('./paymentTypeChange/Zelle/index.vue')
|
typePay = () => import('./paymentTypeChange/Zelle/index.vue')
|
||||||
break
|
break
|
||||||
default:
|
|
||||||
typePay = () => import('./paymentTypeChange/empty.vue')
|
|
||||||
break
|
|
||||||
}
|
}
|
||||||
return typePay
|
return typePay
|
||||||
},
|
},
|
||||||
@ -317,6 +322,30 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
formatPrice,
|
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() {
|
addRefund() {
|
||||||
const values = this.$store.getters.getValuesView({
|
const values = this.$store.getters.getValuesView({
|
||||||
containerUuid: this.renderComponentContainer,
|
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