multiple po and invoice fix

This commit is contained in:
Omair Saleh
2019-05-03 11:11:02 +08:00
parent d0f9f669d7
commit 0f32805610
3 changed files with 24 additions and 28 deletions
@@ -21,10 +21,13 @@
</div>
<el-row :gutter="12" type="flex">
<el-col :span="12" align="center">
<a target="_blank" :href="getURL(booking_details.user_po_path)">
<img v-if="isImage(booking_details.user_po_path)" v-bind:src="booking_details.user_po_path" class="image">
<p v-else>Download</p>
</a>
<div v-for="po in booking_details.user_po_path" :key='po'>
<a target="_blank" :href="getURL(po)">
<img v-if="isImage(po)" v-bind:src="po" class="image">
<p v-else>Download</p>
<br/>
</a>
</div>
</el-col>
</el-row>
@@ -57,10 +60,13 @@
</div>
<el-row :gutter="12" type="flex">
<el-col :span="12" align="center">
<a target="_blank" :href="getURL(booking_details.invoice_path)">
<img v-if="isImage(booking_details.invoice_path)" v-bind:src="booking_details.invoice_path" class="image">
<p v-else>Download</p>
</a>
<div v-for="invoice in booking_details.invoice_path" :key='invoice'>
<a target="_blank" :href="getURL(invoice)">
<img v-if="isImage(invoice)" v-bind:src="invoice" class="image">
<p v-else>Download</p>
<br/>
</a>
</div>
</el-col>
</el-row>
</el-card>
@@ -20,14 +20,6 @@
</a>
</div>
</div>
<!--<div class="row">-->
<!--<div class="card-body">-->
<!--<a target="_blank" :href="getURL(booking_details.user_po_path)">-->
<!--<img v-if="isImage(booking_details.user_po_path)" v-bind:src="booking_details.user_po_path" class="image">-->
<!--<p v-else>Download</p>-->
<!--</a>-->
<!--</div>-->
<!--</div>-->
</div>
</div>
<div class="col">
@@ -56,14 +48,6 @@
</a>
</div>
</div>
<!--<div class="row">-->
<!--<div class="card-body"> -->
<!--<a target="_blank" :href="getURL(booking_details.invoice_path)">-->
<!--<img v-if="isImage(booking_details.invoice_path)" v-bind:src="booking_details.invoice_path" class="image">-->
<!--<p v-else>Download</p>-->
<!--</a>-->
<!--</div>-->
<!--</div>-->
</div>
</div>
</div>