no message
Showing
1 changed file
with
20 additions
and
0 deletions
| ... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment