5971defd by 杨炀

no message

1 parent 607a7ecb
...@@ -219,6 +219,11 @@ ...@@ -219,6 +219,11 @@
219 <span class="price">{{ language == 0 ? '¥' : '€' }}{{ Number(totalFee).toFixed(2) }}</span> 219 <span class="price">{{ language == 0 ? '¥' : '€' }}{{ Number(totalFee).toFixed(2) }}</span>
220 </div> 220 </div>
221 </el-col> 221 </el-col>
222 <el-col :lg="24">
223 <el-link v-if="form.viewStatus=='1'||form.viewStatus=='5'" type="primary" @click="exportPdf"><el-icon><Upload /></el-icon>
224 {{ language==0?'导出酒店预订单':'Export PDF' }}
225 </el-link>
226 </el-col>
222 </el-row> 227 </el-row>
223 </div> 228 </div>
224 </div> 229 </div>
...@@ -610,6 +615,21 @@ const unsubscribe = () => { ...@@ -610,6 +615,21 @@ const unsubscribe = () => {
610 }) 615 })
611 } 616 }
612 617
618 function exportPdf() {
619 var obj = {
620 orderId: orderId.value
621 }
622 if(language.value==0){
623 proxy.download('/ota/orderRoom/downRoomConfirmation', {
624 ...obj
625 }, `订房确认书.pdf`)
626 } else {
627 proxy.download('/ota/orderRoom/downRoomConfirmation', {
628 ...obj
629 }, `Hotel Reservation.pdf`)
630 }
631
632 }
613 633
614 </script> 634 </script>
615 635
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!