invoice_assistant.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. <template>
  2. <view>
  3. <view class="content">
  4. <view class="info">
  5. <view class="info_title">
  6. <view class="info_title_icon"></view>
  7. <view class="info_title_name">增值税开票信息</view>
  8. </view>
  9. <view class="info_inner">
  10. <view class="info_inner_item">
  11. <view class="item_label">
  12. <text>名称:</text>
  13. </view>
  14. <view class="item_text">
  15. <text>{{Info.name}}</text>
  16. </view>
  17. </view>
  18. <view class="info_inner_item">
  19. <view class="item_label">
  20. <text>税号: </text>
  21. </view>
  22. <view class="item_text">
  23. <text>{{Info.identification}}</text>
  24. </view>
  25. </view>
  26. <view class="info_inner_item">
  27. <view class="item_label">
  28. <text>地址:</text>
  29. </view>
  30. <view class="item_text">
  31. <text>{{Info.address}}</text>
  32. </view>
  33. </view>
  34. <view class="info_inner_item">
  35. <view class="item_label">
  36. <text>电话:</text>
  37. </view>
  38. <view class="item_text">
  39. <text>{{Info.tel}}</text>
  40. </view>
  41. </view>
  42. <view class="info_inner_item">
  43. <view class="item_label">
  44. <text>开户行:</text>
  45. </view>
  46. <view class="item_text">
  47. <text>{{Info.bank}}</text>
  48. </view>
  49. </view>
  50. <view class="info_inner_item">
  51. <view class="item_label">
  52. <text>账号:</text>
  53. </view>
  54. <view class="item_text">
  55. <text>{{Info.account}}</text>
  56. </view>
  57. </view>
  58. </view>
  59. </view>
  60. <view class="info">
  61. <view class="info_title">
  62. <view class="info_title_name">交款信息</view>
  63. </view>
  64. <view class="info_inner">
  65. <view class="info_inner_item">
  66. <view class="item_label">
  67. <text>账户名称:</text>
  68. </view>
  69. <view class="item_text">
  70. <text>{{Payment.name}}</text>
  71. </view>
  72. </view>
  73. <view class="info_inner_item">
  74. <view class="item_label">
  75. <text>开户行: </text>
  76. </view>
  77. <view class="item_text">
  78. <text>{{Payment.bank}}</text>
  79. </view>
  80. </view>
  81. <view class="info_inner_item">
  82. <view class="item_label">
  83. <text>账户:</text>
  84. </view>
  85. <view class="item_text">
  86. <text>{{Payment.account}}</text>
  87. </view>
  88. </view>
  89. </view>
  90. </view>
  91. <view class="info">
  92. <view class="info_title">
  93. <view class="info_title_name">收据抬头</view>
  94. </view>
  95. <view class="info_inner">
  96. <view class="info_inner_item">
  97. <view class="item_label">
  98. <text>名称:</text>
  99. </view>
  100. <view class="item_text">
  101. <text>{{Title}}</text>
  102. </view>
  103. </view>
  104. </view>
  105. </view>
  106. </view>
  107. </view>
  108. </template>
  109. <script>
  110. export default {
  111. data() {
  112. return {
  113. Info:{},
  114. Payment:{},
  115. Title:""
  116. };
  117. },
  118. onLoad() {
  119. this.getInvoice()
  120. },
  121. methods:{
  122. // 请求开票信息
  123. getInvoice(){
  124. this.$api.workbench_invoice_info({
  125. }).then((res)=>{
  126. console.log(res)
  127. const data = res.data.data
  128. console.log(data)
  129. this.Info = data.invoiceInfo
  130. this.Payment = data.invoicePayment
  131. this.Title = data.invoiceTitle
  132. })
  133. },
  134. }
  135. }
  136. </script>
  137. <style lang="scss">
  138. page{
  139. background-color: #009FE8;
  140. }
  141. .content{
  142. background-color: #009FE8;
  143. box-sizing: border-box;
  144. padding: 31rpx 36rpx 0;
  145. padding-bottom: 50rpx;
  146. .info{
  147. margin-bottom: 20rpx;
  148. box-sizing: border-box;
  149. padding-top: 19rpx;
  150. background: #FFFFFF;
  151. border-radius: 20rpx;
  152. .info_title{
  153. display: flex;
  154. justify-content: center;
  155. .info_title_icon{
  156. width: 52rpx;
  157. height: 52rpx;
  158. background-image: url(./icon/invoice.png);
  159. background-size: cover;
  160. background-repeat: no-repeat;
  161. }
  162. .info_title_name{
  163. margin-left: 12rpx;
  164. font-size: 38rpx;
  165. font-weight: 500;
  166. color: #232627;
  167. line-height: 52rpx;
  168. }
  169. }
  170. .info_inner{
  171. box-sizing: border-box;
  172. padding-left: 46rpx;
  173. padding-bottom: 40rpx;
  174. .info_inner_item{
  175. overflow: hidden;
  176. margin-top: 40rpx;
  177. font-size: 27rpx;
  178. font-weight: 500;
  179. color: #7D7C7C;
  180. line-height: 39rpx;
  181. .item_label{
  182. float: left;
  183. width: 140rpx;
  184. }
  185. .item_text{
  186. float: left;
  187. width: 440rpx;
  188. color: #2C3E50;
  189. }
  190. }
  191. }
  192. }
  193. }
  194. </style>