balancePrint.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <template>
  2. <div>
  3. <Card style="width:100%" :bordered="false" :dis-hover="true">
  4. <p slot="title">打印采购申请表</p>
  5. <div slot="extra">
  6. <Button style="width: 80px" v-print="'#printForm'">打印</Button>
  7. <Button @click="$emit('return')" style="width: 80px">返回</Button>
  8. </div>
  9. <div id="printForm">
  10. <div class="head">
  11. <img class="logo" src="../../../../assets/images/dgdlogo.png" alt />
  12. <h2>结算单</h2>
  13. </div>
  14. <Row>
  15. <Col :span="8" class="infor">供应商:</Col>
  16. <Col :span="8" class="infor">采购订单:</Col>
  17. <Col :span="8" class="infor">申购单号:</Col>
  18. <Col :span="8" class="infor">供方负责人</Col>
  19. <Col :span="8" class="infor">FAX:</Col>
  20. <Col :span="8" class="infor">TEL:</Col>
  21. <Col :span="8" class="infor">账号:</Col>
  22. <Col :span="16" class="infor">开户行:</Col>
  23. <Col :span="8" class="infor">申购部门:</Col>
  24. <Col :span="8" class="infor">申购人:</Col>
  25. <Col :span="8" class="infor">申购人联系电话:</Col>
  26. </Row>
  27. <table border="1">
  28. <thead>
  29. <tr>
  30. <th style="width: 50px">序号</th>
  31. <th style="width: 110px">材料名称</th>
  32. <th style="width: 150px">品牌</th>
  33. <th style="width: 100px">规格型号</th>
  34. <th style="width: 50px">单位</th>
  35. <th style="width: 50px">数量</th>
  36. <th style="width: 80px">单价(元)</th>
  37. <th style="width: 80px">结算金额</th>
  38. <th style="width: 200px">备注</th>
  39. </tr>
  40. </thead>
  41. <tbody>
  42. <tr v-for="item in 2" :key="item">
  43. <td>{{ item }}</td>
  44. <td></td>
  45. <td></td>
  46. <td></td>
  47. <td></td>
  48. <td></td>
  49. <td></td>
  50. <td></td>
  51. <td></td>
  52. </tr>
  53. <tr>
  54. <td></td>
  55. <td>合计</td>
  56. <td></td>
  57. <td></td>
  58. <td></td>
  59. <td></td>
  60. <td></td>
  61. <td>-总价-</td>
  62. <td></td>
  63. </tr>
  64. </tbody>
  65. </table>
  66. <Row>
  67. <Col :span="12" class="foot">下单日期:</Col>
  68. <Col :span="12" class="foot">审核日期:</Col>
  69. </Row>
  70. </div>
  71. </Card>
  72. </div>
  73. </template>
  74. <script>
  75. export default {
  76. name: "balancePrint",
  77. data() {
  78. return {};
  79. }
  80. };
  81. </script>
  82. <style lang="scss" scoped>
  83. ivu-card-head-inner,
  84. .ivu-card-head p {
  85. display: inline-block;
  86. width: 100%;
  87. height: 20px;
  88. line-height: 20px;
  89. font-size: 14px;
  90. color: #17233d;
  91. font-weight: 700;
  92. overflow: hidden;
  93. text-overflow: ellipsis;
  94. white-space: nowrap;
  95. font-weight: normal;
  96. }
  97. #printForm {
  98. width: 800px;
  99. margin: 0 auto;
  100. .head {
  101. text-align: center;
  102. position: relative;
  103. .logo {
  104. position: absolute;
  105. top: 0;
  106. left: 0;
  107. height: 40px;
  108. }
  109. h2 {
  110. font-size: 35px;
  111. letter-spacing: 15px;
  112. }
  113. p {
  114. font-size: 18px;
  115. }
  116. }
  117. .line {
  118. height: 1px;
  119. background: #000;
  120. margin-bottom: 3px;
  121. }
  122. .infor {
  123. line-height: 30px;
  124. }
  125. .foot {
  126. line-height: 40px;
  127. text-align: center;
  128. }
  129. table {
  130. th,
  131. td {
  132. text-align: center;
  133. line-height: 30px;
  134. font-weight: normal;
  135. .square {
  136. display: inline-block;
  137. width: 10px;
  138. height: 10px;
  139. border: 1px solid black;
  140. margin-right: 2px;
  141. }
  142. p {
  143. padding-left: 5px;
  144. }
  145. }
  146. }
  147. }
  148. </style>