detail.vue 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306
  1. <template>
  2. <view class="page-wrap">
  3. <view class="header-panel">
  4. <view class="name">应付# 财税·年服务费</view>
  5. <view class="desc">账单编号:9885</view>
  6. <view class="desc">创建时间:2023-10-25 14:26:08</view>
  7. <view class="desc">所属订单:HC25263</view>
  8. <view class="state state-1">49760.00</view>
  9. </view>
  10. <view class="info-panel">
  11. <view class="title-row">
  12. <image class="icon" src="../../../static/svg/tag.svg"></image>
  13. 账单信息
  14. </view>
  15. <view class="text-row">
  16. <view class="label">付款方</view>
  17. <view class="text">天津超易达胜科技发展有限公司</view>
  18. </view>
  19. <view class="text-row" style="border: none">
  20. <view class="label">收款方</view>
  21. <view class="text">天津鑫恩华产业园区管理有限公司</view>
  22. </view>
  23. <view class="text-row">
  24. <view class="label">账单金额</view>
  25. <view class="text">24600.00</view>
  26. </view>
  27. <view class="text-row">
  28. <view class="label">账单说明</view>
  29. <view class="text">33600.00,前一份合同押金抵消 9000</view>
  30. </view>
  31. <view class="text-row">
  32. <view class="label">约定支付日期</view>
  33. <view class="text">2023-09-15</view>
  34. </view>
  35. <view class="text-row">
  36. <view class="label">支付状态</view>
  37. <view class="text">已支付</view>
  38. </view>
  39. <template v-if="isCollapse">
  40. <view class="text-row">
  41. <view class="label">支付方式</view>
  42. <view class="text">善付通</view>
  43. </view>
  44. <view class="text-row">
  45. <view class="label">支付时间</view>
  46. <view class="text">2023-12-11 20:32:08</view>
  47. </view>
  48. <view class="text-row">
  49. <view class="label">是否到账</view>
  50. <view class="text">待确认</view>
  51. </view>
  52. </template>
  53. </view>
  54. <view v-show="isCollapse" class="info-panel">
  55. <view class="title-row">
  56. <image class="icon" src="../../../static/svg/tag.svg"></image>
  57. 备注信息
  58. </view>
  59. <view class="text-row">
  60. <text class="remark">备注默认为空,如果有备注信息在这里填写, 最多三行,肯定够用了 按字义回车换行,显得更有条理</text>
  61. </view>
  62. </view>
  63. <view class="collapse-btn" @click="isCollapse = !isCollapse">{{ isCollapse ? '收起 ∧' : '展开更多 ∨' }}</view>
  64. <view class="info-panel">
  65. <view class="title-row">
  66. <image class="icon" src="../../../static/svg/tag.svg"></image>
  67. 发票信息
  68. </view>
  69. <view class="text-row">
  70. <view class="label">发票</view>
  71. <view class="text">电子发票</view>
  72. </view>
  73. <view class="text-row">
  74. <view class="label">发票用途</view>
  75. <view class="text">
  76. <input class="input" type="text" placeholder="请输入" maxlength="20" />
  77. </view>
  78. </view>
  79. <view class="text-row">
  80. <view class="label">开票状态</view>
  81. <view class="text">待申请</view>
  82. </view>
  83. </view>
  84. <view class="contact-row">
  85. <image class="avatar" src="../../../static/img_avatar.png" mode="aspectFill"></image>
  86. <view class="info">
  87. <view class="name">陈禹佳</view>
  88. <view class="desc">专属客服,24小时咨询</view>
  89. </view>
  90. <view class="tel">电话</view>
  91. <image class="icon" src="../../../static/icon_tel.png"></image>
  92. </view>
  93. <view class="foot-panel">
  94. <view class="foot-panel-wrap">
  95. <button class="btn btn-1">申请开票</button>
  96. <button class="btn">去支付</button>
  97. </view>
  98. </view>
  99. </view>
  100. </template>
  101. <script>
  102. import billService from '@/api/bill.js';
  103. export default {
  104. data() {
  105. return {
  106. isCollapse: false,
  107. billId: ''
  108. };
  109. },
  110. onLoad(option) {
  111. this.billId = option.id;
  112. this.getBillDetail();
  113. },
  114. methods: {
  115. async getBillDetail() {
  116. const data = await billService.getBillDetail(this.billId);
  117. }
  118. }
  119. };
  120. </script>
  121. <style lang="scss" scoped>
  122. .header-panel {
  123. height: 206.04rpx;
  124. background: #fff;
  125. padding: 13.74rpx 233.52rpx 13.74rpx 27.47rpx;
  126. position: relative;
  127. box-sizing: border-box;
  128. border-top: 1rpx solid #e0e0e0;
  129. .state {
  130. width: 178.57rpx;
  131. height: 178.57rpx;
  132. position: absolute;
  133. right: 27.47rpx;
  134. top: 13.74rpx;
  135. border-radius: 8.24rpx;
  136. display: flex;
  137. flex-direction: column;
  138. align-items: center;
  139. justify-content: center;
  140. font-size: 32.97rpx;
  141. color: #fff;
  142. &::after {
  143. font-size: 27.47rpx;
  144. margin-top: 13.74rpx;
  145. }
  146. &-1 {
  147. background: #00bfbf;
  148. &::after {
  149. content: '未支付';
  150. }
  151. }
  152. &-2 {
  153. background: #ccc;
  154. &::after {
  155. content: '确认中';
  156. }
  157. }
  158. &-3 {
  159. background: #f7922a;
  160. &::after {
  161. content: '已到账';
  162. }
  163. }
  164. }
  165. .name {
  166. font-size: 32.97rpx;
  167. line-height: 1.5;
  168. white-space: nowrap;
  169. overflow: hidden;
  170. text-overflow: ellipsis;
  171. margin-bottom: 6.87rpx;
  172. }
  173. .desc {
  174. font-size: 27.47rpx;
  175. line-height: 1.5;
  176. color: #999;
  177. }
  178. }
  179. .info-panel {
  180. background: #fff;
  181. margin-top: 13.74rpx;
  182. .title-row {
  183. padding: 13.74rpx 27.47rpx;
  184. min-height: 82.42rpx;
  185. box-sizing: border-box;
  186. display: flex;
  187. align-items: center;
  188. border-bottom: 1rpx solid #e0e0e0;
  189. font-size: 27.47rpx;
  190. color: #0384d6;
  191. .icon {
  192. width: 20.6rpx;
  193. height: 20.6rpx;
  194. background: #3498db;
  195. padding: 8.24rpx;
  196. margin-right: 13.74rpx;
  197. }
  198. }
  199. .text-row {
  200. padding: 20.6rpx 27.47rpx;
  201. min-height: 82.42rpx;
  202. box-sizing: border-box;
  203. display: flex;
  204. align-items: center;
  205. justify-content: space-between;
  206. font-size: 27.47rpx;
  207. & + .text-row {
  208. border-top: 1rpx solid #e0e0e0;
  209. }
  210. .label {
  211. white-space: nowrap;
  212. margin-right: 27.47rpx;
  213. }
  214. .text {
  215. word-break: break-all;
  216. text-align: right;
  217. }
  218. .remark {
  219. line-height: 41.21rpx;
  220. }
  221. .input {
  222. width: 274.73rpx;
  223. margin: -5.49rpx 0;
  224. }
  225. }
  226. }
  227. .collapse-btn {
  228. font-size: 24.73rpx;
  229. color: #999;
  230. line-height: 82.42rpx;
  231. text-align: center;
  232. background: #fff;
  233. border-top: 1rpx solid #e0e0e0;
  234. }
  235. .contact-row {
  236. display: flex;
  237. align-items: center;
  238. height: 109.89rpx;
  239. background: #fff;
  240. padding: 0 27.47rpx;
  241. margin: 13.74rpx 0;
  242. .avatar {
  243. width: 76.92rpx;
  244. height: 76.92rpx;
  245. border-radius: 50%;
  246. }
  247. .info {
  248. flex: 1;
  249. margin: 0 13.74rpx;
  250. }
  251. .name {
  252. font-size: 27.47rpx;
  253. color: #545e8f;
  254. }
  255. .desc {
  256. font-size: 24.73rpx;
  257. color: #999;
  258. }
  259. .tel {
  260. font-size: 27.47rpx;
  261. color: #999;
  262. }
  263. .icon {
  264. width: 54.95rpx;
  265. height: 54.95rpx;
  266. margin-left: 13.74rpx;
  267. }
  268. }
  269. .foot-panel {
  270. height: 96.15rpx;
  271. &-wrap {
  272. position: fixed;
  273. left: 0;
  274. bottom: 0;
  275. right: 0;
  276. height: 96.15rpx;
  277. background: #f7f7f7;
  278. z-index: 1;
  279. display: flex;
  280. align-items: center;
  281. justify-content: flex-end;
  282. padding: 0 27.47rpx;
  283. }
  284. .btn {
  285. min-width: 164.84rpx;
  286. height: 68.68rpx;
  287. font-size: 27.47rpx;
  288. line-height: 68.68rpx;
  289. color: #fff;
  290. background: #f97631;
  291. border-radius: 5.49rpx;
  292. box-sizing: border-box;
  293. padding: 0 27.47rpx;
  294. margin: 0 0 0 13.74rpx;
  295. &-1 {
  296. color: #666;
  297. background: none;
  298. border: 1rpx solid #ccc;
  299. line-height: 65.93rpx;
  300. }
  301. }
  302. }
  303. </style>