InvoiceInfo.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. <template>
  2. <div class="invoice-info">
  3. <info-card title="开票概览">
  4. <div class="invoice-info-content">
  5. <div class="invoice-info-item">
  6. 开票状态:部分开票
  7. </div>
  8. <div class="invoice-info-item">
  9. 已开票金额:¥1,000.00
  10. </div>
  11. <div class="invoice-info-item">
  12. 未开票金额:¥5,000.00
  13. </div>
  14. </div>
  15. </info-card>
  16. <info-card>
  17. <template #title>
  18. 开票详情<span style="font-size: 14px;line-height: 22px;">(共<span class="num-active"> 0 </span>条)</span>
  19. </template>
  20. <div class="invoice-info-detail">
  21. <el-table
  22. class="invoice-info-content-table"
  23. border
  24. :data="invoiceList"
  25. style="width: 1108px">
  26. <el-table-column
  27. prop="invoiceID"
  28. label="发票ID"
  29. width="160"
  30. align="center"
  31. />
  32. <el-table-column
  33. prop="invoiceCode"
  34. label="发票编号"
  35. width="160"
  36. align="center"
  37. />
  38. <el-table-column
  39. prop="associationOrderMoney"
  40. label="关联订单开票金额"
  41. width="160"
  42. align="center"
  43. />
  44. <el-table-column
  45. prop="invoiceStatus"
  46. label="发票状态"
  47. width="120"
  48. align="center"
  49. />
  50. <el-table-column
  51. prop="invoiceQrCode"
  52. width="188"
  53. align="center"
  54. >
  55. <template slot="header" slot-scope="scope">
  56. <div class="column-label-cell">
  57. <div class="column-label-cell-title">开票二维码</div>
  58. <div class="column-label-cell-tip">支持客户换开或查看发票</div>
  59. </div>
  60. </template>
  61. <template slot="default" slot-scope="scope">
  62. <span class="column-cell">{{ scope.row.invoiceQrCode }}</span>
  63. </template>
  64. </el-table-column>
  65. <el-table-column
  66. prop="actionTime"
  67. label="操作时间"
  68. />
  69. <el-table-column
  70. prop="operator"
  71. label="操作人"
  72. width="160"
  73. align="center"
  74. />
  75. </el-table>
  76. </div>
  77. </info-card>
  78. </div>
  79. </template>
  80. <script>
  81. import InfoCard from '../../ui/InfoCard.vue';
  82. export default {
  83. name: 'InvoiceInfo',
  84. components: {
  85. InfoCard
  86. },
  87. props: {
  88. orderDetail: {
  89. type: Object,
  90. default: () => {
  91. return {}
  92. }
  93. }
  94. },
  95. data() {
  96. return {
  97. invoiceList: [{
  98. invoiceID: '20231231',
  99. invoiceCode: '20231231',
  100. associationOrderMoney: '¥1,000.00',
  101. invoiceStatus: '已申请',
  102. invoiceQrCode: '查看',
  103. actionTime: '2023-12-31 13:21:32',
  104. operator: '张三'
  105. }]
  106. }
  107. }
  108. }
  109. </script>
  110. <style lang="scss" scoped>
  111. .invoice-info {
  112. .invoice-info-content {
  113. display: flex;
  114. align-items: center;
  115. .invoice-info-item {
  116. min-width: 255px;
  117. margin-right: 32px;
  118. font-size: 14px;
  119. line-height: 22px;
  120. color: $gray_10;
  121. }
  122. }
  123. // margin-top: 20px;
  124. .invoice-info-content-table {
  125. border-radius: 4px;
  126. ::v-deep {
  127. .cell {
  128. text-align: center;
  129. font-size: 14px;
  130. color: $gray_10;
  131. }
  132. .has-gutter {
  133. th {
  134. background: #F9FAFB;
  135. .cell {
  136. padding: 0;
  137. color: #686868;
  138. font-weight: 400;
  139. .column-label-cell-tip {
  140. color: #2ABED1;
  141. }
  142. }
  143. }
  144. }
  145. .column-cell {
  146. color: $color_main;
  147. cursor: pointer;
  148. }
  149. }
  150. }
  151. .num-active {
  152. color: $color_main;
  153. }
  154. }
  155. </style>