costbreakdown.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <template>
  2. <view>
  3. <view style='background:#fff;'>
  4. <view class='purposewrap'>
  5. <view class='item left active'>合同费用</view>
  6. <view class='item'>库点费用</view>
  7. <view class='item right'>经营性费用</view>
  8. </view>
  9. </view>
  10. <view class='costwrap'>
  11. <view class='item active'>全部</view>
  12. <view class='item'>粮款</view>
  13. <view class='item'>非粮款</view>
  14. <view class='item'>保证金</view>
  15. </view>
  16. <view class='costwrap'>
  17. <view class='item'>全部</view>
  18. <view class='item'>煤费</view>
  19. <view class='item'>电费</view>
  20. <view class='item'>人工费</view>
  21. <view class='item'>杂费</view>
  22. <view class='item'>收款</view>
  23. </view>
  24. <view class='costlistwrap'>
  25. <view v-for='(item,index) in costList' :style='index!=costList.length-1?"border-bottom:2rpx solid #eee":""' class='item'>
  26. <view class='flex align-item-center'>
  27. <view v-if='item.status==1' class="status pay">付</view>
  28. <view v-if='item.status==2' class="status income">收</view>
  29. <view style='width:92%;justify-content: space-between;' class="flex align-item-center">
  30. <view class="costtype">{{item.costtype}}</view>
  31. <view class="costmoney"><text>¥</text>{{item.costmoney}}</view>
  32. </view>
  33. </view>
  34. <view style='justify-content: space-between;font-size:28rpx;margin:10rpx 0;' class='flex align-item-center'>
  35. <view>{{item.warehouse}}</view>
  36. <!-- <view>{{item.contract}}</view>
  37. <view>{{item.date}}</view> -->
  38. <view>{{item.name}}</view>
  39. </view>
  40. <view style='font-size:24rpx;margin:20rpx 0;' class='flex align-item-center'>
  41. <view class="">
  42. {{item.date}}
  43. </view>
  44. </view>
  45. </view>
  46. </view>
  47. </view>
  48. </template>
  49. <script>
  50. export default {
  51. data() {
  52. return {
  53. costList:[
  54. {status:1,
  55. costtype:'水费',
  56. costmoney:'121111',
  57. warehouse:'金信库',
  58. name:'张三',
  59. date:'2022.11.22 15:32:21'},{status:2,
  60. costtype:'水费',
  61. costmoney:'121111',
  62. warehouse:'金信库',
  63. name:'张三',
  64. date:'2022.11.22 15:32:21'}],
  65. }
  66. },
  67. methods: {
  68. }
  69. }
  70. </script>
  71. <style lang='scss' scoped>
  72. .purposewrap{
  73. display:flex;
  74. background:#fff;
  75. font-size:32rpx;
  76. margin: 0 auto;
  77. width:93%;
  78. .item{
  79. padding:20rpx;
  80. color:#7A7A7A;
  81. width:33.3333%;
  82. text-align:center;
  83. }
  84. .item.left{
  85. text-align:left;
  86. }
  87. .item.right{
  88. text-align:right;
  89. }
  90. .item.active{
  91. color:#262626;
  92. font-weight:600;
  93. }
  94. }
  95. .costwrap{
  96. display:flex;
  97. margin:10rpx 34rpx;
  98. .item{
  99. padding:10rpx 20rpx;
  100. color:#333333;
  101. text-align:center;
  102. border-radius:30rpx;
  103. }
  104. .item.active{
  105. color:#fff;
  106. background:#22C572;
  107. }
  108. }
  109. .costlistwrap{
  110. background:#fff;
  111. margin:0 20rpx;
  112. border-radius:20rpx;
  113. padding:0 20rpx;
  114. .item{
  115. padding:30rpx 0;
  116. .status{
  117. font-size:24rpx;
  118. margin-right:10rpx;
  119. padding:4rpx 10rpx;
  120. border-radius:10rpx;
  121. }
  122. .status.pay{
  123. background:#E9F8F0;
  124. color:#22C572;
  125. }
  126. .status.income{
  127. background:#FEECE6;
  128. color:#FE6430;
  129. }
  130. .costtype{
  131. font-size:32rpx;
  132. font-weight:600;
  133. }
  134. .costmoney{
  135. font-size:36rpx;
  136. font-weight:600;
  137. text{
  138. font-size:26rpx;
  139. }
  140. }
  141. }
  142. }
  143. </style>