recordOfInvoice.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. <template>
  2. <view >
  3. <u-navbar title="申请开票记录">
  4. </u-navbar>
  5. <u-tabs inactive-color="#888888" active-color="#101010" :list="list" :is-scroll="true"
  6. :current="current" @change="change"></u-tabs>
  7. <!-- 待开票 -->
  8. <view class="not-invoiced" v-show="current==0">
  9. <view class="invoiced-item">
  10. <view class="content">
  11. <view class="title">
  12. 用户充电订单发票 <text class="to-invoice">待开票</text>
  13. </view>
  14. <p><text class="text-1">发票金额</text> <text class="text-2">50.00元</text></p>
  15. <p><text class="text-1">发票抬头</text><text class="text-2">刘德华</text></p>
  16. <p><text class="text-1">申请时间</text> <text class="text-2">2022-06-23 16:00:00</text></p>
  17. </view>
  18. </view>
  19. </view>
  20. <!-- 已开票 -->
  21. <view class="invoiced" v-show="current==1">
  22. <view class="invoiced-item">
  23. <view class="content">
  24. <view class="title">
  25. 用户充电订单发票 <text class="have-invoiced">已开票</text>
  26. </view>
  27. <p><text class="text-1">发票金额</text> <text class="text-2">50.00元</text></p>
  28. <p><text class="text-1">发票抬头</text><text class="text-2">刘德华</text></p>
  29. <p><text class="text-1">申请时间</text> <text class="text-2">2022-06-23 16:00:00</text></p>
  30. </view>
  31. </view>
  32. <p class="tips"> 仅展示最近12个月的发票信息</p>
  33. </view>
  34. </view>
  35. </template>
  36. <script>
  37. export default {
  38. data() {
  39. return {
  40. list: [{
  41. name: '待开票'
  42. }, {
  43. name: '已开票'
  44. }],
  45. current: 0,
  46. }
  47. },
  48. methods: {
  49. change(index) {
  50. this.current = index;
  51. },
  52. },
  53. }
  54. </script>
  55. <style lang="scss" scoped>
  56. page{
  57. background-color: #F2F4F4;
  58. }
  59. /deep/.u-scroll-box{
  60. width: 65.8% !important;
  61. margin: 0 auto;
  62. display: flex;
  63. }
  64. /deep/.u-tab-bar{
  65. width: 18% !important;
  66. left: -5% !important;
  67. background-color: #00B962 !important; }
  68. // 未开票
  69. .flex{
  70. display: flex;
  71. }
  72. .not-invoiced-item,.invoiced-item{
  73. width: 91.4%;
  74. border-radius: 12px;
  75. background-color: rgba(255, 255, 255, 100);
  76. border: 1px solid rgba(235, 235, 235, 100);
  77. padding: 16px 0;
  78. padding-left: 18px;
  79. margin:12px auto;
  80. }
  81. .content{
  82. width: 100%;
  83. margin-left: 4px;
  84. .title{
  85. line-height: 18px;
  86. color: rgba(16, 16, 16, 100);
  87. font-size: 16px;
  88. margin-bottom: 12px;
  89. padding-right: 12px;
  90. display: flex;
  91. justify-content: space-between;
  92. .price,.invoice,.have-invoiced{
  93. height: 18px;
  94. color: rgba(255, 61, 0, 100);
  95. font-size: 18px;
  96. }
  97. }
  98. p{
  99. color: rgba(102, 102, 102, 100);
  100. line-height: 26px;
  101. }
  102. .text-1{
  103. display: inline-block;
  104. width: 17vw;
  105. }
  106. .text-2{
  107. display: inline-block;
  108. margin-left:4px;
  109. width:54.6vw;
  110. }
  111. .order-box{
  112. display: flex;
  113. .order{
  114. width: 17vw;
  115. }
  116. .order-num{
  117. flex: 1;
  118. margin-left:4px;
  119. overflow: hidden;
  120. white-space: nowrap;
  121. text-overflow: ellipsis;
  122. }
  123. }
  124. }
  125. .radio{
  126. margin: auto 0;
  127. /deep/.uni-radio-input{
  128. width: 20px !important;
  129. height: 20px !important;
  130. }
  131. }
  132. .to-invoice{
  133. color:#FF6100!important;
  134. font-size: 18px
  135. }
  136. .have-invoiced{
  137. color: #00B962!important;
  138. font-size: 18px
  139. }
  140. .tips{
  141. color: rgba(153, 153, 153, 100);
  142. text-align: center;
  143. }
  144. </style>