This commit is contained in:
sajjad
2023-09-11 03:06:11 -07:00
parent d118b182a4
commit 2b39228ea1
20 changed files with 672 additions and 16283 deletions
@@ -9,19 +9,20 @@
<v-layout row wrap class="ml-4">
<v-flex xs12 md6 sm6 v-if="barcodeimg">
<img :src="barcodeimg" class="WM-Width-350"><br />
<span v-if = "Type != 'TestType'">{{ Type+ ' ID :' + ID }}</span>
<span v-else>{{ Type+ ':' + ID }}</span>
<span v-if="Type != 'TestType'">{{ `${Type} ${item.udi ? 'UDI :' : 'ID :'} ${ID}` }}</span>
<span v-else>{{ Type + ':' + ID }}</span>
</v-flex>
</v-layout>
<v-layout row wrap class="ml-4">
<v-flex xs12 md6 sm6 v-if="QRCodeimg">
<a v-if = "Type != 'TestType'":href="ShowLink" target="_blank"><img :src="QRCodeimg" class="WM-Width-150"></a>
<a v-if="Type != 'TestType'" :href="ShowLink" target="_blank"><img :src="QRCodeimg"
class="WM-Width-150"></a>
<img v-else :src="QRCodeimg" class="WM-Width-150">
</v-flex>
</v-layout>
</v-layout>
<v-layout row wrap align-center justify-center>
<v-flex class xs12 md2 sm2 @click="print" >
<v-flex class xs12 md2 sm2 @click="print">
<v-btn class="WM-CyanBlueGradient-BG" style="padding:10px 60px">
<v-icon class="white--text mr-2 caption">fas fa-print</v-icon>
<span class="white--text">Print</span>
@@ -35,15 +36,17 @@
import { mapGetters } from "vuex";
export default {
data: () => ({
barcodeimg : null,
QRCodeimg : null,
ShowLink : '',
Type : '',
ID : ''
barcodeimg: null,
QRCodeimg: null,
ShowLink: '',
Type: '',
ID: '',
item: {}
}),
created() {
this.item = this.getModalProperties.item ? this.getModalProperties.item : {};
this.barcodeimg = this.getModalProperties.result.data.data.Barcode ? this.getModalProperties.result.data.data.Barcode : null;
this.QRCodeimg = this.getModalProperties.result.data.data.QRCode ? this.getModalProperties.result.data.data.QRCode : null;
this.QRCodeimg = this.getModalProperties.result.data.data.QRCode ? this.getModalProperties.result.data.data.QRCode : null;
this.ShowLink = this.getModalProperties.result.data.data.ShowLink ? this.getModalProperties.result.data.data.ShowLink : '#';
this.Type = this.ShowLink.split('/')[1];
this.ID = this.ShowLink.split('/')[2];