You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
939 B
48 lines
939 B
12 months ago
|
<template>
|
||
|
<uni-popup ref="popupItems">
|
||
|
<com-popup @onClose="closePopup">
|
||
|
<view v-for="(item, index) in receiptList" :key="index">
|
||
|
<com-return-job-card :dataContent="item" @click='selectItem(item)'></com-return-job-card>
|
||
|
<u-line></u-line>
|
||
|
</view>
|
||
|
</com-popup>
|
||
|
</uni-popup>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
import comPopup from '@/mycomponents/common/comPopup.vue'
|
||
|
import comReturnJobCard from '@/pages/purchaseReturn/coms/comReturnJobCard.vue'
|
||
|
|
||
|
export default {
|
||
|
emits: ["selectedItem"],
|
||
|
components: {
|
||
|
comPopup,
|
||
|
comReturnJobCard
|
||
|
},
|
||
|
props: {
|
||
|
|
||
|
},
|
||
|
data() {
|
||
|
return {
|
||
|
receiptList: []
|
||
|
}
|
||
|
},
|
||
|
methods: {
|
||
|
openPopup(items) {
|
||
|
this.receiptList = items;
|
||
|
this.$refs['popupItems'].open("center");
|
||
|
},
|
||
|
closePopup() {
|
||
|
this.$refs.popupItems.close()
|
||
|
},
|
||
|
selectItem(item) {
|
||
|
this.$emit("selectedItem", item);
|
||
|
this.$refs['popupItems'].close();
|
||
|
},
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<style>
|
||
|
</style>
|