deductstatic.vue 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. <!-- -->
  2. <template>
  3. <hc-new-card>
  4. <div class="hc-main-row">
  5. <div class="title_box">
  6. 目前所有已计量但未补全资料的计量金额统计
  7. </div>
  8. <el-row :gutter="30">
  9. <el-col :span="8">
  10. <hc-gradient-card color="purple1">
  11. <div class="hc-card-item-sub">
  12. <div class="item-sub-title">
  13. ¥{{ infoData?.allMoney || 0 }}
  14. </div>
  15. <div class="item-sub-num">
  16. <span class="num">总金额</span>
  17. <span class="fon-lg" style="opacity: 0;">12345678</span>
  18. </div>
  19. </div>
  20. </hc-gradient-card>
  21. </el-col>
  22. <el-col :span="8">
  23. <HcGradientCard color="orange1">
  24. <div class="hc-card-item-sub">
  25. <div class="item-sub-title">
  26. ¥{{ infoData?.oneDayMoney || 0 }}
  27. </div>
  28. <div class="item-sub-num">
  29. <span class="num">距离截止日期还剩</span>
  30. <span class="fon-lg">1</span>
  31. <span class="num">天</span>
  32. <span class="num" style="opacity: 0;">1</span>
  33. </div>
  34. </div>
  35. </HcGradientCard>
  36. </el-col>
  37. <el-col :span="8">
  38. <HcGradientCard color="yellow1">
  39. <div class="hc-card-item-sub">
  40. <div class="item-sub-title">
  41. ¥{{ infoData?.tenDaysMoney || 0 }}
  42. </div>
  43. <div class="item-sub-num">
  44. <span class="num">距离截止日期还剩<</span>
  45. <span class="fon-lg">10</span>
  46. <span class="num">天</span>
  47. </div>
  48. </div>
  49. </HcGradientCard>
  50. </el-col>
  51. </el-row>
  52. <el-row :gutter="30" class="mt-24">
  53. <el-col :span="8">
  54. <hc-gradient-card color="green2">
  55. <div class="hc-card-item-sub">
  56. <div class="item-sub-title">
  57. ¥{{ infoData?.thirtyDaysMoney || 0 }}
  58. </div>
  59. <div class="item-sub-num">
  60. <span class="num">距离截止日期还剩<</span>
  61. <span class="fon-lg">30</span>
  62. <span class="num">天</span>
  63. </div>
  64. </div>
  65. </hc-gradient-card>
  66. </el-col>
  67. <el-col :span="8">
  68. <HcGradientCard color="blue2">
  69. <div class="hc-card-item-sub">
  70. <div class="item-sub-title">
  71. ¥{{ infoData?.sixtyDaysMoney || 0 }}
  72. </div>
  73. <div class="item-sub-num">
  74. <span class="num">距离截止日期还剩<</span>
  75. <span class="fon-lg">60</span>
  76. <span class="num">天</span>
  77. </div>
  78. </div>
  79. </HcGradientCard>
  80. </el-col>
  81. <el-col :span="8">
  82. <HcGradientCard color="red1">
  83. <div class="hc-card-item-sub">
  84. <div class="item-sub-title">
  85. ¥{{ infoData?.overDateMoney || 0 }}
  86. </div>
  87. <div class="item-sub-num">
  88. <span class="num">已超过截止日期</span>
  89. <span class="fon-lg" style="opacity: 0;">1111111</span>
  90. </div>
  91. </div>
  92. </HcGradientCard>
  93. </el-col>
  94. </el-row>
  95. </div>
  96. </hc-new-card>
  97. </template>
  98. <script setup>
  99. import { onActivated, ref, watch } from 'vue'
  100. import staticApi from '~api/debit-pay/ledger/static'
  101. import { useAppStore } from '~src/store'
  102. import { getObjValue } from 'js-fast-way'
  103. const useAppState = useAppStore()
  104. const contractId = ref(useAppState.getContractId || '')
  105. const infoData = ref({})
  106. onActivated(()=>{
  107. getStaticData()
  108. })
  109. const getStaticData = async ()=>{
  110. const { error, code, data } = await staticApi.deductStatistics({
  111. contractId:contractId.value,
  112. })
  113. if (!error && code === 200) {
  114. infoData.value = getObjValue(data)
  115. } else {
  116. infoData.value = {}
  117. }
  118. }
  119. </script>
  120. <style lang='scss' scoped>
  121. .hc-main-row {
  122. padding: 60px;
  123. height: 100%;
  124. overflow-y: auto;
  125. }
  126. .title_box{
  127. width: 100%;
  128. background-color:#6799D9 ;
  129. border-radius: 25px;
  130. text-align: center;
  131. color: white;
  132. font-weight: bolder;
  133. line-height: 100px;
  134. margin-bottom: 100px;
  135. font-size: 50px;
  136. word-wrap: break-word; /* 让文字在需要时自动换行 */
  137. }
  138. .hc-card-item-sub {
  139. position: relative;
  140. padding: 20px;
  141. .item-sub-title {
  142. font-size: 45px;
  143. font-weight: bold;
  144. }
  145. .item-sub-num {
  146. position: relative;
  147. margin-top: 40px;
  148. text-align: left;
  149. .num {
  150. font-size: 30px;
  151. font-weight: bold;
  152. }
  153. .text {
  154. margin-left: 5px;
  155. font-size: 25px;
  156. color: inherit;
  157. }
  158. }
  159. }
  160. .fon-lg{
  161. font-size: 50px;
  162. }
  163. </style>