print-receipt.html 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. <!DOCTYPE html
  2. PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title>打印收费明细</title>
  7. <style type="text/css">
  8. @page {
  9. /* size: A4 portrait;
  10. margin: 19mm 25mm 15mm 25mm; */
  11. }
  12. .print-btn {
  13. color: white;
  14. background: #2D8CF0;
  15. border: none;
  16. border-radius: 3px;
  17. padding: 5px 10px;
  18. font-size: 10px;
  19. margin: 10px 20px;
  20. cursor: pointer;
  21. }
  22. .content-box {
  23. text-align: center;
  24. height: 623px;
  25. width: 794px;
  26. margin: 0 auto;
  27. }
  28. table {
  29. border-collapse: collapse;
  30. border-spacing: 0;
  31. border-left: 1px solid #888;
  32. border-top: 1px solid #888;
  33. }
  34. th,
  35. td {
  36. border-right: 1px solid #888;
  37. border-bottom: 1px solid #888;
  38. word-break: break-all;
  39. padding: 0 2px;
  40. }
  41. th {
  42. /* font-weight: bold; */
  43. }
  44. .title-top {
  45. margin-top: 248px;
  46. }
  47. .hide-border{
  48. border-bottom-style:none;
  49. border-left-style:none;
  50. border-right-style: none;
  51. }
  52. tr td:first-child {
  53. border-left: none;
  54. }
  55. </style>
  56. <link rel="stylesheet" href="../../static/sa.css">
  57. <script src="../../static/kj/vue.min.js"></script>
  58. <script src="../../static/kj/element-ui/index.js"></script>
  59. <script src="../../static/print/jquery-2.0.3.js" type="text/javascript"></script>
  60. <script src="../../static/print/print2.js" type="text/javascript"></script>
  61. <script src="../../static/kj/layer/layer.js"></script>
  62. <script src="../../static/sa.js"></script>
  63. </head>
  64. <body>
  65. <div>
  66. <div class="box">
  67. <button class="print-btn" @click="printFn">打印</button>
  68. <div id="myPrintArea" style="position: relative;">
  69. <div class="content-box " style="position: relative;">
  70. <div class="header-title" style="text-align: center;">
  71. <span
  72. style="font-size: 20px;font-weight: 500;font-family: 黑体;">东兴口岸 (二桥)进口货物集散区 (A1地块) 预存款充值表</span>
  73. </div>
  74. <table style="margin: 0 auto;text-align: center;width: 790px;margin-top: 30px;" >
  75. <tr style="height: 60px;font-size:10px;">
  76. <td style="width: 100px;">客户名称</td>
  77. <td style="width: 290px;">{{form.customerName}}</td>
  78. <td style="width: 100px;">纳税识别号</td>
  79. <td style="width: 290px;">{{form.entityTaxNo}}</td>
  80. </tr>
  81. <tr style="height: 60px;font-size:10px;">
  82. <td style="min-width: 30px;">付款方式</td>
  83. <td>{{form.payTypeDesc}}</td>
  84. <td style="min-width: 30px;">原金额(元)</td>
  85. <td>{{form.beforeMoney}}</td>
  86. </tr>
  87. <tr style="height: 60px;font-size:10px;">
  88. <td style="min-width: 30px;">优惠金额(元)</td>
  89. <td>{{form.discountMoney}}</td>
  90. <td style="min-width: 30px;">充值金额(元)</td>
  91. <td>{{form.preTopupMoney||form.refundMoney}}</td>
  92. </tr>
  93. <tr style="height: 60px;font-size:10px;">
  94. <td style="min-width: 30px;">实际收款(元)</td>
  95. <td>{{form.totalTopupMoney}}</td>
  96. <td style="min-width: 30px;">账户余额(元)</td>
  97. <td>{{form.totalMoney}}</td>
  98. </tr>
  99. <tr style="height: 60px;font-size:10px;">
  100. <td style="min-width: 30px;">经办人</td>
  101. <td>{{form.chargePeople}}</td>
  102. <td style="min-width: 30px;">复核人</td>
  103. <td>{{form.reviewBy}}</td>
  104. </tr>
  105. <tr style="height: 60px;font-size:10px;">
  106. <td style="min-width: 30px;">充值时间</td>
  107. <td>{{form.createTime}}</td>
  108. <td style="min-width: 30px;">充值说明</td>
  109. <td>{{form.remark}}</td>
  110. </tr>
  111. </table>
  112. </div>
  113. </div>
  114. </div>
  115. </div>
  116. <script type="text/javascript">
  117. var app = new Vue({
  118. el: '.box',
  119. data: {
  120. p: {
  121. "id": sa.p('id', '')
  122. },
  123. form:{
  124. customerName:''
  125. }
  126. },
  127. methods: {
  128. getData() {
  129. sa.ajax('/TbChargeRecord/getPrintReceiptInfo?id='+this.p.id,this.p,function(resp){
  130. this.form=resp.data;
  131. console.log(this.form);
  132. }.bind(this))
  133. },
  134. printFn() {
  135. Print('#myPrintArea', {
  136. noPrint: '.noPrint'
  137. });
  138. }
  139. },
  140. mounted() {
  141. this.getData()
  142. }
  143. })
  144. </script>
  145. </body>
  146. </html>